aws-sdk-ec2 1.431.0 → 1.522.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +465 -0
  3. data/VERSION +1 -1
  4. data/lib/aws-sdk-ec2/classic_address.rb +26 -16
  5. data/lib/aws-sdk-ec2/client.rb +10867 -4155
  6. data/lib/aws-sdk-ec2/client_api.rb +2924 -510
  7. data/lib/aws-sdk-ec2/customizations/instance.rb +18 -1
  8. data/lib/aws-sdk-ec2/customizations/resource.rb +46 -3
  9. data/lib/aws-sdk-ec2/customizations/tag.rb +13 -0
  10. data/lib/aws-sdk-ec2/customizations.rb +0 -22
  11. data/lib/aws-sdk-ec2/dhcp_options.rb +12 -12
  12. data/lib/aws-sdk-ec2/endpoint_parameters.rb +9 -6
  13. data/lib/aws-sdk-ec2/endpoint_provider.rb +14 -18
  14. data/lib/aws-sdk-ec2/endpoints.rb +2 -8608
  15. data/lib/aws-sdk-ec2/image.rb +166 -95
  16. data/lib/aws-sdk-ec2/instance.rb +425 -356
  17. data/lib/aws-sdk-ec2/internet_gateway.rb +7 -7
  18. data/lib/aws-sdk-ec2/key_pair.rb +14 -14
  19. data/lib/aws-sdk-ec2/key_pair_info.rb +30 -30
  20. data/lib/aws-sdk-ec2/nat_gateway.rb +7 -8
  21. data/lib/aws-sdk-ec2/network_acl.rb +70 -70
  22. data/lib/aws-sdk-ec2/network_interface.rb +94 -78
  23. data/lib/aws-sdk-ec2/network_interface_association.rb +3 -3
  24. data/lib/aws-sdk-ec2/placement_group.rb +37 -19
  25. data/lib/aws-sdk-ec2/plugins/endpoints.rb +20 -1242
  26. data/lib/aws-sdk-ec2/resource.rb +944 -811
  27. data/lib/aws-sdk-ec2/route.rb +34 -34
  28. data/lib/aws-sdk-ec2/route_table.rb +44 -44
  29. data/lib/aws-sdk-ec2/route_table_association.rb +3 -3
  30. data/lib/aws-sdk-ec2/security_group.rb +212 -201
  31. data/lib/aws-sdk-ec2/snapshot.rb +169 -105
  32. data/lib/aws-sdk-ec2/subnet.rb +391 -359
  33. data/lib/aws-sdk-ec2/tag.rb +7 -4
  34. data/lib/aws-sdk-ec2/types.rb +13807 -4774
  35. data/lib/aws-sdk-ec2/volume.rb +157 -119
  36. data/lib/aws-sdk-ec2/vpc.rb +278 -224
  37. data/lib/aws-sdk-ec2/vpc_address.rb +31 -21
  38. data/lib/aws-sdk-ec2/vpc_peering_connection.rb +6 -6
  39. data/lib/aws-sdk-ec2.rb +40 -36
  40. data/sig/classic_address.rbs +105 -0
  41. data/sig/client.rbs +14622 -0
  42. data/sig/dhcp_options.rbs +84 -0
  43. data/sig/errors.rbs +16 -0
  44. data/sig/image.rbs +228 -0
  45. data/sig/instance.rbs +564 -0
  46. data/sig/internet_gateway.rbs +91 -0
  47. data/sig/key_pair.rbs +54 -0
  48. data/sig/key_pair_info.rbs +63 -0
  49. data/sig/nat_gateway.rbs +107 -0
  50. data/sig/network_acl.rbs +144 -0
  51. data/sig/network_interface.rbs +239 -0
  52. data/sig/network_interface_association.rbs +62 -0
  53. data/sig/placement_group.rbs +78 -0
  54. data/sig/resource.rbs +1042 -0
  55. data/sig/route.rbs +113 -0
  56. data/sig/route_table.rbs +117 -0
  57. data/sig/route_table_association.rbs +69 -0
  58. data/sig/security_group.rbs +311 -0
  59. data/sig/snapshot.rbs +204 -0
  60. data/sig/subnet.rbs +436 -0
  61. data/sig/tag.rbs +63 -0
  62. data/sig/types.rbs +16812 -0
  63. data/sig/volume.rbs +210 -0
  64. data/sig/vpc.rbs +404 -0
  65. data/sig/vpc_address.rbs +101 -0
  66. data/sig/vpc_peering_connection.rbs +84 -0
  67. data/sig/waiters.rbs +664 -0
  68. metadata +44 -18
