SubnetSpec class

Configuration for a VPC subnet.

Constructors

SubnetSpec({Input<bool?>? assignIpv6AddressOnCreation, Input<List<String>?>? cidrBlocks, Input<int?>? cidrMask, Input<String?>? name, Input<int?>? size, Input<Map<String, String>?>? tags, required Input<SubnetType> type})
Creates a new SubnetSpec. assignIpv6AddressOnCreation Indicates whether a network interface created in this subnet receives an IPv6 address. cidrBlocks An optional list of CIDR blocks to assign to the subnet spec for each AZ. If specified, the count must match the number of AZs being used for the VPC, and must also be specified for all other subnet specs. 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 The subnet's name. Will be templated upon creation. 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 A map of tags to assign to the resource. type The type of subnet.
const
SubnetSpec.fromMap(Map<String, dynamic> map)
factory

Properties

assignIpv6AddressOnCreation → Input<bool?>?
Indicates whether a network interface created in this subnet receives an IPv6 address.
final
cidrBlocks → Input<List<String>?>?
An optional list of CIDR blocks to assign to the subnet spec for each AZ. If specified, the count must match the number of AZs being used for the VPC, and must also be specified for all other subnet specs.
final
cidrMask → Input<int?>?
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.
final
hashCode → int
The hash code for this object.
no setterinherited
name → Input<String?>?
The subnet's name. Will be templated upon creation.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size → Input<int?>?
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.
final
tags → Input<Map<String, String>?>?
A map of tags to assign to the resource.
final
type → Input<SubnetType>
The type of subnet.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited