aws-sdk-ec2 1.225.0 → 1.226.0

Sign up to get free protection for your applications and to get access to all the features.
data/LICENSE.txt ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.226.0
data/lib/aws-sdk-ec2.rb CHANGED
@@ -72,6 +72,6 @@ require_relative 'aws-sdk-ec2/customizations'
72
72
  # @!group service
73
73
  module Aws::EC2
74
74
 
75
- GEM_VERSION = '1.225.0'
75
+ GEM_VERSION = '1.226.0'
76
76
 
77
77
  end
@@ -1681,13 +1681,13 @@ module Aws::EC2
1681
1681
  # single IPv6 CIDR block with your subnet. An IPv6 CIDR block must have
1682
1682
  # a prefix length of /64.
1683
1683
  #
1684
+ # @option params [required, String] :subnet_id
1685
+ # The ID of your subnet.
1686
+ #
1684
1687
  # @option params [required, String] :ipv_6_cidr_block
1685
1688
  # The IPv6 CIDR block for your subnet. The subnet must have a /64 prefix
1686
1689
  # length.
1687
1690
  #
1688
- # @option params [required, String] :subnet_id
1689
- # The ID of your subnet.
1690
- #
1691
1691
  # @return [Types::AssociateSubnetCidrBlockResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1692
1692
  #
1693
1693
  # * {Types::AssociateSubnetCidrBlockResult#ipv_6_cidr_block_association #ipv_6_cidr_block_association} => Types::SubnetIpv6CidrBlockAssociation
@@ -1696,8 +1696,8 @@ module Aws::EC2
1696
1696
  # @example Request syntax with placeholder values
1697
1697
  #
1698
1698
  # resp = client.associate_subnet_cidr_block({
1699
- # ipv_6_cidr_block: "String", # required
1700
1699
  # subnet_id: "SubnetId", # required
1700
+ # ipv_6_cidr_block: "String", # required
1701
1701
  # })
1702
1702
  #
1703
1703
  # @example Response structure
@@ -4866,7 +4866,7 @@ module Aws::EC2
4866
4866
  # dry_run: false,
4867
4867
  # client_token: "String",
4868
4868
  # spot_options: {
4869
- # allocation_strategy: "lowest-price", # accepts lowest-price, diversified, capacity-optimized
4869
+ # allocation_strategy: "lowest-price", # accepts lowest-price, diversified, capacity-optimized, capacity-optimized-prioritized
4870
4870
  # maintenance_strategies: {
4871
4871
  # capacity_rebalance: {
4872
4872
  # replacement_strategy: "launch", # accepts launch
@@ -6520,11 +6520,6 @@ module Aws::EC2
6520
6520
  #
6521
6521
  # [1]: https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html
6522
6522
  #
6523
- # @option params [required, String] :allocation_id
6524
- # The allocation ID of an Elastic IP address to associate with the NAT
6525
- # gateway. If the Elastic IP address is associated with another
6526
- # resource, you must first disassociate it.
6527
- #
6528
6523
  # @option params [String] :client_token
6529
6524
  # Unique, case-sensitive identifier that you provide to ensure the
6530
6525
  # idempotency of the request. For more information, see [How to Ensure
@@ -6551,6 +6546,11 @@ module Aws::EC2
6551
6546
  # @option params [Array<Types::TagSpecification>] :tag_specifications
6552
6547
  # The tags to assign to the NAT gateway.
6553
6548
  #
6549
+ # @option params [required, String] :allocation_id
6550
+ # The allocation ID of an Elastic IP address to associate with the NAT
6551
+ # gateway. If the Elastic IP address is associated with another
6552
+ # resource, you must first disassociate it.
6553
+ #
6554
6554
  # @return [Types::CreateNatGatewayResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
6555
6555
  #
6556
6556
  # * {Types::CreateNatGatewayResult#client_token #client_token} => String
@@ -6586,7 +6586,6 @@ module Aws::EC2
6586
6586
  # @example Request syntax with placeholder values
