aws-sdk-ec2 1.402.0 → 1.547.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 (69) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +735 -0
  3. data/VERSION +1 -1
  4. data/lib/aws-sdk-ec2/classic_address.rb +32 -20
  5. data/lib/aws-sdk-ec2/client.rb +14212 -4429
  6. data/lib/aws-sdk-ec2/client_api.rb +4004 -515
  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 +16 -20
  14. data/lib/aws-sdk-ec2/endpoints.rb +2 -8314
  15. data/lib/aws-sdk-ec2/image.rb +207 -98
  16. data/lib/aws-sdk-ec2/instance.rb +514 -348
  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 +150 -78
  23. data/lib/aws-sdk-ec2/network_interface_association.rb +3 -3
  24. data/lib/aws-sdk-ec2/placement_group.rb +123 -42
  25. data/lib/aws-sdk-ec2/plugins/endpoints.rb +23 -1202
  26. data/lib/aws-sdk-ec2/resource.rb +1118 -864
  27. data/lib/aws-sdk-ec2/route.rb +50 -34
  28. data/lib/aws-sdk-ec2/route_table.rb +47 -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 +534 -406
  33. data/lib/aws-sdk-ec2/tag.rb +7 -4
  34. data/lib/aws-sdk-ec2/types.rb +18252 -4766
  35. data/lib/aws-sdk-ec2/volume.rb +160 -116
  36. data/lib/aws-sdk-ec2/vpc.rb +387 -262
  37. data/lib/aws-sdk-ec2/vpc_address.rb +37 -25
  38. data/lib/aws-sdk-ec2/vpc_peering_connection.rb +6 -6
  39. data/lib/aws-sdk-ec2/waiters.rb +146 -38
  40. data/lib/aws-sdk-ec2.rb +40 -36
  41. data/sig/classic_address.rbs +108 -0
  42. data/sig/client.rbs +14833 -0
  43. data/sig/dhcp_options.rbs +84 -0
  44. data/sig/errors.rbs +16 -0
  45. data/sig/image.rbs +232 -0
  46. data/sig/instance.rbs +576 -0
  47. data/sig/internet_gateway.rbs +91 -0
  48. data/sig/key_pair.rbs +54 -0
  49. data/sig/key_pair_info.rbs +63 -0
  50. data/sig/nat_gateway.rbs +107 -0
  51. data/sig/network_acl.rbs +144 -0
  52. data/sig/network_interface.rbs +249 -0
  53. data/sig/network_interface_association.rbs +62 -0
  54. data/sig/placement_group.rbs +78 -0
  55. data/sig/resource.rbs +1049 -0
  56. data/sig/route.rbs +120 -0
  57. data/sig/route_table.rbs +118 -0
  58. data/sig/route_table_association.rbs +69 -0
  59. data/sig/security_group.rbs +311 -0
  60. data/sig/snapshot.rbs +204 -0
  61. data/sig/subnet.rbs +442 -0
  62. data/sig/tag.rbs +63 -0
  63. data/sig/types.rbs +17078 -0
  64. data/sig/volume.rbs +213 -0
  65. data/sig/vpc.rbs +404 -0
  66. data/sig/vpc_address.rbs +104 -0
  67. data/sig/vpc_peering_connection.rbs +84 -0
  68. data/sig/waiters.rbs +700 -0
  69. metadata +45 -19
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.402.0
1
+ 1.547.0
@@ -34,12 +34,6 @@ module Aws::EC2
34
34
  @public_ip
35
35
  end
36
36
 
37
- # The ID of the instance that the address is associated with (if any).
38
- # @return [String]
39
- def instance_id
40
- data[:instance_id]
41
- end
42
-
43
37
  # The ID representing the allocation of the address.
44
38
  # @return [String]
45
39
  def allocation_id
@@ -117,6 +111,28 @@ module Aws::EC2
117
111
  data[:carrier_ip]
118
112
  end
119
113
 
