aws-sdk-opsworkscm 1.28.0 → 1.29.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/lib/aws-sdk-opsworkscm.rb +7 -4
- data/lib/aws-sdk-opsworkscm/client.rb +15 -5
- data/lib/aws-sdk-opsworkscm/errors.rb +32 -0
- data/lib/aws-sdk-opsworkscm/resource.rb +7 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 790188e08921971a8ae747c8f757bcd6497280eb
|
4
|
+
data.tar.gz: 9b7cc81be9d1abb27d55b1ba8720bacee93c4d18
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91027c2bbfb30b49b7fee47e96f36841fb8c11a26f6b8721535d5b9454fc43c02f4d6ac38e681eea076dafb15eedfda0a6d1c97d986877fde8274e213edfc913
|
7
|
+
data.tar.gz: 9943c328d77b47a15ca89b6768bcf6f066537a4b2c04181841d0e2aaccbff49d0c5985cc5704f239be9c7022e107aa7c457d436c18aa29f1b699edb2b423cbb2
|
data/lib/aws-sdk-opsworkscm.rb
CHANGED
@@ -25,17 +25,20 @@ require_relative 'aws-sdk-opsworkscm/customizations'
|
|
25
25
|
# methods each accept a hash of request parameters and return a response
|
26
26
|
# structure.
|
27
27
|
#
|
28
|
+
# ops_works_cm = Aws::OpsWorksCM::Client.new
|
29
|
+
# resp = ops_works_cm.associate_node(params)
|
30
|
+
#
|
28
31
|
# See {Client} for more information.
|
29
32
|
#
|
30
33
|
# # Errors
|
31
34
|
#
|
32
|
-
# Errors returned from AWS OpsWorks CM
|
33
|
-
# extend {Errors::ServiceError}.
|
35
|
+
# Errors returned from AWS OpsWorks CM are defined in the
|
36
|
+
# {Errors} module and all extend {Errors::ServiceError}.
|
34
37
|
#
|
35
38
|
# begin
|
36
39
|
# # do stuff
|
37
40
|
# rescue Aws::OpsWorksCM::Errors::ServiceError
|
38
|
-
# # rescues all
|
41
|
+
# # rescues all AWS OpsWorks CM API errors
|
39
42
|
# end
|
40
43
|
#
|
41
44
|
# See {Errors} for more information.
|
@@ -43,6 +46,6 @@ require_relative 'aws-sdk-opsworkscm/customizations'
|
|
43
46
|
# @service
|
44
47
|
module Aws::OpsWorksCM
|
45
48
|
|
46
|
-
GEM_VERSION = '1.
|
49
|
+
GEM_VERSION = '1.29.0'
|
47
50
|
|
48
51
|
end
|
@@ -30,6 +30,16 @@ require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
|
|
30
30
|
Aws::Plugins::GlobalConfiguration.add_identifier(:opsworkscm)
|
31
31
|
|
32
32
|
module Aws::OpsWorksCM
|
33
|
+
# An API client for OpsWorksCM. To construct a client, you need to configure a +:region+ and +:credentials+.
|
34
|
+
# client = Aws::OpsWorksCM::Client.new(
|
35
|
+
# region: region_name,
|
36
|
+
# credentials: credentials,
|
37
|
+
# # ...
|
38
|
+
# )
|
39
|
+
# For details on configuring region and credentials see
|
40
|
+
# the {developer-guide}[https://docs.aws.amazon.com/sdk-for-ruby/v3/developer-guide/setup-config.html].
|
41
|
+
#
|
42
|
+
# See {#initialize} for a full list of supported configuration options.
|
33
43
|
class Client < Seahorse::Client::Base
|
34
44
|
|
35
45
|
include Aws::ClientStubs
|
@@ -219,16 +229,16 @@ module Aws::OpsWorksCM
|
|
219
229
|
# requests through. Formatted like 'http://proxy.com:123'.
|
220
230
|
#
|
221
231
|
# @option options [Float] :http_open_timeout (15) The number of
|
222
|
-
# seconds to wait when opening a HTTP session before
|
232
|
+
# seconds to wait when opening a HTTP session before raising a
|
223
233
|
# `Timeout::Error`.
|
224
234
|
#
|
225
235
|
# @option options [Integer] :http_read_timeout (60) The default
|
226
236
|
# number of seconds to wait for response data. This value can
|
227
237
|
# safely be set
|
228
|
-
# per-request on the session
|
238
|
+
# per-request on the session yielded by {#session_for}.
|
229
239
|
#
|
230
240
|
# @option options [Float] :http_idle_timeout (5) The number of
|
231
|
-
# seconds a connection is allowed to sit
|
241
|
+
# seconds a connection is allowed to sit idle before it is
|
232
242
|
# considered stale. Stale connections are closed and removed
|
233
243
|
# from the pool before making a request.
|
234
244
|
#
|
@@ -237,7 +247,7 @@ module Aws::OpsWorksCM
|
|
237
247
|
# request body. This option has no effect unless the request has
|
238
248
|
# "Expect" header set to "100-continue". Defaults to `nil` which
|
239
249
|
# disables this behaviour. This value can safely be set per
|
240
|
-
# request on the session
|
250
|
+
# request on the session yielded by {#session_for}.
|
241
251
|
#
|
242
252
|
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
243
253
|
# HTTP debug output will be sent to the `:logger`.
|
@@ -1700,7 +1710,7 @@ module Aws::OpsWorksCM
|
|
1700
1710
|
params: params,
|
1701
1711
|
config: config)
|
1702
1712
|
context[:gem_name] = 'aws-sdk-opsworkscm'
|
1703
|
-
context[:gem_version] = '1.
|
1713
|
+
context[:gem_version] = '1.29.0'
|
1704
1714
|
Seahorse::Client::Request.new(handlers, context)
|
1705
1715
|
end
|
1706
1716
|
|
@@ -6,6 +6,38 @@
|
|
6
6
|
# WARNING ABOUT GENERATED CODE
|
7
7
|
|
8
8
|
module Aws::OpsWorksCM
|
9
|
+
|
10
|
+
# When OpsWorksCM returns an error response, the Ruby SDK constructs and raises an error.
|
11
|
+
# These errors all extend Aws::OpsWorksCM::Errors::ServiceError < {Aws::Errors::ServiceError}
|
12
|
+
#
|
13
|
+
# You can rescue all OpsWorksCM errors using ServiceError:
|
14
|
+
# begin
|
15
|
+
# # do stuff
|
16
|
+
# rescue Aws::OpsWorksCM::Errors::ServiceError
|
17
|
+
# # rescues all OpsWorksCM API errors
|
18
|
+
# end
|
19
|
+
#
|
20
|
+
# ## Request Context
|
21
|
+
# ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
|
22
|
+
# information about the request that generated the error, including:
|
23
|
+
# *
|
24
|
+
# * #params - The request params
|
25
|
+
# * #operation_name - Name of the API operation invoked
|
26
|
+
# * #http_request
|
27
|
+
# * #http_response
|
28
|
+
# * etc ...
|
29
|
+
#
|
30
|
+
# See {Seahorse::Client::RequestContext} for more information.
|
31
|
+
#
|
32
|
+
# ## Error Classes
|
33
|
+
# * {InvalidNextTokenException}
|
34
|
+
# * {InvalidStateException}
|
35
|
+
# * {LimitExceededException}
|
36
|
+
# * {ResourceAlreadyExistsException}
|
37
|
+
# * {ResourceNotFoundException}
|
38
|
+
# * {ValidationException}
|
39
|
+
# Additionally, error classes are dynamically generated for service errors based on the error code
|
40
|
+
# if they are not defined above.
|
9
41
|
module Errors
|
10
42
|
|
11
43
|
extend Aws::Errors::DynamicErrors
|
@@ -6,6 +6,13 @@
|
|
6
6
|
# WARNING ABOUT GENERATED CODE
|
7
7
|
|
8
8
|
module Aws::OpsWorksCM
|
9
|
+
# This class provides a resource oriented interface for OpsWorksCM.
|
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
|
class Resource
|
10
17
|
|
11
18
|
# @param options ({})
|
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.29.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-
|
11
|
+
date: 2020-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|