awsx.ec2.Vpc

Explore with Pulumi AI

Create Vpc Resource

new Vpc(name: string, args?: VpcArgs, opts?: CustomResourceOptions);
@overload
def Vpc(resource_name: str,
        opts: Optional[ResourceOptions] = None,
        assign_generated_ipv6_cidr_block: Optional[bool] = None,
        availability_zone_names: Optional[Sequence[str]] = None,
        cidr_block: Optional[str] = None,
        enable_classiclink: Optional[bool] = None,
        enable_classiclink_dns_support: Optional[bool] = None,
        enable_dns_hostnames: Optional[bool] = None,
        enable_dns_support: Optional[bool] = None,
        instance_tenancy: Optional[str] = None,
        ipv4_ipam_pool_id: Optional[str] = None,
        ipv4_netmask_length: Optional[int] = None,
        ipv6_cidr_block: Optional[str] = None,
        ipv6_cidr_block_network_border_group: Optional[str] = None,
        ipv6_ipam_pool_id: Optional[str] = None,
        ipv6_netmask_length: Optional[int] = None,
        nat_gateways: Optional[NatGatewayConfigurationArgs] = None,
        number_of_availability_zones: Optional[int] = None,
        subnet_specs: Optional[Sequence[SubnetSpecArgs]] = None,
        tags: Optional[Mapping[str, str]] = None,
        vpc_endpoint_specs: Optional[Sequence[VpcEndpointSpecArgs]] = None)
@overload
def Vpc(resource_name: str,
        args: Optional[VpcArgs] = None,
        opts: Optional[ResourceOptions] = None)
func NewVpc(ctx *Context, name string, args *VpcArgs, opts ...ResourceOption) (*Vpc, error)
public Vpc(string name, VpcArgs? args = null, CustomResourceOptions? opts = null)
public Vpc(String name, VpcArgs args)
public Vpc(String name, VpcArgs args, CustomResourceOptions options)
type: awsx:ec2:Vpc
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args VpcArgs
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 VpcArgs
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 VpcArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args VpcArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args VpcArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

AssignGeneratedIpv6CidrBlock bool

Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPC. You cannot specify the range of IP addresses, or the size of the CIDR block. Default is false. Conflicts with ipv6_ipam_pool_id

AvailabilityZoneNames List<string>

A list of availability zone names to which the subnets defined in subnetSpecs will be deployed. Optional, defaults to the first 3 AZs in the current region.

CidrBlock string

The CIDR block for the VPC. Optional. Defaults to 10.0.0.0/16.

EnableClassiclink bool

A boolean flag to enable/disable ClassicLink for the VPC. Only valid in regions and accounts that support EC2 Classic. See the ClassicLink documentation for more information. Defaults false.

EnableClassiclinkDnsSupport bool

A boolean flag to enable/disable ClassicLink DNS Support for the VPC. Only valid in regions and accounts that support EC2 Classic.

EnableDnsHostnames bool

A boolean flag to enable/disable DNS hostnames in the VPC. Defaults false.

EnableDnsSupport bool

A boolean flag to enable/disable DNS support in the VPC. Defaults true.

InstanceTenancy string

A tenancy option for instances launched into the VPC. Default is default, which ensures that EC2 instances launched in this VPC use the EC2 instance tenancy attribute specified when the EC2 instance is launched. The only other option is dedicated, which ensures that EC2 instances launched in this VPC are run on dedicated tenancy instances regardless of the tenancy attribute specified at launch. This has a dedicated per region fee of $2 per hour, plus an hourly per instance usage fee.

Ipv4IpamPoolId string

The ID of an IPv4 IPAM pool you want to use for allocating this VPC's CIDR. IPAM is a VPC feature that you can use to automate your IP address management workflows including assigning, tracking, troubleshooting, and auditing IP addresses across AWS Regions and accounts. Using IPAM you can monitor IP address usage throughout your AWS Organization.

Ipv4NetmaskLength int

The netmask length of the IPv4 CIDR you want to allocate to this VPC. Requires specifying a ipv4_ipam_pool_id.

Ipv6CidrBlock string

IPv6 CIDR block to request from an IPAM Pool. Can be set explicitly or derived from IPAM using ipv6_netmask_length.

Ipv6CidrBlockNetworkBorderGroup string

By default when an IPv6 CIDR is assigned to a VPC a default ipv6_cidr_block_network_border_group will be set to the region of the VPC. This can be changed to restrict advertisement of public addresses to specific Network Border Groups such as LocalZones.

Ipv6IpamPoolId string

IPAM Pool ID for a IPv6 pool. Conflicts with assign_generated_ipv6_cidr_block.

Ipv6NetmaskLength int

Netmask length to request from IPAM Pool. Conflicts with ipv6_cidr_block. This can be omitted if IPAM pool as a allocation_default_netmask_length set. Valid values: 56.

NatGateways Pulumi.Awsx.Ec2.Inputs.NatGatewayConfigurationArgs

Configuration for NAT Gateways. Optional. If private and public subnets are both specified, defaults to one gateway per availability zone. Otherwise, no gateways will be created.

NumberOfAvailabilityZones int

A number of availability zones to which the subnets defined in subnetSpecs will be deployed. Optional, defaults to the first 3 AZs in the current region.

SubnetSpecs List<Pulumi.Awsx.Ec2.Inputs.SubnetSpecArgs>

