aws-sdk-migrationhubconfig 1.3.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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: a250b6b0903ed5aa1fc3ffaf70c9dfa212d5e12c354b7cf8e2656bfd025e9373
4
+ data.tar.gz: 80f4d43654872ed6a907d4b3b1e5d2c36c5e7c87f881384ce6aae2e976a0c2a6
5
+ SHA512:
6
+ metadata.gz: 165c58a4dfb3dc4c67b639a96cf12b7104c92f1a0c8c38057b93ab03e01338d6b78acc677c9d186a976f99f119c1c4e3b7dce29fd11b9179320e4e90bbd03c96
7
+ data.tar.gz: '05954c54be6efcd6e77d827e0d0b5849280fd74ae7dbcff98ccb5c31ed819759802706f2f2f60e62ee0957b150642ce51cac1e6bffed3e96cbb1b4f0fae4a791'
@@ -0,0 +1,50 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ require 'aws-sdk-core'
9
+ require 'aws-sigv4'
10
+
11
+ require_relative 'aws-sdk-migrationhubconfig/types'
12
+ require_relative 'aws-sdk-migrationhubconfig/client_api'
13
+ require_relative 'aws-sdk-migrationhubconfig/client'
14
+ require_relative 'aws-sdk-migrationhubconfig/errors'
15
+ require_relative 'aws-sdk-migrationhubconfig/resource'
16
+ require_relative 'aws-sdk-migrationhubconfig/customizations'
17
+
18
+ # This module provides support for AWS Migration Hub Config. This module is available in the
19
+ # `aws-sdk-migrationhubconfig` gem.
20
+ #
21
+ # # Client
22
+ #
23
+ # The {Client} class provides one method for each API operation. Operation
24
+ # methods each accept a hash of request parameters and return a response
25
+ # structure.
26
+ #
27
+ # migration_hub_config = Aws::MigrationHubConfig::Client.new
28
+ # resp = migration_hub_config.create_home_region_control(params)
29
+ #
30
+ # See {Client} for more information.
31
+ #
32
+ # # Errors
33
+ #
34
+ # Errors returned from AWS Migration Hub Config are defined in the
35
+ # {Errors} module and all extend {Errors::ServiceError}.
36
+ #
37
+ # begin
38
+ # # do stuff
39
+ # rescue Aws::MigrationHubConfig::Errors::ServiceError
40
+ # # rescues all AWS Migration Hub Config API errors
41
+ # end
42
+ #
43
+ # See {Errors} for more information.
44
+ #
45
+ # @service
46
+ module Aws::MigrationHubConfig
47
+
48
+ GEM_VERSION = '1.3.0'
49
+
50
+ end
@@ -0,0 +1,486 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ require 'seahorse/client/plugins/content_length.rb'
9
+ require 'aws-sdk-core/plugins/credentials_configuration.rb'
10
+ require 'aws-sdk-core/plugins/logging.rb'
11
+ require 'aws-sdk-core/plugins/param_converter.rb'
12
+ require 'aws-sdk-core/plugins/param_validator.rb'
13
+ require 'aws-sdk-core/plugins/user_agent.rb'
14
+ require 'aws-sdk-core/plugins/helpful_socket_errors.rb'
15
+ require 'aws-sdk-core/plugins/retry_errors.rb'
16
+ require 'aws-sdk-core/plugins/global_configuration.rb'
17
+ require 'aws-sdk-core/plugins/regional_endpoint.rb'
18
+ require 'aws-sdk-core/plugins/endpoint_discovery.rb'
19
+ require 'aws-sdk-core/plugins/endpoint_pattern.rb'
20
+ require 'aws-sdk-core/plugins/response_paging.rb'
21
+ require 'aws-sdk-core/plugins/stub_responses.rb'
22
+ require 'aws-sdk-core/plugins/idempotency_token.rb'
23
+ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
24
+ require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
25
+ require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
26
+ require 'aws-sdk-core/plugins/transfer_encoding.rb'
27
+ require 'aws-sdk-core/plugins/signature_v4.rb'
28
+ require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
29
+
30
+ Aws::Plugins::GlobalConfiguration.add_identifier(:migrationhubconfig)
31
+
32
+ module Aws::MigrationHubConfig
33
+ # An API client for MigrationHubConfig. To construct a client, you need to configure a `:region` and `:credentials`.
34
+ #
35
+ # client = Aws::MigrationHubConfig::Client.new(
36
+ # region: region_name,
37
+ # credentials: credentials,
38
+ # # ...
39
+ # )
40
+ #
41
+ # For details on configuring region and credentials see
42
+ # the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
43
+ #
44
+ # See {#initialize} for a full list of supported configuration options.
45
+ class Client < Seahorse::Client::Base
46
+
47
+ include Aws::ClientStubs
48
+
49
+ @identifier = :migrationhubconfig
50
+
51
+ set_api(ClientApi::API)
52
+
53
+ add_plugin(Seahorse::Client::Plugins::ContentLength)
54
+ add_plugin(Aws::Plugins::CredentialsConfiguration)
55
+ add_plugin(Aws::Plugins::Logging)
56
+ add_plugin(Aws::Plugins::ParamConverter)
57
+ add_plugin(Aws::Plugins::ParamValidator)
58
+ add_plugin(Aws::Plugins::UserAgent)
59
+ add_plugin(Aws::Plugins::HelpfulSocketErrors)
60
+ add_plugin(Aws::Plugins::RetryErrors)
61
+ add_plugin(Aws::Plugins::GlobalConfiguration)
62
+ add_plugin(Aws::Plugins::RegionalEndpoint)
63
+ add_plugin(Aws::Plugins::EndpointDiscovery)
64
+ add_plugin(Aws::Plugins::EndpointPattern)
65
+ add_plugin(Aws::Plugins::ResponsePaging)
66
+ add_plugin(Aws::Plugins::StubResponses)
67
+ add_plugin(Aws::Plugins::IdempotencyToken)
68
+ add_plugin(Aws::Plugins::JsonvalueConverter)
69
+ add_plugin(Aws::Plugins::ClientMetricsPlugin)
70
+ add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
71
+ add_plugin(Aws::Plugins::TransferEncoding)
72
+ add_plugin(Aws::Plugins::SignatureV4)
73
+ add_plugin(Aws::Plugins::Protocols::JsonRpc)
74
+
75
+ # @overload initialize(options)
76
+ # @param [Hash] options
77
+ # @option options [required, Aws::CredentialProvider] :credentials
78
+ # Your AWS credentials. This can be an instance of any one of the
79
+ # following classes:
80
+ #
81
+ # * `Aws::Credentials` - Used for configuring static, non-refreshing
82
+ # credentials.
83
+ #
84
+ # * `Aws::InstanceProfileCredentials` - Used for loading credentials
85
+ # from an EC2 IMDS on an EC2 instance.
86
+ #
87
+ # * `Aws::SharedCredentials` - Used for loading credentials from a
88
+ # shared file, such as `~/.aws/config`.
89
+ #
90
+ # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
91
+ #
92
+ # When `:credentials` are not configured directly, the following
93
+ # locations will be searched for credentials:
94
+ #
95
+ # * `Aws.config[:credentials]`
96
+ # * The `:access_key_id`, `:secret_access_key`, and `:session_token` options.
97
+ # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
98
+ # * `~/.aws/credentials`
99
+ # * `~/.aws/config`
100
+ # * EC2 IMDS instance profile - When used by default, the timeouts are
101
+ # very aggressive. Construct and pass an instance of
102
+ # `Aws::InstanceProfileCredentails` to enable retries and extended
103
+ # timeouts.
104
+ #
105
+ # @option options [required, String] :region
106
+ # The AWS region to connect to. The configured `:region` is
107
+ # used to determine the service `:endpoint`. When not passed,
108
+ # a default `:region` is searched for in the following locations:
109
+ #
110
+ # * `Aws.config[:region]`
111
+ # * `ENV['AWS_REGION']`
112
+ # * `ENV['AMAZON_REGION']`
113
+ # * `ENV['AWS_DEFAULT_REGION']`
114
+ # * `~/.aws/credentials`
115
+ # * `~/.aws/config`
116
+ #
117
+ # @option options [String] :access_key_id
118
+ #
119
+ # @option options [Boolean] :active_endpoint_cache (false)
120
+ # When set to `true`, a thread polling for endpoints will be running in
121
+ # the background every 60 secs (default). Defaults to `false`.
122
+ #
123
+ # @option options [Boolean] :adaptive_retry_wait_to_fill (true)
124
+ # Used only in `adaptive` retry mode. When true, the request will sleep
125
+ # until there is sufficent client side capacity to retry the request.
126
+ # When false, the request will raise a `RetryCapacityNotAvailableError` and will
127
+ # not retry instead of sleeping.
128
+ #
129
+ # @option options [Boolean] :client_side_monitoring (false)
130
+ # When `true`, client-side metrics will be collected for all API requests from
131
+ # this client.
132
+ #
133
+ # @option options [String] :client_side_monitoring_client_id ("")
134
+ # Allows you to provide an identifier for this client which will be attached to
135
+ # all generated client side metrics. Defaults to an empty string.
136
+ #
137
+ # @option options [String] :client_side_monitoring_host ("127.0.0.1")
138
+ # Allows you to specify the DNS hostname or IPv4 or IPv6 address that the client
139
+ # side monitoring agent is running on, where client metrics will be published via UDP.
140
+ #
141
+ # @option options [Integer] :client_side_monitoring_port (31000)
142
+ # Required for publishing client metrics. The port that the client side monitoring
143
+ # agent is running on, where client metrics will be published via UDP.
144
+ #
145
+ # @option options [Aws::ClientSideMonitoring::Publisher] :client_side_monitoring_publisher (Aws::ClientSideMonitoring::Publisher)
146
+ # Allows you to provide a custom client-side monitoring publisher class. By default,
147
+ # will use the Client Side Monitoring Agent Publisher.
148
+ #
149
+ # @option options [Boolean] :convert_params (true)
150
+ # When `true`, an attempt is made to coerce request parameters into
151
+ # the required types.
152
+ #
153
+ # @option options [Boolean] :correct_clock_skew (true)
154
+ # Used only in `standard` and adaptive retry modes. Specifies whether to apply
155
+ # a clock skew correction and retry requests with skewed client clocks.
156
+ #
157
+ # @option options [Boolean] :disable_host_prefix_injection (false)
158
+ # Set to true to disable SDK automatically adding host prefix
159
+ # to default service endpoint when available.
160
+ #
161
+ # @option options [String] :endpoint
162
+ # The client endpoint is normally constructed from the `:region`
163
+ # option. You should only configure an `:endpoint` when connecting
164
+ # to test endpoints. This should be a valid HTTP(S) URI.
165
+ #
166
+ # @option options [Integer] :endpoint_cache_max_entries (1000)
167
+ # Used for the maximum size limit of the LRU cache storing endpoints data
168
+ # for endpoint discovery enabled operations. Defaults to 1000.
169
+ #
170
+ # @option options [Integer] :endpoint_cache_max_threads (10)
171
+ # Used for the maximum threads in use for polling endpoints to be cached, defaults to 10.
172
+ #
173
+ # @option options [Integer] :endpoint_cache_poll_interval (60)
174
+ # When :endpoint_discovery and :active_endpoint_cache is enabled,
175
+ # Use this option to config the time interval in seconds for making
176
+ # requests fetching endpoints information. Defaults to 60 sec.
177
+ #
178
+ # @option options [Boolean] :endpoint_discovery (false)
179
+ # When set to `true`, endpoint discovery will be enabled for operations when available. Defaults to `false`.
180
+ #
181
+ # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
182
+ # The log formatter.
183
+ #
184
+ # @option options [Symbol] :log_level (:info)
185
+ # The log level to send messages to the `:logger` at.
186
+ #
187
+ # @option options [Logger] :logger
188
+ # The Logger instance to send log messages to. If this option
189
+ # is not set, logging will be disabled.
190
+ #
191
+ # @option options [Integer] :max_attempts (3)
192
+ # An integer representing the maximum number attempts that will be made for
193
+ # a single request, including the initial attempt. For example,
194
+ # setting this value to 5 will result in a request being retried up to
195
+ # 4 times. Used in `standard` and `adaptive` retry modes.
196
+ #
197
+ # @option options [String] :profile ("default")
198
+ # Used when loading credentials from the shared credentials file
199
+ # at HOME/.aws/credentials. When not specified, 'default' is used.
200
+ #
201
+ # @option options [Proc] :retry_backoff
202
+ # A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
203
+ # This option is only used in the `legacy` retry mode.
204
+ #
205
+ # @option options [Float] :retry_base_delay (0.3)
206
+ # The base delay in seconds used by the default backoff function. This option
207
+ # is only used in the `legacy` retry mode.
208
+ #
209
+ # @option options [Symbol] :retry_jitter (:none)
210
+ # A delay randomiser function used by the default backoff function.
211
+ # Some predefined functions can be referenced by name - :none, :equal, :full,
212
+ # otherwise a Proc that takes and returns a number. This option is only used
213
+ # in the `legacy` retry mode.
214
+ #
215
+ # @see https://www.awsarchitectureblog.com/2015/03/backoff.html
216
+ #
217
+ # @option options [Integer] :retry_limit (3)
218
+ # The maximum number of times to retry failed requests. Only
219
+ # ~ 500 level server errors and certain ~ 400 level client errors
220
+ # are retried. Generally, these are throttling errors, data
221
+ # checksum errors, networking errors, timeout errors, auth errors,
222
+ # endpoint discovery, and errors from expired credentials.
223
+ # This option is only used in the `legacy` retry mode.
224
+ #
225
+ # @option options [Integer] :retry_max_delay (0)
226
+ # The maximum number of seconds to delay between retries (0 for no limit)
227
+ # used by the default backoff function. This option is only used in the
228
+ # `legacy` retry mode.
229
+ #
230
+ # @option options [String] :retry_mode ("legacy")
231
+ # Specifies which retry algorithm to use. Values are:
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
+ #
245
+ #
246
+ # @option options [String] :secret_access_key
247
+ #
248
+ # @option options [String] :session_token
249
+ #
250
+ # @option options [Boolean] :simple_json (false)
251
+ # Disables request parameter conversion, validation, and formatting.
252
+ # Also disable response data type conversions. This option is useful
253
+ # when you want to ensure the highest level of performance by
254
+ # avoiding overhead of walking request parameters and response data
255
+ # structures.
256
+ #
257
+ # When `:simple_json` is enabled, the request parameters hash must
258
+ # be formatted exactly as the DynamoDB API expects.
259
+ #
260
+ # @option options [Boolean] :stub_responses (false)
261
+ # Causes the client to return stubbed responses. By default
262
+ # fake responses are generated and returned. You can specify
263
+ # the response data to return or errors to raise by calling
264
+ # {ClientStubs#stub_responses}. See {ClientStubs} for more information.
265
+ #
266
+ # ** Please note ** When response stubbing is enabled, no HTTP
267
+ # requests are made, and retries are disabled.
268
+ #
269
+ # @option options [Boolean] :validate_params (true)
270
+ # When `true`, request parameters are validated before
271
+ # sending the request.
272
+ #
273
+ # @option options [URI::HTTP,String] :http_proxy A proxy to send
274
+ # requests through. Formatted like 'http://proxy.com:123'.
275
+ #
276
+ # @option options [Float] :http_open_timeout (15) The number of
277
+ # seconds to wait when opening a HTTP session before raising a
278
+ # `Timeout::Error`.
279
+ #
280
+ # @option options [Integer] :http_read_timeout (60) The default
281
+ # number of seconds to wait for response data. This value can
282
+ # safely be set per-request on the session.
283
+ #
284
+ # @option options [Float] :http_idle_timeout (5) The number of
285
+ # seconds a connection is allowed to sit idle before it is
286
+ # considered stale. Stale connections are closed and removed
287
+ # from the pool before making a request.
288
+ #
289
+ # @option options [Float] :http_continue_timeout (1) The number of
290
+ # seconds to wait for a 100-continue response before sending the
291
+ # request body. This option has no effect unless the request has
292
+ # "Expect" header set to "100-continue". Defaults to `nil` which
293
+ # disables this behaviour. This value can safely be set per
294
+ # request on the session.
295
+ #
296
+ # @option options [Boolean] :http_wire_trace (false) When `true`,
297
+ # HTTP debug output will be sent to the `:logger`.
298
+ #
299
+ # @option options [Boolean] :ssl_verify_peer (true) When `true`,
300
+ # SSL peer certificates are verified when establishing a
301
+ # connection.
302
+ #
303
+ # @option options [String] :ssl_ca_bundle Full path to the SSL
304
+ # certificate authority bundle file that should be used when
305
+ # verifying peer certificates. If you do not pass
306
+ # `:ssl_ca_bundle` or `:ssl_ca_directory` the the system default
307
+ # will be used if available.
308
+ #
309
+ # @option options [String] :ssl_ca_directory Full path of the
310
+ # directory that contains the unbundled SSL certificate
311
+ # authority files for verifying peer certificates. If you do
312
+ # not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the
313
+ # system default will be used if available.
314
+ #
315
+ def initialize(*args)
316
+ super
317
+ end
318
+
319
+ # @!group API Operations
320
+
321
+ # This API sets up the home region for the calling account only.
322
+ #
323
+ # @option params [required, String] :home_region
324
+ # The name of the home region of the calling account.
325
+ #
326
+ # @option params [required, Types::Target] :target
327
+ # The account for which this command sets up a home region control. The
328
+ # `Target` is always of type `ACCOUNT`.
329
+ #
330
+ # @option params [Boolean] :dry_run
331
+ # Optional Boolean flag to indicate whether any effect should take
332
+ # place. It tests whether the caller has permission to make the call.
333
+ #
334
+ # @return [Types::CreateHomeRegionControlResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
335
+ #
336
+ # * {Types::CreateHomeRegionControlResult#home_region_control #home_region_control} => Types::HomeRegionControl
337
+ #
338
+ # @example Request syntax with placeholder values
339
+ #
340
+ # resp = client.create_home_region_control({
341
+ # home_region: "HomeRegion", # required
342
+ # target: { # required
343
+ # type: "ACCOUNT", # required, accepts ACCOUNT
344
+ # id: "TargetId",
345
+ # },
346
+ # dry_run: false,
347
+ # })
348
+ #
349
+ # @example Response structure
350
+ #
351
+ # resp.home_region_control.control_id #=> String
352
+ # resp.home_region_control.home_region #=> String
353
+ # resp.home_region_control.target.type #=> String, one of "ACCOUNT"
354
+ # resp.home_region_control.target.id #=> String
355
+ # resp.home_region_control.requested_time #=> Time
356
+ #
357
+ # @see http://docs.aws.amazon.com/goto/WebAPI/migrationhub-config-2019-06-30/CreateHomeRegionControl AWS API Documentation
358
+ #
359
+ # @overload create_home_region_control(params = {})
360
+ # @param [Hash] params ({})
361
+ def create_home_region_control(params = {}, options = {})
362
+ req = build_request(:create_home_region_control, params)
363
+ req.send_request(options)
364
+ end
365
+
366
+ # This API permits filtering on the `ControlId` and `HomeRegion` fields.
367
+ #
368
+ # @option params [String] :control_id
369
+ # The `ControlID` is a unique identifier string of your
370
+ # `HomeRegionControl` object.
371
+ #
372
+ # @option params [String] :home_region
373
+ # The name of the home region you'd like to view.
374
+ #
375
+ # @option params [Types::Target] :target
376
+ # The target parameter specifies the identifier to which the home region
377
+ # is applied, which is always of type `ACCOUNT`. It applies the home
378
+ # region to the current `ACCOUNT`.
379
+ #
380
+ # @option params [Integer] :max_results
381
+ # The maximum number of filtering results to display per page.
382
+ #
383
+ # @option params [String] :next_token
384
+ # If a `NextToken` was returned by a previous call, more results are
385
+ # available. To retrieve the next page of results, make the call again
386
+ # using the returned token in `NextToken`.
387
+ #
388
+ # @return [Types::DescribeHomeRegionControlsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
389
+ #
390
+ # * {Types::DescribeHomeRegionControlsResult#home_region_controls #home_region_controls} => Array&lt;Types::HomeRegionControl&gt;
391
+ # * {Types::DescribeHomeRegionControlsResult#next_token #next_token} => String
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
+ # @example Request syntax with placeholder values
396
+ #
397
+ # resp = client.describe_home_region_controls({
398
+ # control_id: "ControlId",
399
+ # home_region: "HomeRegion",
400
+ # target: {
401
+ # type: "ACCOUNT", # required, accepts ACCOUNT
402
+ # id: "TargetId",
403
+ # },
404
+ # max_results: 1,
405
+ # next_token: "Token",
406
+ # })
407
+ #
408
+ # @example Response structure
409
+ #
410
+ # resp.home_region_controls #=> Array
411
+ # resp.home_region_controls[0].control_id #=> String
412
+ # resp.home_region_controls[0].home_region #=> String
413
+ # resp.home_region_controls[0].target.type #=> String, one of "ACCOUNT"
414
+ # resp.home_region_controls[0].target.id #=> String
415
+ # resp.home_region_controls[0].requested_time #=> Time
416
+ # resp.next_token #=> String
417
+ #
418
+ # @see http://docs.aws.amazon.com/goto/WebAPI/migrationhub-config-2019-06-30/DescribeHomeRegionControls AWS API Documentation
419
+ #
420
+ # @overload describe_home_region_controls(params = {})
421
+ # @param [Hash] params ({})
422
+ def describe_home_region_controls(params = {}, options = {})
423
+ req = build_request(:describe_home_region_controls, params)
424
+ req.send_request(options)
425
+ end
426
+
427
+ # Returns the calling account’s home region, if configured. This API is
428
+ # used by other AWS services to determine the regional endpoint for
429
+ # calling AWS Application Discovery Service and Migration Hub. You must
430
+ # call `GetHomeRegion` at least once before you call any other AWS
431
+ # Application Discovery Service and AWS Migration Hub APIs, to obtain
432
+ # the account's Migration Hub home region.
433
+ #
434
+ # @return [Types::GetHomeRegionResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
435
+ #
436
+ # * {Types::GetHomeRegionResult#home_region #home_region} => String
437
+ #
438
+ # @example Response structure
439
+ #
440
+ # resp.home_region #=> String
441
+ #
442
+ # @see http://docs.aws.amazon.com/goto/WebAPI/migrationhub-config-2019-06-30/GetHomeRegion AWS API Documentation
443
+ #
444
+ # @overload get_home_region(params = {})
445
+ # @param [Hash] params ({})
446
+ def get_home_region(params = {}, options = {})
447
+ req = build_request(:get_home_region, params)
448
+ req.send_request(options)
449
+ end
450
+
451
+ # @!endgroup
452
+
453
+ # @param params ({})
454
+ # @api private
455
+ def build_request(operation_name, params = {})
456
+ handlers = @handlers.for(operation_name)
457
+ context = Seahorse::Client::RequestContext.new(
458
+ operation_name: operation_name,
459
+ operation: config.api.operation(operation_name),
460
+ client: self,
461
+ params: params,
462
+ config: config)
463
+ context[:gem_name] = 'aws-sdk-migrationhubconfig'
464
+ context[:gem_version] = '1.3.0'
465
+ Seahorse::Client::Request.new(handlers, context)
466
+ end
467
+
468
+ # @api private
469
+ # @deprecated
470
+ def waiter_names
471
+ []
472
+ end
473
+
474
+ class << self
475
+
476
+ # @api private
477
+ attr_reader :identifier
478
+
479
+ # @api private
480
+ def errors_module
481
+ Errors
482
+ end
483
+
484
+ end
485
+ end
486
+ end
@@ -0,0 +1,162 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws::MigrationHubConfig
9
+ # @api private
10
+ module ClientApi
11
+
12
+ include Seahorse::Model
13
+
14
+ AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
15
+ ControlId = Shapes::StringShape.new(name: 'ControlId')
16
+ CreateHomeRegionControlRequest = Shapes::StructureShape.new(name: 'CreateHomeRegionControlRequest')
17
+ CreateHomeRegionControlResult = Shapes::StructureShape.new(name: 'CreateHomeRegionControlResult')
18
+ DescribeHomeRegionControlsMaxResults = Shapes::IntegerShape.new(name: 'DescribeHomeRegionControlsMaxResults')
19
+ DescribeHomeRegionControlsRequest = Shapes::StructureShape.new(name: 'DescribeHomeRegionControlsRequest')
20
+ DescribeHomeRegionControlsResult = Shapes::StructureShape.new(name: 'DescribeHomeRegionControlsResult')
21
+ DryRun = Shapes::BooleanShape.new(name: 'DryRun')
22
+ DryRunOperation = Shapes::StructureShape.new(name: 'DryRunOperation')
23
+ ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
24
+ GetHomeRegionRequest = Shapes::StructureShape.new(name: 'GetHomeRegionRequest')
25
+ GetHomeRegionResult = Shapes::StructureShape.new(name: 'GetHomeRegionResult')
26
+ HomeRegion = Shapes::StringShape.new(name: 'HomeRegion')
27
+ HomeRegionControl = Shapes::StructureShape.new(name: 'HomeRegionControl')
28
+ HomeRegionControls = Shapes::ListShape.new(name: 'HomeRegionControls')
29
+ InternalServerError = Shapes::StructureShape.new(name: 'InternalServerError')
30
+ InvalidInputException = Shapes::StructureShape.new(name: 'InvalidInputException')
31
+ RequestedTime = Shapes::TimestampShape.new(name: 'RequestedTime')
32
+ RetryAfterSeconds = Shapes::IntegerShape.new(name: 'RetryAfterSeconds')
33
+ ServiceUnavailableException = Shapes::StructureShape.new(name: 'ServiceUnavailableException')
34
+ Target = Shapes::StructureShape.new(name: 'Target')
35
+ TargetId = Shapes::StringShape.new(name: 'TargetId')
36
+ TargetType = Shapes::StringShape.new(name: 'TargetType')
37
+ ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
38
+ Token = Shapes::StringShape.new(name: 'Token')
39
+
40
+ AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
41
+ AccessDeniedException.struct_class = Types::AccessDeniedException
42
+
43
+ CreateHomeRegionControlRequest.add_member(:home_region, Shapes::ShapeRef.new(shape: HomeRegion, required: true, location_name: "HomeRegion"))
44
+ CreateHomeRegionControlRequest.add_member(:target, Shapes::ShapeRef.new(shape: Target, required: true, location_name: "Target"))
45
+ CreateHomeRegionControlRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: DryRun, location_name: "DryRun"))
46
+ CreateHomeRegionControlRequest.struct_class = Types::CreateHomeRegionControlRequest
47
+
48
+ CreateHomeRegionControlResult.add_member(:home_region_control, Shapes::ShapeRef.new(shape: HomeRegionControl, location_name: "HomeRegionControl"))
49
+ CreateHomeRegionControlResult.struct_class = Types::CreateHomeRegionControlResult
50
+
51
+ DescribeHomeRegionControlsRequest.add_member(:control_id, Shapes::ShapeRef.new(shape: ControlId, location_name: "ControlId"))
52
+ DescribeHomeRegionControlsRequest.add_member(:home_region, Shapes::ShapeRef.new(shape: HomeRegion, location_name: "HomeRegion"))
53
+ DescribeHomeRegionControlsRequest.add_member(:target, Shapes::ShapeRef.new(shape: Target, location_name: "Target"))
54
+ DescribeHomeRegionControlsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: DescribeHomeRegionControlsMaxResults, location_name: "MaxResults"))
55
+ DescribeHomeRegionControlsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
56
+ DescribeHomeRegionControlsRequest.struct_class = Types::DescribeHomeRegionControlsRequest
57
+
58
+ DescribeHomeRegionControlsResult.add_member(:home_region_controls, Shapes::ShapeRef.new(shape: HomeRegionControls, location_name: "HomeRegionControls"))
59
+ DescribeHomeRegionControlsResult.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
60
+ DescribeHomeRegionControlsResult.struct_class = Types::DescribeHomeRegionControlsResult
61
+
62
+ DryRunOperation.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
63
+ DryRunOperation.struct_class = Types::DryRunOperation
64
+
65
+ GetHomeRegionRequest.struct_class = Types::GetHomeRegionRequest
66
+
67
+ GetHomeRegionResult.add_member(:home_region, Shapes::ShapeRef.new(shape: HomeRegion, location_name: "HomeRegion"))
68
+ GetHomeRegionResult.struct_class = Types::GetHomeRegionResult
69
+
70
+ HomeRegionControl.add_member(:control_id, Shapes::ShapeRef.new(shape: ControlId, location_name: "ControlId"))
71
+ HomeRegionControl.add_member(:home_region, Shapes::ShapeRef.new(shape: HomeRegion, location_name: "HomeRegion"))
72
+ HomeRegionControl.add_member(:target, Shapes::ShapeRef.new(shape: Target, location_name: "Target"))
73
+ HomeRegionControl.add_member(:requested_time, Shapes::ShapeRef.new(shape: RequestedTime, location_name: "RequestedTime"))
74
+ HomeRegionControl.struct_class = Types::HomeRegionControl
75
+
76
+ HomeRegionControls.member = Shapes::ShapeRef.new(shape: HomeRegionControl)
77
+
78
+ InternalServerError.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
79
+ InternalServerError.struct_class = Types::InternalServerError
80
+
81
+ InvalidInputException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
82
+ InvalidInputException.struct_class = Types::InvalidInputException
83
+
84
+ ServiceUnavailableException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
85
+ ServiceUnavailableException.struct_class = Types::ServiceUnavailableException
86
+
87
+ Target.add_member(:type, Shapes::ShapeRef.new(shape: TargetType, required: true, location_name: "Type"))
88
+ Target.add_member(:id, Shapes::ShapeRef.new(shape: TargetId, location_name: "Id"))
89
+ Target.struct_class = Types::Target
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
+
95
+
96
+ # @api private
97
+ API = Seahorse::Model::Api.new.tap do |api|
98
+
99
+ api.version = "2019-06-30"
100
+
101
+ api.metadata = {
102
+ "apiVersion" => "2019-06-30",
103
+ "endpointPrefix" => "migrationhub-config",
104
+ "jsonVersion" => "1.1",
105
+ "protocol" => "json",
106
+ "serviceFullName" => "AWS Migration Hub Config",
107
+ "serviceId" => "MigrationHub Config",
108
+ "signatureVersion" => "v4",
109
+ "signingName" => "mgh",
110
+ "targetPrefix" => "AWSMigrationHubMultiAccountService",
111
+ "uid" => "migrationhub-config-2019-06-30",
112
+ }
113
+
114
+ api.add_operation(:create_home_region_control, Seahorse::Model::Operation.new.tap do |o|
115
+ o.name = "CreateHomeRegionControl"
116
+ o.http_method = "POST"
117
+ o.http_request_uri = "/"
118
+ o.input = Shapes::ShapeRef.new(shape: CreateHomeRegionControlRequest)
119
+ o.output = Shapes::ShapeRef.new(shape: CreateHomeRegionControlResult)
120
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
121
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
122
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
123
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
124
+ o.errors << Shapes::ShapeRef.new(shape: DryRunOperation)
125
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
126
+ end)
127
+
128
+ api.add_operation(:describe_home_region_controls, Seahorse::Model::Operation.new.tap do |o|
129
+ o.name = "DescribeHomeRegionControls"
130
+ o.http_method = "POST"
131
+ o.http_request_uri = "/"
132
+ o.input = Shapes::ShapeRef.new(shape: DescribeHomeRegionControlsRequest)
133
+ o.output = Shapes::ShapeRef.new(shape: DescribeHomeRegionControlsResult)
134
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
135
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
136
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
137
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
138
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
139
+ o[:pager] = Aws::Pager.new(
140
+ limit_key: "max_results",
141
+ tokens: {
142
+ "next_token" => "next_token"
143
+ }
144
+ )
145
+ end)
146
+
147
+ api.add_operation(:get_home_region, Seahorse::Model::Operation.new.tap do |o|
148
+ o.name = "GetHomeRegion"
149
+ o.http_method = "POST"
150
+ o.http_request_uri = "/"
151
+ o.input = Shapes::ShapeRef.new(shape: GetHomeRegionRequest)
152
+ o.output = Shapes::ShapeRef.new(shape: GetHomeRegionResult)
153
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
154
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
155
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
156
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
157
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
158
+ end)
159
+ end
160
+
161
+ end
162
+ end
@@ -0,0 +1,137 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws::MigrationHubConfig
9
+
10
+ # When MigrationHubConfig returns an error response, the Ruby SDK constructs and raises an error.
11
+ # These errors all extend Aws::MigrationHubConfig::Errors::ServiceError < {Aws::Errors::ServiceError}
12
+ #
13
+ # You can rescue all MigrationHubConfig errors using ServiceError:
14
+ #
15
+ # begin
16
+ # # do stuff
17
+ # rescue Aws::MigrationHubConfig::Errors::ServiceError
18
+ # # rescues all MigrationHubConfig API errors
19
+ # end
20
+ #
21
+ #
22
+ # ## Request Context
23
+ # ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
24
+ # information about the request that generated the error.
25
+ # See {Seahorse::Client::RequestContext} for more information.
26
+ #
27
+ # ## Error Classes
28
+ # * {AccessDeniedException}
29
+ # * {DryRunOperation}
30
+ # * {InternalServerError}
31
+ # * {InvalidInputException}
32
+ # * {ServiceUnavailableException}
33
+ # * {ThrottlingException}
34
+ #
35
+ # Additionally, error classes are dynamically generated for service errors based on the error code
36
+ # if they are not defined above.
37
+ module Errors
38
+
39
+ extend Aws::Errors::DynamicErrors
40
+
41
+ class AccessDeniedException < ServiceError
42
+
43
+ # @param [Seahorse::Client::RequestContext] context
44
+ # @param [String] message
45
+ # @param [Aws::MigrationHubConfig::Types::AccessDeniedException] data
46
+ def initialize(context, message, data = Aws::EmptyStructure.new)
47
+ super(context, message, data)
48
+ end
49
+
50
+ # @return [String]
51
+ def message
52
+ @message || @data[:message]
53
+ end
54
+ end
55
+
56
+ class DryRunOperation < ServiceError
57
+
58
+ # @param [Seahorse::Client::RequestContext] context
59
+ # @param [String] message
60
+ # @param [Aws::MigrationHubConfig::Types::DryRunOperation] data
61
+ def initialize(context, message, data = Aws::EmptyStructure.new)
62
+ super(context, message, data)
63
+ end
64
+
65
+ # @return [String]
66
+ def message
67
+ @message || @data[:message]
68
+ end
69
+ end
70
+
71
+ class InternalServerError < ServiceError
72
+
73
+ # @param [Seahorse::Client::RequestContext] context
74
+ # @param [String] message
75
+ # @param [Aws::MigrationHubConfig::Types::InternalServerError] data
76
+ def initialize(context, message, data = Aws::EmptyStructure.new)
77
+ super(context, message, data)
78
+ end
79
+
80
+ # @return [String]
81
+ def message
82
+ @message || @data[:message]
83
+ end
84
+ end
85
+
86
+ class InvalidInputException < ServiceError
87
+
88
+ # @param [Seahorse::Client::RequestContext] context
89
+ # @param [String] message
90
+ # @param [Aws::MigrationHubConfig::Types::InvalidInputException] data
91
+ def initialize(context, message, data = Aws::EmptyStructure.new)
92
+ super(context, message, data)
93
+ end
94
+
95
+ # @return [String]
96
+ def message
97
+ @message || @data[:message]
98
+ end
99
+ end
100
+
101
+ class ServiceUnavailableException < ServiceError
102
+
103
+ # @param [Seahorse::Client::RequestContext] context
104
+ # @param [String] message
105
+ # @param [Aws::MigrationHubConfig::Types::ServiceUnavailableException] data
106
+ def initialize(context, message, data = Aws::EmptyStructure.new)
107
+ super(context, message, data)
108
+ end
109
+
110
+ # @return [String]
111
+ def message
112
+ @message || @data[:message]
113
+ end
114
+ end
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
+
136
+ end
137
+ end
@@ -0,0 +1,24 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws::MigrationHubConfig
9
+
10
+ class Resource
11
+
12
+ # @param options ({})
13
+ # @option options [Client] :client
14
+ def initialize(options = {})
15
+ @client = options[:client] || Client.new(options)
16
+ end
17
+
18
+ # @return [Client]
19
+ def client
20
+ @client
21
+ end
22
+
23
+ end
24
+ end
@@ -0,0 +1,291 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws::MigrationHubConfig
9
+ module Types
10
+
11
+ # You do not have sufficient access to perform this action.
12
+ #
13
+ # @!attribute [rw] message
14
+ # @return [String]
15
+ #
16
+ # @see http://docs.aws.amazon.com/goto/WebAPI/migrationhub-config-2019-06-30/AccessDeniedException AWS API Documentation
17
+ #
18
+ class AccessDeniedException < Struct.new(
19
+ :message)
20
+ include Aws::Structure
21
+ end
22
+
23
+ # @note When making an API call, you may pass CreateHomeRegionControlRequest
24
+ # data as a hash:
25
+ #
26
+ # {
27
+ # home_region: "HomeRegion", # required
28
+ # target: { # required
29
+ # type: "ACCOUNT", # required, accepts ACCOUNT
30
+ # id: "TargetId",
31
+ # },
32
+ # dry_run: false,
33
+ # }
34
+ #
35
+ # @!attribute [rw] home_region
36
+ # The name of the home region of the calling account.
37
+ # @return [String]
38
+ #
39
+ # @!attribute [rw] target
40
+ # The account for which this command sets up a home region control.
41
+ # The `Target` is always of type `ACCOUNT`.
42
+ # @return [Types::Target]
43
+ #
44
+ # @!attribute [rw] dry_run
45
+ # Optional Boolean flag to indicate whether any effect should take
46
+ # place. It tests whether the caller has permission to make the call.
47
+ # @return [Boolean]
48
+ #
49
+ # @see http://docs.aws.amazon.com/goto/WebAPI/migrationhub-config-2019-06-30/CreateHomeRegionControlRequest AWS API Documentation
50
+ #
51
+ class CreateHomeRegionControlRequest < Struct.new(
52
+ :home_region,
53
+ :target,
54
+ :dry_run)
55
+ include Aws::Structure
56
+ end
57
+
58
+ # @!attribute [rw] home_region_control
59
+ # This object is the `HomeRegionControl` object that's returned by a
60
+ # successful call to `CreateHomeRegionControl`.
61
+ # @return [Types::HomeRegionControl]
62
+ #
63
+ # @see http://docs.aws.amazon.com/goto/WebAPI/migrationhub-config-2019-06-30/CreateHomeRegionControlResult AWS API Documentation
64
+ #
65
+ class CreateHomeRegionControlResult < Struct.new(
66
+ :home_region_control)
67
+ include Aws::Structure
68
+ end
69
+
70
+ # @note When making an API call, you may pass DescribeHomeRegionControlsRequest
71
+ # data as a hash:
72
+ #
73
+ # {
74
+ # control_id: "ControlId",
75
+ # home_region: "HomeRegion",
76
+ # target: {
77
+ # type: "ACCOUNT", # required, accepts ACCOUNT
78
+ # id: "TargetId",
79
+ # },
80
+ # max_results: 1,
81
+ # next_token: "Token",
82
+ # }
83
+ #
84
+ # @!attribute [rw] control_id
85
+ # The `ControlID` is a unique identifier string of your
86
+ # `HomeRegionControl` object.
87
+ # @return [String]
88
+ #
89
+ # @!attribute [rw] home_region
90
+ # The name of the home region you'd like to view.
91
+ # @return [String]
92
+ #
93
+ # @!attribute [rw] target
94
+ # The target parameter specifies the identifier to which the home
95
+ # region is applied, which is always of type `ACCOUNT`. It applies the
96
+ # home region to the current `ACCOUNT`.
97
+ # @return [Types::Target]
98
+ #
99
+ # @!attribute [rw] max_results
100
+ # The maximum number of filtering results to display per page.
101
+ # @return [Integer]
102
+ #
103
+ # @!attribute [rw] next_token
104
+ # If a `NextToken` was returned by a previous call, more results are
105
+ # available. To retrieve the next page of results, make the call again
106
+ # using the returned token in `NextToken`.
107
+ # @return [String]
108
+ #
109
+ # @see http://docs.aws.amazon.com/goto/WebAPI/migrationhub-config-2019-06-30/DescribeHomeRegionControlsRequest AWS API Documentation
110
+ #
111
+ class DescribeHomeRegionControlsRequest < Struct.new(
112
+ :control_id,
113
+ :home_region,
114
+ :target,
115
+ :max_results,
116
+ :next_token)
117
+ include Aws::Structure
118
+ end
119
+
120
+ # @!attribute [rw] home_region_controls
121
+ # An array that contains your `HomeRegionControl` objects.
122
+ # @return [Array<Types::HomeRegionControl>]
123
+ #
124
+ # @!attribute [rw] next_token
125
+ # If a `NextToken` was returned by a previous call, more results are
126
+ # available. To retrieve the next page of results, make the call again
127
+ # using the returned token in `NextToken`.
128
+ # @return [String]
129
+ #
130
+ # @see http://docs.aws.amazon.com/goto/WebAPI/migrationhub-config-2019-06-30/DescribeHomeRegionControlsResult AWS API Documentation
131
+ #
132
+ class DescribeHomeRegionControlsResult < Struct.new(
133
+ :home_region_controls,
134
+ :next_token)
135
+ include Aws::Structure
136
+ end
137
+
138
+ # Exception raised to indicate that authorization of an action was
139
+ # successful, when the `DryRun` flag is set to true.
140
+ #
141
+ # @!attribute [rw] message
142
+ # @return [String]
143
+ #
144
+ # @see http://docs.aws.amazon.com/goto/WebAPI/migrationhub-config-2019-06-30/DryRunOperation AWS API Documentation
145
+ #
146
+ class DryRunOperation < Struct.new(
147
+ :message)
148
+ include Aws::Structure
149
+ end
150
+
151
+ # @api private
152
+ #
153
+ # @see http://docs.aws.amazon.com/goto/WebAPI/migrationhub-config-2019-06-30/GetHomeRegionRequest AWS API Documentation
154
+ #
155
+ class GetHomeRegionRequest < Aws::EmptyStructure; end
156
+
157
+ # @!attribute [rw] home_region
158
+ # The name of the home region of the calling account.
159
+ # @return [String]
160
+ #
161
+ # @see http://docs.aws.amazon.com/goto/WebAPI/migrationhub-config-2019-06-30/GetHomeRegionResult AWS API Documentation
162
+ #
163
+ class GetHomeRegionResult < Struct.new(
164
+ :home_region)
165
+ include Aws::Structure
166
+ end
167
+
168
+ # A home region control is an object that specifies the home region for
169
+ # an account, with some additional information. It contains a target
170
+ # (always of type `ACCOUNT`), an ID, and a time at which the home region
171
+ # was set.
172
+ #
173
+ # @!attribute [rw] control_id
174
+ # A unique identifier that's generated for each home region control.
175
+ # It's always a string that begins with "hrc-" followed by 12
176
+ # lowercase letters and numbers.
177
+ # @return [String]
178
+ #
179
+ # @!attribute [rw] home_region
180
+ # The AWS Region that's been set as home region. For example,
181
+ # "us-west-2" or "eu-central-1" are valid home regions.
182
+ # @return [String]
183
+ #
184
+ # @!attribute [rw] target
185
+ # The target parameter specifies the identifier to which the home
186
+ # region is applied, which is always an `ACCOUNT`. It applies the home
187
+ # region to the current `ACCOUNT`.
188
+ # @return [Types::Target]
189
+ #
190
+ # @!attribute [rw] requested_time
191
+ # A timestamp representing the time when the customer called
192
+ # `CreateHomeregionControl` and set the home region for the account.
193
+ # @return [Time]
194
+ #
195
+ # @see http://docs.aws.amazon.com/goto/WebAPI/migrationhub-config-2019-06-30/HomeRegionControl AWS API Documentation
196
+ #
197
+ class HomeRegionControl < Struct.new(
198
+ :control_id,
199
+ :home_region,
200
+ :target,
201
+ :requested_time)
202
+ include Aws::Structure
203
+ end
204
+
205
+ # Exception raised when an internal, configuration, or dependency error
206
+ # is encountered.
207
+ #
208
+ # @!attribute [rw] message
209
+ # @return [String]
210
+ #
211
+ # @see http://docs.aws.amazon.com/goto/WebAPI/migrationhub-config-2019-06-30/InternalServerError AWS API Documentation
212
+ #
213
+ class InternalServerError < Struct.new(
214
+ :message)
215
+ include Aws::Structure
216
+ end
217
+
218
+ # Exception raised when the provided input violates a policy constraint
219
+ # or is entered in the wrong format or data type.
220
+ #
221
+ # @!attribute [rw] message
222
+ # @return [String]
223
+ #
224
+ # @see http://docs.aws.amazon.com/goto/WebAPI/migrationhub-config-2019-06-30/InvalidInputException AWS API Documentation
225
+ #
226
+ class InvalidInputException < Struct.new(
227
+ :message)
228
+ include Aws::Structure
229
+ end
230
+
231
+ # Exception raised when a request fails due to temporary unavailability
232
+ # of the service.
233
+ #
234
+ # @!attribute [rw] message
235
+ # @return [String]
236
+ #
237
+ # @see http://docs.aws.amazon.com/goto/WebAPI/migrationhub-config-2019-06-30/ServiceUnavailableException AWS API Documentation
238
+ #
239
+ class ServiceUnavailableException < Struct.new(
240
+ :message)
241
+ include Aws::Structure
242
+ end
243
+
244
+ # The target parameter specifies the identifier to which the home region
245
+ # is applied, which is always an `ACCOUNT`. It applies the home region
246
+ # to the current `ACCOUNT`.
247
+ #
248
+ # @note When making an API call, you may pass Target
249
+ # data as a hash:
250
+ #
251
+ # {
252
+ # type: "ACCOUNT", # required, accepts ACCOUNT
253
+ # id: "TargetId",
254
+ # }
255
+ #
256
+ # @!attribute [rw] type
257
+ # The target type is always an `ACCOUNT`.
258
+ # @return [String]
259
+ #
260
+ # @!attribute [rw] id
261
+ # The `TargetID` is a 12-character identifier of the `ACCOUNT` for
262
+ # which the control was created. (This must be the current account.)
263
+ # @return [String]
264
+ #
265
+ # @see http://docs.aws.amazon.com/goto/WebAPI/migrationhub-config-2019-06-30/Target AWS API Documentation
266
+ #
267
+ class Target < Struct.new(
268
+ :type,
269
+ :id)
270
+ include Aws::Structure
271
+ end
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
+
290
+ end
291
+ end
metadata ADDED
@@ -0,0 +1,88 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: aws-sdk-migrationhubconfig
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.3.0
5
+ platform: ruby
6
+ authors:
7
+ - Amazon Web Services
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2020-05-07 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: aws-sdk-core
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '3'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 3.71.0
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '3'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 3.71.0
33
+ - !ruby/object:Gem::Dependency
34
+ name: aws-sigv4
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '1.1'
40
+ type: :runtime
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '1.1'
47
+ description: Official AWS Ruby gem for AWS Migration Hub Config. This gem is part
48
+ of the AWS SDK for Ruby.
49
+ email:
50
+ - trevrowe@amazon.com
51
+ executables: []
52
+ extensions: []
53
+ extra_rdoc_files: []
54
+ files:
55
+ - lib/aws-sdk-migrationhubconfig.rb
56
+ - lib/aws-sdk-migrationhubconfig/client.rb
57
+ - lib/aws-sdk-migrationhubconfig/client_api.rb
58
+ - lib/aws-sdk-migrationhubconfig/customizations.rb
59
+ - lib/aws-sdk-migrationhubconfig/errors.rb
60
+ - lib/aws-sdk-migrationhubconfig/resource.rb
61
+ - lib/aws-sdk-migrationhubconfig/types.rb
62
+ homepage: https://github.com/aws/aws-sdk-ruby
63
+ licenses:
64
+ - Apache-2.0
65
+ metadata:
66
+ source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/master/gems/aws-sdk-migrationhubconfig
67
+ changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/master/gems/aws-sdk-migrationhubconfig/CHANGELOG.md
68
+ post_install_message:
69
+ rdoc_options: []
70
+ require_paths:
71
+ - lib
72
+ required_ruby_version: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ required_rubygems_version: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ version: '0'
82
+ requirements: []
83
+ rubyforge_project:
84
+ rubygems_version: 2.7.6.2
85
+ signing_key:
86
+ specification_version: 4
87
+ summary: AWS SDK for Ruby - AWS Migration Hub Config
88
+ test_files: []