@@ -68,7 +68,7 @@ module Aws::EC2
68
68
  #
69
69
  # @return [self]
70
70
  def load
71
- resp = Aws::Plugins::UserAgent.feature('resource') do
71
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
72
72
  @client.describe_internet_gateways(internet_gateway_ids: [@id])
73
73
  end
74
74
  @data = resp.internet_gateways[0]
@@ -185,7 +185,7 @@ module Aws::EC2
185
185
  :retry
186
186
  end
187
187
  end
188
- Aws::Plugins::UserAgent.feature('resource') do
188
+ Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
189
189
  Aws::Waiters::Waiter.new(options).wait({})
190
190
  end
191
191
  end
@@ -209,7 +209,7 @@ module Aws::EC2
209
209
  # @return [EmptyStructure]
210
210
  def attach_to_vpc(options = {})
211
211
  options = options.merge(internet_gateway_id: @id)
212
- resp = Aws::Plugins::UserAgent.feature('resource') do
212
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
213
213
  @client.attach_internet_gateway(options)
214
214
  end
215
215
  resp.data
@@ -240,7 +240,7 @@ module Aws::EC2
240
240
  def create_tags(options = {})
241
241
  batch = []
242
242
  options = Aws::Util.deep_merge(options, resources: [@id])
243
- resp = Aws::Plugins::UserAgent.feature('resource') do
243
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
244
244
  @client.create_tags(options)
245
245
  end
246
246
  options[:tags].each do |t|
@@ -287,7 +287,7 @@ module Aws::EC2
287
287
  def delete_tags(options = {})
288
288
  batch = []
289
289
  options = Aws::Util.deep_merge(options, resources: [@id])
290
- resp = Aws::Plugins::UserAgent.feature('resource') do
290
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
291
291
  @client.delete_tags(options)
292
292
  end
293
293
  options[:tags].each do |t|
@@ -315,7 +315,7 @@ module Aws::EC2
315
315
  # @return [EmptyStructure]
316
316
  def delete(options = {})
317
317
  options = options.merge(internet_gateway_id: @id)
318
- resp = Aws::Plugins::UserAgent.feature('resource') do
318
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
319
319
  @client.delete_internet_gateway(options)
320
320
  end
321
321
  resp.data
@@ -338,7 +338,7 @@ module Aws::EC2
338
338
  # @return [EmptyStructure]
339
339
  def detach_from_vpc(options = {})
340
340
  options = options.merge(internet_gateway_id: @id)
341
- resp = Aws::Plugins::UserAgent.feature('resource') do
341
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
342
342
  @client.detach_internet_gateway(options)
343
343
  end
344
344
  resp.data
@@ -35,6 +35,18 @@ module Aws::EC2
35
35
  end
36
36
  alias :key_name :name
37
37
 
38
+ # The ID of the key pair.
39
+ # @return [String]
40
+ def key_pair_id
41
+ data[:key_pair_id]
42
+ end
43
+
44
+ # Any tags applied to the key pair.
45
+ # @return [Array<Types::Tag>]
46
+ def tags
47
+ data[:tags]
48
+ end
49
+
38
50
  # * For RSA key pairs, the key fingerprint is the SHA-1 digest of the
39
51
  # DER encoded private key.
40
52
  #
@@ -52,18 +64,6 @@ module Aws::EC2
52
64
  data[:key_material]
53
65
  end
54
66
 
55
- # The ID of the key pair.
56
- # @return [String]
57
- def key_pair_id
58
- data[:key_pair_id]
59
- end
60
-
61
- # Any tags applied to the key pair.
62
- # @return [Array<Types::Tag>]
63
- def tags
64
- data[:tags]
65
- end
66
-
67
67
  # @!endgroup
68
68
 
69
69
  # @return [Client]