A list of subnet specs that should be deployed to each AZ specified in availabilityZoneNames. Optional. Defaults to a (smaller) public subnet and a (larger) private subnet based on the size of the CIDR block for the VPC.

Tags Dictionary<string, string>

A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

VpcEndpointSpecs List<Pulumi.Awsx.Ec2.Inputs.VpcEndpointSpecArgs>

A list of VPC Endpoints specs to be deployed as part of the VPC

AssignGeneratedIpv6CidrBlock bool

Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPC. You cannot specify the range of IP addresses, or the size of the CIDR block. Default is false. Conflicts with ipv6_ipam_pool_id

AvailabilityZoneNames []string

A list of availability zone names to which the subnets defined in subnetSpecs will be deployed. Optional, defaults to the first 3 AZs in the current region.

CidrBlock string

The CIDR block for the VPC. Optional. Defaults to 10.0.0.0/16.

EnableClassiclink bool

A boolean flag to enable/disable ClassicLink for the VPC. Only valid in regions and accounts that support EC2 Classic. See the ClassicLink documentation for more information. Defaults false.

EnableClassiclinkDnsSupport bool

A boolean flag to enable/disable ClassicLink DNS Support for the VPC. Only valid in regions and accounts that support EC2 Classic.

EnableDnsHostnames bool

A boolean flag to enable/disable DNS hostnames in the VPC. Defaults false.

EnableDnsSupport bool

A boolean flag to enable/disable DNS support in the VPC. Defaults true.

InstanceTenancy string

A tenancy option for instances launched into the VPC. Default is default, which ensures that EC2 instances launched in this VPC use the EC2 instance tenancy attribute specified when the EC2 instance is launched. The only other option is dedicated, which ensures that EC2 instances launched in this VPC are run on dedicated tenancy instances regardless of the tenancy attribute specified at launch. This has a dedicated per region fee of $2 per hour, plus an hourly per instance usage fee.

Ipv4IpamPoolId string

The ID of an IPv4 IPAM pool you want to use for allocating this VPC's CIDR. IPAM is a VPC feature that you can use to automate your IP address management workflows including assigning, tracking, troubleshooting, and auditing IP addresses across AWS Regions and accounts. Using IPAM you can monitor IP address usage throughout your AWS Organization.

Ipv4NetmaskLength int

The netmask length of the IPv4 CIDR you want to allocate to this VPC. Requires specifying a ipv4_ipam_pool_id.

Ipv6CidrBlock string

IPv6 CIDR block to request from an IPAM Pool. Can be set explicitly or derived from IPAM using ipv6_netmask_length.

Ipv6CidrBlockNetworkBorderGroup string

By default when an IPv6 CIDR is assigned to a VPC a default ipv6_cidr_block_network_border_group will be set to the region of the VPC. This can be changed to restrict advertisement of public addresses to specific Network Border Groups such as LocalZones.

Ipv6IpamPoolId string

IPAM Pool ID for a IPv6 pool. Conflicts with assign_generated_ipv6_cidr_block.

Ipv6NetmaskLength int

Netmask length to request from IPAM Pool. Conflicts with ipv6_cidr_block. This can be omitted if IPAM pool as a allocation_default_netmask_length set. Valid values: 56.

NatGateways NatGatewayConfigurationArgs

Configuration for NAT Gateways. Optional. If private and public subnets are both specified, defaults to one gateway per availability zone. Otherwise, no gateways will be created.

NumberOfAvailabilityZones int

A number of availability zones to which the subnets defined in subnetSpecs will be deployed. Optional, defaults to the first 3 AZs in the current region.

SubnetSpecs []SubnetSpecArgs

A list of subnet specs that should be deployed to each AZ specified in availabilityZoneNames. Optional. Defaults to a (smaller) public subnet and a (larger) private subnet based on the size of the CIDR block for the VPC.

Tags map[string]string

A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

VpcEndpointSpecs []VpcEndpointSpecArgs

A list of VPC Endpoints specs to be deployed as part of the VPC

assignGeneratedIpv6CidrBlock Boolean

Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPC. You cannot specify the range of IP addresses, or the size of the CIDR block. Default is false. Conflicts with ipv6_ipam_pool_id

availabilityZoneNames List<String>

A list of availability zone names to which the subnets defined in subnetSpecs will be deployed. Optional, defaults to the first 3 AZs in the current region.

cidrBlock String

The CIDR block for the VPC. Optional. Defaults to 10.0.0.0/16.

enableClassiclink Boolean

A boolean flag to enable/disable ClassicLink for the VPC. Only valid in regions and accounts that support EC2 Classic. See the ClassicLink documentation for more information. Defaults false.

enableClassiclinkDnsSupport Boolean

A boolean flag to enable/disable ClassicLink DNS Support for the VPC. Only valid in regions and accounts that support EC2 Classic.

enableDnsHostnames Boolean

A boolean flag to enable/disable DNS hostnames in the VPC. Defaults false.

enableDnsSupport Boolean

A boolean flag to enable/disable DNS support in the VPC. Defaults true.

instanceTenancy String

A tenancy option for instances launched into the VPC. Default is default, which ensures that EC2 instances launched in this VPC use the EC2 instance tenancy attribute specified when the EC2 instance is launched. The only other option is dedicated, which ensures that EC2 instances launched in this VPC are run on dedicated tenancy instances regardless of the tenancy attribute specified at launch. This has a dedicated per region fee of $2 per hour, plus an hourly per instance usage fee.

