Skip to content

/AWS1/CL_EC2=>CREATEDEFAULTSUBNET()

About CreateDefaultSubnet

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 Create a default subnet in the Amazon VPC User Guide.

Method Signature

IMPORTING

Required arguments:

IV_AVAILABILITYZONE TYPE /AWS1/EC2AVAILABILITYZONENAME /AWS1/EC2AVAILABILITYZONENAME

The Availability Zone in which to create the default subnet.

Optional arguments:

IV_DRYRUN TYPE /AWS1/EC2BOOLEAN /AWS1/EC2BOOLEAN

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.

IV_IPV6NATIVE TYPE /AWS1/EC2BOOLEAN /AWS1/EC2BOOLEAN

Indicates whether to create an IPv6 only subnet. If you already have a default subnet for this Availability Zone, you must delete it before you can create an IPv6 only subnet.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_EC2CREATEDEFSNETRSLT /AWS1/CL_EC2CREATEDEFSNETRSLT