lib/aws-sdk-ec2/resource.rb in aws-sdk-ec2-1.266.0 vs lib/aws-sdk-ec2/resource.rb in aws-sdk-ec2-1.267.0
- old
+ new
@@ -1094,15 +1094,15 @@
# ],
# },
# ],
# availability_zone: "String",
# availability_zone_id: "String",
+ # cidr_block: "String", # required
# ipv_6_cidr_block: "String",
# outpost_arn: "String",
# vpc_id: "VpcId", # required
# dry_run: false,
- # cidr_block: "String", # required
# })
# @param [Hash] options ({})
# @option options [Array<Types::TagSpecification>] :tag_specifications
# The tags to assign to the subnet.
# @option options [String] :availability_zone
@@ -1123,10 +1123,15 @@
#
#
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions
# @option options [String] :availability_zone_id
# The AZ ID or the Local Zone ID of the subnet.
+ # @option options [required, String] :cidr_block
+ # 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`.
# @option options [String] :ipv_6_cidr_block
# The IPv6 network range for the subnet, in CIDR notation. The subnet
# size must use a /64 prefix length.
# @option options [String] :outpost_arn
# The Amazon Resource Name (ARN) of the Outpost. If you specify an
@@ -1137,14 +1142,9 @@
# @option options [Boolean] :dry_run
# 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`.
- # @option options [required, String] :cidr_block
- # 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`.
# @return [Subnet]
def create_subnet(options = {})
resp = @client.create_subnet(options)
Subnet.new(
id: resp.data.subnet.subnet_id,