ipv4IpamPoolId String

The ID of an IPv4 IPAM pool you want to use for allocating this VPC's CIDR. IPAM is a VPC feature that you can use to automate your IP address management workflows including assigning, tracking, troubleshooting, and auditing IP addresses across AWS Regions and accounts. Using IPAM you can monitor IP address usage throughout your AWS Organization.

ipv4NetmaskLength Integer

The netmask length of the IPv4 CIDR you want to allocate to this VPC. Requires specifying a ipv4_ipam_pool_id.

ipv6CidrBlock String

IPv6 CIDR block to request from an IPAM Pool. Can be set explicitly or derived from IPAM using ipv6_netmask_length.

ipv6CidrBlockNetworkBorderGroup String

By default when an IPv6 CIDR is assigned to a VPC a default ipv6_cidr_block_network_border_group will be set to the region of the VPC. This can be changed to restrict advertisement of public addresses to specific Network Border Groups such as LocalZones.

ipv6IpamPoolId String

IPAM Pool ID for a IPv6 pool. Conflicts with assign_generated_ipv6_cidr_block.

ipv6NetmaskLength Integer

Netmask length to request from IPAM Pool. Conflicts with ipv6_cidr_block. This can be omitted if IPAM pool as a allocation_default_netmask_length set. Valid values: 56.

natGateways NatGatewayConfigurationArgs

Configuration for NAT Gateways. Optional. If private and public subnets are both specified, defaults to one gateway per availability zone. Otherwise, no gateways will be created.

numberOfAvailabilityZones Integer

A number of availability zones to which the subnets defined in subnetSpecs will be deployed. Optional, defaults to the first 3 AZs in the current region.

subnetSpecs List<SubnetSpecArgs>

A list of subnet specs that should be deployed to each AZ specified in availabilityZoneNames. Optional. Defaults to a (smaller) public subnet and a (larger) private subnet based on the size of the CIDR block for the VPC.

tags Map<String,String>

A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

vpcEndpointSpecs List<VpcEndpointSpecArgs>

A list of VPC Endpoints specs to be deployed as part of the VPC

assignGeneratedIpv6CidrBlock boolean

Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPC. You cannot specify the range of IP addresses, or the size of the CIDR block. Default is false. Conflicts with ipv6_ipam_pool_id

availabilityZoneNames string[]

A list of availability zone names to which the subnets defined in subnetSpecs will be deployed. Optional, defaults to the first 3 AZs in the current region.

cidrBlock string

The CIDR block for the VPC. Optional. Defaults to 10.0.0.0/16.

enableClassiclink boolean

A boolean flag to enable/disable ClassicLink for the VPC. Only valid in regions and accounts that support EC2 Classic. See the ClassicLink documentation for more information. Defaults false.

enableClassiclinkDnsSupport boolean

A boolean flag to enable/disable ClassicLink DNS Support for the VPC. Only valid in regions and accounts that support EC2 Classic.

enableDnsHostnames boolean

A boolean flag to enable/disable DNS hostnames in the VPC. Defaults false.

enableDnsSupport boolean

A boolean flag to enable/disable DNS support in the VPC. Defaults true.

instanceTenancy string

A tenancy option for instances launched into the VPC. Default is default, which ensures that EC2 instances launched in this VPC use the EC2 instance tenancy attribute specified when the EC2 instance is launched. The only other option is dedicated, which ensures that EC2 instances launched in this VPC are run on dedicated tenancy instances regardless of the tenancy attribute specified at launch. This has a dedicated per region fee of $2 per hour, plus an hourly per instance usage fee.

ipv4IpamPoolId string

The ID of an IPv4 IPAM pool you want to use for allocating this VPC's CIDR. IPAM is a VPC feature that you can use to automate your IP address management workflows including assigning, tracking, troubleshooting, and auditing IP addresses across AWS Regions and accounts. Using IPAM you can monitor IP address usage throughout your AWS Organization.

ipv4NetmaskLength number

The netmask length of the IPv4 CIDR you want to allocate to this VPC. Requires specifying a ipv4_ipam_pool_id.

ipv6CidrBlock string

IPv6 CIDR block to request from an IPAM Pool. Can be set explicitly or derived from IPAM using ipv6_netmask_length.

ipv6CidrBlockNetworkBorderGroup string

By default when an IPv6 CIDR is assigned to a VPC a default ipv6_cidr_block_network_border_group will be set to the region of the VPC. This can be changed to restrict advertisement of public addresses to specific Network Border Groups such as LocalZones.

ipv6IpamPoolId string

IPAM Pool ID for a IPv6 pool. Conflicts with assign_generated_ipv6_cidr_block.

ipv6NetmaskLength number

Netmask length to request from IPAM Pool. Conflicts with ipv6_cidr_block. This can be omitted if IPAM pool as a allocation_default_netmask_length set. Valid values: 56.

natGateways NatGatewayConfigurationArgs

Configuration for NAT Gateways. Optional. If private and public subnets are both specified, defaults to one gateway per availability zone. Otherwise, no gateways will be created.

numberOfAvailabilityZones number

A number of availability zones to which the subnets defined in subnetSpecs will be deployed. Optional, defaults to the first 3 AZs in the current region.

subnetSpecs SubnetSpecArgs[]

