aws-sdk-opsworkscm 1.30.0 → 1.35.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/aws-sdk-opsworkscm.rb +1 -1
- data/lib/aws-sdk-opsworkscm/client.rb +61 -45
- data/lib/aws-sdk-opsworkscm/client_api.rb +24 -0
- data/lib/aws-sdk-opsworkscm/resource.rb +1 -7
- data/lib/aws-sdk-opsworkscm/types.rb +21 -21
- data/lib/aws-sdk-opsworkscm/waiters.rb +61 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: e8c183ce7696c18ef59ae328875307af7b0cd46bb32757d32dfaa3f843403357
|
4
|
+
data.tar.gz: '0730820cc11c847324fd41d3c27a27248fa8ea0318fb142484aa677ae7257911'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7b205f37aac97f27c63e65e7e6940a0395e8800883e13ca72c080ddc74cfd1ee5675da9f3ac1a88d37a2f7ad9477ed0c8a8c009bc44370f783ca6f122bb9884
|
7
|
+
data.tar.gz: 961ca12949003478708b28c1b06eac4f17b109773b43ec7bfcf17166c4fcb7bfe77d022d5987117f0ff1ac38b8a5ab29220dd2e1834c139fb14ba9f566b2cea6
|
data/lib/aws-sdk-opsworkscm.rb
CHANGED
@@ -24,6 +24,7 @@ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
|
|
24
24
|
require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
25
25
|
require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
26
26
|
require 'aws-sdk-core/plugins/transfer_encoding.rb'
|
27
|
+
require 'aws-sdk-core/plugins/http_checksum.rb'
|
27
28
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
28
29
|
require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
|
29
30
|
|
@@ -32,11 +33,11 @@ Aws::Plugins::GlobalConfiguration.add_identifier(:opsworkscm)
|
|
32
33
|
module Aws::OpsWorksCM
|
33
34
|
# An API client for OpsWorksCM. To construct a client, you need to configure a `:region` and `:credentials`.
|
34
35
|
#
|
35
|
-
#
|
36
|
-
#
|
37
|
-
#
|
38
|
-
#
|
39
|
-
#
|
36
|
+
# client = Aws::OpsWorksCM::Client.new(
|
37
|
+
# region: region_name,
|
38
|
+
# credentials: credentials,
|
39
|
+
# # ...
|
40
|
+
# )
|
40
41
|
#
|
41
42
|
# For details on configuring region and credentials see
|
42
43
|
# the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
|
@@ -69,6 +70,7 @@ module Aws::OpsWorksCM
|
|
69
70
|
add_plugin(Aws::Plugins::ClientMetricsPlugin)
|
70
71
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
71
72
|
add_plugin(Aws::Plugins::TransferEncoding)
|
73
|
+
add_plugin(Aws::Plugins::HttpChecksum)
|
72
74
|
add_plugin(Aws::Plugins::SignatureV4)
|
73
75
|
add_plugin(Aws::Plugins::Protocols::JsonRpc)
|
74
76
|
|
@@ -105,7 +107,7 @@ module Aws::OpsWorksCM
|
|
105
107
|
# @option options [required, String] :region
|
106
108
|
# The AWS region to connect to. The configured `:region` is
|
107
109
|
# used to determine the service `:endpoint`. When not passed,
|
108
|
-
# a default `:region` is
|
110
|
+
# a default `:region` is searched for in the following locations:
|
109
111
|
#
|
110
112
|
# * `Aws.config[:region]`
|
111
113
|
# * `ENV['AWS_REGION']`
|
@@ -161,7 +163,7 @@ module Aws::OpsWorksCM
|
|
161
163
|
# @option options [String] :endpoint
|
162
164
|
# The client endpoint is normally constructed from the `:region`
|
163
165
|
# option. You should only configure an `:endpoint` when connecting
|
164
|
-
# to test endpoints. This should be
|
166
|
+
# to test or custom endpoints. This should be a valid HTTP(S) URI.
|
165
167
|
#
|
166
168
|
# @option options [Integer] :endpoint_cache_max_entries (1000)
|
167
169
|
# Used for the maximum size limit of the LRU cache storing endpoints data
|
@@ -176,7 +178,7 @@ module Aws::OpsWorksCM
|
|
176
178
|
# requests fetching endpoints information. Defaults to 60 sec.
|
177
179
|
#
|
178
180
|
# @option options [Boolean] :endpoint_discovery (false)
|
179
|
-
# When set to `true`, endpoint discovery will be enabled for operations when available.
|
181
|
+
# When set to `true`, endpoint discovery will be enabled for operations when available.
|
180
182
|
#
|
181
183
|
# @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
|
182
184
|
# The log formatter.
|
@@ -229,15 +231,19 @@ module Aws::OpsWorksCM
|
|
229
231
|
#
|
230
232
|
# @option options [String] :retry_mode ("legacy")
|
231
233
|
# Specifies which retry algorithm to use. Values are:
|
232
|
-
#
|
233
|
-
#
|
234
|
-
#
|
235
|
-
#
|
236
|
-
#
|
237
|
-
#
|
238
|
-
#
|
239
|
-
#
|
240
|
-
#
|
234
|
+
#
|
235
|
+
# * `legacy` - The pre-existing retry behavior. This is default value if
|
236
|
+
# no retry mode is provided.
|
237
|
+
#
|
238
|
+
# * `standard` - A standardized set of retry rules across the AWS SDKs.
|
239
|
+
# This includes support for retry quotas, which limit the number of
|
240
|
+
# unsuccessful retries a client can make.
|
241
|
+
#
|
242
|
+
# * `adaptive` - An experimental retry mode that includes all the
|
243
|
+
# functionality of `standard` mode along with automatic client side
|
244
|
+
# throttling. This is a provisional mode that may change behavior
|
245
|
+
# in the future.
|
246
|
+
#
|
241
247
|
#
|
242
248
|
# @option options [String] :secret_access_key
|
243
249
|
#
|
@@ -275,8 +281,7 @@ module Aws::OpsWorksCM
|
|
275
281
|
#
|
276
282
|
# @option options [Integer] :http_read_timeout (60) The default
|
277
283
|
# number of seconds to wait for response data. This value can
|
278
|
-
# safely be set
|
279
|
-
# per-request on the session yielded by {#session_for}.
|
284
|
+
# safely be set per-request on the session.
|
280
285
|
#
|
281
286
|
# @option options [Float] :http_idle_timeout (5) The number of
|
282
287
|
# seconds a connection is allowed to sit idle before it is
|
@@ -288,7 +293,7 @@ module Aws::OpsWorksCM
|
|
288
293
|
# request body. This option has no effect unless the request has
|
289
294
|
# "Expect" header set to "100-continue". Defaults to `nil` which
|
290
295
|
# disables this behaviour. This value can safely be set per
|
291
|
-
# request on the session
|
296
|
+
# request on the session.
|
292
297
|
#
|
293
298
|
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
294
299
|
# HTTP debug output will be sent to the `:logger`.
|
@@ -535,22 +540,21 @@ module Aws::OpsWorksCM
|
|
535
540
|
# Valid values are `true` or `false`. The default value is `true`.
|
536
541
|
#
|
537
542
|
# @option params [String] :custom_domain
|
538
|
-
#
|
539
|
-
#
|
540
|
-
#
|
541
|
-
#
|
542
|
-
# the
|
543
|
-
#
|
544
|
-
#
|
545
|
-
#
|
546
|
-
# `CustomCertificate` and `CustomPrivateKey`.
|
543
|
+
# An optional public endpoint of a server, such as
|
544
|
+
# `https://aws.my-company.com`. To access the server, create a CNAME DNS
|
545
|
+
# record in your preferred DNS service that points the custom domain to
|
546
|
+
# the endpoint that is generated when the server is created (the value
|
547
|
+
# of the CreateServer Endpoint attribute). You cannot access the server
|
548
|
+
# by using the generated `Endpoint` value if the server is using a
|
549
|
+
# custom domain. If you specify a custom domain, you must also specify
|
550
|
+
# values for `CustomCertificate` and `CustomPrivateKey`.
|
547
551
|
#
|
548
552
|
# @option params [String] :custom_certificate
|
549
|
-
#
|
550
|
-
# certificate
|
551
|
-
#
|
552
|
-
#
|
553
|
-
#
|
553
|
+
# A PEM-formatted HTTPS certificate. The value can be be a single,
|
554
|
+
# self-signed certificate, or a certificate chain. If you specify a
|
555
|
+
# custom certificate, you must also specify values for `CustomDomain`
|
556
|
+
# and `CustomPrivateKey`. The following are requirements for the
|
557
|
+
# `CustomCertificate` value:
|
554
558
|
#
|
555
559
|
# * You can provide either a self-signed, custom certificate, or the
|
556
560
|
# full certificate chain.
|
@@ -569,11 +573,10 @@ module Aws::OpsWorksCM
|
|
569
573
|
# * The certificate must match the value of `CustomPrivateKey`.
|
570
574
|
#
|
571
575
|
# @option params [String] :custom_private_key
|
572
|
-
#
|
573
|
-
#
|
574
|
-
#
|
575
|
-
#
|
576
|
-
# values for `CustomDomain` and `CustomCertificate`.
|
576
|
+
# A private key in PEM format for connecting to the server by using
|
577
|
+
# HTTPS. The private key must not be encrypted; it cannot be protected
|
578
|
+
# by a password or passphrase. If you specify a custom private key, you
|
579
|
+
# must also specify values for `CustomDomain` and `CustomCertificate`.
|
577
580
|
#
|
578
581
|
# @option params [Boolean] :disable_automated_backup
|
579
582
|
# Enable or disable scheduled backups. Valid values are `true` or
|
@@ -729,11 +732,11 @@ module Aws::OpsWorksCM
|
|
729
732
|
#
|
730
733
|
# * The key can be a maximum of 127 characters, and can contain only
|
731
734
|
# Unicode letters, numbers, or separators, or the following special
|
732
|
-
# characters: `+ - = . _ :
|
735
|
+
# characters: `+ - = . _ : / @`
|
733
736
|
#
|
734
737
|
# * The value can be a maximum 255 characters, and contain only Unicode
|
735
738
|
# letters, numbers, or separators, or the following special
|
736
|
-
# characters: `+ - = . _ :
|
739
|
+
# characters: `+ - = . _ : / @`
|
737
740
|
#
|
738
741
|
# * Leading and trailing white spaces are trimmed from both the key and
|
739
742
|
# value.
|
@@ -939,6 +942,8 @@ module Aws::OpsWorksCM
|
|
939
942
|
# * {Types::DescribeBackupsResponse#backups #backups} => Array<Types::Backup>
|
940
943
|
# * {Types::DescribeBackupsResponse#next_token #next_token} => String
|
941
944
|
#
|
945
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
946
|
+
#
|
942
947
|
# @example Request syntax with placeholder values
|
943
948
|
#
|
944
949
|
# resp = client.describe_backups({
|
@@ -1022,6 +1027,8 @@ module Aws::OpsWorksCM
|
|
1022
1027
|
# * {Types::DescribeEventsResponse#server_events #server_events} => Array<Types::ServerEvent>
|
1023
1028
|
# * {Types::DescribeEventsResponse#next_token #next_token} => String
|
1024
1029
|
#
|
1030
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
1031
|
+
#
|
1025
1032
|
# @example Request syntax with placeholder values
|
1026
1033
|
#
|
1027
1034
|
# resp = client.describe_events({
|
@@ -1082,6 +1089,11 @@ module Aws::OpsWorksCM
|
|
1082
1089
|
# resp.engine_attributes[0].name #=> String
|
1083
1090
|
# resp.engine_attributes[0].value #=> String
|
1084
1091
|
#
|
1092
|
+
#
|
1093
|
+
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
1094
|
+
#
|
1095
|
+
# * node_associated
|
1096
|
+
#
|
1085
1097
|
# @see http://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/DescribeNodeAssociationStatus AWS API Documentation
|
1086
1098
|
#
|
1087
1099
|
# @overload describe_node_association_status(params = {})
|
@@ -1115,6 +1127,8 @@ module Aws::OpsWorksCM
|
|
1115
1127
|
# * {Types::DescribeServersResponse#servers #servers} => Array<Types::Server>
|
1116
1128
|
# * {Types::DescribeServersResponse#next_token #next_token} => String
|
1117
1129
|
#
|
1130
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
1131
|
+
#
|
1118
1132
|
# @example Request syntax with placeholder values
|
1119
1133
|
#
|
1120
1134
|
# resp = client.describe_servers({
|
@@ -1333,6 +1347,8 @@ module Aws::OpsWorksCM
|
|
1333
1347
|
# * {Types::ListTagsForResourceResponse#tags #tags} => Array<Types::Tag>
|
1334
1348
|
# * {Types::ListTagsForResourceResponse#next_token #next_token} => String
|
1335
1349
|
#
|
1350
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
1351
|
+
#
|
1336
1352
|
# @example Request syntax with placeholder values
|
1337
1353
|
#
|
1338
1354
|
# resp = client.list_tags_for_resource({
|
@@ -1751,7 +1767,7 @@ module Aws::OpsWorksCM
|
|
1751
1767
|
params: params,
|
1752
1768
|
config: config)
|
1753
1769
|
context[:gem_name] = 'aws-sdk-opsworkscm'
|
1754
|
-
context[:gem_version] = '1.
|
1770
|
+
context[:gem_version] = '1.35.1'
|
1755
1771
|
Seahorse::Client::Request.new(handlers, context)
|
1756
1772
|
end
|
1757
1773
|
|
@@ -1817,9 +1833,9 @@ module Aws::OpsWorksCM
|
|
1817
1833
|
# The following table lists the valid waiter names, the operations they call,
|
1818
1834
|
# and the default `:delay` and `:max_attempts` values.
|
1819
1835
|
#
|
1820
|
-
# | waiter_name | params
|
1821
|
-
# | --------------- |
|
1822
|
-
# | node_associated | {#describe_node_association_status} | 15 | 15 |
|
1836
|
+
# | waiter_name | params | :delay | :max_attempts |
|
1837
|
+
# | --------------- | ----------------------------------------- | -------- | ------------- |
|
1838
|
+
# | node_associated | {Client#describe_node_association_status} | 15 | 15 |
|
1823
1839
|
#
|
1824
1840
|
# @raise [Errors::FailureStateError] Raised when the waiter terminates
|
1825
1841
|
# because the waiter has entered a state that it will not transition
|
@@ -463,6 +463,12 @@ module Aws::OpsWorksCM
|
|
463
463
|
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
464
464
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
465
465
|
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
|
466
|
+
o[:pager] = Aws::Pager.new(
|
467
|
+
limit_key: "max_results",
|
468
|
+
tokens: {
|
469
|
+
"next_token" => "next_token"
|
470
|
+
}
|
471
|
+
)
|
466
472
|
end)
|
467
473
|
|
468
474
|
api.add_operation(:describe_events, Seahorse::Model::Operation.new.tap do |o|
|
@@ -474,6 +480,12 @@ module Aws::OpsWorksCM
|
|
474
480
|
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
475
481
|
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
|
476
482
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
483
|
+
o[:pager] = Aws::Pager.new(
|
484
|
+
limit_key: "max_results",
|
485
|
+
tokens: {
|
486
|
+
"next_token" => "next_token"
|
487
|
+
}
|
488
|
+
)
|
477
489
|
end)
|
478
490
|
|
479
491
|
api.add_operation(:describe_node_association_status, Seahorse::Model::Operation.new.tap do |o|
|
@@ -495,6 +507,12 @@ module Aws::OpsWorksCM
|
|
495
507
|
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
496
508
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
497
509
|
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
|
510
|
+
o[:pager] = Aws::Pager.new(
|
511
|
+
limit_key: "max_results",
|
512
|
+
tokens: {
|
513
|
+
"next_token" => "next_token"
|
514
|
+
}
|
515
|
+
)
|
498
516
|
end)
|
499
517
|
|
500
518
|
api.add_operation(:disassociate_node, Seahorse::Model::Operation.new.tap do |o|
|
@@ -527,6 +545,12 @@ module Aws::OpsWorksCM
|
|
527
545
|
o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
|
528
546
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
529
547
|
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
548
|
+
o[:pager] = Aws::Pager.new(
|
549
|
+
limit_key: "max_results",
|
550
|
+
tokens: {
|
551
|
+
"next_token" => "next_token"
|
552
|
+
}
|
553
|
+
)
|
530
554
|
end)
|
531
555
|
|
532
556
|
api.add_operation(:restore_server, Seahorse::Model::Operation.new.tap do |o|
|
@@ -6,13 +6,7 @@
|
|
6
6
|
# WARNING ABOUT GENERATED CODE
|
7
7
|
|
8
8
|
module Aws::OpsWorksCM
|
9
|
-
|
10
|
-
# To create a resource object:
|
11
|
-
# resource = Aws::OpsWorksCM::Resource.new(region: 'us-west-2')
|
12
|
-
# You can supply a client object with custom configuration that will be used for all resource operations.
|
13
|
-
# If you do not pass +:client+, a default client will be constructed.
|
14
|
-
# client = Aws::OpsWorksCM::Client.new(region: 'us-west-2')
|
15
|
-
# resource = Aws::OpsWorksCM::Resource.new(client: client)
|
9
|
+
|
16
10
|
class Resource
|
17
11
|
|
18
12
|
# @param options ({})
|
@@ -355,23 +355,23 @@ module Aws::OpsWorksCM
|
|
355
355
|
# @return [Boolean]
|
356
356
|
#
|
357
357
|
# @!attribute [rw] custom_domain
|
358
|
-
#
|
359
|
-
#
|
360
|
-
#
|
361
|
-
#
|
362
|
-
#
|
363
|
-
#
|
364
|
-
#
|
365
|
-
#
|
366
|
-
# `
|
358
|
+
# An optional public endpoint of a server, such as
|
359
|
+
# `https://aws.my-company.com`. To access the server, create a CNAME
|
360
|
+
# DNS record in your preferred DNS service that points the custom
|
361
|
+
# domain to the endpoint that is generated when the server is created
|
362
|
+
# (the value of the CreateServer Endpoint attribute). You cannot
|
363
|
+
# access the server by using the generated `Endpoint` value if the
|
364
|
+
# server is using a custom domain. If you specify a custom domain, you
|
365
|
+
# must also specify values for `CustomCertificate` and
|
366
|
+
# `CustomPrivateKey`.
|
367
367
|
# @return [String]
|
368
368
|
#
|
369
369
|
# @!attribute [rw] custom_certificate
|
370
|
-
#
|
371
|
-
# certificate
|
372
|
-
#
|
373
|
-
#
|
374
|
-
#
|
370
|
+
# A PEM-formatted HTTPS certificate. The value can be be a single,
|
371
|
+
# self-signed certificate, or a certificate chain. If you specify a
|
372
|
+
# custom certificate, you must also specify values for `CustomDomain`
|
373
|
+
# and `CustomPrivateKey`. The following are requirements for the
|
374
|
+
# `CustomCertificate` value:
|
375
375
|
#
|
376
376
|
# * You can provide either a self-signed, custom certificate, or the
|
377
377
|
# full certificate chain.
|
@@ -391,11 +391,11 @@ module Aws::OpsWorksCM
|
|
391
391
|
# @return [String]
|
392
392
|
#
|
393
393
|
# @!attribute [rw] custom_private_key
|
394
|
-
#
|
395
|
-
#
|
396
|
-
#
|
397
|
-
#
|
398
|
-
#
|
394
|
+
# A private key in PEM format for connecting to the server by using
|
395
|
+
# HTTPS. The private key must not be encrypted; it cannot be protected
|
396
|
+
# by a password or passphrase. If you specify a custom private key,
|
397
|
+
# you must also specify values for `CustomDomain` and
|
398
|
+
# `CustomCertificate`.
|
399
399
|
# @return [String]
|
400
400
|
#
|
401
401
|
# @!attribute [rw] disable_automated_backup
|
@@ -568,11 +568,11 @@ module Aws::OpsWorksCM
|
|
568
568
|
#
|
569
569
|
# * The key can be a maximum of 127 characters, and can contain only
|
570
570
|
# Unicode letters, numbers, or separators, or the following special
|
571
|
-
# characters: `+ - = . _ :
|
571
|
+
# characters: `+ - = . _ : / @`
|
572
572
|
#
|
573
573
|
# * The value can be a maximum 255 characters, and contain only
|
574
574
|
# Unicode letters, numbers, or separators, or the following special
|
575
|
-
# characters: `+ - = . _ :
|
575
|
+
# characters: `+ - = . _ : / @`
|
576
576
|
#
|
577
577
|
# * Leading and trailing white spaces are trimmed from both the key
|
578
578
|
# and value.
|
@@ -8,6 +8,67 @@
|
|
8
8
|
require 'aws-sdk-core/waiters'
|
9
9
|
|
10
10
|
module Aws::OpsWorksCM
|
11
|
+
# Waiters are utility methods that poll for a particular state to occur
|
12
|
+
# on a client. Waiters can fail after a number of attempts at a polling
|
13
|
+
# interval defined for the service client.
|
14
|
+
#
|
15
|
+
# For a list of operations that can be waited for and the
|
16
|
+
# client methods called for each operation, see the table below or the
|
17
|
+
# {Client#wait_until} field documentation for the {Client}.
|
18
|
+
#
|
19
|
+
# # Invoking a Waiter
|
20
|
+
# To invoke a waiter, call #wait_until on a {Client}. The first parameter
|
21
|
+
# is the waiter name, which is specific to the service client and indicates
|
22
|
+
# which operation is being waited for. The second parameter is a hash of
|
23
|
+
# parameters that are passed to the client method called by the waiter,
|
24
|
+
# which varies according to the waiter name.
|
25
|
+
#
|
26
|
+
# # Wait Failures
|
27
|
+
# To catch errors in a waiter, use WaiterFailed,
|
28
|
+
# as shown in the following example.
|
29
|
+
#
|
30
|
+
# rescue rescue Aws::Waiters::Errors::WaiterFailed => error
|
31
|
+
# puts "failed waiting for instance running: #{error.message}
|
32
|
+
# end
|
33
|
+
#
|
34
|
+
# # Configuring a Waiter
|
35
|
+
# Each waiter has a default polling interval and a maximum number of
|
36
|
+
# attempts it will make before returning control to your program.
|
37
|
+
# To set these values, use the `max_attempts` and `delay` parameters
|
38
|
+
# in your `#wait_until` call.
|
39
|
+
# The following example waits for up to 25 seconds, polling every five seconds.
|
40
|
+
#
|
41
|
+
# client.wait_until(...) do |w|
|
42
|
+
# w.max_attempts = 5
|
43
|
+
# w.delay = 5
|
44
|
+
# end
|
45
|
+
#
|
46
|
+
# To disable wait failures, set the value of either of these parameters
|
47
|
+
# to `nil`.
|
48
|
+
#
|
49
|
+
# # Extending a Waiter
|
50
|
+
# To modify the behavior of waiters, you can register callbacks that are
|
51
|
+
# triggered before each polling attempt and before waiting.
|
52
|
+
#
|
53
|
+
# The following example implements an exponential backoff in a waiter
|
54
|
+
# by doubling the amount of time to wait on every attempt.
|
55
|
+
#
|
56
|
+
# client.wait_until(...) do |w|
|
57
|
+
# w.interval = 0 # disable normal sleep
|
58
|
+
# w.before_wait do |n, resp|
|
59
|
+
# sleep(n ** 2)
|
60
|
+
# end
|
61
|
+
# end
|
62
|
+
#
|
63
|
+
# # Available Waiters
|
64
|
+
#
|
65
|
+
# The following table lists the valid waiter names, the operations they call,
|
66
|
+
# and the default `:delay` and `:max_attempts` values.
|
67
|
+
#
|
68
|
+
# | waiter_name | params | :delay | :max_attempts |
|
69
|
+
# | --------------- | ----------------------------------------- | -------- | ------------- |
|
70
|
+
# | node_associated | {Client#describe_node_association_status} | 15 | 15 |
|
71
|
+
#
|
11
72
|
module Waiters
|
12
73
|
|
13
74
|
# Wait until node is associated or disassociated.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-opsworkscm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.35.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-06-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.99.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.99.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
82
|
version: '0'
|
83
83
|
requirements: []
|
84
84
|
rubyforge_project:
|
85
|
-
rubygems_version: 2.
|
85
|
+
rubygems_version: 2.7.6.2
|
86
86
|
signing_key:
|
87
87
|
specification_version: 4
|
88
88
|
summary: AWS SDK for Ruby - OpsWorksCM
|