114
+ # The ID of the subnet where the IP address is allocated.
115
+ # @return [String]
116
+ def subnet_id
117
+ data[:subnet_id]
118
+ end
119
+
120
+ # The service that manages the elastic IP address.
121
+ #
122
+ # <note markdown="1"> The only option supported today is `alb`.
123
+ #
124
+ # </note>
125
+ # @return [String]
126
+ def service_managed
127
+ data[:service_managed]
128
+ end
129
+
130
+ # The ID of the instance that the address is associated with (if any).
131
+ # @return [String]
132
+ def instance_id
133
+ data[:instance_id]
134
+ end
135
+
120
136
  # @!endgroup
121
137
 
122
138
  # @return [Client]
@@ -131,7 +147,7 @@ module Aws::EC2
131
147
  #
132
148
  # @return [self]
133
149
  def load
134
- resp = Aws::Plugins::UserAgent.feature('resource') do
150
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
135
151
  @client.describe_addresses(public_ips: [@public_ip])
136
152
  end
137
153
  @data = resp.addresses[0]
@@ -248,7 +264,7 @@ module Aws::EC2
248
264
  :retry
249
265
  end
250
266
  end
251
- Aws::Plugins::UserAgent.feature('resource') do
267
+ Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
252
268
  Aws::Waiters::Waiter.new(options).wait({})
253
269
  end
254
270
  end
@@ -260,10 +276,10 @@ module Aws::EC2
260
276
  # classic_address.associate({
261
277
  # allocation_id: "AllocationId",
262
278
  # instance_id: "InstanceId",
263
- # allow_reassociation: false,
264
279
  # dry_run: false,
265
280
  # network_interface_id: "NetworkInterfaceId",
266
281
  # private_ip_address: "String",
282
+ # allow_reassociation: false,
267
283
  # })
268
284
  # @param [Hash] options ({})
269
285
  # @option options [String] :allocation_id
@@ -272,10 +288,6 @@ module Aws::EC2
272
288
  # The ID of the instance. The instance must have exactly one attached
273
289
  # network interface. You can specify either the instance ID or the
274
290
  # network interface ID, but not both.
275
- # @option options [Boolean] :allow_reassociation
276
- # Reassociation is automatic, but you can specify false to ensure the
277
- # operation fails if the Elastic IP address is already associated with
278
- # another resource.
279
291
  # @option options [Boolean] :dry_run
280
292
  # Checks whether you have the required permissions for the action,
281
293
  # without actually making the request, and provides an error response.
@@ -291,10 +303,14 @@ module Aws::EC2
291
303
  # The primary or secondary private IP address to associate with the
292
304
  # Elastic IP address. If no private IP address is specified, the Elastic
293
305
  # IP address is associated with the primary private IP address.
306
+ # @option options [Boolean] :allow_reassociation
307
+ # Reassociation is automatic, but you can specify false to ensure the
308
+ # operation fails if the Elastic IP address is already associated with
309
+ # another resource.
294
310
  # @return [Types::AssociateAddressResult]
295
311
  def associate(options = {})
296
312
  options = options.merge(public_ip: @public_ip)
297
- resp = Aws::Plugins::UserAgent.feature('resource') do
313
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
298
314
  @client.associate_address(options)
299
315
  end
300
316
  resp.data
@@ -317,7 +333,7 @@ module Aws::EC2
317
333
  # @return [EmptyStructure]
318
334
  def disassociate(options = {})
319
335
  options = options.merge(public_ip: data[:public_ip])
320
- resp = Aws::Plugins::UserAgent.feature('resource') do
336
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
321
337
  @client.disassociate_address(options)
322
338
  end
323
339
  resp.data
@@ -339,10 +355,6 @@ module Aws::EC2
339
355
  #
340
356
  # If you provide an incorrect network border group, you receive an
341
357
  # `InvalidAddress.NotFound` error.
342
- #
343
- # You cannot use a network border group with EC2 Classic. If you attempt
344
- # this operation on EC2 classic, you receive an
345
- # `InvalidParameterCombination` error.
346
358
  # @option options [Boolean] :dry_run
347
359
  # Checks whether you have the required permissions for the action,
348
360
  # without actually making the request, and provides an error response.
@@ -351,7 +363,7 @@ module Aws::EC2
351
363
  # @return [EmptyStructure]
352
364
  def release(options = {})
353
365
  options = options.merge(public_ip: data[:public_ip])
354
- resp = Aws::Plugins::UserAgent.feature('resource') do
366
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
355
367
  @client.release_address(options)
356
368
  end
357
369
  resp.data