@@ -188,7 +188,7 @@ module Aws::EC2
188
188
  :retry
189
189
  end
190
190
  end
191
- Aws::Plugins::UserAgent.feature('resource') do
191
+ Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
192
192
  Aws::Waiters::Waiter.new(options).wait({})
193
193
  end
194
194
  end
@@ -212,7 +212,7 @@ module Aws::EC2
212
212
  # @return [Types::DeleteKeyPairResult]
213
213
  def delete(options = {})
214
214
  options = options.merge(key_name: @name)
215
- resp = Aws::Plugins::UserAgent.feature('resource') do
215
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
216
216
  @client.delete_key_pair(options)
217
217
  end
218
218
  resp.data
@@ -41,33 +41,6 @@ module Aws::EC2
41
41
  data[:key_pair_id]
42
42
  end
43
43
 
44
- # If you used CreateKeyPair to create the key pair:
45
- #
46
- # * For RSA key pairs, the key fingerprint is the SHA-1 digest of the
47
- # DER encoded private key.
48
- #
49
- # * For ED25519 key pairs, the key fingerprint is the base64-encoded
50
- # SHA-256 digest, which is the default for OpenSSH, starting with
51
- # [OpenSSH 6.8][1].
52
- #
53
- # If you used ImportKeyPair to provide Amazon Web Services the public
54
- # key:
55
- #
56
- # * For RSA key pairs, the key fingerprint is the MD5 public key
57
- # fingerprint as specified in section 4 of RFC4716.
58
- #
59
- # * For ED25519 key pairs, the key fingerprint is the base64-encoded
60
- # SHA-256 digest, which is the default for OpenSSH, starting with
61
- # [OpenSSH 6.8][1].
62
- #
63
- #
64
- #
65
- # [1]: http://www.openssh.com/txt/release-6.8
66
- # @return [String]
67
- def key_fingerprint
68
- data[:key_fingerprint]
69
- end
70
-
71
44
  # The type of key pair.
72
45
  # @return [String]
73
46
  def key_type
@@ -102,6 +75,33 @@ module Aws::EC2
102
75
  data[:create_time]
103
76
  end
104
77
 
78
+ # If you used CreateKeyPair to create the key pair:
79
+ #
80
+ # * For RSA key pairs, the key fingerprint is the SHA-1 digest of the
81
+ # DER encoded private key.
82
+ #
83
+ # * For ED25519 key pairs, the key fingerprint is the base64-encoded
84
+ # SHA-256 digest, which is the default for OpenSSH, starting with
85
+ # [OpenSSH 6.8][1].
86
+ #
87
+ # If you used ImportKeyPair to provide Amazon Web Services the public
88
+ # key:
89
+ #
90
+ # * For RSA key pairs, the key fingerprint is the MD5 public key
91
+ # fingerprint as specified in section 4 of RFC4716.
92
+ #
93
+ # * For ED25519 key pairs, the key fingerprint is the base64-encoded
94
+ # SHA-256 digest, which is the default for OpenSSH, starting with
95
+ # [OpenSSH 6.8][1].
96
+ #
97
+ #
98
+ #
99
+ # [1]: http://www.openssh.com/txt/release-6.8
100
+ # @return [String]
101
+ def key_fingerprint
102
+ data[:key_fingerprint]
103
+ end
104
+
105
105
  # @!endgroup
106
106
 
107
107
  # @return [Client]
@@ -116,7 +116,7 @@ module Aws::EC2
116
116
  #
117
117
  # @return [self]
118
118
  def load
119
- resp = Aws::Plugins::UserAgent.feature('resource') do
119
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
120
120
  @client.describe_key_pairs(key_names: [@name])
121
121
  end
122
122
  @data = resp.key_pairs[0]
@@ -233,7 +233,7 @@ module Aws::EC2
233
233
  :retry
234
234
  end
235
235
  end
236
- Aws::Plugins::UserAgent.feature('resource') do
236
+ Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
237
237
  Aws::Waiters::Waiter.new(options).wait({})
238
238
  end
239
239
  end
@@ -257,7 +257,7 @@ module Aws::EC2
257
257
  # @return [Types::DeleteKeyPairResult]