A list of subnet specs that should be deployed to each AZ specified in availabilityZoneNames. Optional. Defaults to a (smaller) public subnet and a (larger) private subnet based on the size of the CIDR block for the VPC.

tags {[key: string]: string}

A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

vpcEndpointSpecs VpcEndpointSpecArgs[]

A list of VPC Endpoints specs to be deployed as part of the VPC

assign_generated_ipv6_cidr_block bool

Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPC. You cannot specify the range of IP addresses, or the size of the CIDR block. Default is false. Conflicts with ipv6_ipam_pool_id

availability_zone_names Sequence[str]

A list of availability zone names to which the subnets defined in subnetSpecs will be deployed. Optional, defaults to the first 3 AZs in the current region.

cidr_block str

The CIDR block for the VPC. Optional. Defaults to 10.0.0.0/16.

enable_classiclink bool

A boolean flag to enable/disable ClassicLink for the VPC. Only valid in regions and accounts that support EC2 Classic. See the ClassicLink documentation for more information. Defaults false.

enable_classiclink_dns_support bool

A boolean flag to enable/disable ClassicLink DNS Support for the VPC. Only valid in regions and accounts that support EC2 Classic.

enable_dns_hostnames bool

A boolean flag to enable/disable DNS hostnames in the VPC. Defaults false.

enable_dns_support bool

A boolean flag to enable/disable DNS support in the VPC. Defaults true.

instance_tenancy str

A tenancy option for instances launched into the VPC. Default is default, which ensures that EC2 instances launched in this VPC use the EC2 instance tenancy attribute specified when the EC2 instance is launched. The only other option is dedicated, which ensures that EC2 instances launched in this VPC are run on dedicated tenancy instances regardless of the tenancy attribute specified at launch. This has a dedicated per region fee of $2 per hour, plus an hourly per instance usage fee.

ipv4_ipam_pool_id str

The ID of an IPv4 IPAM pool you want to use for allocating this VPC's CIDR. IPAM is a VPC feature that you can use to automate your IP address management workflows including assigning, tracking, troubleshooting, and auditing IP addresses across AWS Regions and accounts. Using IPAM you can monitor IP address usage throughout your AWS Organization.

ipv4_netmask_length int

The netmask length of the IPv4 CIDR you want to allocate to this VPC. Requires specifying a ipv4_ipam_pool_id.

ipv6_cidr_block str

IPv6 CIDR block to request from an IPAM Pool. Can be set explicitly or derived from IPAM using ipv6_netmask_length.

ipv6_cidr_block_network_border_group str

By default when an IPv6 CIDR is assigned to a VPC a default ipv6_cidr_block_network_border_group will be set to the region of the VPC. This can be changed to restrict advertisement of public addresses to specific Network Border Groups such as LocalZones.

ipv6_ipam_pool_id str

IPAM Pool ID for a IPv6 pool. Conflicts with assign_generated_ipv6_cidr_block.

ipv6_netmask_length int

Netmask length to request from IPAM Pool. Conflicts with ipv6_cidr_block. This can be omitted if IPAM pool as a allocation_default_netmask_length set. Valid values: 56.

nat_gateways NatGatewayConfigurationArgs

Configuration for NAT Gateways. Optional. If private and public subnets are both specified, defaults to one gateway per availability zone. Otherwise, no gateways will be created.

number_of_availability_zones int

A number of availability zones to which the subnets defined in subnetSpecs will be deployed. Optional, defaults to the first 3 AZs in the current region.

subnet_specs Sequence[SubnetSpecArgs]

A list of subnet specs that should be deployed to each AZ specified in availabilityZoneNames. Optional. Defaults to a (smaller) public subnet and a (larger) private subnet based on the size of the CIDR block for the VPC.

tags Mapping[str, str]

A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

vpc_endpoint_specs Sequence[VpcEndpointSpecArgs]

A list of VPC Endpoints specs to be deployed as part of the VPC

assignGeneratedIpv6CidrBlock Boolean

Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPC. You cannot specify the range of IP addresses, or the size of the CIDR block. Default is false. Conflicts with ipv6_ipam_pool_id

availabilityZoneNames List<String>

A list of availability zone names to which the subnets defined in subnetSpecs will be deployed. Optional, defaults to the first 3 AZs in the current region.

cidrBlock String

The CIDR block for the VPC. Optional. Defaults to 10.0.0.0/16.

enableClassiclink Boolean

A boolean flag to enable/disable ClassicLink for the VPC. Only valid in regions and accounts that support EC2 Classic. See the ClassicLink documentation for more information. Defaults false.

enableClassiclinkDnsSupport Boolean

A boolean flag to enable/disable ClassicLink DNS Support for the VPC. Only valid in regions and accounts that support EC2 Classic.

enableDnsHostnames Boolean

A boolean flag to enable/disable DNS hostnames in the VPC. Defaults false.

enableDnsSupport Boolean

A boolean flag to enable/disable DNS support in the VPC. Defaults true.

instanceTenancy String

A tenancy option for instances launched into the VPC. Default is default, which ensures that EC2 instances launched in this VPC use the EC2 instance tenancy attribute specified when the EC2 instance is launched. The only other option is dedicated, which ensures that EC2 instances launched in this VPC are run on dedicated tenancy instances regardless of the tenancy attribute specified at launch. This has a dedicated per region fee of $2 per hour, plus an hourly per instance usage fee.

ipv4IpamPoolId String

