UNPKG

@pulumi/aws-native

Version:

The Pulumi AWS Cloud Control Provider enables you to build, deploy, and manage [any AWS resource that's supported by the AWS Cloud Control API](https://github.com/pulumi/pulumi-aws-native/blob/master/provider/cmd/pulumi-gen-aws-native/supported-types.txt)

70 lines (69 loc) 3.87 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Specifies a virtual private cloud (VPC). * To add an IPv6 CIDR block to the VPC, see [AWS::EC2::VPCCidrBlock](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpccidrblock.html). * For more information, see [Virtual private clouds (VPC)](https://docs.aws.amazon.com/vpc/latest/userguide/configure-your-vpc.html) in the *Amazon VPC User Guide*. */ export declare function getVpc(args: GetVpcArgs, opts?: pulumi.InvokeOptions): Promise<GetVpcResult>; export interface GetVpcArgs { /** * The ID of the VPC. */ vpcId: string; } export interface GetVpcResult { /** * The association IDs of the IPv4 CIDR blocks for the VPC. For example, [ vpc-cidr-assoc-0280ab6b ]. */ readonly cidrBlockAssociations?: string[]; /** * The ID of the default network ACL for the VPC. For example, acl-814dafe3. */ readonly defaultNetworkAcl?: string; /** * The ID of the default security group for the VPC. For example, sg-b178e0d3. */ readonly defaultSecurityGroup?: string; /** * Indicates whether the instances launched in the VPC get DNS hostnames. If enabled, instances in the VPC get DNS hostnames; otherwise, they do not. Disabled by default for nondefault VPCs. For more information, see [DNS attributes in your VPC](https://docs.aws.amazon.com/vpc/latest/userguide/vpc-dns.html#vpc-dns-support). * You can only enable DNS hostnames if you've enabled DNS support. */ readonly enableDnsHostnames?: boolean; /** * Indicates whether the DNS resolution is supported for the VPC. If enabled, queries to the Amazon provided DNS server at the 169.254.169.253 IP address, or the reserved IP address at the base of the VPC network range "plus two" succeed. If disabled, the Amazon provided DNS service in the VPC that resolves public DNS hostnames to IP addresses is not enabled. Enabled by default. For more information, see [DNS attributes in your VPC](https://docs.aws.amazon.com/vpc/latest/userguide/vpc-dns.html#vpc-dns-support). */ readonly enableDnsSupport?: boolean; /** * The allowed tenancy of instances launched into the VPC. * + ``default``: An instance launched into the VPC runs on shared hardware by default, unless you explicitly specify a different tenancy during instance launch. * + ``dedicated``: An instance launched into the VPC runs on dedicated hardware by default, unless you explicitly specify a tenancy of ``host`` during instance launch. You cannot specify a tenancy of ``default`` during instance launch. * * Updating ``InstanceTenancy`` requires no replacement only if you are updating its value from ``dedicated`` to ``default``. Updating ``InstanceTenancy`` from ``default`` to ``dedicated`` requires replacement. */ readonly instanceTenancy?: string; /** * The IPv6 CIDR blocks for the VPC. For example, [ 2001:db8:1234:1a00::/56 ]. */ readonly ipv6CidrBlocks?: string[]; /** * The tags for the VPC. */ readonly tags?: outputs.Tag[]; /** * The ID of the VPC. */ readonly vpcId?: string; } /** * Specifies a virtual private cloud (VPC). * To add an IPv6 CIDR block to the VPC, see [AWS::EC2::VPCCidrBlock](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpccidrblock.html). * For more information, see [Virtual private clouds (VPC)](https://docs.aws.amazon.com/vpc/latest/userguide/configure-your-vpc.html) in the *Amazon VPC User Guide*. */ export declare function getVpcOutput(args: GetVpcOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetVpcResult>; export interface GetVpcOutputArgs { /** * The ID of the VPC. */ vpcId: pulumi.Input<string>; }