258
258
  def delete(options = {})
259
259
  options = options.merge(key_name: @name)
260
- resp = Aws::Plugins::UserAgent.feature('resource') do
260
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
261
261
  @client.delete_key_pair(options)
262
262
  end
263
263
  resp.data
@@ -91,12 +91,11 @@ module Aws::EC2
91
91
  end
92
92
 
93
93
  # Reserved. If you need to sustain traffic greater than the [documented
94
- # limits][1], contact us through the [Support Center][2].
94
+ # limits][1], contact Amazon Web Services Support.
95
95
  #
96
96
  #
97
97
  #
98
- # [1]: https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html
99
- # [2]: https://console.aws.amazon.com/support/home?
98
+ # [1]: https://docs.aws.amazon.com/vpc/latest/userguide/amazon-vpc-limits.html#vpc-limits-gateways
100
99
  # @return [Types::ProvisionedBandwidth]
101
100
  def provisioned_bandwidth
102
101
  data[:provisioned_bandwidth]
@@ -163,7 +162,7 @@ module Aws::EC2
163
162
  #
164
163
  # @return [self]
165
164
  def load
166
- resp = Aws::Plugins::UserAgent.feature('resource') do
165
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
167
166
  @client.describe_nat_gateways(nat_gateway_ids: [@id])
168
167
  end
169
168
  @data = resp.nat_gateways[0]
@@ -280,7 +279,7 @@ module Aws::EC2
280
279
  :retry
281
280
  end
282
281
  end
283
- Aws::Plugins::UserAgent.feature('resource') do
282
+ Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
284
283
  Aws::Waiters::Waiter.new(options).wait({})
285
284
  end
286
285
  end
@@ -312,7 +311,7 @@ module Aws::EC2
312
311
  def create_tags(options = {})
313
312
  batch = []
314
313
  options = Aws::Util.deep_merge(options, resources: [@id])
315
- resp = Aws::Plugins::UserAgent.feature('resource') do
314
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
316
315
  @client.create_tags(options)
317
316
  end
318
317
  options[:tags].each do |t|
@@ -359,7 +358,7 @@ module Aws::EC2
359
358
  def delete_tags(options = {})
360
359
  batch = []
361
360
  options = Aws::Util.deep_merge(options, resources: [@id])
362
- resp = Aws::Plugins::UserAgent.feature('resource') do
361
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
363
362
  @client.delete_tags(options)
364
363
  end
365
364
  options[:tags].each do |t|
@@ -387,7 +386,7 @@ module Aws::EC2
387
386
  # @return [Types::DeleteNatGatewayResult]
388
387
  def delete(options = {})
389
388
  options = options.merge(nat_gateway_id: @id)
390
- resp = Aws::Plugins::UserAgent.feature('resource') do
389
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
391
390
  @client.delete_nat_gateway(options)
392
391
  end
393
392
  resp.data
@@ -35,7 +35,7 @@ module Aws::EC2
35
35
  end
36
36
  alias :network_acl_id :id
37
37
 
38
- # Any associations between the network ACL and one or more subnets
38
+ # Any associations between the network ACL and your subnets
39
39
  # @return [Array<Types::NetworkAclAssociation>]
40
40
  def associations
41
41
  data[:associations]
@@ -85,7 +85,7 @@ module Aws::EC2
85
85
  #
86
86
  # @return [self]
87
87
  def load
88
- resp = Aws::Plugins::UserAgent.feature('resource') do
88
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
89
89
  @client.describe_network_acls(network_acl_ids: [@id])
90
90
  end
91
91
  @data = resp.network_acls[0]
@@ -202,7 +202,7 @@ module Aws::EC2
202
202
  :retry
203
203
  end
204
204
  end
205
- Aws::Plugins::UserAgent.feature('resource') do
205
+ Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
206
206
  Aws::Waiters::Waiter.new(options).wait({})
207
207
  end
208
208
  end
@@ -212,46 +212,34 @@ module Aws::EC2
212
212
  # @example Request syntax with placeholder values
213
213
  #
214
214
  # network_acl.create_entry({
215
- # cidr_block: "String",
216
215
  # dry_run: false,
