AwsVpcSubnetSpecArgs
interface AwsVpcSubnetSpecArgs extends Omit<awsx.types.input.ec2.SubnetSpecArgs, 'type' | 'cidrBlocks'> {
assignIpv6AddressOnCreation?: boolean;
cidrBlocks?: string[];
cidrMask?: number;
name?: string;
size?: number;
tags?: Input<{ [key: string]: Input<string> } | undefined>;
type: SubnetType;
}AWSX-compatible subnet specification shape.
Example
import * as awsx from '@pulumi/awsx';
import type { AwsVpcSubnetSpecArgs } from '@jobcloud/aws-vpc';
const subnet: AwsVpcSubnetSpecArgs = {
type: awsx.ec2.SubnetType.Private,
name: 'database',
cidrBlocks: ['192.0.2.0/28'],
};Hierarchy
SubnetSpecArgs, "type" | "cidrBlocks">AwsVpcSubnetSpecArgs
Properties
assignIpv6AddressOnCreation: boolean
Inherited from assignIpv6AddressOnCreation
Indicates whether a network interface created in this subnet receives an IPv6 address.
cidrBlocks: string[]
Optional explicit CIDR blocks used with exact subnet allocation.
Remarks
Define this to preserve existing subnet CIDR assignments when recreating or importing stack definitions.
cidrMask: number
Inherited from cidrMask
The netmask for the subnet's CIDR block. This is optional, the default value is inferred from the cidrMask, cidrBlocks or based on an even distribution of available space from the VPC's CIDR block after being divided evenly by availability zone.
name: string
Inherited from name
The subnet's name. Will be templated upon creation.
size: number
Inherited from size
Optional size of the subnet's CIDR block - the number of hosts. This value must be a power of 2 (e.g. 256, 512, 1024, etc.). This is optional, the default value is inferred from the cidrMask, cidrBlocks or based on an even distribution of available space from the VPC's CIDR block after being divided evenly by availability zone.
tags: Input<{ [key: string]: Input<string> } | undefined>
Inherited from tags
A map of tags to assign to the resource.
type: SubnetType
Subnet type.