6587
6587
  #
6588
6588
  # resp = client.create_nat_gateway({
6589
- # allocation_id: "AllocationId", # required
6590
6589
  # client_token: "String",
6591
6590
  # dry_run: false,
6592
6591
  # subnet_id: "SubnetId", # required
@@ -6601,6 +6600,7 @@ module Aws::EC2
6601
6600
  # ],
6602
6601
  # },
6603
6602
  # ],
6603
+ # allocation_id: "AllocationId", # required
6604
6604
  # })
6605
6605
  #
6606
6606
  # @example Response structure
@@ -8253,12 +8253,6 @@ module Aws::EC2
8253
8253
  # @option params [String] :availability_zone_id
8254
8254
  # The AZ ID or the Local Zone ID of the subnet.
8255
8255
  #
8256
- # @option params [required, String] :cidr_block
8257
- # The IPv4 network range for the subnet, in CIDR notation. For example,
8258
- # `10.0.0.0/24`. We modify the specified CIDR block to its canonical
8259
- # form; for example, if you specify `100.68.0.18/18`, we modify it to
8260
- # `100.68.0.0/18`.
8261
- #
8262
8256
  # @option params [String] :ipv_6_cidr_block
8263
8257
  # The IPv6 network range for the subnet, in CIDR notation. The subnet
8264
8258
  # size must use a /64 prefix length.
@@ -8277,6 +8271,12 @@ module Aws::EC2
8277
8271
  # If you have the required permissions, the error response is
8278
8272
  # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
8279
8273
  #
8274
+ # @option params [required, String] :cidr_block
8275
+ # The IPv4 network range for the subnet, in CIDR notation. For example,
8276
+ # `10.0.0.0/24`. We modify the specified CIDR block to its canonical
8277
+ # form; for example, if you specify `100.68.0.18/18`, we modify it to
8278
+ # `100.68.0.0/18`.
8279
+ #
8280
8280
  # @return [Types::CreateSubnetResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
8281
8281
  #
8282
8282
  # * {Types::CreateSubnetResult#subnet #subnet} => Types::Subnet
@@ -8320,11 +8320,11 @@ module Aws::EC2
8320
8320
  # ],
8321
8321
  # availability_zone: "String",
8322
8322
  # availability_zone_id: "String",
8323
- # cidr_block: "String", # required
8324
8323
  # ipv_6_cidr_block: "String",
8325
8324
  # outpost_arn: "String",
8326
8325
  # vpc_id: "VpcId", # required
8327
8326
  # dry_run: false,
8327
+ # cidr_block: "String", # required
8328
8328
  # })
8329
8329
  #
8330
8330
  # @example Response structure
@@ -16089,7 +16089,7 @@ module Aws::EC2
16089
16089
  # resp.fleets[0].valid_from #=> Time
16090
16090
  # resp.fleets[0].valid_until #=> Time
16091
16091
  # resp.fleets[0].replace_unhealthy_instances #=> Boolean
16092
- # resp.fleets[0].spot_options.allocation_strategy #=> String, one of "lowest-price", "diversified", "capacity-optimized"
16092
+ # resp.fleets[0].spot_options.allocation_strategy #=> String, one of "lowest-price", "diversified", "capacity-optimized", "capacity-optimized-prioritized"
16093
16093
  # resp.fleets[0].spot_options.maintenance_strategies.capacity_rebalance.replacement_strategy #=> String, one of "launch"
16094
16094
  # resp.fleets[0].spot_options.instance_interruption_behavior #=> String, one of "hibernate", "stop", "terminate"
16095
16095
  # resp.fleets[0].spot_options.instance_pools_to_use_count #=> Integer
@@ -16941,10 +16941,10 @@ module Aws::EC2
16941
16941
  # @option params [required, String] :attribute
16942
16942
  # The AMI attribute.
16943
16943
  #
