1. Packages
  2. AWS
  3. API Docs
  4. route53
  5. CidrCollection
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

aws.route53.CidrCollection

Explore with Pulumi AI

aws logo
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

    Provides a Route53 CIDR collection resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.route53.CidrCollection("example", {name: "collection-1"});
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.route53.CidrCollection("example", name="collection-1")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/route53"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := route53.NewCidrCollection(ctx, "example", &route53.CidrCollectionArgs{
    			Name: pulumi.String("collection-1"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Aws.Route53.CidrCollection("example", new()
        {
            Name = "collection-1",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.route53.CidrCollection;
    import com.pulumi.aws.route53.CidrCollectionArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var example = new CidrCollection("example", CidrCollectionArgs.builder()
                .name("collection-1")
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:route53:CidrCollection
        properties:
          name: collection-1
    

    Create CidrCollection Resource

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

    Constructor syntax

    new CidrCollection(name: string, args?: CidrCollectionArgs, opts?: CustomResourceOptions);
    @overload
    def CidrCollection(resource_name: str,
                       args: Optional[CidrCollectionArgs] = None,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def CidrCollection(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       name: Optional[str] = None)
    func NewCidrCollection(ctx *Context, name string, args *CidrCollectionArgs, opts ...ResourceOption) (*CidrCollection, error)
    public CidrCollection(string name, CidrCollectionArgs? args = null, CustomResourceOptions? opts = null)
    public CidrCollection(String name, CidrCollectionArgs args)
    public CidrCollection(String name, CidrCollectionArgs args, CustomResourceOptions options)
    
    type: aws:route53:CidrCollection
    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 CidrCollectionArgs
    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 CidrCollectionArgs
    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 CidrCollectionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CidrCollectionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CidrCollectionArgs
    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 cidrCollectionResource = new Aws.Route53.CidrCollection("cidrCollectionResource", new()
    {
        Name = "string",
    });
    
    example, err := route53.NewCidrCollection(ctx, "cidrCollectionResource", &route53.CidrCollectionArgs{
    	Name: pulumi.String("string"),
    })
    
    var cidrCollectionResource = new CidrCollection("cidrCollectionResource", CidrCollectionArgs.builder()
        .name("string")
        .build());
    
    cidr_collection_resource = aws.route53.CidrCollection("cidrCollectionResource", name="string")
    
    const cidrCollectionResource = new aws.route53.CidrCollection("cidrCollectionResource", {name: "string"});
    
    type: aws:route53:CidrCollection
    properties:
        name: string
    

    CidrCollection 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 CidrCollection resource accepts the following input properties:

    Name string
    Unique name for the CIDR collection.
    Name string
    Unique name for the CIDR collection.
    name String
    Unique name for the CIDR collection.
    name string
    Unique name for the CIDR collection.
    name str
    Unique name for the CIDR collection.
    name String
    Unique name for the CIDR collection.

    Outputs

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

    Arn string
    The Amazon Resource Name (ARN) of the CIDR collection.
    Id string
    The provider-assigned unique ID for this managed resource.
    Version int
    The lastest version of the CIDR collection.
    Arn string
    The Amazon Resource Name (ARN) of the CIDR collection.
    Id string
    The provider-assigned unique ID for this managed resource.
    Version int
    The lastest version of the CIDR collection.
    arn String
    The Amazon Resource Name (ARN) of the CIDR collection.
    id String
    The provider-assigned unique ID for this managed resource.
    version Integer
    The lastest version of the CIDR collection.
    arn string
    The Amazon Resource Name (ARN) of the CIDR collection.
    id string
    The provider-assigned unique ID for this managed resource.
    version number
    The lastest version of the CIDR collection.
    arn str
    The Amazon Resource Name (ARN) of the CIDR collection.
    id str
    The provider-assigned unique ID for this managed resource.
    version int
    The lastest version of the CIDR collection.
    arn String
    The Amazon Resource Name (ARN) of the CIDR collection.
    id String
    The provider-assigned unique ID for this managed resource.
    version Number
    The lastest version of the CIDR collection.

    Look up Existing CidrCollection Resource

    Get an existing CidrCollection 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?: CidrCollectionState, opts?: CustomResourceOptions): CidrCollection
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            arn: Optional[str] = None,
            name: Optional[str] = None,
            version: Optional[int] = None) -> CidrCollection
    func GetCidrCollection(ctx *Context, name string, id IDInput, state *CidrCollectionState, opts ...ResourceOption) (*CidrCollection, error)
    public static CidrCollection Get(string name, Input<string> id, CidrCollectionState? state, CustomResourceOptions? opts = null)
    public static CidrCollection get(String name, Output<String> id, CidrCollectionState 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.
    The following state arguments are supported:
    Arn string
    The Amazon Resource Name (ARN) of the CIDR collection.
    Name string
    Unique name for the CIDR collection.
    Version int
    The lastest version of the CIDR collection.
    Arn string
    The Amazon Resource Name (ARN) of the CIDR collection.
    Name string
    Unique name for the CIDR collection.
    Version int
    The lastest version of the CIDR collection.
    arn String
    The Amazon Resource Name (ARN) of the CIDR collection.
    name String
    Unique name for the CIDR collection.
    version Integer
    The lastest version of the CIDR collection.
    arn string
    The Amazon Resource Name (ARN) of the CIDR collection.
    name string
    Unique name for the CIDR collection.
    version number
    The lastest version of the CIDR collection.
    arn str
    The Amazon Resource Name (ARN) of the CIDR collection.
    name str
    Unique name for the CIDR collection.
    version int
    The lastest version of the CIDR collection.
    arn String
    The Amazon Resource Name (ARN) of the CIDR collection.
    name String
    Unique name for the CIDR collection.
    version Number
    The lastest version of the CIDR collection.

    Import

    Using pulumi import, import CIDR collections using their ID. For example:

    $ pulumi import aws:route53/cidrCollection:CidrCollection example 9ac32814-3e67-0932-6048-8d779cc6f511
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi