Idem.AWS.EC2.SUBNET

Idem.AWS.EC2.SUBNET
Idem.AWS.EC2.SUBNET
JSON Example
{
    "account": "string",
    "assign_ipv6_address_on_creation": false,
    "availability_zone": "string",
    "availability_zone_id": "string",
    "cidr_block": "string",
    "count": 0,
    "customer_owned_ipv4_pool": "string",
    "disable_lni_at_device_index": false,
    "enable_dns_64": false,
    "enable_lni_at_device_index": 0,
    "ipv6_cidr_block": "string",
    "map_customer_owned_ip_on_launch": false,
    "map_public_ip_on_launch": false,
    "name": "string",
    "outpost_arn": "string",
    "region": "string",
    "resource_id": "string",
    "vpc_id": "string"
}
string
account
Required

The name of the vRA cloud account to use during provisioning

boolean
assign_ipv6_address_on_creation
Optional

Specify true to indicate that network interfaces created in the specified subnet should be assigned an IPv6 address. This includes a network interface that's created when launching an instance into the subnet (the instance therefore receives an IPv6 address).

string
availability_zone
Optional

The Availability Zone or Local Zone for the subnet. Default: Amazon Web Services selects one for you. If you create more than one subnet in your VPC, we do not necessarily select a different zone for each subnet. To create a subnet in a Local Zone, set this value to the Local Zone ID, for example us-west-2-lax-1a. For information about the Regions that support Local Zones, see Available Regions in the Amazon Elastic Compute Cloud User Guide. To create a subnet in an Outpost, set this value to the Availability Zone for the Outpost and specify the Outpost ARN. Defaults to None.

string
availability_zone_id
Optional

The AZ ID or the Local Zone ID of the subnet. Defaults to None.

string
cidr_block
Required

The IPv4 network range for the subnet, in CIDR notation. For example, 10.0.0.0/24. We modify the specified CIDR block to its canonical form; for example, if you specify 100.68.0.18/18, we modify it to 100.68.0.0/18.

integer
count
Optional

The number of resource instances to be created.

string
customer_owned_ipv4_pool
Optional

The customer-owned IPv4 address pool associated with the subnet. You must set this value when you specify true for MapCustomerOwnedIpOnLaunch .

boolean
disable_lni_at_device_index
Optional

Specify true to indicate that local network interfaces at the current position should be disabled.

boolean
enable_dns_64
Optional

Indicates whether DNS queries made to the Amazon-provided DNS Resolver in this subnet should return synthetic IPv6 addresses for IPv4-only destinations.

integer
enable_lni_at_device_index
Optional

Indicates the device position for local network interfaces in this subnet.

string
ipv6_cidr_block
Optional

The IPv6 network range for the subnet, in CIDR notation. The subnet size must use a /64 prefix length. Defaults to None.

boolean
map_customer_owned_ip_on_launch
Optional

Specify true to indicate that network interfaces attached to instances created in the specified subnet should be assigned a customer-owned IPv4 address.

boolean
map_public_ip_on_launch
Optional

Indicates whether instances launched in this subnet receive a public IPv4 address.

string
name
Required

An Idem name of the resource.

string
outpost_arn
Optional

The Amazon Resource Name (ARN) of the Outpost. If you specify an Outpost ARN, you must also specify the Availability Zone of the Outpost subnet. Defaults to None.

object
private_dns_name_options_on_launch
Optional

The type of hostname for EC2 instances. For IPv4 only subnets, an instance DNS name must be based on the instance IPv4 address. For IPv6 only subnets, an instance DNS name must be based on the instance ID. For dual-stack subnets, you can specify whether DNS names use the instance IPv4 address or the instance ID.

  • EnableResourceNameDnsARecord (bool): Indicates whether to respond to DNS queries for instance hostnames with DNS A records.
  • EnableResourceNameDnsAAAARecord (bool): Indicates whether to respond to DNS queries for instance hostname with DNS AAAA records.
string
region
Required

vRA cloud account region to use during provisioning

string
resource_id
Optional

AWS Subnet ID.

object
tags
Optional

Dict in the format of {tag-key: tag-value} or List of tags in the format of [{"Key": tag-key, "Value": tag-value}] to associate with the subnet. Each tag consists of a key name and an associated value. Defaults to None.

  • Key (str): The key name that can be used to look up or retrieve the associated value. For example, Department or Cost Center are common choices.

  • Value (str): The value of the tag. Constraints: Tag values are case-sensitive and accept a maximum of 256 Unicode characters.

string
vpc_id
Required

ID of the VPC.