The ID of an IPv4 IPAM pool you want to use for allocating this VPC's CIDR. IPAM is a VPC feature that you can use to automate your IP address management workflows including assigning, tracking, troubleshooting, and auditing IP addresses across AWS Regions and accounts. Using IPAM you can monitor IP address usage throughout your AWS Organization.

ipv4NetmaskLength Number

The netmask length of the IPv4 CIDR you want to allocate to this VPC. Requires specifying a ipv4_ipam_pool_id.

ipv6CidrBlock String

IPv6 CIDR block to request from an IPAM Pool. Can be set explicitly or derived from IPAM using ipv6_netmask_length.

ipv6CidrBlockNetworkBorderGroup String

By default when an IPv6 CIDR is assigned to a VPC a default ipv6_cidr_block_network_border_group will be set to the region of the VPC. This can be changed to restrict advertisement of public addresses to specific Network Border Groups such as LocalZones.

ipv6IpamPoolId String

IPAM Pool ID for a IPv6 pool. Conflicts with assign_generated_ipv6_cidr_block.

ipv6NetmaskLength Number

Netmask length to request from IPAM Pool. Conflicts with ipv6_cidr_block. This can be omitted if IPAM pool as a allocation_default_netmask_length set. Valid values: 56.

natGateways Property Map

Configuration for NAT Gateways. Optional. If private and public subnets are both specified, defaults to one gateway per availability zone. Otherwise, no gateways will be created.

numberOfAvailabilityZones Number

A number of availability zones to which the subnets defined in subnetSpecs will be deployed. Optional, defaults to the first 3 AZs in the current region.

subnetSpecs List<Property Map>

A list of subnet specs that should be deployed to each AZ specified in availabilityZoneNames. Optional. Defaults to a (smaller) public subnet and a (larger) private subnet based on the size of the CIDR block for the VPC.

tags Map<String>

A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

vpcEndpointSpecs List<Property Map>

A list of VPC Endpoints specs to be deployed as part of the VPC

Outputs

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

AwsVpc Pulumi.Aws.Ec2.Vpc

The VPC.

Eips List<Pulumi.Aws.Ec2.Eip>

The EIPs for any NAT Gateways for the VPC. If no NAT Gateways are specified, this will be an empty list.

InternetGateway Pulumi.Aws.Ec2.InternetGateway

The Internet Gateway for the VPC.

IsolatedSubnetIds List<string>
PrivateSubnetIds List<string>
PublicSubnetIds List<string>
RouteTableAssociations List<Pulumi.Aws.Ec2.RouteTableAssociation>

The Route Table Associations for the VPC.

RouteTables List<Pulumi.Aws.Ec2.RouteTable>

The Route Tables for the VPC.

Routes List<Pulumi.Aws.Ec2.Route>

The Routes for the VPC.

Subnets List<Pulumi.Aws.Ec2.Subnet>

The VPC's subnets.

VpcEndpoints List<Pulumi.Aws.Ec2.VpcEndpoint>

The VPC Endpoints that are enabled

VpcId string
Eips Eip

The EIPs for any NAT Gateways for the VPC. If no NAT Gateways are specified, this will be an empty list.

InternetGateway InternetGateway

The Internet Gateway for the VPC.

IsolatedSubnetIds []string
PrivateSubnetIds []string
PublicSubnetIds []string
RouteTableAssociations RouteTableAssociation

The Route Table Associations for the VPC.

RouteTables RouteTable

The Route Tables for the VPC.

Routes Route

The Routes for the VPC.

Subnets Subnet

The VPC's subnets.

Vpc Vpc

The VPC.

VpcEndpoints VpcEndpoint

The VPC Endpoints that are enabled

VpcId string
eips List<Eip>

The EIPs for any NAT Gateways for the VPC. If no NAT Gateways are specified, this will be an empty list.

internetGateway InternetGateway

The Internet Gateway for the VPC.

isolatedSubnetIds List<String>
privateSubnetIds List<String>
publicSubnetIds List<String>
routeTableAssociations List<RouteTableAssociation>

The Route Table Associations for the VPC.

routeTables List<RouteTable>

The Route Tables for the VPC.

routes List<Route>

The Routes for the VPC.

subnets List<Subnet>

The VPC's subnets.

vpc Vpc

The VPC.

vpcEndpoints List<VpcEndpoint>

The VPC Endpoints that are enabled

vpcId String
eips pulumiAws.Eip[]

The EIPs for any NAT Gateways for the VPC. If no NAT Gateways are specified, this will be an empty list.

internetGateway pulumiAws.InternetGateway

The Internet Gateway for the VPC.

isolatedSubnetIds string[]
privateSubnetIds string[]
publicSubnetIds string[]
routeTableAssociations pulumiAws.RouteTableAssociation[]

The Route Table Associations for the VPC.

routeTables pulumiAws.RouteTable[]

The Route Tables for the VPC.

routes pulumiAws.Route[]

The Routes for the VPC.

subnets pulumiAws.Subnet[]

The VPC's subnets.

vpc pulumiAws.Vpc

The VPC.

vpcEndpoints pulumiAws.VpcEndpoint[]

The VPC Endpoints that are enabled

vpcId string
eips Eip]

The EIPs for any NAT Gateways for the VPC. If no NAT Gateways are specified, this will be an empty list.

internet_gateway InternetGateway

The Internet Gateway for the VPC.