216
+ # rule_number: 1, # required
217
+ # protocol: "String", # required
218
+ # rule_action: "allow", # required, accepts allow, deny
217
219
  # egress: false, # required
220
+ # cidr_block: "String",
221
+ # ipv_6_cidr_block: "String",
218
222
  # icmp_type_code: {
219
223
  # code: 1,
220
224
  # type: 1,
221
225
  # },
222
- # ipv_6_cidr_block: "String",
223
226
  # port_range: {
224
227
  # from: 1,
225
228
  # to: 1,
226
229
  # },
227
- # protocol: "String", # required
228
- # rule_action: "allow", # required, accepts allow, deny
229
- # rule_number: 1, # required
230
230
  # })
231
231
  # @param [Hash] options ({})
232
- # @option options [String] :cidr_block
233
- # The IPv4 network range to allow or deny, in CIDR notation (for example
234
- # `172.16.0.0/24`). We modify the specified CIDR block to its canonical
235
- # form; for example, if you specify `100.68.0.18/18`, we modify it to
236
- # `100.68.0.0/18`.
237
232
  # @option options [Boolean] :dry_run
238
233
  # Checks whether you have the required permissions for the action,
239
234
  # without actually making the request, and provides an error response.
240
235
  # If you have the required permissions, the error response is
241
236
  # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
242
- # @option options [required, Boolean] :egress
243
- # Indicates whether this is an egress rule (rule is applied to traffic
244
- # leaving the subnet).
245
- # @option options [Types::IcmpTypeCode] :icmp_type_code
246
- # ICMP protocol: The ICMP or ICMPv6 type and code. Required if
247
- # specifying protocol 1 (ICMP) or protocol 58 (ICMPv6) with an IPv6 CIDR
248
- # block.
249
- # @option options [String] :ipv_6_cidr_block
250
- # The IPv6 network range to allow or deny, in CIDR notation (for example
251
- # `2001:db8:1234:1a00::/64`).
252
- # @option options [Types::PortRange] :port_range
253
- # TCP or UDP protocols: The range of ports the rule applies to. Required
254
- # if specifying protocol 6 (TCP) or 17 (UDP).
237
+ # @option options [required, Integer] :rule_number
238
+ # The rule number for the entry (for example, 100). ACL entries are
239
+ # processed in ascending order by rule number.
240
+ #
241
+ # Constraints: Positive integer from 1 to 32766. The range 32767 to
242
+ # 65535 is reserved for internal use.
255
243
  # @option options [required, String] :protocol
256
244
  # The protocol number. A value of "-1" means all protocols. If you
257
245
  # specify "-1" or a protocol number other than "6" (TCP), "17"
@@ -263,16 +251,28 @@ module Aws::EC2
263
251
  # block, you must specify an ICMP type and code.
264
252
  # @option options [required, String] :rule_action
265
253
  # Indicates whether to allow or deny the traffic that matches the rule.
266
- # @option options [required, Integer] :rule_number
267
- # The rule number for the entry (for example, 100). ACL entries are
268
- # processed in ascending order by rule number.
269
- #
270
- # Constraints: Positive integer from 1 to 32766. The range 32767 to
271
- # 65535 is reserved for internal use.
254
+ # @option options [required, Boolean] :egress
255
+ # Indicates whether this is an egress rule (rule is applied to traffic
256
+ # leaving the subnet).
257
+ # @option options [String] :cidr_block
258
+ # The IPv4 network range to allow or deny, in CIDR notation (for example
259
+ # `172.16.0.0/24`). We modify the specified CIDR block to its canonical
260
+ # form; for example, if you specify `100.68.0.18/18`, we modify it to
261
+ # `100.68.0.0/18`.
262
+ # @option options [String] :ipv_6_cidr_block
263
+ # The IPv6 network range to allow or deny, in CIDR notation (for example
264
+ # `2001:db8:1234:1a00::/64`).
265
+ # @option options [Types::IcmpTypeCode] :icmp_type_code
266
+ # ICMP protocol: The ICMP or ICMPv6 type and code. Required if
267
+ # specifying protocol 1 (ICMP) or protocol 58 (ICMPv6) with an IPv6 CIDR
268
+ # block.
269
+ # @option options [Types::PortRange] :port_range
270
+ # TCP or UDP protocols: The range of ports the rule applies to. Required
271
+ # if specifying protocol 6 (TCP) or 17 (UDP).
272
272
  # @return [EmptyStructure]