16944
- # **Note**\: Depending on your account privileges, the
16945
- # `blockDeviceMapping` attribute may return a `Client.AuthFailure`
16946
- # error. If this happens, use DescribeImages to get information about
16947
- # the block device mapping for the AMI.
16944
+ # **Note**\: The `blockDeviceMapping` attribute is deprecated. Using
16945
+ # this attribute returns the `Client.AuthFailure` error. To get
16946
+ # information about the block device mappings for an AMI, use the
16947
+ # DescribeImages action.
16948
16948
  #
16949
16949
  # @option params [required, String] :image_id
16950
16950
  # The ID of the AMI.
@@ -23861,7 +23861,7 @@ module Aws::EC2
23861
23861
  # resp.spot_fleet_request_configs #=> Array
23862
23862
  # resp.spot_fleet_request_configs[0].activity_status #=> String, one of "error", "pending_fulfillment", "pending_termination", "fulfilled"
23863
23863
  # resp.spot_fleet_request_configs[0].create_time #=> Time
23864
- # resp.spot_fleet_request_configs[0].spot_fleet_request_config.allocation_strategy #=> String, one of "lowestPrice", "diversified", "capacityOptimized"
23864
+ # resp.spot_fleet_request_configs[0].spot_fleet_request_config.allocation_strategy #=> String, one of "lowestPrice", "diversified", "capacityOptimized", "capacityOptimizedPrioritized"
23865
23865
  # resp.spot_fleet_request_configs[0].spot_fleet_request_config.on_demand_allocation_strategy #=> String, one of "lowestPrice", "prioritized"
23866
23866
  # resp.spot_fleet_request_configs[0].spot_fleet_request_config.spot_maintenance_strategies.capacity_rebalance.replacement_strategy #=> String, one of "launch"
23867
23867
  # resp.spot_fleet_request_configs[0].spot_fleet_request_config.client_token #=> String
@@ -37476,7 +37476,7 @@ module Aws::EC2
37476
37476
  # resp = client.request_spot_fleet({
37477
37477
  # dry_run: false,
37478
37478
  # spot_fleet_request_config: { # required
37479
- # allocation_strategy: "lowestPrice", # accepts lowestPrice, diversified, capacityOptimized
37479
+ # allocation_strategy: "lowestPrice", # accepts lowestPrice, diversified, capacityOptimized, capacityOptimizedPrioritized
37480
37480
  # on_demand_allocation_strategy: "lowestPrice", # accepts lowestPrice, prioritized
37481
37481
  # spot_maintenance_strategies: {
37482
37482
  # capacity_rebalance: {
@@ -41236,7 +41236,7 @@ module Aws::EC2
41236
41236
  params: params,
41237
41237
  config: config)
41238
41238
  context[:gem_name] = 'aws-sdk-ec2'
41239
- context[:gem_version] = '1.225.0'
41239
+ context[:gem_version] = '1.226.0'
41240
41240
  Seahorse::Client::Request.new(handlers, context)
41241
41241
  end
41242
41242
 
@@ -2521,8 +2521,8 @@ module Aws::EC2
2521
2521
  AssociateRouteTableResult.add_member(:association_state, Shapes::ShapeRef.new(shape: RouteTableAssociationState, location_name: "associationState"))
2522
2522
  AssociateRouteTableResult.struct_class = Types::AssociateRouteTableResult
2523
2523
 
2524
- AssociateSubnetCidrBlockRequest.add_member(:ipv_6_cidr_block, Shapes::ShapeRef.new(shape: String, required: true, location_name: "ipv6CidrBlock"))
2525
2524
  AssociateSubnetCidrBlockRequest.add_member(:subnet_id, Shapes::ShapeRef.new(shape: SubnetId, required: true, location_name: "subnetId"))
2525
+ AssociateSubnetCidrBlockRequest.add_member(:ipv_6_cidr_block, Shapes::ShapeRef.new(shape: String, required: true, location_name: "ipv6CidrBlock"))
2526
2526
  AssociateSubnetCidrBlockRequest.struct_class = Types::AssociateSubnetCidrBlockRequest
2527
2527
 
