1. Packages
  2. Akamai
  3. API Docs
  4. GtmAsmap
Akamai v8.1.0 published on Friday, Apr 11, 2025 by Pulumi

akamai.GtmAsmap

Explore with Pulumi AI

Create GtmAsmap Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new GtmAsmap(name: string, args: GtmAsmapArgs, opts?: CustomResourceOptions);
@overload
def GtmAsmap(resource_name: str,
             args: GtmAsmapArgs,
             opts: Optional[ResourceOptions] = None)

@overload
def GtmAsmap(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             default_datacenter: Optional[GtmAsmapDefaultDatacenterArgs] = None,
             domain: Optional[str] = None,
             assignments: Optional[Sequence[GtmAsmapAssignmentArgs]] = None,
             name: Optional[str] = None,
             wait_on_complete: Optional[bool] = None)
func NewGtmAsmap(ctx *Context, name string, args GtmAsmapArgs, opts ...ResourceOption) (*GtmAsmap, error)
public GtmAsmap(string name, GtmAsmapArgs args, CustomResourceOptions? opts = null)
public GtmAsmap(String name, GtmAsmapArgs args)
public GtmAsmap(String name, GtmAsmapArgs args, CustomResourceOptions options)
type: akamai:GtmAsmap
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. GtmAsmapArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. GtmAsmapArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. GtmAsmapArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. GtmAsmapArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. GtmAsmapArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var gtmAsmapResource = new Akamai.GtmAsmap("gtmAsmapResource", new()
{
    DefaultDatacenter = new Akamai.Inputs.GtmAsmapDefaultDatacenterArgs
    {
        DatacenterId = 0,
        Nickname = "string",
    },
    Domain = "string",
    Assignments = new[]
    {
        new Akamai.Inputs.GtmAsmapAssignmentArgs
        {
            AsNumbers = new[]
            {
                0,
            },
            DatacenterId = 0,
            Nickname = "string",
        },
    },
    Name = "string",
    WaitOnComplete = false,
});
Copy
example, err := akamai.NewGtmAsmap(ctx, "gtmAsmapResource", &akamai.GtmAsmapArgs{
	DefaultDatacenter: &akamai.GtmAsmapDefaultDatacenterArgs{
		DatacenterId: pulumi.Int(0),
		Nickname:     pulumi.String("string"),
	},
	Domain: pulumi.String("string"),
	Assignments: akamai.GtmAsmapAssignmentArray{
		&akamai.GtmAsmapAssignmentArgs{
			AsNumbers: pulumi.IntArray{
				pulumi.Int(0),
			},
			DatacenterId: pulumi.Int(0),
			Nickname:     pulumi.String("string"),
		},
	},
	Name:           pulumi.String("string"),
	WaitOnComplete: pulumi.Bool(false),
})
Copy
var gtmAsmapResource = new GtmAsmap("gtmAsmapResource", GtmAsmapArgs.builder()
    .defaultDatacenter(GtmAsmapDefaultDatacenterArgs.builder()
        .datacenterId(0)
        .nickname("string")
        .build())
    .domain("string")
    .assignments(GtmAsmapAssignmentArgs.builder()
        .asNumbers(0)
        .datacenterId(0)
        .nickname("string")
        .build())
    .name("string")
    .waitOnComplete(false)
    .build());
Copy
gtm_asmap_resource = akamai.GtmAsmap("gtmAsmapResource",
    default_datacenter={
        "datacenter_id": 0,
        "nickname": "string",
    },
    domain="string",
    assignments=[{
        "as_numbers": [0],
        "datacenter_id": 0,
        "nickname": "string",
    }],
    name="string",
    wait_on_complete=False)
Copy
const gtmAsmapResource = new akamai.GtmAsmap("gtmAsmapResource", {
    defaultDatacenter: {
        datacenterId: 0,
        nickname: "string",
    },
    domain: "string",
    assignments: [{
        asNumbers: [0],
        datacenterId: 0,
        nickname: "string",
    }],
    name: "string",
    waitOnComplete: false,
});
Copy
type: akamai:GtmAsmap
properties:
    assignments:
        - asNumbers:
            - 0
          datacenterId: 0
          nickname: string
    defaultDatacenter:
        datacenterId: 0
        nickname: string
    domain: string
    name: string
    waitOnComplete: false
Copy

GtmAsmap Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The GtmAsmap resource accepts the following input properties:

DefaultDatacenter This property is required. GtmAsmapDefaultDatacenter
Domain This property is required. string
Assignments List<GtmAsmapAssignment>
Name string
WaitOnComplete bool
DefaultDatacenter This property is required. GtmAsmapDefaultDatacenterArgs
Domain This property is required. string
Assignments []GtmAsmapAssignmentArgs
Name string
WaitOnComplete bool
defaultDatacenter This property is required. GtmAsmapDefaultDatacenter
domain This property is required. String
assignments List<GtmAsmapAssignment>
name String
waitOnComplete Boolean
defaultDatacenter This property is required. GtmAsmapDefaultDatacenter
domain This property is required. string
assignments GtmAsmapAssignment[]
name string
waitOnComplete boolean
defaultDatacenter This property is required. Property Map
domain This property is required. String
assignments List<Property Map>
name String
waitOnComplete Boolean

Outputs

All input properties are implicitly available as output properties. Additionally, the GtmAsmap resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing GtmAsmap Resource

Get an existing GtmAsmap resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: GtmAsmapState, opts?: CustomResourceOptions): GtmAsmap
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        assignments: Optional[Sequence[GtmAsmapAssignmentArgs]] = None,
        default_datacenter: Optional[GtmAsmapDefaultDatacenterArgs] = None,
        domain: Optional[str] = None,
        name: Optional[str] = None,
        wait_on_complete: Optional[bool] = None) -> GtmAsmap
func GetGtmAsmap(ctx *Context, name string, id IDInput, state *GtmAsmapState, opts ...ResourceOption) (*GtmAsmap, error)
public static GtmAsmap Get(string name, Input<string> id, GtmAsmapState? state, CustomResourceOptions? opts = null)
public static GtmAsmap get(String name, Output<String> id, GtmAsmapState state, CustomResourceOptions options)
resources:  _:    type: akamai:GtmAsmap    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

Supporting Types

GtmAsmapAssignment
, GtmAsmapAssignmentArgs

AsNumbers This property is required. List<int>
DatacenterId This property is required. int
Nickname This property is required. string
AsNumbers This property is required. []int
DatacenterId This property is required. int
Nickname This property is required. string
asNumbers This property is required. List<Integer>
datacenterId This property is required. Integer
nickname This property is required. String
asNumbers This property is required. number[]
datacenterId This property is required. number
nickname This property is required. string
as_numbers This property is required. Sequence[int]
datacenter_id This property is required. int
nickname This property is required. str
asNumbers This property is required. List<Number>
datacenterId This property is required. Number
nickname This property is required. String

GtmAsmapDefaultDatacenter
, GtmAsmapDefaultDatacenterArgs

DatacenterId This property is required. int
Nickname string
DatacenterId This property is required. int
Nickname string
datacenterId This property is required. Integer
nickname String
datacenterId This property is required. number
nickname string
datacenter_id This property is required. int
nickname str
datacenterId This property is required. Number
nickname String

Package Details

Repository
Akamai pulumi/pulumi-akamai
License
Apache-2.0
Notes
This Pulumi package is based on the akamai Terraform Provider.