273
273
  def create_entry(options = {})
274
274
  options = options.merge(network_acl_id: @id)
275
- resp = Aws::Plugins::UserAgent.feature('resource') do
275
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
276
276
  @client.create_network_acl_entry(options)
277
277
  end
278
278
  resp.data
@@ -303,7 +303,7 @@ module Aws::EC2
303
303
  def create_tags(options = {})
304
304
  batch = []
305
305
  options = Aws::Util.deep_merge(options, resources: [@id])
306
- resp = Aws::Plugins::UserAgent.feature('resource') do
306
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
307
307
  @client.create_tags(options)
308
308
  end
309
309
  options[:tags].each do |t|
@@ -350,7 +350,7 @@ module Aws::EC2
350
350
  def delete_tags(options = {})
351
351
  batch = []
352
352
  options = Aws::Util.deep_merge(options, resources: [@id])
353
- resp = Aws::Plugins::UserAgent.feature('resource') do
353
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
354
354
  @client.delete_tags(options)
355
355
  end
356
356
  options[:tags].each do |t|
@@ -378,7 +378,7 @@ module Aws::EC2
378
378
  # @return [EmptyStructure]
379
379
  def delete(options = {})
380
380
  options = options.merge(network_acl_id: @id)
381
- resp = Aws::Plugins::UserAgent.feature('resource') do
381
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
382
382
  @client.delete_network_acl(options)
383
383
  end
384
384
  resp.data
@@ -388,8 +388,8 @@ module Aws::EC2
388
388
  #
389
389
  # network_acl.delete_entry({
390
390
  # dry_run: false,
391
- # egress: false, # required
392
391
  # rule_number: 1, # required
392
+ # egress: false, # required
393
393
  # })
394
394
  # @param [Hash] options ({})
395
395
  # @option options [Boolean] :dry_run
@@ -397,14 +397,14 @@ module Aws::EC2
397
397
  # without actually making the request, and provides an error response.
398
398
  # If you have the required permissions, the error response is
399
399
  # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
400
- # @option options [required, Boolean] :egress
401
- # Indicates whether the rule is an egress rule.
402
400
  # @option options [required, Integer] :rule_number
403
401
  # The rule number of the entry to delete.
402
+ # @option options [required, Boolean] :egress
403
+ # Indicates whether the rule is an egress rule.
404
404
  # @return [EmptyStructure]
405
405
  def delete_entry(options = {})
406
406
  options = options.merge(network_acl_id: @id)
407
- resp = Aws::Plugins::UserAgent.feature('resource') do
407
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
408
408
  @client.delete_network_acl_entry(options)
409
409
  end
410
410
  resp.data
@@ -413,22 +413,22 @@ module Aws::EC2
413
413
  # @example Request syntax with placeholder values
414
414
  #
415
415
  # network_acl.replace_association({
416
- # association_id: "NetworkAclAssociationId", # required
417
416
  # dry_run: false,
417
+ # association_id: "NetworkAclAssociationId", # required
418
418
  # })
419
419
  # @param [Hash] options ({})
420
- # @option options [required, String] :association_id
421
- # The ID of the current association between the original network ACL and
422
- # the subnet.
423
420
  # @option options [Boolean] :dry_run
424
421
  # Checks whether you have the required permissions for the action,
425
422
  # without actually making the request, and provides an error response.
426
423
  # If you have the required permissions, the error response is
427
424
  # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
425
+ # @option options [required, String] :association_id
426
+ # The ID of the current association between the original network ACL and
427
+ # the subnet.
428
428
  # @return [Types::ReplaceNetworkAclAssociationResult]
429
429
  def replace_association(options = {})
430
430
  options = options.merge(network_acl_id: @id)
431
- resp = Aws::Plugins::UserAgent.feature('resource') do
431
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
432
432
  @client.replace_network_acl_association(options)
433
433
  end
434
434
  resp.data
@@ -437,45 +437,30 @@ module Aws::EC2
437
437
  # @example Request syntax with placeholder values
