aws-sdk-opsworks 1.22.0 → 1.23.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: e8923783bc9cefc8a948fe672aaa854fac96f3ab
4
- data.tar.gz: 3838ae0789aa7fae8e490e906d7d6ac7a7c441ad
2
+ SHA256:
3
+ metadata.gz: cb667fbc01d17d88118a19a053e9370f1021d4164f96c0cfbf54b4444334decd
4
+ data.tar.gz: 8cd361336e9cb675263c943de8a80e7ff79d23704cc074d116d70adc3afd7564
5
5
  SHA512:
6
- metadata.gz: af0c80014c34cc1e6e0d373a912d335fc8df58de4419a4c4dc7b2dc9c9337890fa98f6bd75e4263b595da496c56387595e825fe8e2982142598dc4bf248b7b48
7
- data.tar.gz: 8d6ce7739a061b8d54d4281753a3f19470dcc074aa2a4c7c5f9ae32fdfe44bb52a21c1f3581109c4501324631b42a45342144c0b38b1f66ed28efb102514a0ef
6
+ metadata.gz: 4b67514d2b63d3fa302a3d10be525612974f44e1c859e88c0386f6dd297042f30cb6b301b91dbbdc0e66776b73e210a1e8b99de58a9f2db5a0801aa41adf40cb
7
+ data.tar.gz: 3804023ce4f4a1e257fc7f1e1d83675afca712b11a769922db1b9a2fcbd9006a7eb40960b8f9f3e5d91e776030751d2fe6c4e2a9c55cbbfd429593edcd7e64f9
@@ -49,6 +49,6 @@ require_relative 'aws-sdk-opsworks/customizations'
49
49
  # @service
50
50
  module Aws::OpsWorks
51
51
 
52
- GEM_VERSION = '1.22.0'
52
+ GEM_VERSION = '1.23.0'
53
53
 
54
54
  end
@@ -32,11 +32,11 @@ Aws::Plugins::GlobalConfiguration.add_identifier(:opsworks)
32
32
  module Aws::OpsWorks
33
33
  # An API client for OpsWorks. To construct a client, you need to configure a `:region` and `:credentials`.
34
34
  #
35
- # client = Aws::OpsWorks::Client.new(
36
- # region: region_name,
37
- # credentials: credentials,
38
- # # ...
39
- # )
35
+ # client = Aws::OpsWorks::Client.new(
36
+ # region: region_name,
37
+ # credentials: credentials,
38
+ # # ...
39
+ # )
40
40
  #
41
41
  # For details on configuring region and credentials see
42
42
  # the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
@@ -105,7 +105,7 @@ module Aws::OpsWorks
105
105
  # @option options [required, String] :region
106
106
  # The AWS region to connect to. The configured `:region` is
107
107
  # used to determine the service `:endpoint`. When not passed,
108
- # a default `:region` is search for in the following locations:
108
+ # a default `:region` is searched for in the following locations:
109
109
  #
110
110
  # * `Aws.config[:region]`
111
111
  # * `ENV['AWS_REGION']`
@@ -161,7 +161,7 @@ module Aws::OpsWorks
161
161
  # @option options [String] :endpoint
162
162
  # The client endpoint is normally constructed from the `:region`
163
163
  # option. You should only configure an `:endpoint` when connecting
164
- # to test endpoints. This should be avalid HTTP(S) URI.
164
+ # to test endpoints. This should be a valid HTTP(S) URI.
165
165
  #
166
166
  # @option options [Integer] :endpoint_cache_max_entries (1000)
167
167
  # Used for the maximum size limit of the LRU cache storing endpoints data
@@ -229,15 +229,19 @@ module Aws::OpsWorks
229
229
  #
230
230
  # @option options [String] :retry_mode ("legacy")
231
231
  # Specifies which retry algorithm to use. Values are:
232
- # * `legacy` - The pre-existing retry behavior. This is default value if
233
- # no retry mode is provided.
234
- # * `standard` - A standardized set of retry rules across the AWS SDKs.
235
- # This includes support for retry quotas, which limit the number of
236
- # unsuccessful retries a client can make.
237
- # * `adaptive` - An experimental retry mode that includes all the
238
- # functionality of `standard` mode along with automatic client side
239
- # throttling. This is a provisional mode that may change behavior
240
- # in the future.
232
+ #
233
+ # * `legacy` - The pre-existing retry behavior. This is default value if
234
+ # no retry mode is provided.
235
+ #
236
+ # * `standard` - A standardized set of retry rules across the AWS SDKs.
237
+ # This includes support for retry quotas, which limit the number of
238
+ # unsuccessful retries a client can make.
239
+ #
240
+ # * `adaptive` - An experimental retry mode that includes all the
241
+ # functionality of `standard` mode along with automatic client side
242
+ # throttling. This is a provisional mode that may change behavior
243
+ # in the future.
244
+ #
241
245
  #
