aws-sdk-migrationhubconfig 1.1.0 → 1.2.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-migrationhubconfig.rb +1 -1
- data/lib/aws-sdk-migrationhubconfig/client.rb +6 -6
- data/lib/aws-sdk-migrationhubconfig/client_api.rb +9 -0
- data/lib/aws-sdk-migrationhubconfig/errors.rb +21 -0
- data/lib/aws-sdk-migrationhubconfig/resource.rb +1 -7
- data/lib/aws-sdk-migrationhubconfig/types.rb +17 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9da8d319720ea03bf5d8ff1484c85e971753c4b110a6da023d6045619d43d573
|
4
|
+
data.tar.gz: d489895dd0fedaffd62a94ef7cdcd502461c84909537a05fd3eed29fb1cc630f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c7cb14b60766d8c2a7dad5cac56c9b6bb712dbd086ff9491757b8b1312d0629557c0e4d370c1890bf851188c3ec78eeaec5f6528c54f3e413b2fa00687e6bb0
|
7
|
+
data.tar.gz: a14ee10a061ae6dd852bbf7bb5cb9fbe394278f9edc46d0e928f36eec3688c76e96e763da6cee4e8f2aacdfbc619f94b8f2628eb1be1e6dd45a8d5ef0006d0b3
|
@@ -279,8 +279,7 @@ module Aws::MigrationHubConfig
|
|
279
279
|
#
|
280
280
|
# @option options [Integer] :http_read_timeout (60) The default
|
281
281
|
# number of seconds to wait for response data. This value can
|
282
|
-
# safely be set
|
283
|
-
# per-request on the session yielded by {#session_for}.
|
282
|
+
# safely be set per-request on the session.
|
284
283
|
#
|
285
284
|
# @option options [Float] :http_idle_timeout (5) The number of
|
286
285
|
# seconds a connection is allowed to sit idle before it is
|
@@ -292,7 +291,7 @@ module Aws::MigrationHubConfig
|
|
292
291
|
# request body. This option has no effect unless the request has
|
293
292
|
# "Expect" header set to "100-continue". Defaults to `nil` which
|
294
293
|
# disables this behaviour. This value can safely be set per
|
295
|
-
# request on the session
|
294
|
+
# request on the session.
|
296
295
|
#
|
297
296
|
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
298
297
|
# HTTP debug output will be sent to the `:logger`.
|
@@ -364,8 +363,7 @@ module Aws::MigrationHubConfig
|
|
364
363
|
req.send_request(options)
|
365
364
|
end
|
366
365
|
|
367
|
-
# This API permits filtering on the `ControlId
|
368
|
-
# `RegionControlScope` fields.
|
366
|
+
# This API permits filtering on the `ControlId` and `HomeRegion` fields.
|
369
367
|
#
|
370
368
|
# @option params [String] :control_id
|
371
369
|
# The `ControlID` is a unique identifier string of your
|
@@ -392,6 +390,8 @@ module Aws::MigrationHubConfig
|
|
392
390
|
# * {Types::DescribeHomeRegionControlsResult#home_region_controls #home_region_controls} => Array<Types::HomeRegionControl>
|
393
391
|
# * {Types::DescribeHomeRegionControlsResult#next_token #next_token} => String
|
394
392
|
#
|
393
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
394
|
+
#
|
395
395
|
# @example Request syntax with placeholder values
|
396
396
|
#
|
397
397
|
# resp = client.describe_home_region_controls({
|
@@ -461,7 +461,7 @@ module Aws::MigrationHubConfig
|
|
461
461
|
params: params,
|
462
462
|
config: config)
|
463
463
|
context[:gem_name] = 'aws-sdk-migrationhubconfig'
|
464
|
-
context[:gem_version] = '1.
|
464
|
+
context[:gem_version] = '1.2.0'
|
465
465
|
Seahorse::Client::Request.new(handlers, context)
|
466
466
|
end
|
467
467
|
|
@@ -29,10 +29,12 @@ module Aws::MigrationHubConfig
|
|
29
29
|
InternalServerError = Shapes::StructureShape.new(name: 'InternalServerError')
|
30
30
|
InvalidInputException = Shapes::StructureShape.new(name: 'InvalidInputException')
|
31
31
|
RequestedTime = Shapes::TimestampShape.new(name: 'RequestedTime')
|
32
|
+
RetryAfterSeconds = Shapes::IntegerShape.new(name: 'RetryAfterSeconds')
|
32
33
|
ServiceUnavailableException = Shapes::StructureShape.new(name: 'ServiceUnavailableException')
|
33
34
|
Target = Shapes::StructureShape.new(name: 'Target')
|
34
35
|
TargetId = Shapes::StringShape.new(name: 'TargetId')
|
35
36
|
TargetType = Shapes::StringShape.new(name: 'TargetType')
|
37
|
+
ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
|
36
38
|
Token = Shapes::StringShape.new(name: 'Token')
|
37
39
|
|
38
40
|
AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
@@ -86,6 +88,10 @@ module Aws::MigrationHubConfig
|
|
86
88
|
Target.add_member(:id, Shapes::ShapeRef.new(shape: TargetId, location_name: "Id"))
|
87
89
|
Target.struct_class = Types::Target
|
88
90
|
|
91
|
+
ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, required: true, location_name: "Message"))
|
92
|
+
ThrottlingException.add_member(:retry_after_seconds, Shapes::ShapeRef.new(shape: RetryAfterSeconds, location_name: "RetryAfterSeconds"))
|
93
|
+
ThrottlingException.struct_class = Types::ThrottlingException
|
94
|
+
|
89
95
|
|
90
96
|
# @api private
|
91
97
|
API = Seahorse::Model::Api.new.tap do |api|
|
@@ -114,6 +120,7 @@ module Aws::MigrationHubConfig
|
|
114
120
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
115
121
|
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
116
122
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
123
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
117
124
|
o.errors << Shapes::ShapeRef.new(shape: DryRunOperation)
|
118
125
|
o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
|
119
126
|
end)
|
@@ -127,6 +134,7 @@ module Aws::MigrationHubConfig
|
|
127
134
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
128
135
|
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
129
136
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
137
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
130
138
|
o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
|
131
139
|
o[:pager] = Aws::Pager.new(
|
132
140
|
limit_key: "max_results",
|
@@ -145,6 +153,7 @@ module Aws::MigrationHubConfig
|
|
145
153
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
146
154
|
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
147
155
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
156
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
148
157
|
o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
|
149
158
|
end)
|
150
159
|
end
|
@@ -30,6 +30,7 @@ module Aws::MigrationHubConfig
|
|
30
30
|
# * {InternalServerError}
|
31
31
|
# * {InvalidInputException}
|
32
32
|
# * {ServiceUnavailableException}
|
33
|
+
# * {ThrottlingException}
|
33
34
|
#
|
34
35
|
# Additionally, error classes are dynamically generated for service errors based on the error code
|
35
36
|
# if they are not defined above.
|
@@ -112,5 +113,25 @@ module Aws::MigrationHubConfig
|
|
112
113
|
end
|
113
114
|
end
|
114
115
|
|
116
|
+
class ThrottlingException < ServiceError
|
117
|
+
|
118
|
+
# @param [Seahorse::Client::RequestContext] context
|
119
|
+
# @param [String] message
|
120
|
+
# @param [Aws::MigrationHubConfig::Types::ThrottlingException] data
|
121
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
122
|
+
super(context, message, data)
|
123
|
+
end
|
124
|
+
|
125
|
+
# @return [String]
|
126
|
+
def message
|
127
|
+
@message || @data[:message]
|
128
|
+
end
|
129
|
+
|
130
|
+
# @return [String]
|
131
|
+
def retry_after_seconds
|
132
|
+
@data[:retry_after_seconds]
|
133
|
+
end
|
134
|
+
end
|
135
|
+
|
115
136
|
end
|
116
137
|
end
|
@@ -6,13 +6,7 @@
|
|
6
6
|
# WARNING ABOUT GENERATED CODE
|
7
7
|
|
8
8
|
module Aws::MigrationHubConfig
|
9
|
-
|
10
|
-
# To create a resource object:
|
11
|
-
# resource = Aws::MigrationHubConfig::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::MigrationHubConfig::Client.new(region: 'us-west-2')
|
15
|
-
# resource = Aws::MigrationHubConfig::Resource.new(client: client)
|
9
|
+
|
16
10
|
class Resource
|
17
11
|
|
18
12
|
# @param options ({})
|
@@ -270,5 +270,22 @@ module Aws::MigrationHubConfig
|
|
270
270
|
include Aws::Structure
|
271
271
|
end
|
272
272
|
|
273
|
+
# The request was denied due to request throttling.
|
274
|
+
#
|
275
|
+
# @!attribute [rw] message
|
276
|
+
# @return [String]
|
277
|
+
#
|
278
|
+
# @!attribute [rw] retry_after_seconds
|
279
|
+
# The number of seconds the caller should wait before retrying.
|
280
|
+
# @return [Integer]
|
281
|
+
#
|
282
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/migrationhub-config-2019-06-30/ThrottlingException AWS API Documentation
|
283
|
+
#
|
284
|
+
class ThrottlingException < Struct.new(
|
285
|
+
:message,
|
286
|
+
:retry_after_seconds)
|
287
|
+
include Aws::Structure
|
288
|
+
end
|
289
|
+
|
273
290
|
end
|
274
291
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-migrationhubconfig
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.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-04-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -80,7 +80,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
80
80
|
- !ruby/object:Gem::Version
|
81
81
|
version: '0'
|
82
82
|
requirements: []
|
83
|
-
|
83
|
+
rubyforge_project:
|
84
|
+
rubygems_version: 2.7.6.2
|
84
85
|
signing_key:
|
85
86
|
specification_version: 4
|
86
87
|
summary: AWS SDK for Ruby - AWS Migration Hub Config
|