ec2_create_subnet {aws.ecx} | R Documentation |
Create Subnet
Description
Create Subnet
Usage
ec2_create_subnet(
VpcId,
CidrBlock,
TagSpecification = NULL,
AvailabilityZone = NULL,
AvailabilityZoneId = NULL,
Ipv6CidrBlock = NULL,
OutpostArn = NULL,
DryRun = NULL,
simplify = TRUE,
others = list(),
print_on_error = aws_get_print_on_error(),
retry_time = aws_get_retry_time(),
network_timeout = aws_get_network_timeout(),
region = aws_get_region()
)
Arguments
VpcId |
Character. The ID of the VPC. |
CidrBlock |
Character. The IPv4 network range for the subnet, in CIDR notation. |
TagSpecification |
List. The tags to assign to the subnet.[optional] |
AvailabilityZone |
Character. The Availability Zone or Local Zone for the subnet.[optional] |
AvailabilityZoneId |
Character. The AZ ID or the Local Zone ID of the subnet.[optional] |
Ipv6CidrBlock |
Character. The IPv6 network range for the subnet, in CIDR notation.[optional] |
OutpostArn |
Character. The Amazon Resource Name (ARN) of the Outpost.[optional] |
DryRun |
Logical. Checks whether you have the required permissions for the action, without actually making the request,...[optional] |
simplify |
Logical. Whether to simplify the result and handle |
others |
Named list. The parameters that are not included in the function parameters and need to be added into the request[optional] |
print_on_error |
Logical. Whether to show an error message when a network error occurs. |
retry_time |
Integer. Number of retries for a REST request when encounter the
network issue. If the request has been sent |
network_timeout |
Numeric. Number of seconds to wait for a REST response until giving up. Can not be less than 1 ms. |
region |
Character. The region of the AWS service. |
Value
A list object or a character vector
VpcId
The ID of the VPC.
CidrBlock
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
.
TagSpecification
The tags to assign to the subnet.
AvailabilityZone
The Availability Zone or Local Zone for the subnet.
Default: AWS 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.
AvailabilityZoneId
The AZ ID or the Local Zone ID of the subnet.
Ipv6CidrBlock
The IPv6 network range for the subnet, in CIDR notation. The subnet size must use a /64 prefix length.
OutpostArn
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.
DryRun
Checks
whether you have the required permissions for the action, without
actually making the request, and provides an error response. If you have
the required permissions, the error response is DryRunOperation
.
Otherwise, it is UnauthorizedOperation
.