Creates a default subnet with a size /20
IPv4 CIDR block in the
specified Availability Zone in your default VPC. You can have only one
default subnet per Availability Zone. For more information, see
Creating a Default Subnet
in the Amazon Virtual Private Cloud User Guide.
ec2_create_default_subnet(AvailabilityZone, DryRun)
A list with the following syntax:
list(
Subnet = list(
AvailabilityZone = "string",
AvailabilityZoneId = "string",
AvailableIpAddressCount = 123,
CidrBlock = "string",
DefaultForAz = TRUE|FALSE,
MapPublicIpOnLaunch = TRUE|FALSE,
MapCustomerOwnedIpOnLaunch = TRUE|FALSE,
CustomerOwnedIpv4Pool = "string",
State = "pending"|"available",
SubnetId = "string",
VpcId = "string",
OwnerId = "string",
AssignIpv6AddressOnCreation = TRUE|FALSE,
Ipv6CidrBlockAssociationSet = list(
list(
AssociationId = "string",
Ipv6CidrBlock = "string",
Ipv6CidrBlockState = list(
State = "associating"|"associated"|"disassociating"|"disassociated"|"failing"|"failed",
StatusMessage = "string"
)
)
),
Tags = list(
list(
Key = "string",
Value = "string"
)
),
SubnetArn = "string",
OutpostArn = "string"
)
)
[required] The Availability Zone in which to create the default subnet.
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
.
svc$create_default_subnet(
AvailabilityZone = "string",
DryRun = TRUE|FALSE
)