isolated_subnet_ids Sequence[str]
private_subnet_ids Sequence[str]
public_subnet_ids Sequence[str]
route_table_associations RouteTableAssociation]

The Route Table Associations for the VPC.

route_tables RouteTable]

The Route Tables for the VPC.

routes Route]

The Routes for the VPC.

subnets Subnet]

The VPC's subnets.

vpc Vpc

The VPC.

vpc_endpoints VpcEndpoint]

The VPC Endpoints that are enabled

vpc_id str
eips List<aws::Eip>

The EIPs for any NAT Gateways for the VPC. If no NAT Gateways are specified, this will be an empty list.

internetGateway aws::InternetGateway

The Internet Gateway for the VPC.

isolatedSubnetIds List<String>
privateSubnetIds List<String>
publicSubnetIds List<String>
routeTableAssociations List<aws::RouteTableAssociation>

The Route Table Associations for the VPC.

routeTables List<aws::RouteTable>

The Route Tables for the VPC.

routes List<aws::Route>

The Routes for the VPC.

subnets List<aws::Subnet>

The VPC's subnets.

vpc aws::Vpc

The VPC.

vpcEndpoints List<aws::VpcEndpoint>

The VPC Endpoints that are enabled

vpcId String

Supporting Types

NatGatewayConfiguration

Strategy Pulumi.Awsx.Ec2.NatGatewayStrategy

The strategy for deploying NAT Gateways.

ElasticIpAllocationIds List<string>

A list of EIP allocation IDs to assign to the NAT Gateways. Optional. If specified, the number of supplied values must match the chosen strategy (either one, or the number of availability zones).

Strategy NatGatewayStrategy

The strategy for deploying NAT Gateways.

ElasticIpAllocationIds []string

A list of EIP allocation IDs to assign to the NAT Gateways. Optional. If specified, the number of supplied values must match the chosen strategy (either one, or the number of availability zones).

strategy NatGatewayStrategy

The strategy for deploying NAT Gateways.

elasticIpAllocationIds List<String>

A list of EIP allocation IDs to assign to the NAT Gateways. Optional. If specified, the number of supplied values must match the chosen strategy (either one, or the number of availability zones).

strategy NatGatewayStrategy

The strategy for deploying NAT Gateways.

elasticIpAllocationIds string[]

A list of EIP allocation IDs to assign to the NAT Gateways. Optional. If specified, the number of supplied values must match the chosen strategy (either one, or the number of availability zones).

strategy NatGatewayStrategy

The strategy for deploying NAT Gateways.

elastic_ip_allocation_ids Sequence[str]

A list of EIP allocation IDs to assign to the NAT Gateways. Optional. If specified, the number of supplied values must match the chosen strategy (either one, or the number of availability zones).

strategy "None" | "Single" | "OnePerAz"

The strategy for deploying NAT Gateways.

elasticIpAllocationIds List<String>

A list of EIP allocation IDs to assign to the NAT Gateways. Optional. If specified, the number of supplied values must match the chosen strategy (either one, or the number of availability zones).

NatGatewayStrategy

None
None

Do not create any NAT Gateways. Resources in private subnets will not be able to access the internet.

Single
Single

Create a single NAT Gateway for the entire VPC. This configuration is not recommended for production infrastructure as it creates a single point of failure.

OnePerAz
OnePerAz

Create a NAT Gateway in each availability zone. This is the recommended configuration for production infrastructure.

NatGatewayStrategyNone
None

Do not create any NAT Gateways. Resources in private subnets will not be able to access the internet.

NatGatewayStrategySingle
Single

Create a single NAT Gateway for the entire VPC. This configuration is not recommended for production infrastructure as it creates a single point of failure.

NatGatewayStrategyOnePerAz
OnePerAz

Create a NAT Gateway in each availability zone. This is the recommended configuration for production infrastructure.

None
None

Do not create any NAT Gateways. Resources in private subnets will not be able to access the internet.

Single
Single

Create a single NAT Gateway for the entire VPC. This configuration is not recommended for production infrastructure as it creates a single point of failure.

OnePerAz
OnePerAz

Create a NAT Gateway in each availability zone. This is the recommended configuration for production infrastructure.

None
None

Do not create any NAT Gateways. Resources in private subnets will not be able to access the internet.

Single
Single

Create a single NAT Gateway for the entire VPC. This configuration is not recommended for production infrastructure as it creates a single point of failure.

OnePerAz
OnePerAz

Create a NAT Gateway in each availability zone. This is the recommended configuration for production infrastructure.

NONE
None

Do not create any NAT Gateways. Resources in private subnets will not be able to access the internet.

SINGLE
Single

Create a single NAT Gateway for the entire VPC. This configuration is not recommended for production infrastructure as it creates a single point of failure.

ONE_PER_AZ
OnePerAz

Create a NAT Gateway in each availability zone. This is the recommended configuration for production infrastructure.

"None"
None

Do not create any NAT Gateways. Resources in private subnets will not be able to access the internet.

"Single"
Single

Create a single NAT Gateway for the entire VPC. This configuration is not recommended for production infrastructure as it creates a single point of failure.

"OnePerAz"
OnePerAz

Create a NAT Gateway in each availability zone. This is the recommended configuration for production infrastructure.

SubnetSpec

Type Pulumi.Awsx.Ec2.SubnetType

The type of subnet.

CidrMask int

The bitmask for the subnet's CIDR block.

Name string