2528
2528
  AssociateSubnetCidrBlockResult.add_member(:ipv_6_cidr_block_association, Shapes::ShapeRef.new(shape: SubnetIpv6CidrBlockAssociation, location_name: "ipv6CidrBlockAssociation"))
@@ -3411,11 +3411,11 @@ module Aws::EC2
3411
3411
  CreateManagedPrefixListResult.add_member(:prefix_list, Shapes::ShapeRef.new(shape: ManagedPrefixList, location_name: "prefixList"))
3412
3412
  CreateManagedPrefixListResult.struct_class = Types::CreateManagedPrefixListResult
3413
3413
 
3414
- CreateNatGatewayRequest.add_member(:allocation_id, Shapes::ShapeRef.new(shape: AllocationId, required: true, location_name: "AllocationId"))
3415
3414
  CreateNatGatewayRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
3416
3415
  CreateNatGatewayRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
3417
3416
  CreateNatGatewayRequest.add_member(:subnet_id, Shapes::ShapeRef.new(shape: SubnetId, required: true, location_name: "SubnetId"))
3418
3417
  CreateNatGatewayRequest.add_member(:tag_specifications, Shapes::ShapeRef.new(shape: TagSpecificationList, location_name: "TagSpecification"))
3418
+ CreateNatGatewayRequest.add_member(:allocation_id, Shapes::ShapeRef.new(shape: AllocationId, required: true, location_name: "AllocationId"))
3419
3419
  CreateNatGatewayRequest.struct_class = Types::CreateNatGatewayRequest
3420
3420
 
3421
3421
  CreateNatGatewayResult.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "clientToken"))
@@ -3569,11 +3569,11 @@ module Aws::EC2
3569
3569
  CreateSubnetRequest.add_member(:tag_specifications, Shapes::ShapeRef.new(shape: TagSpecificationList, location_name: "TagSpecification"))
3570
3570
  CreateSubnetRequest.add_member(:availability_zone, Shapes::ShapeRef.new(shape: String, location_name: "AvailabilityZone"))
3571
3571
  CreateSubnetRequest.add_member(:availability_zone_id, Shapes::ShapeRef.new(shape: String, location_name: "AvailabilityZoneId"))
3572
- CreateSubnetRequest.add_member(:cidr_block, Shapes::ShapeRef.new(shape: String, required: true, location_name: "CidrBlock"))
3573
3572
  CreateSubnetRequest.add_member(:ipv_6_cidr_block, Shapes::ShapeRef.new(shape: String, location_name: "Ipv6CidrBlock"))
3574
3573
  CreateSubnetRequest.add_member(:outpost_arn, Shapes::ShapeRef.new(shape: String, location_name: "OutpostArn"))
3575
3574
  CreateSubnetRequest.add_member(:vpc_id, Shapes::ShapeRef.new(shape: VpcId, required: true, location_name: "VpcId"))
3576
3575
  CreateSubnetRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "dryRun"))
3576
+ CreateSubnetRequest.add_member(:cidr_block, Shapes::ShapeRef.new(shape: String, required: true, location_name: "CidrBlock"))
3577
3577
  CreateSubnetRequest.struct_class = Types::CreateSubnetRequest
3578
3578
 
3579
3579
  CreateSubnetResult.add_member(:subnet, Shapes::ShapeRef.new(shape: Subnet, location_name: "subnet"))
@@ -485,10 +485,10 @@ module Aws::EC2
485
485
  # @option options [required, String] :attribute
486
486
  # The AMI attribute.
487
487
  #
488
- # **Note**\: Depending on your account privileges, the
489
- # `blockDeviceMapping` attribute may return a `Client.AuthFailure`
490
- # error. If this happens, use DescribeImages to get information about
491
- # the block device mapping for the AMI.
488
+ # **Note**\: The `blockDeviceMapping` attribute is deprecated. Using
489
+ # this attribute returns the `Client.AuthFailure` error. To get
490
+ # information about the block device mappings for an AMI, use the
491
+ # DescribeImages action.
492
492
  # @option options [Boolean] :dry_run
