import * as pulumi from "@pulumi/pulumi"; /** * Provides a resource to manage a [default subnet](http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/default-vpc.html#default-vpc-basics) in the current region. * * **This is an advanced resource** and has special caveats to be aware of when using it. Please read this document in its entirety before using this resource. * * The `aws.ec2.DefaultSubnet` resource behaves differently from normal resources in that if a default subnet exists in the specified Availability Zone, this provider does not _create_ this resource, but instead "adopts" it into management. * If no default subnet exists, this provider creates a new default subnet. * By default, `pulumi destroy` does not delete the default subnet but does remove the resource from the state. * Set the `forceDestroy` argument to `true` to delete the default subnet. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const defaultAz1 = new aws.ec2.DefaultSubnet("default_az1", { * availabilityZone: "us-west-2a", * tags: { * Name: "Default subnet for us-west-2a", * }, * }); * ``` * * ## Import * * Using `pulumi import`, import subnets using the subnet `id`. For example: * * ```sh * $ pulumi import aws:ec2/defaultSubnet:DefaultSubnet public_subnet subnet-9d4a7b6c * ``` */ export declare class DefaultSubnet extends pulumi.CustomResource { /** * Get an existing DefaultSubnet resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: DefaultSubnetState, opts?: pulumi.CustomResourceOptions): DefaultSubnet; /** * Returns true if the given object is an instance of DefaultSubnet. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is DefaultSubnet; readonly arn: pulumi.Output; readonly assignIpv6AddressOnCreation: pulumi.Output; /** * is required * * The `availabilityZoneId`, `cidrBlock` and `vpcId` arguments become computed attributes * * The default value for `mapPublicIpOnLaunch` is `true` * * This resource supports the following additional arguments: */ readonly availabilityZone: pulumi.Output; /** * The AZ ID of the subnet */ readonly availabilityZoneId: pulumi.Output; /** * The IPv4 CIDR block assigned to the subnet */ readonly cidrBlock: pulumi.Output; readonly customerOwnedIpv4Pool: pulumi.Output; readonly enableDns64: pulumi.Output; readonly enableLniAtDeviceIndex: pulumi.Output; readonly enableResourceNameDnsARecordOnLaunch: pulumi.Output; readonly enableResourceNameDnsAaaaRecordOnLaunch: pulumi.Output; readonly existingDefaultSubnet: pulumi.Output; /** * Whether destroying the resource deletes the default subnet. Default: `false` */ readonly forceDestroy: pulumi.Output; readonly ipv6CidrBlock: pulumi.Output; readonly ipv6CidrBlockAssociationId: pulumi.Output; readonly ipv6Native: pulumi.Output; readonly mapCustomerOwnedIpOnLaunch: pulumi.Output; readonly mapPublicIpOnLaunch: pulumi.Output; readonly outpostArn: pulumi.Output; readonly ownerId: pulumi.Output; readonly privateDnsHostnameTypeOnLaunch: pulumi.Output; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the [provider configuration](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#aws-configuration-reference). */ readonly region: pulumi.Output; readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; readonly tagsAll: pulumi.Output<{ [key: string]: string; }>; /** * The ID of the VPC the subnet is in */ readonly vpcId: pulumi.Output; /** * Create a DefaultSubnet resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: DefaultSubnetArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering DefaultSubnet resources. */ export interface DefaultSubnetState { arn?: pulumi.Input; assignIpv6AddressOnCreation?: pulumi.Input; /** * is required * * The `availabilityZoneId`, `cidrBlock` and `vpcId` arguments become computed attributes * * The default value for `mapPublicIpOnLaunch` is `true` * * This resource supports the following additional arguments: */ availabilityZone?: pulumi.Input; /** * The AZ ID of the subnet */ availabilityZoneId?: pulumi.Input; /** * The IPv4 CIDR block assigned to the subnet */ cidrBlock?: pulumi.Input; customerOwnedIpv4Pool?: pulumi.Input; enableDns64?: pulumi.Input; enableLniAtDeviceIndex?: pulumi.Input; enableResourceNameDnsARecordOnLaunch?: pulumi.Input; enableResourceNameDnsAaaaRecordOnLaunch?: pulumi.Input; existingDefaultSubnet?: pulumi.Input; /** * Whether destroying the resource deletes the default subnet. Default: `false` */ forceDestroy?: pulumi.Input; ipv6CidrBlock?: pulumi.Input; ipv6CidrBlockAssociationId?: pulumi.Input; ipv6Native?: pulumi.Input; mapCustomerOwnedIpOnLaunch?: pulumi.Input; mapPublicIpOnLaunch?: pulumi.Input; outpostArn?: pulumi.Input; ownerId?: pulumi.Input; privateDnsHostnameTypeOnLaunch?: pulumi.Input; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the [provider configuration](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#aws-configuration-reference). */ region?: pulumi.Input; tags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; tagsAll?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * The ID of the VPC the subnet is in */ vpcId?: pulumi.Input; } /** * The set of arguments for constructing a DefaultSubnet resource. */ export interface DefaultSubnetArgs { assignIpv6AddressOnCreation?: pulumi.Input; /** * is required * * The `availabilityZoneId`, `cidrBlock` and `vpcId` arguments become computed attributes * * The default value for `mapPublicIpOnLaunch` is `true` * * This resource supports the following additional arguments: */ availabilityZone: pulumi.Input; customerOwnedIpv4Pool?: pulumi.Input; enableDns64?: pulumi.Input; enableResourceNameDnsARecordOnLaunch?: pulumi.Input; enableResourceNameDnsAaaaRecordOnLaunch?: pulumi.Input; /** * Whether destroying the resource deletes the default subnet. Default: `false` */ forceDestroy?: pulumi.Input; ipv6CidrBlock?: pulumi.Input; ipv6Native?: pulumi.Input; mapCustomerOwnedIpOnLaunch?: pulumi.Input; mapPublicIpOnLaunch?: pulumi.Input; privateDnsHostnameTypeOnLaunch?: pulumi.Input; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the [provider configuration](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#aws-configuration-reference). */ region?: pulumi.Input; tags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; } //# sourceMappingURL=defaultSubnet.d.ts.map