aws-sdk-ec2 1.151.0 → 1.152.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-ec2.rb +1 -1
- data/lib/aws-sdk-ec2/classic_address.rb +13 -11
- data/lib/aws-sdk-ec2/client.rb +451 -39
- data/lib/aws-sdk-ec2/client_api.rb +68 -0
- data/lib/aws-sdk-ec2/dhcp_options.rb +13 -11
- data/lib/aws-sdk-ec2/image.rb +16 -12
- data/lib/aws-sdk-ec2/instance.rb +16 -12
- data/lib/aws-sdk-ec2/internet_gateway.rb +13 -11
- data/lib/aws-sdk-ec2/key_pair.rb +13 -11
- data/lib/aws-sdk-ec2/key_pair_info.rb +13 -11
- data/lib/aws-sdk-ec2/nat_gateway.rb +13 -11
- data/lib/aws-sdk-ec2/network_acl.rb +13 -11
- data/lib/aws-sdk-ec2/network_interface.rb +13 -11
- data/lib/aws-sdk-ec2/network_interface_association.rb +13 -11
- data/lib/aws-sdk-ec2/placement_group.rb +13 -11
- data/lib/aws-sdk-ec2/resource.rb +6 -1
- data/lib/aws-sdk-ec2/route.rb +13 -11
- data/lib/aws-sdk-ec2/route_table.rb +13 -11
- data/lib/aws-sdk-ec2/route_table_association.rb +13 -11
- data/lib/aws-sdk-ec2/security_group.rb +13 -11
- data/lib/aws-sdk-ec2/snapshot.rb +16 -12
- data/lib/aws-sdk-ec2/subnet.rb +13 -11
- data/lib/aws-sdk-ec2/tag.rb +13 -11
- data/lib/aws-sdk-ec2/types.rb +257 -16
- data/lib/aws-sdk-ec2/volume.rb +13 -11
- data/lib/aws-sdk-ec2/vpc.rb +16 -12
- data/lib/aws-sdk-ec2/vpc_address.rb +13 -11
- data/lib/aws-sdk-ec2/vpc_peering_connection.rb +16 -12
- data/lib/aws-sdk-ec2/waiters.rb +92 -0
- metadata +4 -3
@@ -451,6 +451,9 @@ module Aws::EC2
|
|
451
451
|
DeprovisionByoipCidrRequest = Shapes::StructureShape.new(name: 'DeprovisionByoipCidrRequest')
|
452
452
|
DeprovisionByoipCidrResult = Shapes::StructureShape.new(name: 'DeprovisionByoipCidrResult')
|
453
453
|
DeregisterImageRequest = Shapes::StructureShape.new(name: 'DeregisterImageRequest')
|
454
|
+
DeregisterInstanceEventNotificationAttributesRequest = Shapes::StructureShape.new(name: 'DeregisterInstanceEventNotificationAttributesRequest')
|
455
|
+
DeregisterInstanceEventNotificationAttributesResult = Shapes::StructureShape.new(name: 'DeregisterInstanceEventNotificationAttributesResult')
|
456
|
+
DeregisterInstanceTagAttributeRequest = Shapes::StructureShape.new(name: 'DeregisterInstanceTagAttributeRequest')
|
454
457
|
DeregisterTransitGatewayMulticastGroupMembersRequest = Shapes::StructureShape.new(name: 'DeregisterTransitGatewayMulticastGroupMembersRequest')
|
455
458
|
DeregisterTransitGatewayMulticastGroupMembersResult = Shapes::StructureShape.new(name: 'DeregisterTransitGatewayMulticastGroupMembersResult')
|
456
459
|
DeregisterTransitGatewayMulticastGroupSourcesRequest = Shapes::StructureShape.new(name: 'DeregisterTransitGatewayMulticastGroupSourcesRequest')
|
@@ -557,6 +560,8 @@ module Aws::EC2
|
|
557
560
|
DescribeInstanceCreditSpecificationsMaxResults = Shapes::IntegerShape.new(name: 'DescribeInstanceCreditSpecificationsMaxResults')
|
558
561
|
DescribeInstanceCreditSpecificationsRequest = Shapes::StructureShape.new(name: 'DescribeInstanceCreditSpecificationsRequest')
|
559
562
|
DescribeInstanceCreditSpecificationsResult = Shapes::StructureShape.new(name: 'DescribeInstanceCreditSpecificationsResult')
|
563
|
+
DescribeInstanceEventNotificationAttributesRequest = Shapes::StructureShape.new(name: 'DescribeInstanceEventNotificationAttributesRequest')
|
564
|
+
DescribeInstanceEventNotificationAttributesResult = Shapes::StructureShape.new(name: 'DescribeInstanceEventNotificationAttributesResult')
|
560
565
|
DescribeInstanceStatusRequest = Shapes::StructureShape.new(name: 'DescribeInstanceStatusRequest')
|
561
566
|
DescribeInstanceStatusResult = Shapes::StructureShape.new(name: 'DescribeInstanceStatusResult')
|
562
567
|
DescribeInstanceTypeOfferingsRequest = Shapes::StructureShape.new(name: 'DescribeInstanceTypeOfferingsRequest')
|
@@ -1106,6 +1111,8 @@ module Aws::EC2
|
|
1106
1111
|
InstanceStatusSummary = Shapes::StructureShape.new(name: 'InstanceStatusSummary')
|
1107
1112
|
InstanceStorageFlag = Shapes::BooleanShape.new(name: 'InstanceStorageFlag')
|
1108
1113
|
InstanceStorageInfo = Shapes::StructureShape.new(name: 'InstanceStorageInfo')
|
1114
|
+
InstanceTagKeySet = Shapes::ListShape.new(name: 'InstanceTagKeySet')
|
1115
|
+
InstanceTagNotificationAttribute = Shapes::StructureShape.new(name: 'InstanceTagNotificationAttribute')
|
1109
1116
|
InstanceType = Shapes::StringShape.new(name: 'InstanceType')
|
1110
1117
|
InstanceTypeHypervisor = Shapes::StringShape.new(name: 'InstanceTypeHypervisor')
|
1111
1118
|
InstanceTypeInfo = Shapes::StructureShape.new(name: 'InstanceTypeInfo')
|
@@ -1518,6 +1525,9 @@ module Aws::EC2
|
|
1518
1525
|
RegionNameStringList = Shapes::ListShape.new(name: 'RegionNameStringList')
|
1519
1526
|
RegisterImageRequest = Shapes::StructureShape.new(name: 'RegisterImageRequest')
|
1520
1527
|
RegisterImageResult = Shapes::StructureShape.new(name: 'RegisterImageResult')
|
1528
|
+
RegisterInstanceEventNotificationAttributesRequest = Shapes::StructureShape.new(name: 'RegisterInstanceEventNotificationAttributesRequest')
|
1529
|
+
RegisterInstanceEventNotificationAttributesResult = Shapes::StructureShape.new(name: 'RegisterInstanceEventNotificationAttributesResult')
|
1530
|
+
RegisterInstanceTagAttributeRequest = Shapes::StructureShape.new(name: 'RegisterInstanceTagAttributeRequest')
|
1521
1531
|
RegisterTransitGatewayMulticastGroupMembersRequest = Shapes::StructureShape.new(name: 'RegisterTransitGatewayMulticastGroupMembersRequest')
|
1522
1532
|
RegisterTransitGatewayMulticastGroupMembersResult = Shapes::StructureShape.new(name: 'RegisterTransitGatewayMulticastGroupMembersResult')
|
1523
1533
|
RegisterTransitGatewayMulticastGroupSourcesRequest = Shapes::StructureShape.new(name: 'RegisterTransitGatewayMulticastGroupSourcesRequest')
|
@@ -3729,6 +3739,17 @@ module Aws::EC2
|
|
3729
3739
|
DeregisterImageRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "dryRun"))
|
3730
3740
|
DeregisterImageRequest.struct_class = Types::DeregisterImageRequest
|
3731
3741
|
|
3742
|
+
DeregisterInstanceEventNotificationAttributesRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
|
3743
|
+
DeregisterInstanceEventNotificationAttributesRequest.add_member(:instance_tag_attribute, Shapes::ShapeRef.new(shape: DeregisterInstanceTagAttributeRequest, location_name: "InstanceTagAttribute"))
|
3744
|
+
DeregisterInstanceEventNotificationAttributesRequest.struct_class = Types::DeregisterInstanceEventNotificationAttributesRequest
|
3745
|
+
|
3746
|
+
DeregisterInstanceEventNotificationAttributesResult.add_member(:instance_tag_attribute, Shapes::ShapeRef.new(shape: InstanceTagNotificationAttribute, location_name: "instanceTagAttribute"))
|
3747
|
+
DeregisterInstanceEventNotificationAttributesResult.struct_class = Types::DeregisterInstanceEventNotificationAttributesResult
|
3748
|
+
|
3749
|
+
DeregisterInstanceTagAttributeRequest.add_member(:include_all_tags_of_instance, Shapes::ShapeRef.new(shape: Boolean, location_name: "IncludeAllTagsOfInstance"))
|
3750
|
+
DeregisterInstanceTagAttributeRequest.add_member(:instance_tag_keys, Shapes::ShapeRef.new(shape: InstanceTagKeySet, location_name: "InstanceTagKey"))
|
3751
|
+
DeregisterInstanceTagAttributeRequest.struct_class = Types::DeregisterInstanceTagAttributeRequest
|
3752
|
+
|
3732
3753
|
DeregisterTransitGatewayMulticastGroupMembersRequest.add_member(:transit_gateway_multicast_domain_id, Shapes::ShapeRef.new(shape: TransitGatewayMulticastDomainId, location_name: "TransitGatewayMulticastDomainId"))
|
3733
3754
|
DeregisterTransitGatewayMulticastGroupMembersRequest.add_member(:group_ip_address, Shapes::ShapeRef.new(shape: String, location_name: "GroupIpAddress"))
|
3734
3755
|
DeregisterTransitGatewayMulticastGroupMembersRequest.add_member(:network_interface_ids, Shapes::ShapeRef.new(shape: TransitGatewayNetworkInterfaceIdList, location_name: "NetworkInterfaceIds"))
|
@@ -4174,6 +4195,12 @@ module Aws::EC2
|
|
4174
4195
|
DescribeInstanceCreditSpecificationsResult.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
|
4175
4196
|
DescribeInstanceCreditSpecificationsResult.struct_class = Types::DescribeInstanceCreditSpecificationsResult
|
4176
4197
|
|
4198
|
+
DescribeInstanceEventNotificationAttributesRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
|
4199
|
+
DescribeInstanceEventNotificationAttributesRequest.struct_class = Types::DescribeInstanceEventNotificationAttributesRequest
|
4200
|
+
|
4201
|
+
DescribeInstanceEventNotificationAttributesResult.add_member(:instance_tag_attribute, Shapes::ShapeRef.new(shape: InstanceTagNotificationAttribute, location_name: "instanceTagAttribute"))
|
4202
|
+
DescribeInstanceEventNotificationAttributesResult.struct_class = Types::DescribeInstanceEventNotificationAttributesResult
|
4203
|
+
|
4177
4204
|
DescribeInstanceStatusRequest.add_member(:filters, Shapes::ShapeRef.new(shape: FilterList, location_name: "Filter"))
|
4178
4205
|
DescribeInstanceStatusRequest.add_member(:instance_ids, Shapes::ShapeRef.new(shape: InstanceIdStringList, location_name: "InstanceId"))
|
4179
4206
|
DescribeInstanceStatusRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: Integer, location_name: "MaxResults"))
|
@@ -6381,6 +6408,12 @@ module Aws::EC2
|
|
6381
6408
|
InstanceStorageInfo.add_member(:disks, Shapes::ShapeRef.new(shape: DiskInfoList, location_name: "disks"))
|
6382
6409
|
InstanceStorageInfo.struct_class = Types::InstanceStorageInfo
|
6383
6410
|
|
6411
|
+
InstanceTagKeySet.member = Shapes::ShapeRef.new(shape: String, location_name: "item")
|
6412
|
+
|
6413
|
+
InstanceTagNotificationAttribute.add_member(:instance_tag_keys, Shapes::ShapeRef.new(shape: InstanceTagKeySet, location_name: "instanceTagKeySet"))
|
6414
|
+
InstanceTagNotificationAttribute.add_member(:include_all_tags_of_instance, Shapes::ShapeRef.new(shape: Boolean, location_name: "includeAllTagsOfInstance"))
|
6415
|
+
InstanceTagNotificationAttribute.struct_class = Types::InstanceTagNotificationAttribute
|
6416
|
+
|
6384
6417
|
InstanceTypeInfo.add_member(:instance_type, Shapes::ShapeRef.new(shape: InstanceType, location_name: "instanceType"))
|
6385
6418
|
InstanceTypeInfo.add_member(:current_generation, Shapes::ShapeRef.new(shape: CurrentGenerationFlag, location_name: "currentGeneration"))
|
6386
6419
|
InstanceTypeInfo.add_member(:free_tier_eligible, Shapes::ShapeRef.new(shape: FreeTierEligibleFlag, location_name: "freeTierEligible"))
|
@@ -7822,6 +7855,17 @@ module Aws::EC2
|
|
7822
7855
|
RegisterImageResult.add_member(:image_id, Shapes::ShapeRef.new(shape: String, location_name: "imageId"))
|
7823
7856
|
RegisterImageResult.struct_class = Types::RegisterImageResult
|
7824
7857
|
|
7858
|
+
RegisterInstanceEventNotificationAttributesRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
|
7859
|
+
RegisterInstanceEventNotificationAttributesRequest.add_member(:instance_tag_attribute, Shapes::ShapeRef.new(shape: RegisterInstanceTagAttributeRequest, location_name: "InstanceTagAttribute"))
|
7860
|
+
RegisterInstanceEventNotificationAttributesRequest.struct_class = Types::RegisterInstanceEventNotificationAttributesRequest
|
7861
|
+
|
7862
|
+
RegisterInstanceEventNotificationAttributesResult.add_member(:instance_tag_attribute, Shapes::ShapeRef.new(shape: InstanceTagNotificationAttribute, location_name: "instanceTagAttribute"))
|
7863
|
+
RegisterInstanceEventNotificationAttributesResult.struct_class = Types::RegisterInstanceEventNotificationAttributesResult
|
7864
|
+
|
7865
|
+
RegisterInstanceTagAttributeRequest.add_member(:include_all_tags_of_instance, Shapes::ShapeRef.new(shape: Boolean, location_name: "IncludeAllTagsOfInstance"))
|
7866
|
+
RegisterInstanceTagAttributeRequest.add_member(:instance_tag_keys, Shapes::ShapeRef.new(shape: InstanceTagKeySet, location_name: "InstanceTagKey"))
|
7867
|
+
RegisterInstanceTagAttributeRequest.struct_class = Types::RegisterInstanceTagAttributeRequest
|
7868
|
+
|
7825
7869
|
RegisterTransitGatewayMulticastGroupMembersRequest.add_member(:transit_gateway_multicast_domain_id, Shapes::ShapeRef.new(shape: TransitGatewayMulticastDomainId, location_name: "TransitGatewayMulticastDomainId"))
|
7826
7870
|
RegisterTransitGatewayMulticastGroupMembersRequest.add_member(:group_ip_address, Shapes::ShapeRef.new(shape: String, location_name: "GroupIpAddress"))
|
7827
7871
|
RegisterTransitGatewayMulticastGroupMembersRequest.add_member(:network_interface_ids, Shapes::ShapeRef.new(shape: TransitGatewayNetworkInterfaceIdList, location_name: "NetworkInterfaceIds"))
|
@@ -10881,6 +10925,14 @@ module Aws::EC2
|
|
10881
10925
|
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
10882
10926
|
end)
|
10883
10927
|
|
10928
|
+
api.add_operation(:deregister_instance_event_notification_attributes, Seahorse::Model::Operation.new.tap do |o|
|
10929
|
+
o.name = "DeregisterInstanceEventNotificationAttributes"
|
10930
|
+
o.http_method = "POST"
|
10931
|
+
o.http_request_uri = "/"
|
10932
|
+
o.input = Shapes::ShapeRef.new(shape: DeregisterInstanceEventNotificationAttributesRequest)
|
10933
|
+
o.output = Shapes::ShapeRef.new(shape: DeregisterInstanceEventNotificationAttributesResult)
|
10934
|
+
end)
|
10935
|
+
|
10884
10936
|
api.add_operation(:deregister_transit_gateway_multicast_group_members, Seahorse::Model::Operation.new.tap do |o|
|
10885
10937
|
o.name = "DeregisterTransitGatewayMulticastGroupMembers"
|
10886
10938
|
o.http_method = "POST"
|
@@ -11355,6 +11407,14 @@ module Aws::EC2
|
|
11355
11407
|
)
|
11356
11408
|
end)
|
11357
11409
|
|
11410
|
+
api.add_operation(:describe_instance_event_notification_attributes, Seahorse::Model::Operation.new.tap do |o|
|
11411
|
+
o.name = "DescribeInstanceEventNotificationAttributes"
|
11412
|
+
o.http_method = "POST"
|
11413
|
+
o.http_request_uri = "/"
|
11414
|
+
o.input = Shapes::ShapeRef.new(shape: DescribeInstanceEventNotificationAttributesRequest)
|
11415
|
+
o.output = Shapes::ShapeRef.new(shape: DescribeInstanceEventNotificationAttributesResult)
|
11416
|
+
end)
|
11417
|
+
|
11358
11418
|
api.add_operation(:describe_instance_status, Seahorse::Model::Operation.new.tap do |o|
|
11359
11419
|
o.name = "DescribeInstanceStatus"
|
11360
11420
|
o.http_method = "POST"
|
@@ -13082,6 +13142,14 @@ module Aws::EC2
|
|
13082
13142
|
o.output = Shapes::ShapeRef.new(shape: RegisterImageResult)
|
13083
13143
|
end)
|
13084
13144
|
|
13145
|
+
api.add_operation(:register_instance_event_notification_attributes, Seahorse::Model::Operation.new.tap do |o|
|
13146
|
+
o.name = "RegisterInstanceEventNotificationAttributes"
|
13147
|
+
o.http_method = "POST"
|
13148
|
+
o.http_request_uri = "/"
|
13149
|
+
o.input = Shapes::ShapeRef.new(shape: RegisterInstanceEventNotificationAttributesRequest)
|
13150
|
+
o.output = Shapes::ShapeRef.new(shape: RegisterInstanceEventNotificationAttributesResult)
|
13151
|
+
end)
|
13152
|
+
|
13085
13153
|
api.add_operation(:register_transit_gateway_multicast_group_members, Seahorse::Model::Operation.new.tap do |o|
|
13086
13154
|
o.name = "RegisterTransitGatewayMulticastGroupMembers"
|
13087
13155
|
o.http_method = "POST"
|
@@ -91,7 +91,8 @@ module Aws::EC2
|
|
91
91
|
# Waiter polls an API operation until a resource enters a desired
|
92
92
|
# state.
|
93
93
|
#
|
94
|
-
# @note The waiting operation is performed on a copy. The original resource
|
94
|
+
# @note The waiting operation is performed on a copy. The original resource
|
95
|
+
# remains unchanged.
|
95
96
|
#
|
96
97
|
# ## Basic Usage
|
97
98
|
#
|
@@ -104,13 +105,15 @@ module Aws::EC2
|
|
104
105
|
#
|
105
106
|
# ## Example
|
106
107
|
#
|
107
|
-
# instance.wait_until(max_attempts:10, delay:5)
|
108
|
+
# instance.wait_until(max_attempts:10, delay:5) do |instance|
|
109
|
+
# instance.state.name == 'running'
|
110
|
+
# end
|
108
111
|
#
|
109
112
|
# ## Configuration
|
110
113
|
#
|
111
114
|
# You can configure the maximum number of polling attempts, and the
|
112
|
-
# delay (in seconds) between each polling attempt. The waiting condition is
|
113
|
-
# by passing a block to {#wait_until}:
|
115
|
+
# delay (in seconds) between each polling attempt. The waiting condition is
|
116
|
+
# set by passing a block to {#wait_until}:
|
114
117
|
#
|
115
118
|
# # poll for ~25 seconds
|
116
119
|
# resource.wait_until(max_attempts:5,delay:5) {|resource|...}
|
@@ -141,17 +144,16 @@ module Aws::EC2
|
|
141
144
|
# # resource did not enter the desired state in time
|
142
145
|
# end
|
143
146
|
#
|
147
|
+
# @yieldparam [Resource] resource to be used in the waiting condition.
|
144
148
|
#
|
145
|
-
# @
|
146
|
-
#
|
147
|
-
#
|
148
|
-
# because the waiter has entered a state that it will not transition
|
149
|
-
# out of, preventing success.
|
149
|
+
# @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter
|
150
|
+
# terminates because the waiter has entered a state that it will not
|
151
|
+
# transition out of, preventing success.
|
150
152
|
#
|
151
153
|
# yet successful.
|
152
154
|
#
|
153
|
-
# @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
|
154
|
-
# while polling for a resource that is not expected.
|
155
|
+
# @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
|
156
|
+
# encountered while polling for a resource that is not expected.
|
155
157
|
#
|
156
158
|
# @raise [NotImplementedError] Raised when the resource does not
|
157
159
|
#
|
data/lib/aws-sdk-ec2/image.rb
CHANGED
@@ -281,7 +281,8 @@ module Aws::EC2
|
|
281
281
|
# Waiter polls an API operation until a resource enters a desired
|
282
282
|
# state.
|
283
283
|
#
|
284
|
-
# @note The waiting operation is performed on a copy. The original resource
|
284
|
+
# @note The waiting operation is performed on a copy. The original resource
|
285
|
+
# remains unchanged.
|
285
286
|
#
|
286
287
|
# ## Basic Usage
|
287
288
|
#
|
@@ -294,13 +295,15 @@ module Aws::EC2
|
|
294
295
|
#
|
295
296
|
# ## Example
|
296
297
|
#
|
297
|
-
# instance.wait_until(max_attempts:10, delay:5)
|
298
|
+
# instance.wait_until(max_attempts:10, delay:5) do |instance|
|
299
|
+
# instance.state.name == 'running'
|
300
|
+
# end
|
298
301
|
#
|
299
302
|
# ## Configuration
|
300
303
|
#
|
301
304
|
# You can configure the maximum number of polling attempts, and the
|
302
|
-
# delay (in seconds) between each polling attempt. The waiting condition is
|
303
|
-
# by passing a block to {#wait_until}:
|
305
|
+
# delay (in seconds) between each polling attempt. The waiting condition is
|
306
|
+
# set by passing a block to {#wait_until}:
|
304
307
|
#
|
305
308
|
# # poll for ~25 seconds
|
306
309
|
# resource.wait_until(max_attempts:5,delay:5) {|resource|...}
|
@@ -331,17 +334,16 @@ module Aws::EC2
|
|
331
334
|
# # resource did not enter the desired state in time
|
332
335
|
# end
|
333
336
|
#
|
337
|
+
# @yieldparam [Resource] resource to be used in the waiting condition.
|
334
338
|
#
|
335
|
-
# @
|
336
|
-
#
|
337
|
-
#
|
338
|
-
# because the waiter has entered a state that it will not transition
|
339
|
-
# out of, preventing success.
|
339
|
+
# @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter
|
340
|
+
# terminates because the waiter has entered a state that it will not
|
341
|
+
# transition out of, preventing success.
|
340
342
|
#
|
341
343
|
# yet successful.
|
342
344
|
#
|
343
|
-
# @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
|
344
|
-
# while polling for a resource that is not expected.
|
345
|
+
# @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
|
346
|
+
# encountered while polling for a resource that is not expected.
|
345
347
|
#
|
346
348
|
# @raise [NotImplementedError] Raised when the resource does not
|
347
349
|
#
|
@@ -612,7 +614,9 @@ module Aws::EC2
|
|
612
614
|
end
|
613
615
|
|
614
616
|
def separate_params_and_options(options)
|
615
|
-
opts = Set.new(
|
617
|
+
opts = Set.new(
|
618
|
+
[:client, :max_attempts, :delay, :before_attempt, :before_wait]
|
619
|
+
)
|
616
620
|
waiter_opts = {}
|
617
621
|
waiter_params = {}
|
618
622
|
options.each_pair do |key, value|
|
data/lib/aws-sdk-ec2/instance.rb
CHANGED
@@ -460,7 +460,8 @@ module Aws::EC2
|
|
460
460
|
# Waiter polls an API operation until a resource enters a desired
|
461
461
|
# state.
|
462
462
|
#
|
463
|
-
# @note The waiting operation is performed on a copy. The original resource
|
463
|
+
# @note The waiting operation is performed on a copy. The original resource
|
464
|
+
# remains unchanged.
|
464
465
|
#
|
465
466
|
# ## Basic Usage
|
466
467
|
#
|
@@ -473,13 +474,15 @@ module Aws::EC2
|
|
473
474
|
#
|
474
475
|
# ## Example
|
475
476
|
#
|
476
|
-
# instance.wait_until(max_attempts:10, delay:5)
|
477
|
+
# instance.wait_until(max_attempts:10, delay:5) do |instance|
|
478
|
+
# instance.state.name == 'running'
|
479
|
+
# end
|
477
480
|
#
|
478
481
|
# ## Configuration
|
479
482
|
#
|
480
483
|
# You can configure the maximum number of polling attempts, and the
|
481
|
-
# delay (in seconds) between each polling attempt. The waiting condition is
|
482
|
-
# by passing a block to {#wait_until}:
|
484
|
+
# delay (in seconds) between each polling attempt. The waiting condition is
|
485
|
+
# set by passing a block to {#wait_until}:
|
483
486
|
#
|
484
487
|
# # poll for ~25 seconds
|
485
488
|
# resource.wait_until(max_attempts:5,delay:5) {|resource|...}
|
@@ -510,17 +513,16 @@ module Aws::EC2
|
|
510
513
|
# # resource did not enter the desired state in time
|
511
514
|
# end
|
512
515
|
#
|
516
|
+
# @yieldparam [Resource] resource to be used in the waiting condition.
|
513
517
|
#
|
514
|
-
# @
|
515
|
-
#
|
516
|
-
#
|
517
|
-
# because the waiter has entered a state that it will not transition
|
518
|
-
# out of, preventing success.
|
518
|
+
# @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter
|
519
|
+
# terminates because the waiter has entered a state that it will not
|
520
|
+
# transition out of, preventing success.
|
519
521
|
#
|
520
522
|
# yet successful.
|
521
523
|
#
|
522
|
-
# @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
|
523
|
-
# while polling for a resource that is not expected.
|
524
|
+
# @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
|
525
|
+
# encountered while polling for a resource that is not expected.
|
524
526
|
#
|
525
527
|
# @raise [NotImplementedError] Raised when the resource does not
|
526
528
|
#
|
@@ -1573,7 +1575,9 @@ module Aws::EC2
|
|
1573
1575
|
end
|
1574
1576
|
|
1575
1577
|
def separate_params_and_options(options)
|
1576
|
-
opts = Set.new(
|
1578
|
+
opts = Set.new(
|
1579
|
+
[:client, :max_attempts, :delay, :before_attempt, :before_wait]
|
1580
|
+
)
|
1577
1581
|
waiter_opts = {}
|
1578
1582
|
waiter_params = {}
|
1579
1583
|
options.each_pair do |key, value|
|
@@ -91,7 +91,8 @@ module Aws::EC2
|
|
91
91
|
# Waiter polls an API operation until a resource enters a desired
|
92
92
|
# state.
|
93
93
|
#
|
94
|
-
# @note The waiting operation is performed on a copy. The original resource
|
94
|
+
# @note The waiting operation is performed on a copy. The original resource
|
95
|
+
# remains unchanged.
|
95
96
|
#
|
96
97
|
# ## Basic Usage
|
97
98
|
#
|
@@ -104,13 +105,15 @@ module Aws::EC2
|
|
104
105
|
#
|
105
106
|
# ## Example
|
106
107
|
#
|
107
|
-
# instance.wait_until(max_attempts:10, delay:5)
|
108
|
+
# instance.wait_until(max_attempts:10, delay:5) do |instance|
|
109
|
+
# instance.state.name == 'running'
|
110
|
+
# end
|
108
111
|
#
|
109
112
|
# ## Configuration
|
110
113
|
#
|
111
114
|
# You can configure the maximum number of polling attempts, and the
|
112
|
-
# delay (in seconds) between each polling attempt. The waiting condition is
|
113
|
-
# by passing a block to {#wait_until}:
|
115
|
+
# delay (in seconds) between each polling attempt. The waiting condition is
|
116
|
+
# set by passing a block to {#wait_until}:
|
114
117
|
#
|
115
118
|
# # poll for ~25 seconds
|
116
119
|
# resource.wait_until(max_attempts:5,delay:5) {|resource|...}
|
@@ -141,17 +144,16 @@ module Aws::EC2
|
|
141
144
|
# # resource did not enter the desired state in time
|
142
145
|
# end
|
143
146
|
#
|
147
|
+
# @yieldparam [Resource] resource to be used in the waiting condition.
|
144
148
|
#
|
145
|
-
# @
|
146
|
-
#
|
147
|
-
#
|
148
|
-
# because the waiter has entered a state that it will not transition
|
149
|
-
# out of, preventing success.
|
149
|
+
# @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter
|
150
|
+
# terminates because the waiter has entered a state that it will not
|
151
|
+
# transition out of, preventing success.
|
150
152
|
#
|
151
153
|
# yet successful.
|
152
154
|
#
|
153
|
-
# @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
|
154
|
-
# while polling for a resource that is not expected.
|
155
|
+
# @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
|
156
|
+
# encountered while polling for a resource that is not expected.
|
155
157
|
#
|
156
158
|
# @raise [NotImplementedError] Raised when the resource does not
|
157
159
|
#
|
data/lib/aws-sdk-ec2/key_pair.rb
CHANGED
@@ -86,7 +86,8 @@ module Aws::EC2
|
|
86
86
|
# Waiter polls an API operation until a resource enters a desired
|
87
87
|
# state.
|
88
88
|
#
|
89
|
-
# @note The waiting operation is performed on a copy. The original resource
|
89
|
+
# @note The waiting operation is performed on a copy. The original resource
|
90
|
+
# remains unchanged.
|
90
91
|
#
|
91
92
|
# ## Basic Usage
|
92
93
|
#
|
@@ -99,13 +100,15 @@ module Aws::EC2
|
|
99
100
|
#
|
100
101
|
# ## Example
|
101
102
|
#
|
102
|
-
# instance.wait_until(max_attempts:10, delay:5)
|
103
|
+
# instance.wait_until(max_attempts:10, delay:5) do |instance|
|
104
|
+
# instance.state.name == 'running'
|
105
|
+
# end
|
103
106
|
#
|
104
107
|
# ## Configuration
|
105
108
|
#
|
106
109
|
# You can configure the maximum number of polling attempts, and the
|
107
|
-
# delay (in seconds) between each polling attempt. The waiting condition is
|
108
|
-
# by passing a block to {#wait_until}:
|
110
|
+
# delay (in seconds) between each polling attempt. The waiting condition is
|
111
|
+
# set by passing a block to {#wait_until}:
|
109
112
|
#
|
110
113
|
# # poll for ~25 seconds
|
111
114
|
# resource.wait_until(max_attempts:5,delay:5) {|resource|...}
|
@@ -136,17 +139,16 @@ module Aws::EC2
|
|
136
139
|
# # resource did not enter the desired state in time
|
137
140
|
# end
|
138
141
|
#
|
142
|
+
# @yieldparam [Resource] resource to be used in the waiting condition.
|
139
143
|
#
|
140
|
-
# @
|
141
|
-
#
|
142
|
-
#
|
143
|
-
# because the waiter has entered a state that it will not transition
|
144
|
-
# out of, preventing success.
|
144
|
+
# @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter
|
145
|
+
# terminates because the waiter has entered a state that it will not
|
146
|
+
# transition out of, preventing success.
|
145
147
|
#
|
146
148
|
# yet successful.
|
147
149
|
#
|
148
|
-
# @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
|
149
|
-
# while polling for a resource that is not expected.
|
150
|
+
# @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
|
151
|
+
# encountered while polling for a resource that is not expected.
|
150
152
|
#
|
151
153
|
# @raise [NotImplementedError] Raised when the resource does not
|
152
154
|
#
|
@@ -94,7 +94,8 @@ module Aws::EC2
|
|
94
94
|
# Waiter polls an API operation until a resource enters a desired
|
95
95
|
# state.
|
96
96
|
#
|
97
|
-
# @note The waiting operation is performed on a copy. The original resource
|
97
|
+
# @note The waiting operation is performed on a copy. The original resource
|
98
|
+
# remains unchanged.
|
98
99
|
#
|
99
100
|
# ## Basic Usage
|
100
101
|
#
|
@@ -107,13 +108,15 @@ module Aws::EC2
|
|
107
108
|
#
|
108
109
|
# ## Example
|
109
110
|
#
|
110
|
-
# instance.wait_until(max_attempts:10, delay:5)
|
111
|
+
# instance.wait_until(max_attempts:10, delay:5) do |instance|
|
112
|
+
# instance.state.name == 'running'
|
113
|
+
# end
|
111
114
|
#
|
112
115
|
# ## Configuration
|
113
116
|
#
|
114
117
|
# You can configure the maximum number of polling attempts, and the
|
115
|
-
# delay (in seconds) between each polling attempt. The waiting condition is
|
116
|
-
# by passing a block to {#wait_until}:
|
118
|
+
# delay (in seconds) between each polling attempt. The waiting condition is
|
119
|
+
# set by passing a block to {#wait_until}:
|
117
120
|
#
|
118
121
|
# # poll for ~25 seconds
|
119
122
|
# resource.wait_until(max_attempts:5,delay:5) {|resource|...}
|
@@ -144,17 +147,16 @@ module Aws::EC2
|
|
144
147
|
# # resource did not enter the desired state in time
|
145
148
|
# end
|
146
149
|
#
|
150
|
+
# @yieldparam [Resource] resource to be used in the waiting condition.
|
147
151
|
#
|
148
|
-
# @
|
149
|
-
#
|
150
|
-
#
|
151
|
-
# because the waiter has entered a state that it will not transition
|
152
|
-
# out of, preventing success.
|
152
|
+
# @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter
|
153
|
+
# terminates because the waiter has entered a state that it will not
|
154
|
+
# transition out of, preventing success.
|
153
155
|
#
|
154
156
|
# yet successful.
|
155
157
|
#
|
156
|
-
# @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
|
157
|
-
# while polling for a resource that is not expected.
|
158
|
+
# @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
|
159
|
+
# encountered while polling for a resource that is not expected.
|
158
160
|
#
|
159
161
|
# @raise [NotImplementedError] Raised when the resource does not
|
160
162
|
#
|