493
493
  # Checks whether you have the required permissions for the action,
494
494
  # without actually making the request, and provides an error response.
@@ -620,7 +620,6 @@ module Aws::EC2
620
620
  # @example Request syntax with placeholder values
621
621
  #
622
622
  # natgateway = ec2.create_nat_gateway({
623
- # allocation_id: "AllocationId", # required
624
623
  # client_token: "String",
625
624
  # dry_run: false,
626
625
  # subnet_id: "SubnetId", # required
@@ -635,12 +634,9 @@ module Aws::EC2
635
634
  # ],
636
635
  # },
637
636
  # ],
637
+ # allocation_id: "AllocationId", # required
638
638
  # })
639
639
  # @param [Hash] options ({})
640
- # @option options [required, String] :allocation_id
641
- # The allocation ID of an Elastic IP address to associate with the NAT
642
- # gateway. If the Elastic IP address is associated with another
643
- # resource, you must first disassociate it.
644
640
  # @option options [String] :client_token
645
641
  # Unique, case-sensitive identifier that you provide to ensure the
646
642
  # idempotency of the request. For more information, see [How to Ensure
@@ -660,6 +656,10 @@ module Aws::EC2
660
656
  # The subnet in which to create the NAT gateway.
661
657
  # @option options [Array<Types::TagSpecification>] :tag_specifications
662
658
  # The tags to assign to the NAT gateway.
659
+ # @option options [required, String] :allocation_id
660
+ # The allocation ID of an Elastic IP address to associate with the NAT
661
+ # gateway. If the Elastic IP address is associated with another
662
+ # resource, you must first disassociate it.
663
663
  # @return [NatGateway]
664
664
  def create_nat_gateway(options = {})
665
665
  resp = @client.create_nat_gateway(options)
@@ -1023,11 +1023,11 @@ module Aws::EC2
1023
1023
  # ],
1024
1024
  # availability_zone: "String",
1025
1025
  # availability_zone_id: "String",
1026
- # cidr_block: "String", # required
1027
1026
  # ipv_6_cidr_block: "String",
1028
1027
  # outpost_arn: "String",
1029
1028
  # vpc_id: "VpcId", # required
1030
1029
  # dry_run: false,
1030
+ # cidr_block: "String", # required
1031
1031
  # })
1032
1032
  # @param [Hash] options ({})
1033
1033
  # @option options [Array<Types::TagSpecification>] :tag_specifications
@@ -1052,11 +1052,6 @@ module Aws::EC2
1052
1052
  # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions
1053
1053
  # @option options [String] :availability_zone_id
1054
1054
  # The AZ ID or the Local Zone ID of the subnet.
1055
- # @option options [required, String] :cidr_block
1056
- # The IPv4 network range for the subnet, in CIDR notation. For example,
1057
- # `10.0.0.0/24`. We modify the specified CIDR block to its canonical
1058
- # form; for example, if you specify `100.68.0.18/18`, we modify it to
1059
- # `100.68.0.0/18`.
1060
1055
  # @option options [String] :ipv_6_cidr_block
1061
1056
  # The IPv6 network range for the subnet, in CIDR notation. The subnet
1062
1057
  # size must use a /64 prefix length.
@@ -1071,6 +1066,11 @@ module Aws::EC2
1071
1066
  # without actually making the request, and provides an error response.
1072
1067
  # If you have the required permissions, the error response is
1073
1068
  # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
1069
+ # @option options [required, String] :cidr_block
1070
+ # The IPv4 network range for the subnet, in CIDR notation. For example,
1071
+ # `10.0.0.0/24`. We modify the specified CIDR block to its canonical
1072
+ # form; for example, if you specify `100.68.0.18/18`, we modify it to
1073
+ # `100.68.0.0/18`.
1074
1074
  # @return [Subnet]
1075
1075
  def create_subnet(options = {})
1076
1076
  resp = @client.create_subnet(options)