242
246
  # @option options [String] :secret_access_key
243
247
  #
@@ -275,8 +279,7 @@ module Aws::OpsWorks
275
279
  #
276
280
  # @option options [Integer] :http_read_timeout (60) The default
277
281
  # 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}.
282
+ # safely be set per-request on the session.
280
283
  #
281
284
  # @option options [Float] :http_idle_timeout (5) The number of
282
285
  # seconds a connection is allowed to sit idle before it is
@@ -288,7 +291,7 @@ module Aws::OpsWorks
288
291
  # request body. This option has no effect unless the request has
289
292
  # "Expect" header set to "100-continue". Defaults to `nil` which
290
293
  # disables this behaviour. This value can safely be set per
291
- # request on the session yielded by {#session_for}.
294
+ # request on the session.
292
295
  #
293
296
  # @option options [Boolean] :http_wire_trace (false) When `true`,
294
297
  # HTTP debug output will be sent to the `:logger`.
@@ -2407,6 +2410,11 @@ module Aws::OpsWorks
2407
2410
  # resp.apps[0].environment[0].value #=> String
2408
2411
  # resp.apps[0].environment[0].secure #=> Boolean
2409
2412
  #
2413
+ #
2414
+ # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
2415
+ #
2416
+ # * app_exists
2417
+ #
2410
2418
  # @see http://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeApps AWS API Documentation
2411
2419
  #
2412
2420
  # @overload describe_apps(params = {})
@@ -2543,6 +2551,11 @@ module Aws::OpsWorks
2543
2551
  # resp.deployments[0].instance_ids #=> Array
2544
2552
  # resp.deployments[0].instance_ids[0] #=> String
2545
2553
  #
2554
+ #
2555
+ # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
2556
+ #
2557
+ # * deployment_successful
2558
+ #
2546
2559
  # @see http://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeDeployments AWS API Documentation
2547
2560
  #
2548
2561
  # @overload describe_deployments(params = {})
@@ -2596,6 +2609,8 @@ module Aws::OpsWorks
2596
2609
  # * {Types::DescribeEcsClustersResult#ecs_clusters #ecs_clusters} => Array<Types::EcsCluster>
2597
2610
  # * {Types::DescribeEcsClustersResult#next_token #next_token} => String
2598
2611
  #
2612
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2613
+ #
2599
2614
  # @example Request syntax with placeholder values
2600
2615
  #
2601
2616
  # resp = client.describe_ecs_clusters({
@@ -2844,6 +2859,14 @@ module Aws::OpsWorks
2844
2859
  # resp.instances[0].tenancy #=> String
2845
2860
  # resp.instances[0].virtualization_type #=> String, one of "paravirtual", "hvm"
2846
2861
  #
2862
+ #
2863
+ # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
2864
+ #
2865
+ # * instance_online
2866
+ # * instance_registered
2867
+ # * instance_stopped
2868
+ # * instance_terminated
2869
+ #
2847
2870
  # @see http://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeInstances AWS API Documentation
2848
2871
  #
2849
2872
  # @overload describe_instances(params = {})
@@ -5607,7 +5630,7 @@ module Aws::OpsWorks
5607
5630
  params: params,
5608
5631
  config: config)
5609
5632
  context[:gem_name] = 'aws-sdk-opsworks'
5610
- context[:gem_version] = '1.22.0'
5633
+ context[:gem_version] = '1.23.0'
5611
5634
  Seahorse::Client::Request.new(handlers, context)
5612
5635
  end
5613
5636
 
@@ -5673,14 +5696,14 @@ module Aws::OpsWorks
5673
5696
  # The following table lists the valid waiter names, the operations they call,
5674
5697
  # and the default `:delay` and `:max_attempts` values.
5675
5698
  #
5676
- # | waiter_name | params | :delay | :max_attempts |
5677
- # | --------------------- | ----------------------- | -------- | ------------- |
5678
- # | app_exists | {#describe_apps} | 1 | 40 |
5679
- # | deployment_successful | {#describe_deployments} | 15 | 40 |
5680
- # | instance_online | {#describe_instances} | 15 | 40 |
5681
- # | instance_registered | {#describe_instances} | 15 | 40 |
5682
- # | instance_stopped | {#describe_instances} | 15 | 40 |
5683
- # | instance_terminated | {#describe_instances} | 15 | 40 |
5699
+ # | waiter_name | params | :delay | :max_attempts |
5700
+ # | --------------------- | ----------------------------- | -------- | ------------- |
5701
+ # | app_exists | {Client#describe_apps} | 1 | 40 |
5702
+ # | deployment_successful | {Client#describe_deployments} | 15 | 40 |
5703
+ # | instance_online | {Client#describe_instances} | 15 | 40 |
5704
+ # | instance_registered | {Client#describe_instances} | 15 | 40 |
5705
+ # | instance_stopped | {Client#describe_instances} | 15 | 40 |
5706
+ # | instance_terminated | {Client#describe_instances} | 15 | 40 |
5684
5707
  #
