import * as pulumi from "@pulumi/pulumi"; /** * Provides a resource to manage the [default AWS VPC](http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/default-vpc.html) * in the current AWS Region. * * If you created your AWS account after 2013-12-04 you have a default VPC in each AWS 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.DefaultVpc` resource behaves differently from normal resources in that if a default VPC exists, this provider does not _create_ this resource, but instead "adopts" it into management. * If no default VPC exists, the provider creates a new default VPC, which leads to the implicit creation of [other resources](https://docs.aws.amazon.com/vpc/latest/userguide/default-vpc.html#default-vpc-components). * By default, `pulumi destroy` does not delete the default VPC but does remove the resource from the state. * Set the `forceDestroy` argument to `true` to delete the default VPC. * * ## Example Usage * * Basic usage with tags: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const _default = new aws.ec2.DefaultVpc("default", {tags: { * Name: "Default VPC", * }}); * ``` * * ## Import * * ### Identity Schema * * #### Required * * * `id` (String) VPC ID. * * #### Optional * * * `accountId` (String) AWS account ID for this resource. * * `region` (String) AWS Region for this resource. * * Using `pulumi import`, import Default VPCs using the VPC `id`. For example: * * ```sh * $ pulumi import aws:ec2/defaultVpc:DefaultVpc default vpc-a01106c2 * ``` */ export declare class DefaultVpc extends pulumi.CustomResource { /** * Get an existing DefaultVpc 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?: DefaultVpcState, opts?: pulumi.CustomResourceOptions): DefaultVpc; /** * Returns true if the given object is an instance of DefaultVpc. 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 DefaultVpc; readonly arn: pulumi.Output; readonly assignGeneratedIpv6CidrBlock: pulumi.Output; /** * The primary IPv4 CIDR block for the VPC */ readonly cidrBlock: pulumi.Output; readonly defaultNetworkAclId: pulumi.Output; readonly defaultRouteTableId: pulumi.Output; readonly defaultSecurityGroupId: pulumi.Output; readonly dhcpOptionsId: pulumi.Output; readonly enableDnsHostnames: pulumi.Output; readonly enableDnsSupport: pulumi.Output; readonly enableNetworkAddressUsageMetrics: pulumi.Output; readonly existingDefaultVpc: pulumi.Output; /** * Whether destroying the resource deletes the default VPC. Default: `false` */ readonly forceDestroy: pulumi.Output; /** * The allowed tenancy of instances launched into the VPC */ readonly instanceTenancy: pulumi.Output; readonly ipv6AssociationId: pulumi.Output; readonly ipv6CidrBlock: pulumi.Output; readonly ipv6CidrBlockNetworkBorderGroup: pulumi.Output; readonly ipv6IpamPoolId: pulumi.Output; readonly ipv6NetmaskLength: pulumi.Output; readonly mainRouteTableId: pulumi.Output; readonly ownerId: 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; }>; /** * Create a DefaultVpc 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?: DefaultVpcArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering DefaultVpc resources. */ export interface DefaultVpcState { arn?: pulumi.Input; assignGeneratedIpv6CidrBlock?: pulumi.Input; /** * The primary IPv4 CIDR block for the VPC */ cidrBlock?: pulumi.Input; defaultNetworkAclId?: pulumi.Input; defaultRouteTableId?: pulumi.Input; defaultSecurityGroupId?: pulumi.Input; dhcpOptionsId?: pulumi.Input; enableDnsHostnames?: pulumi.Input; enableDnsSupport?: pulumi.Input; enableNetworkAddressUsageMetrics?: pulumi.Input; existingDefaultVpc?: pulumi.Input; /** * Whether destroying the resource deletes the default VPC. Default: `false` */ forceDestroy?: pulumi.Input; /** * The allowed tenancy of instances launched into the VPC */ instanceTenancy?: pulumi.Input; ipv6AssociationId?: pulumi.Input; ipv6CidrBlock?: pulumi.Input; ipv6CidrBlockNetworkBorderGroup?: pulumi.Input; ipv6IpamPoolId?: pulumi.Input; ipv6NetmaskLength?: pulumi.Input; mainRouteTableId?: pulumi.Input; ownerId?: 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 set of arguments for constructing a DefaultVpc resource. */ export interface DefaultVpcArgs { assignGeneratedIpv6CidrBlock?: pulumi.Input; enableDnsHostnames?: pulumi.Input; enableDnsSupport?: pulumi.Input; enableNetworkAddressUsageMetrics?: pulumi.Input; /** * Whether destroying the resource deletes the default VPC. Default: `false` */ forceDestroy?: pulumi.Input; ipv6CidrBlock?: pulumi.Input; ipv6CidrBlockNetworkBorderGroup?: pulumi.Input; ipv6IpamPoolId?: pulumi.Input; ipv6NetmaskLength?: 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=defaultVpc.d.ts.map