Skip to contents

Creates a secondary subnet in a secondary network.

See https://www.paws-r-sdk.com/docs/ec2_create_secondary_subnet/ for full documentation.

Usage

ec2_create_secondary_subnet(
  ClientToken = NULL,
  AvailabilityZone = NULL,
  AvailabilityZoneId = NULL,
  DryRun = NULL,
  Ipv4CidrBlock,
  SecondaryNetworkId,
  TagSpecifications = NULL
)

Arguments

ClientToken

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensure Idempotency.

AvailabilityZone

The Availability Zone for the secondary subnet. You cannot specify both AvailabilityZone and AvailabilityZoneId in the same request.

AvailabilityZoneId

The ID of the Availability Zone for the secondary subnet. This option is preferred over AvailabilityZone as it provides a consistent identifier across Amazon Web Services accounts. You cannot specify both AvailabilityZone and AvailabilityZoneId in the same request.

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.

Ipv4CidrBlock

[required] The IPv4 CIDR block for the secondary subnet. The CIDR block size must be between /12 and /28.

SecondaryNetworkId

[required] The ID of the secondary network in which to create the secondary subnet.

TagSpecifications

The tags to assign to the secondary subnet.