438
438
  #
439
439
  # network_acl.replace_entry({
440
- # cidr_block: "String",
441
440
  # dry_run: false,
441
+ # rule_number: 1, # required
442
+ # protocol: "String", # required
443
+ # rule_action: "allow", # required, accepts allow, deny
442
444
  # egress: false, # required
445
+ # cidr_block: "String",
446
+ # ipv_6_cidr_block: "String",
443
447
  # icmp_type_code: {
444
448
  # code: 1,
445
449
  # type: 1,
446
450
  # },
447
- # ipv_6_cidr_block: "String",
448
451
  # port_range: {
449
452
  # from: 1,
450
453
  # to: 1,
451
454
  # },
452
- # protocol: "String", # required
453
- # rule_action: "allow", # required, accepts allow, deny
454
- # rule_number: 1, # required
455
455
  # })
456
456
  # @param [Hash] options ({})
457
- # @option options [String] :cidr_block
458
- # The IPv4 network range to allow or deny, in CIDR notation (for example
459
- # `172.16.0.0/24`).
460
457
  # @option options [Boolean] :dry_run
461
458
  # Checks whether you have the required permissions for the action,
462
459
  # without actually making the request, and provides an error response.
463
460
  # If you have the required permissions, the error response is
464
461
  # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
465
- # @option options [required, Boolean] :egress
466
- # Indicates whether to replace the egress rule.
467
- #
468
- # Default: If no value is specified, we replace the ingress rule.
469
- # @option options [Types::IcmpTypeCode] :icmp_type_code
470
- # ICMP protocol: The ICMP or ICMPv6 type and code. Required if
471
- # specifying protocol 1 (ICMP) or protocol 58 (ICMPv6) with an IPv6 CIDR
472
- # block.
473
- # @option options [String] :ipv_6_cidr_block
474
- # The IPv6 network range to allow or deny, in CIDR notation (for example
475
- # `2001:bd8:1234:1a00::/64`).
476
- # @option options [Types::PortRange] :port_range
477
- # TCP or UDP protocols: The range of ports the rule applies to. Required
478
- # if specifying protocol 6 (TCP) or 17 (UDP).
462
+ # @option options [required, Integer] :rule_number
463
+ # The rule number of the entry to replace.
479
464
  # @option options [required, String] :protocol
480
465
  # The protocol number. A value of "-1" means all protocols. If you
481
466
  # specify "-1" or a protocol number other than "6" (TCP), "17"
@@ -487,12 +472,27 @@ module Aws::EC2
487
472
  # block, you must specify an ICMP type and code.
488
473
  # @option options [required, String] :rule_action
489
474
  # Indicates whether to allow or deny the traffic that matches the rule.
490
- # @option options [required, Integer] :rule_number
491
- # The rule number of the entry to replace.
475
+ # @option options [required, Boolean] :egress
476
+ # Indicates whether to replace the egress rule.
477
+ #
478
+ # Default: If no value is specified, we replace the ingress rule.
479
+ # @option options [String] :cidr_block
480
+ # The IPv4 network range to allow or deny, in CIDR notation (for example
481
+ # `172.16.0.0/24`).
482
+ # @option options [String] :ipv_6_cidr_block
483
+ # The IPv6 network range to allow or deny, in CIDR notation (for example
484
+ # `2001:bd8:1234:1a00::/64`).
485
+ # @option options [Types::IcmpTypeCode] :icmp_type_code
486
+ # ICMP protocol: The ICMP or ICMPv6 type and code. Required if
487
+ # specifying protocol 1 (ICMP) or protocol 58 (ICMPv6) with an IPv6 CIDR
488
+ # block.
489
+ # @option options [Types::PortRange] :port_range
490
+ # TCP or UDP protocols: The range of ports the rule applies to. Required
491
+ # if specifying protocol 6 (TCP) or 17 (UDP).
492
492
  # @return [EmptyStructure]
493
493
  def replace_entry(options = {})
494
494
  options = options.merge(network_acl_id: @id)
495
- resp = Aws::Plugins::UserAgent.feature('resource') do
495
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
496
496
  @client.replace_network_acl_entry(options)
497
497
  end
498
498
  resp.data