The subnet's name. Will be templated upon creation.

Tags Dictionary<string, string>

A map of tags to assign to the resource.

Type SubnetType

The type of subnet.

CidrMask int

The bitmask for the subnet's CIDR block.

Name string

The subnet's name. Will be templated upon creation.

Tags map[string]string

A map of tags to assign to the resource.

type SubnetType

The type of subnet.

cidrMask Integer

The bitmask for the subnet's CIDR block.

name String

The subnet's name. Will be templated upon creation.

tags Map<String,String>

A map of tags to assign to the resource.

type SubnetType

The type of subnet.

cidrMask number

The bitmask for the subnet's CIDR block.

name string

The subnet's name. Will be templated upon creation.

tags {[key: string]: string}

A map of tags to assign to the resource.

type SubnetType

The type of subnet.

cidr_mask int

The bitmask for the subnet's CIDR block.

name str

The subnet's name. Will be templated upon creation.

tags Mapping[str, str]

A map of tags to assign to the resource.

type "Public" | "Private" | "Isolated"

The type of subnet.

cidrMask Number

The bitmask for the subnet's CIDR block.

name String

The subnet's name. Will be templated upon creation.

tags Map<String>

A map of tags to assign to the resource.

SubnetType

Public
Public

A subnet whose hosts can directly communicate with the internet.

Private
Private

A subnet whose hosts can not directly communicate with the internet, but can initiate outbound network traffic via a NAT Gateway.

Isolated
Isolated

A subnet whose hosts have no connectivity with the internet.

SubnetTypePublic
Public

A subnet whose hosts can directly communicate with the internet.

SubnetTypePrivate
Private

A subnet whose hosts can not directly communicate with the internet, but can initiate outbound network traffic via a NAT Gateway.

SubnetTypeIsolated
Isolated

A subnet whose hosts have no connectivity with the internet.

Public
Public

A subnet whose hosts can directly communicate with the internet.

Private
Private

A subnet whose hosts can not directly communicate with the internet, but can initiate outbound network traffic via a NAT Gateway.

Isolated
Isolated

A subnet whose hosts have no connectivity with the internet.

Public
Public

A subnet whose hosts can directly communicate with the internet.

Private
Private

A subnet whose hosts can not directly communicate with the internet, but can initiate outbound network traffic via a NAT Gateway.

Isolated
Isolated

A subnet whose hosts have no connectivity with the internet.

PUBLIC
Public

A subnet whose hosts can directly communicate with the internet.

PRIVATE
Private

A subnet whose hosts can not directly communicate with the internet, but can initiate outbound network traffic via a NAT Gateway.

ISOLATED
Isolated

A subnet whose hosts have no connectivity with the internet.

"Public"
Public

A subnet whose hosts can directly communicate with the internet.

"Private"
Private

A subnet whose hosts can not directly communicate with the internet, but can initiate outbound network traffic via a NAT Gateway.

"Isolated"
Isolated

A subnet whose hosts have no connectivity with the internet.

VpcEndpointSpec

ServiceName string

The service name. For AWS services the service name is usually in the form com.amazonaws.<region>.<service> (the SageMaker Notebook service is an exception to this rule, the service name is in the form aws.sagemaker.<region>.notebook).

AutoAccept bool

Accept the VPC endpoint (the VPC endpoint and service need to be in the same AWS account).

Policy string

A policy to attach to the endpoint that controls access to the service. This is a JSON formatted string. Defaults to full access. All Gateway and some Interface endpoints support policies - see the relevant AWS documentation for more details.

PrivateDnsEnabled bool

Whether or not to associate a private hosted zone with the specified VPC. Applicable for endpoints of type Interface. Defaults to false.

RouteTableIds List<string>

One or more route table IDs. Applicable for endpoints of type Gateway.

SecurityGroupIds List<string>

The ID of one or more security groups to associate with the network interface. Applicable for endpoints of type Interface. If no security groups are specified, the VPC's default security group is associated with the endpoint.

SubnetIds List<string>

The ID of one or more subnets in which to create a network interface for the endpoint. Applicable for endpoints of type GatewayLoadBalancer and Interface.

Tags Dictionary<string, string>

A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

VpcEndpointType string

The VPC endpoint type, Gateway, GatewayLoadBalancer, or Interface. Defaults to Gateway.

ServiceName string

The service name. For AWS services the service name is usually in the form com.amazonaws.<region>.<service> (the SageMaker Notebook service is an exception to this rule, the service name is in the form aws.sagemaker.<region>.notebook).

AutoAccept bool

Accept the VPC endpoint (the VPC endpoint and service need to be in the same AWS account).

Policy string

A policy to attach to the endpoint that controls access to the service. This is a JSON formatted string. Defaults to full access. All Gateway and some Interface endpoints support policies - see the relevant AWS documentation for more details.

PrivateDnsEnabled bool

Whether or not to associate a private hosted zone with the specified VPC. Applicable for endpoints of type Interface. Defaults to false.

RouteTableIds []string

One or more route table IDs. Applicable for endpoints of type Gateway.

SecurityGroupIds []string

The ID of one or more security groups to associate with the network interface. Applicable for endpoints of type Interface. If no security groups are specified, the VPC's default security group is associated with the endpoint.

SubnetIds []string

The ID of one or more subnets in which to create a network interface for the endpoint. Applicable for endpoints of type GatewayLoadBalancer and Interface.