5685
5708
  # @raise [Errors::FailureStateError] Raised when the waiter terminates
5686
5709
  # because the waiter has entered a state that it will not transition
@@ -263,7 +263,8 @@ module Aws::OpsWorks
263
263
  # Waiter polls an API operation until a resource enters a desired
264
264
  # state.
265
265
  #
266
- # @note The waiting operation is performed on a copy. The original resource remains unchanged
266
+ # @note The waiting operation is performed on a copy. The original resource
267
+ # remains unchanged.
267
268
  #
268
269
  # ## Basic Usage
269
270
  #
@@ -276,13 +277,15 @@ module Aws::OpsWorks
276
277
  #
277
278
  # ## Example
278
279
  #
279
- # instance.wait_until(max_attempts:10, delay:5) {|instance| instance.state.name == 'running' }
280
+ # instance.wait_until(max_attempts:10, delay:5) do |instance|
281
+ # instance.state.name == 'running'
282
+ # end
280
283
  #
281
284
  # ## Configuration
282
285
  #
283
286
  # You can configure the maximum number of polling attempts, and the
284
- # delay (in seconds) between each polling attempt. The waiting condition is set
285
- # by passing a block to {#wait_until}:
287
+ # delay (in seconds) between each polling attempt. The waiting condition is
288
+ # set by passing a block to {#wait_until}:
286
289
  #
287
290
  # # poll for ~25 seconds
288
291
  # resource.wait_until(max_attempts:5,delay:5) {|resource|...}
@@ -313,17 +316,16 @@ module Aws::OpsWorks
313
316
  # # resource did not enter the desired state in time
314
317
  # end
315
318
  #
319
+ # @yieldparam [Resource] resource to be used in the waiting condition.
316
320
  #
317
- # @yield param [Resource] resource to be used in the waiting condition
318
- #
319
- # @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter terminates
320
- # because the waiter has entered a state that it will not transition
321
- # out of, preventing success.
321
+ # @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter
322
+ # terminates because the waiter has entered a state that it will not
323
+ # transition out of, preventing success.
322
324
  #
323
325
  # yet successful.
324
326
  #
325
- # @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is encountered
326
- # while polling for a resource that is not expected.
327
+ # @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
328
+ # encountered while polling for a resource that is not expected.
327
329
  #
328
330
  # @raise [NotImplementedError] Raised when the resource does not
329
331
  #
@@ -6,13 +6,18 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::OpsWorks
9
+
9
10
  # This class provides a resource oriented interface for OpsWorks.
10
11
  # To create a resource object:
12
+ #
11
13
  # resource = Aws::OpsWorks::Resource.new(region: 'us-west-2')
14
+ #
12
15
  # 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.
16
+ # If you do not pass `:client`, a default client will be constructed.
17
+ #
14
18
  # client = Aws::OpsWorks::Client.new(region: 'us-west-2')
15
19
  # resource = Aws::OpsWorks::Resource.new(client: client)
20
+ #
16
21
  class Resource
17
22
 
18
23
  # @param options ({})
@@ -256,7 +256,8 @@ module Aws::OpsWorks
256
256
  # Waiter polls an API operation until a resource enters a desired
257
257
  # state.
258
258
  #
259
- # @note The waiting operation is performed on a copy. The original resource remains unchanged
259
+ # @note The waiting operation is performed on a copy. The original resource
260
+ # remains unchanged.
260
261
  #
261
262
  # ## Basic Usage
262
263
  #
@@ -269,13 +270,15 @@ module Aws::OpsWorks
269
270
  #
270
271
  # ## Example
271
272
  #
272
- # instance.wait_until(max_attempts:10, delay:5) {|instance| instance.state.name == 'running' }
273
+ # instance.wait_until(max_attempts:10, delay:5) do |instance|
274
+ # instance.state.name == 'running'
275
+ # end
273
276
  #
274
277
  # ## Configuration
275
278
  #
276
279
  # You can configure the maximum number of polling attempts, and the
