1. Packages
  2. Akamai
  3. API Docs
  4. GtmCidrmap
Akamai v7.2.0 published on Friday, May 31, 2024 by Pulumi

akamai.GtmCidrmap

Explore with Pulumi AI

akamai logo
Akamai v7.2.0 published on Friday, May 31, 2024 by Pulumi

    Create GtmCidrmap Resource

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

    Constructor syntax

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

    Parameters

    name string
    The unique name of the resource.
    args GtmCidrmapArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args GtmCidrmapArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args GtmCidrmapArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args GtmCidrmapArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args GtmCidrmapArgs
    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 gtmCidrmapResource = new Akamai.GtmCidrmap("gtmCidrmapResource", new()
    {
        DefaultDatacenter = new Akamai.Inputs.GtmCidrmapDefaultDatacenterArgs
        {
            DatacenterId = 0,
            Nickname = "string",
        },
        Domain = "string",
        Assignments = new[]
        {
            new Akamai.Inputs.GtmCidrmapAssignmentArgs
            {
                DatacenterId = 0,
                Nickname = "string",
                Blocks = new[]
                {
                    "string",
                },
            },
        },
        Name = "string",
        WaitOnComplete = false,
    });
    
    example, err := akamai.NewGtmCidrmap(ctx, "gtmCidrmapResource", &akamai.GtmCidrmapArgs{
    	DefaultDatacenter: &akamai.GtmCidrmapDefaultDatacenterArgs{
    		DatacenterId: pulumi.Int(0),
    		Nickname:     pulumi.String("string"),
    	},
    	Domain: pulumi.String("string"),
    	Assignments: akamai.GtmCidrmapAssignmentArray{
    		&akamai.GtmCidrmapAssignmentArgs{
    			DatacenterId: pulumi.Int(0),
    			Nickname:     pulumi.String("string"),
    			Blocks: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    	},
    	Name:           pulumi.String("string"),
    	WaitOnComplete: pulumi.Bool(false),
    })
    
    var gtmCidrmapResource = new GtmCidrmap("gtmCidrmapResource", GtmCidrmapArgs.builder()
        .defaultDatacenter(GtmCidrmapDefaultDatacenterArgs.builder()
            .datacenterId(0)
            .nickname("string")
            .build())
        .domain("string")
        .assignments(GtmCidrmapAssignmentArgs.builder()
            .datacenterId(0)
            .nickname("string")
            .blocks("string")
            .build())
        .name("string")
        .waitOnComplete(false)
        .build());
    
    gtm_cidrmap_resource = akamai.GtmCidrmap("gtmCidrmapResource",
        default_datacenter=akamai.GtmCidrmapDefaultDatacenterArgs(
            datacenter_id=0,
            nickname="string",
        ),
        domain="string",
        assignments=[akamai.GtmCidrmapAssignmentArgs(
            datacenter_id=0,
            nickname="string",
            blocks=["string"],
        )],
        name="string",
        wait_on_complete=False)
    
    const gtmCidrmapResource = new akamai.GtmCidrmap("gtmCidrmapResource", {
        defaultDatacenter: {
            datacenterId: 0,
            nickname: "string",
        },
        domain: "string",
        assignments: [{
            datacenterId: 0,
            nickname: "string",
            blocks: ["string"],
        }],
        name: "string",
        waitOnComplete: false,
    });
    
    type: akamai:GtmCidrmap
    properties:
        assignments:
            - blocks:
                - string
              datacenterId: 0
              nickname: string
        defaultDatacenter:
            datacenterId: 0
            nickname: string
        domain: string
        name: string
        waitOnComplete: false
    

    GtmCidrmap Resource Properties

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

    Inputs

    The GtmCidrmap resource accepts the following input properties:

    Outputs

    All input properties are implicitly available as output properties. Additionally, the GtmCidrmap 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 GtmCidrmap Resource

    Get an existing GtmCidrmap 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?: GtmCidrmapState, opts?: CustomResourceOptions): GtmCidrmap
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            assignments: Optional[Sequence[GtmCidrmapAssignmentArgs]] = None,
            default_datacenter: Optional[GtmCidrmapDefaultDatacenterArgs] = None,
            domain: Optional[str] = None,
            name: Optional[str] = None,
            wait_on_complete: Optional[bool] = None) -> GtmCidrmap
    func GetGtmCidrmap(ctx *Context, name string, id IDInput, state *GtmCidrmapState, opts ...ResourceOption) (*GtmCidrmap, error)
    public static GtmCidrmap Get(string name, Input<string> id, GtmCidrmapState? state, CustomResourceOptions? opts = null)
    public static GtmCidrmap get(String name, Output<String> id, GtmCidrmapState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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

    GtmCidrmapAssignment, GtmCidrmapAssignmentArgs

    DatacenterId int
    Nickname string
    Blocks List<string>
    DatacenterId int
    Nickname string
    Blocks []string
    datacenterId Integer
    nickname String
    blocks List<String>
    datacenterId number
    nickname string
    blocks string[]
    datacenter_id int
    nickname str
    blocks Sequence[str]
    datacenterId Number
    nickname String
    blocks List<String>

    GtmCidrmapDefaultDatacenter, GtmCidrmapDefaultDatacenterArgs

    datacenterId Integer
    nickname String
    datacenterId number
    nickname string
    datacenterId 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.
    akamai logo
    Akamai v7.2.0 published on Friday, May 31, 2024 by Pulumi