Tags map[string]string

A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

VpcEndpointType string

The VPC endpoint type, Gateway, GatewayLoadBalancer, or Interface. Defaults to Gateway.

serviceName String

The service name. For AWS services the service name is usually in the form com.amazonaws.<region>.<service> (the SageMaker Notebook service is an exception to this rule, the service name is in the form aws.sagemaker.<region>.notebook).

autoAccept Boolean

Accept the VPC endpoint (the VPC endpoint and service need to be in the same AWS account).

policy String

A policy to attach to the endpoint that controls access to the service. This is a JSON formatted string. Defaults to full access. All Gateway and some Interface endpoints support policies - see the relevant AWS documentation for more details.

privateDnsEnabled Boolean

Whether or not to associate a private hosted zone with the specified VPC. Applicable for endpoints of type Interface. Defaults to false.

routeTableIds List<String>

One or more route table IDs. Applicable for endpoints of type Gateway.

securityGroupIds List<String>

The ID of one or more security groups to associate with the network interface. Applicable for endpoints of type Interface. If no security groups are specified, the VPC's default security group is associated with the endpoint.

subnetIds List<String>

The ID of one or more subnets in which to create a network interface for the endpoint. Applicable for endpoints of type GatewayLoadBalancer and Interface.

tags Map<String,String>

A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

vpcEndpointType String

The VPC endpoint type, Gateway, GatewayLoadBalancer, or Interface. Defaults to Gateway.

serviceName string

The service name. For AWS services the service name is usually in the form com.amazonaws.<region>.<service> (the SageMaker Notebook service is an exception to this rule, the service name is in the form aws.sagemaker.<region>.notebook).

autoAccept boolean

Accept the VPC endpoint (the VPC endpoint and service need to be in the same AWS account).

policy string

A policy to attach to the endpoint that controls access to the service. This is a JSON formatted string. Defaults to full access. All Gateway and some Interface endpoints support policies - see the relevant AWS documentation for more details.

privateDnsEnabled boolean

Whether or not to associate a private hosted zone with the specified VPC. Applicable for endpoints of type Interface. Defaults to false.

routeTableIds string[]

One or more route table IDs. Applicable for endpoints of type Gateway.

securityGroupIds string[]

The ID of one or more security groups to associate with the network interface. Applicable for endpoints of type Interface. If no security groups are specified, the VPC's default security group is associated with the endpoint.

subnetIds string[]

The ID of one or more subnets in which to create a network interface for the endpoint. Applicable for endpoints of type GatewayLoadBalancer and Interface.

tags {[key: string]: string}

A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

vpcEndpointType string

The VPC endpoint type, Gateway, GatewayLoadBalancer, or Interface. Defaults to Gateway.

service_name str

The service name. For AWS services the service name is usually in the form com.amazonaws.<region>.<service> (the SageMaker Notebook service is an exception to this rule, the service name is in the form aws.sagemaker.<region>.notebook).

auto_accept bool

Accept the VPC endpoint (the VPC endpoint and service need to be in the same AWS account).

policy str

A policy to attach to the endpoint that controls access to the service. This is a JSON formatted string. Defaults to full access. All Gateway and some Interface endpoints support policies - see the relevant AWS documentation for more details.

private_dns_enabled bool

Whether or not to associate a private hosted zone with the specified VPC. Applicable for endpoints of type Interface. Defaults to false.

route_table_ids Sequence[str]

One or more route table IDs. Applicable for endpoints of type Gateway.

security_group_ids Sequence[str]

The ID of one or more security groups to associate with the network interface. Applicable for endpoints of type Interface. If no security groups are specified, the VPC's default security group is associated with the endpoint.

subnet_ids Sequence[str]

The ID of one or more subnets in which to create a network interface for the endpoint. Applicable for endpoints of type GatewayLoadBalancer and Interface.

tags Mapping[str, str]

A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

vpc_endpoint_type str

The VPC endpoint type, Gateway, GatewayLoadBalancer, or Interface. Defaults to Gateway.

serviceName String

The service name. For AWS services the service name is usually in the form com.amazonaws.<region>.<service> (the SageMaker Notebook service is an exception to this rule, the service name is in the form aws.sagemaker.<region>.notebook).

autoAccept Boolean

Accept the VPC endpoint (the VPC endpoint and service need to be in the same AWS account).

policy String

A policy to attach to the endpoint that controls access to the service. This is a JSON formatted string. Defaults to full access. All Gateway and some Interface endpoints support policies - see the relevant AWS documentation for more details.

privateDnsEnabled Boolean

Whether or not to associate a private hosted zone with the specified VPC. Applicable for endpoints of type Interface. Defaults to false.

routeTableIds List<String>

One or more route table IDs. Applicable for endpoints of type Gateway.

securityGroupIds List<String>

The ID of one or more security groups to associate with the network interface. Applicable for endpoints of type Interface. If no security groups are specified, the VPC's default security group is associated with the endpoint.

subnetIds List<String>

The ID of one or more subnets in which to create a network interface for the endpoint. Applicable for endpoints of type GatewayLoadBalancer and Interface.

tags Map<String>

A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

vpcEndpointType String

The VPC endpoint type, Gateway, GatewayLoadBalancer, or Interface. Defaults to Gateway.

Package Details

Repository
AWSx (Pulumi Crosswalk for AWS) pulumi/pulumi-awsx
License
Apache-2.0