277
- # delay (in seconds) between each polling attempt. The waiting condition is set
278
- # by passing a block to {#wait_until}:
280
+ # delay (in seconds) between each polling attempt. The waiting condition is
281
+ # set by passing a block to {#wait_until}:
279
282
  #
280
283
  # # poll for ~25 seconds
281
284
  # resource.wait_until(max_attempts:5,delay:5) {|resource|...}
@@ -306,17 +309,16 @@ module Aws::OpsWorks
306
309
  # # resource did not enter the desired state in time
307
310
  # end
308
311
  #
312
+ # @yieldparam [Resource] resource to be used in the waiting condition.
309
313
  #
310
- # @yield param [Resource] resource to be used in the waiting condition
311
- #
312
- # @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter terminates
313
- # because the waiter has entered a state that it will not transition
314
- # out of, preventing success.
314
+ # @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter
315
+ # terminates because the waiter has entered a state that it will not
316
+ # transition out of, preventing success.
315
317
  #
316
318
  # yet successful.
317
319
  #
318
- # @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is encountered
319
- # while polling for a resource that is not expected.
320
+ # @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
321
+ # encountered while polling for a resource that is not expected.
320
322
  #
321
323
  # @raise [NotImplementedError] Raised when the resource does not
322
324
  #
@@ -103,7 +103,8 @@ module Aws::OpsWorks
103
103
  # Waiter polls an API operation until a resource enters a desired
104
104
  # state.
105
105
  #
106
- # @note The waiting operation is performed on a copy. The original resource remains unchanged
106
+ # @note The waiting operation is performed on a copy. The original resource
107
+ # remains unchanged.
107
108
  #
108
109
  # ## Basic Usage
109
110
  #
@@ -116,13 +117,15 @@ module Aws::OpsWorks
116
117
  #
117
118
  # ## Example
118
119
  #
119
- # instance.wait_until(max_attempts:10, delay:5) {|instance| instance.state.name == 'running' }
120
+ # instance.wait_until(max_attempts:10, delay:5) do |instance|
121
+ # instance.state.name == 'running'
122
+ # end
120
123
  #
121
124
  # ## Configuration
122
125
  #
123
126
  # You can configure the maximum number of polling attempts, and the
124
- # delay (in seconds) between each polling attempt. The waiting condition is set
125
- # by passing a block to {#wait_until}:
127
+ # delay (in seconds) between each polling attempt. The waiting condition is
128
+ # set by passing a block to {#wait_until}:
126
129
  #
127
130
  # # poll for ~25 seconds
128
131
  # resource.wait_until(max_attempts:5,delay:5) {|resource|...}
@@ -153,17 +156,16 @@ module Aws::OpsWorks
153
156
  # # resource did not enter the desired state in time
154
157
  # end
155
158
  #
159
+ # @yieldparam [Resource] resource to be used in the waiting condition.
156
160
  #
157
- # @yield param [Resource] resource to be used in the waiting condition
158
- #
159
- # @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter terminates
160
- # because the waiter has entered a state that it will not transition
161
- # out of, preventing success.
161
+ # @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter
162
+ # terminates because the waiter has entered a state that it will not
163
+ # transition out of, preventing success.
162
164
  #
163
165
  # yet successful.
164
166
  #
165
- # @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is encountered
166
- # while polling for a resource that is not expected.
167
+ # @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
168
+ # encountered while polling for a resource that is not expected.
167
169
  #
168
170
  # @raise [NotImplementedError] Raised when the resource does not
169
171
  #
@@ -8,6 +8,72 @@
8
8
  require 'aws-sdk-core/waiters'
9
9
 
10
10
  module Aws::OpsWorks
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
+ # | app_exists | {Client#describe_apps} | 1 | 40 |
71
+ # | deployment_successful | {Client#describe_deployments} | 15 | 40 |
72
+ # | instance_online | {Client#describe_instances} | 15 | 40 |
73
+ # | instance_registered | {Client#describe_instances} | 15 | 40 |
74
+ # | instance_stopped | {Client#describe_instances} | 15 | 40 |
75
+ # | instance_terminated | {Client#describe_instances} | 15 | 40 |
76
+ #
11
77
  module Waiters
12
78
 
13
79
  class AppExists
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-opsworks
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.22.0
4
+ version: 1.23.0
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-03-09 00:00:00.000000000 Z
11
+ date: 2020-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -85,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
85
85
  version: '0'
86
86
  requirements: []
87
87
  rubyforge_project:
88
- rubygems_version: 2.5.2.3
88
+ rubygems_version: 2.7.6.2
89
89
  signing_key:
90
90
  specification_version: 4
91
91
  summary: AWS SDK for Ruby - AWS OpsWorks