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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +735 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ec2/classic_address.rb +32 -20
- data/lib/aws-sdk-ec2/client.rb +14212 -4429
- data/lib/aws-sdk-ec2/client_api.rb +4004 -515
- data/lib/aws-sdk-ec2/customizations/instance.rb +18 -1
- data/lib/aws-sdk-ec2/customizations/resource.rb +46 -3
- data/lib/aws-sdk-ec2/customizations/tag.rb +13 -0
- data/lib/aws-sdk-ec2/customizations.rb +0 -22
- data/lib/aws-sdk-ec2/dhcp_options.rb +12 -12
- data/lib/aws-sdk-ec2/endpoint_parameters.rb +9 -6
- data/lib/aws-sdk-ec2/endpoint_provider.rb +16 -20
- data/lib/aws-sdk-ec2/endpoints.rb +2 -8314
- data/lib/aws-sdk-ec2/image.rb +207 -98
- data/lib/aws-sdk-ec2/instance.rb +514 -348
- data/lib/aws-sdk-ec2/internet_gateway.rb +7 -7
- data/lib/aws-sdk-ec2/key_pair.rb +14 -14
- data/lib/aws-sdk-ec2/key_pair_info.rb +30 -30
- data/lib/aws-sdk-ec2/nat_gateway.rb +7 -8
- data/lib/aws-sdk-ec2/network_acl.rb +70 -70
- data/lib/aws-sdk-ec2/network_interface.rb +150 -78
- data/lib/aws-sdk-ec2/network_interface_association.rb +3 -3
- data/lib/aws-sdk-ec2/placement_group.rb +123 -42
- data/lib/aws-sdk-ec2/plugins/endpoints.rb +23 -1202
- data/lib/aws-sdk-ec2/resource.rb +1118 -864
- data/lib/aws-sdk-ec2/route.rb +50 -34
- data/lib/aws-sdk-ec2/route_table.rb +47 -44
- data/lib/aws-sdk-ec2/route_table_association.rb +3 -3
- data/lib/aws-sdk-ec2/security_group.rb +212 -201
- data/lib/aws-sdk-ec2/snapshot.rb +169 -105
- data/lib/aws-sdk-ec2/subnet.rb +534 -406
- data/lib/aws-sdk-ec2/tag.rb +7 -4
- data/lib/aws-sdk-ec2/types.rb +18252 -4766
- data/lib/aws-sdk-ec2/volume.rb +160 -116
- data/lib/aws-sdk-ec2/vpc.rb +387 -262
- data/lib/aws-sdk-ec2/vpc_address.rb +37 -25
- data/lib/aws-sdk-ec2/vpc_peering_connection.rb +6 -6
- data/lib/aws-sdk-ec2/waiters.rb +146 -38
- data/lib/aws-sdk-ec2.rb +40 -36
- data/sig/classic_address.rbs +108 -0
- data/sig/client.rbs +14833 -0
- data/sig/dhcp_options.rbs +84 -0
- data/sig/errors.rbs +16 -0
- data/sig/image.rbs +232 -0
- data/sig/instance.rbs +576 -0
- data/sig/internet_gateway.rbs +91 -0
- data/sig/key_pair.rbs +54 -0
- data/sig/key_pair_info.rbs +63 -0
- data/sig/nat_gateway.rbs +107 -0
- data/sig/network_acl.rbs +144 -0
- data/sig/network_interface.rbs +249 -0
- data/sig/network_interface_association.rbs +62 -0
- data/sig/placement_group.rbs +78 -0
- data/sig/resource.rbs +1049 -0
- data/sig/route.rbs +120 -0
- data/sig/route_table.rbs +118 -0
- data/sig/route_table_association.rbs +69 -0
- data/sig/security_group.rbs +311 -0
- data/sig/snapshot.rbs +204 -0
- data/sig/subnet.rbs +442 -0
- data/sig/tag.rbs +63 -0
- data/sig/types.rbs +17078 -0
- data/sig/volume.rbs +213 -0
- data/sig/vpc.rbs +404 -0
- data/sig/vpc_address.rbs +104 -0
- data/sig/vpc_peering_connection.rbs +84 -0
- data/sig/waiters.rbs +700 -0
- metadata +45 -19
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
366
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
|
355
367
|
@client.release_address(options)
|
|
356
368
|
end
|
|
357
369
|
resp.data
|