aws-sdk-migrationhubconfig 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/aws-sdk-migrationhubconfig.rb +47 -0
- data/lib/aws-sdk-migrationhubconfig/client.rb +431 -0
- data/lib/aws-sdk-migrationhubconfig/client_api.rb +153 -0
- data/lib/aws-sdk-migrationhubconfig/customizations.rb +0 -0
- data/lib/aws-sdk-migrationhubconfig/errors.rb +94 -0
- data/lib/aws-sdk-migrationhubconfig/resource.rb +23 -0
- data/lib/aws-sdk-migrationhubconfig/types.rb +274 -0
- metadata +88 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: cfdc57e8dc936cbea164122b53fe6daff3cc95a1
|
4
|
+
data.tar.gz: dd0c095c8373b49eeb90b7fd1d8865d1f3bc2558
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 4209011de1230ff27fac78671b74418f66262cf10009bdb2c32ad405d3ccddc615b95fe1b287f243e83b41fee57256d2b809deab04d80e47889ff86beeddff6d
|
7
|
+
data.tar.gz: 0077d560cfea7a0d18c341349b0250ee7a0239e44b9c539d5b096cfff2195cd67d5c743fdf311cb427aed6265f6d9aebe2d1347cfa50c61a948fd7cb7c6873fe
|
@@ -0,0 +1,47 @@
|
|
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
|
+
# See {Client} for more information.
|
28
|
+
#
|
29
|
+
# # Errors
|
30
|
+
#
|
31
|
+
# Errors returned from AWS Migration Hub Config all
|
32
|
+
# extend {Errors::ServiceError}.
|
33
|
+
#
|
34
|
+
# begin
|
35
|
+
# # do stuff
|
36
|
+
# rescue Aws::MigrationHubConfig::Errors::ServiceError
|
37
|
+
# # rescues all service API errors
|
38
|
+
# end
|
39
|
+
#
|
40
|
+
# See {Errors} for more information.
|
41
|
+
#
|
42
|
+
# @service
|
43
|
+
module Aws::MigrationHubConfig
|
44
|
+
|
45
|
+
GEM_VERSION = '1.0.0'
|
46
|
+
|
47
|
+
end
|
@@ -0,0 +1,431 @@
|
|
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
|
+
class Client < Seahorse::Client::Base
|
34
|
+
|
35
|
+
include Aws::ClientStubs
|
36
|
+
|
37
|
+
@identifier = :migrationhubconfig
|
38
|
+
|
39
|
+
set_api(ClientApi::API)
|
40
|
+
|
41
|
+
add_plugin(Seahorse::Client::Plugins::ContentLength)
|
42
|
+
add_plugin(Aws::Plugins::CredentialsConfiguration)
|
43
|
+
add_plugin(Aws::Plugins::Logging)
|
44
|
+
add_plugin(Aws::Plugins::ParamConverter)
|
45
|
+
add_plugin(Aws::Plugins::ParamValidator)
|
46
|
+
add_plugin(Aws::Plugins::UserAgent)
|
47
|
+
add_plugin(Aws::Plugins::HelpfulSocketErrors)
|
48
|
+
add_plugin(Aws::Plugins::RetryErrors)
|
49
|
+
add_plugin(Aws::Plugins::GlobalConfiguration)
|
50
|
+
add_plugin(Aws::Plugins::RegionalEndpoint)
|
51
|
+
add_plugin(Aws::Plugins::EndpointDiscovery)
|
52
|
+
add_plugin(Aws::Plugins::EndpointPattern)
|
53
|
+
add_plugin(Aws::Plugins::ResponsePaging)
|
54
|
+
add_plugin(Aws::Plugins::StubResponses)
|
55
|
+
add_plugin(Aws::Plugins::IdempotencyToken)
|
56
|
+
add_plugin(Aws::Plugins::JsonvalueConverter)
|
57
|
+
add_plugin(Aws::Plugins::ClientMetricsPlugin)
|
58
|
+
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
59
|
+
add_plugin(Aws::Plugins::TransferEncoding)
|
60
|
+
add_plugin(Aws::Plugins::SignatureV4)
|
61
|
+
add_plugin(Aws::Plugins::Protocols::JsonRpc)
|
62
|
+
|
63
|
+
# @overload initialize(options)
|
64
|
+
# @param [Hash] options
|
65
|
+
# @option options [required, Aws::CredentialProvider] :credentials
|
66
|
+
# Your AWS credentials. This can be an instance of any one of the
|
67
|
+
# following classes:
|
68
|
+
#
|
69
|
+
# * `Aws::Credentials` - Used for configuring static, non-refreshing
|
70
|
+
# credentials.
|
71
|
+
#
|
72
|
+
# * `Aws::InstanceProfileCredentials` - Used for loading credentials
|
73
|
+
# from an EC2 IMDS on an EC2 instance.
|
74
|
+
#
|
75
|
+
# * `Aws::SharedCredentials` - Used for loading credentials from a
|
76
|
+
# shared file, such as `~/.aws/config`.
|
77
|
+
#
|
78
|
+
# * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
|
79
|
+
#
|
80
|
+
# When `:credentials` are not configured directly, the following
|
81
|
+
# locations will be searched for credentials:
|
82
|
+
#
|
83
|
+
# * `Aws.config[:credentials]`
|
84
|
+
# * The `:access_key_id`, `:secret_access_key`, and `:session_token` options.
|
85
|
+
# * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
|
86
|
+
# * `~/.aws/credentials`
|
87
|
+
# * `~/.aws/config`
|
88
|
+
# * EC2 IMDS instance profile - When used by default, the timeouts are
|
89
|
+
# very aggressive. Construct and pass an instance of
|
90
|
+
# `Aws::InstanceProfileCredentails` to enable retries and extended
|
91
|
+
# timeouts.
|
92
|
+
#
|
93
|
+
# @option options [required, String] :region
|
94
|
+
# The AWS region to connect to. The configured `:region` is
|
95
|
+
# used to determine the service `:endpoint`. When not passed,
|
96
|
+
# a default `:region` is search for in the following locations:
|
97
|
+
#
|
98
|
+
# * `Aws.config[:region]`
|
99
|
+
# * `ENV['AWS_REGION']`
|
100
|
+
# * `ENV['AMAZON_REGION']`
|
101
|
+
# * `ENV['AWS_DEFAULT_REGION']`
|
102
|
+
# * `~/.aws/credentials`
|
103
|
+
# * `~/.aws/config`
|
104
|
+
#
|
105
|
+
# @option options [String] :access_key_id
|
106
|
+
#
|
107
|
+
# @option options [Boolean] :active_endpoint_cache (false)
|
108
|
+
# When set to `true`, a thread polling for endpoints will be running in
|
109
|
+
# the background every 60 secs (default). Defaults to `false`.
|
110
|
+
#
|
111
|
+
# @option options [Boolean] :client_side_monitoring (false)
|
112
|
+
# When `true`, client-side metrics will be collected for all API requests from
|
113
|
+
# this client.
|
114
|
+
#
|
115
|
+
# @option options [String] :client_side_monitoring_client_id ("")
|
116
|
+
# Allows you to provide an identifier for this client which will be attached to
|
117
|
+
# all generated client side metrics. Defaults to an empty string.
|
118
|
+
#
|
119
|
+
# @option options [String] :client_side_monitoring_host ("127.0.0.1")
|
120
|
+
# Allows you to specify the DNS hostname or IPv4 or IPv6 address that the client
|
121
|
+
# side monitoring agent is running on, where client metrics will be published via UDP.
|
122
|
+
#
|
123
|
+
# @option options [Integer] :client_side_monitoring_port (31000)
|
124
|
+
# Required for publishing client metrics. The port that the client side monitoring
|
125
|
+
# agent is running on, where client metrics will be published via UDP.
|
126
|
+
#
|
127
|
+
# @option options [Aws::ClientSideMonitoring::Publisher] :client_side_monitoring_publisher (Aws::ClientSideMonitoring::Publisher)
|
128
|
+
# Allows you to provide a custom client-side monitoring publisher class. By default,
|
129
|
+
# will use the Client Side Monitoring Agent Publisher.
|
130
|
+
#
|
131
|
+
# @option options [Boolean] :convert_params (true)
|
132
|
+
# When `true`, an attempt is made to coerce request parameters into
|
133
|
+
# the required types.
|
134
|
+
#
|
135
|
+
# @option options [Boolean] :disable_host_prefix_injection (false)
|
136
|
+
# Set to true to disable SDK automatically adding host prefix
|
137
|
+
# to default service endpoint when available.
|
138
|
+
#
|
139
|
+
# @option options [String] :endpoint
|
140
|
+
# The client endpoint is normally constructed from the `:region`
|
141
|
+
# option. You should only configure an `:endpoint` when connecting
|
142
|
+
# to test endpoints. This should be avalid HTTP(S) URI.
|
143
|
+
#
|
144
|
+
# @option options [Integer] :endpoint_cache_max_entries (1000)
|
145
|
+
# Used for the maximum size limit of the LRU cache storing endpoints data
|
146
|
+
# for endpoint discovery enabled operations. Defaults to 1000.
|
147
|
+
#
|
148
|
+
# @option options [Integer] :endpoint_cache_max_threads (10)
|
149
|
+
# Used for the maximum threads in use for polling endpoints to be cached, defaults to 10.
|
150
|
+
#
|
151
|
+
# @option options [Integer] :endpoint_cache_poll_interval (60)
|
152
|
+
# When :endpoint_discovery and :active_endpoint_cache is enabled,
|
153
|
+
# Use this option to config the time interval in seconds for making
|
154
|
+
# requests fetching endpoints information. Defaults to 60 sec.
|
155
|
+
#
|
156
|
+
# @option options [Boolean] :endpoint_discovery (false)
|
157
|
+
# When set to `true`, endpoint discovery will be enabled for operations when available. Defaults to `false`.
|
158
|
+
#
|
159
|
+
# @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
|
160
|
+
# The log formatter.
|
161
|
+
#
|
162
|
+
# @option options [Symbol] :log_level (:info)
|
163
|
+
# The log level to send messages to the `:logger` at.
|
164
|
+
#
|
165
|
+
# @option options [Logger] :logger
|
166
|
+
# The Logger instance to send log messages to. If this option
|
167
|
+
# is not set, logging will be disabled.
|
168
|
+
#
|
169
|
+
# @option options [String] :profile ("default")
|
170
|
+
# Used when loading credentials from the shared credentials file
|
171
|
+
# at HOME/.aws/credentials. When not specified, 'default' is used.
|
172
|
+
#
|
173
|
+
# @option options [Float] :retry_base_delay (0.3)
|
174
|
+
# The base delay in seconds used by the default backoff function.
|
175
|
+
#
|
176
|
+
# @option options [Symbol] :retry_jitter (:none)
|
177
|
+
# A delay randomiser function used by the default backoff function. Some predefined functions can be referenced by name - :none, :equal, :full, otherwise a Proc that takes and returns a number.
|
178
|
+
#
|
179
|
+
# @see https://www.awsarchitectureblog.com/2015/03/backoff.html
|
180
|
+
#
|
181
|
+
# @option options [Integer] :retry_limit (3)
|
182
|
+
# The maximum number of times to retry failed requests. Only
|
183
|
+
# ~ 500 level server errors and certain ~ 400 level client errors
|
184
|
+
# are retried. Generally, these are throttling errors, data
|
185
|
+
# checksum errors, networking errors, timeout errors and auth
|
186
|
+
# errors from expired credentials.
|
187
|
+
#
|
188
|
+
# @option options [Integer] :retry_max_delay (0)
|
189
|
+
# The maximum number of seconds to delay between retries (0 for no limit) used by the default backoff function.
|
190
|
+
#
|
191
|
+
# @option options [String] :secret_access_key
|
192
|
+
#
|
193
|
+
# @option options [String] :session_token
|
194
|
+
#
|
195
|
+
# @option options [Boolean] :simple_json (false)
|
196
|
+
# Disables request parameter conversion, validation, and formatting.
|
197
|
+
# Also disable response data type conversions. This option is useful
|
198
|
+
# when you want to ensure the highest level of performance by
|
199
|
+
# avoiding overhead of walking request parameters and response data
|
200
|
+
# structures.
|
201
|
+
#
|
202
|
+
# When `:simple_json` is enabled, the request parameters hash must
|
203
|
+
# be formatted exactly as the DynamoDB API expects.
|
204
|
+
#
|
205
|
+
# @option options [Boolean] :stub_responses (false)
|
206
|
+
# Causes the client to return stubbed responses. By default
|
207
|
+
# fake responses are generated and returned. You can specify
|
208
|
+
# the response data to return or errors to raise by calling
|
209
|
+
# {ClientStubs#stub_responses}. See {ClientStubs} for more information.
|
210
|
+
#
|
211
|
+
# ** Please note ** When response stubbing is enabled, no HTTP
|
212
|
+
# requests are made, and retries are disabled.
|
213
|
+
#
|
214
|
+
# @option options [Boolean] :validate_params (true)
|
215
|
+
# When `true`, request parameters are validated before
|
216
|
+
# sending the request.
|
217
|
+
#
|
218
|
+
# @option options [URI::HTTP,String] :http_proxy A proxy to send
|
219
|
+
# requests through. Formatted like 'http://proxy.com:123'.
|
220
|
+
#
|
221
|
+
# @option options [Float] :http_open_timeout (15) The number of
|
222
|
+
# seconds to wait when opening a HTTP session before rasing a
|
223
|
+
# `Timeout::Error`.
|
224
|
+
#
|
225
|
+
# @option options [Integer] :http_read_timeout (60) The default
|
226
|
+
# number of seconds to wait for response data. This value can
|
227
|
+
# safely be set
|
228
|
+
# per-request on the session yeidled by {#session_for}.
|
229
|
+
#
|
230
|
+
# @option options [Float] :http_idle_timeout (5) The number of
|
231
|
+
# seconds a connection is allowed to sit idble before it is
|
232
|
+
# considered stale. Stale connections are closed and removed
|
233
|
+
# from the pool before making a request.
|
234
|
+
#
|
235
|
+
# @option options [Float] :http_continue_timeout (1) The number of
|
236
|
+
# seconds to wait for a 100-continue response before sending the
|
237
|
+
# request body. This option has no effect unless the request has
|
238
|
+
# "Expect" header set to "100-continue". Defaults to `nil` which
|
239
|
+
# disables this behaviour. This value can safely be set per
|
240
|
+
# request on the session yeidled by {#session_for}.
|
241
|
+
#
|
242
|
+
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
243
|
+
# HTTP debug output will be sent to the `:logger`.
|
244
|
+
#
|
245
|
+
# @option options [Boolean] :ssl_verify_peer (true) When `true`,
|
246
|
+
# SSL peer certificates are verified when establishing a
|
247
|
+
# connection.
|
248
|
+
#
|
249
|
+
# @option options [String] :ssl_ca_bundle Full path to the SSL
|
250
|
+
# certificate authority bundle file that should be used when
|
251
|
+
# verifying peer certificates. If you do not pass
|
252
|
+
# `:ssl_ca_bundle` or `:ssl_ca_directory` the the system default
|
253
|
+
# will be used if available.
|
254
|
+
#
|
255
|
+
# @option options [String] :ssl_ca_directory Full path of the
|
256
|
+
# directory that contains the unbundled SSL certificate
|
257
|
+
# authority files for verifying peer certificates. If you do
|
258
|
+
# not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the
|
259
|
+
# system default will be used if available.
|
260
|
+
#
|
261
|
+
def initialize(*args)
|
262
|
+
super
|
263
|
+
end
|
264
|
+
|
265
|
+
# @!group API Operations
|
266
|
+
|
267
|
+
# This API sets up the home region for the calling account only.
|
268
|
+
#
|
269
|
+
# @option params [required, String] :home_region
|
270
|
+
# The name of the home region of the calling account.
|
271
|
+
#
|
272
|
+
# @option params [required, Types::Target] :target
|
273
|
+
# The account for which this command sets up a home region control. The
|
274
|
+
# `Target` is always of type `ACCOUNT`.
|
275
|
+
#
|
276
|
+
# @option params [Boolean] :dry_run
|
277
|
+
# Optional Boolean flag to indicate whether any effect should take
|
278
|
+
# place. It tests whether the caller has permission to make the call.
|
279
|
+
#
|
280
|
+
# @return [Types::CreateHomeRegionControlResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
281
|
+
#
|
282
|
+
# * {Types::CreateHomeRegionControlResult#home_region_control #home_region_control} => Types::HomeRegionControl
|
283
|
+
#
|
284
|
+
# @example Request syntax with placeholder values
|
285
|
+
#
|
286
|
+
# resp = client.create_home_region_control({
|
287
|
+
# home_region: "HomeRegion", # required
|
288
|
+
# target: { # required
|
289
|
+
# type: "ACCOUNT", # required, accepts ACCOUNT
|
290
|
+
# id: "TargetId",
|
291
|
+
# },
|
292
|
+
# dry_run: false,
|
293
|
+
# })
|
294
|
+
#
|
295
|
+
# @example Response structure
|
296
|
+
#
|
297
|
+
# resp.home_region_control.control_id #=> String
|
298
|
+
# resp.home_region_control.home_region #=> String
|
299
|
+
# resp.home_region_control.target.type #=> String, one of "ACCOUNT"
|
300
|
+
# resp.home_region_control.target.id #=> String
|
301
|
+
# resp.home_region_control.requested_time #=> Time
|
302
|
+
#
|
303
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/migrationhub-config-2019-06-30/CreateHomeRegionControl AWS API Documentation
|
304
|
+
#
|
305
|
+
# @overload create_home_region_control(params = {})
|
306
|
+
# @param [Hash] params ({})
|
307
|
+
def create_home_region_control(params = {}, options = {})
|
308
|
+
req = build_request(:create_home_region_control, params)
|
309
|
+
req.send_request(options)
|
310
|
+
end
|
311
|
+
|
312
|
+
# This API permits filtering on the `ControlId`, `HomeRegion`, and
|
313
|
+
# `RegionControlScope` fields.
|
314
|
+
#
|
315
|
+
# @option params [String] :control_id
|
316
|
+
# The `ControlID` is a unique identifier string of your
|
317
|
+
# `HomeRegionControl` object.
|
318
|
+
#
|
319
|
+
# @option params [String] :home_region
|
320
|
+
# The name of the home region you'd like to view.
|
321
|
+
#
|
322
|
+
# @option params [Types::Target] :target
|
323
|
+
# The target parameter specifies the identifier to which the home region
|
324
|
+
# is applied, which is always of type `ACCOUNT`. It applies the home
|
325
|
+
# region to the current `ACCOUNT`.
|
326
|
+
#
|
327
|
+
# @option params [Integer] :max_results
|
328
|
+
# The maximum number of filtering results to display per page.
|
329
|
+
#
|
330
|
+
# @option params [String] :next_token
|
331
|
+
# If a `NextToken` was returned by a previous call, more results are
|
332
|
+
# available. To retrieve the next page of results, make the call again
|
333
|
+
# using the returned token in `NextToken`.
|
334
|
+
#
|
335
|
+
# @return [Types::DescribeHomeRegionControlsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
336
|
+
#
|
337
|
+
# * {Types::DescribeHomeRegionControlsResult#home_region_controls #home_region_controls} => Array<Types::HomeRegionControl>
|
338
|
+
# * {Types::DescribeHomeRegionControlsResult#next_token #next_token} => String
|
339
|
+
#
|
340
|
+
# @example Request syntax with placeholder values
|
341
|
+
#
|
342
|
+
# resp = client.describe_home_region_controls({
|
343
|
+
# control_id: "ControlId",
|
344
|
+
# home_region: "HomeRegion",
|
345
|
+
# target: {
|
346
|
+
# type: "ACCOUNT", # required, accepts ACCOUNT
|
347
|
+
# id: "TargetId",
|
348
|
+
# },
|
349
|
+
# max_results: 1,
|
350
|
+
# next_token: "Token",
|
351
|
+
# })
|
352
|
+
#
|
353
|
+
# @example Response structure
|
354
|
+
#
|
355
|
+
# resp.home_region_controls #=> Array
|
356
|
+
# resp.home_region_controls[0].control_id #=> String
|
357
|
+
# resp.home_region_controls[0].home_region #=> String
|
358
|
+
# resp.home_region_controls[0].target.type #=> String, one of "ACCOUNT"
|
359
|
+
# resp.home_region_controls[0].target.id #=> String
|
360
|
+
# resp.home_region_controls[0].requested_time #=> Time
|
361
|
+
# resp.next_token #=> String
|
362
|
+
#
|
363
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/migrationhub-config-2019-06-30/DescribeHomeRegionControls AWS API Documentation
|
364
|
+
#
|
365
|
+
# @overload describe_home_region_controls(params = {})
|
366
|
+
# @param [Hash] params ({})
|
367
|
+
def describe_home_region_controls(params = {}, options = {})
|
368
|
+
req = build_request(:describe_home_region_controls, params)
|
369
|
+
req.send_request(options)
|
370
|
+
end
|
371
|
+
|
372
|
+
# Returns the calling account’s home region, if configured. This API is
|
373
|
+
# used by other AWS services to determine the regional endpoint for
|
374
|
+
# calling AWS Application Discovery Service and Migration Hub. You must
|
375
|
+
# call `GetHomeRegion` at least once before you call any other AWS
|
376
|
+
# Application Discovery Service and AWS Migration Hub APIs, to obtain
|
377
|
+
# the account's Migration Hub home region.
|
378
|
+
#
|
379
|
+
# @return [Types::GetHomeRegionResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
380
|
+
#
|
381
|
+
# * {Types::GetHomeRegionResult#home_region #home_region} => String
|
382
|
+
#
|
383
|
+
# @example Response structure
|
384
|
+
#
|
385
|
+
# resp.home_region #=> String
|
386
|
+
#
|
387
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/migrationhub-config-2019-06-30/GetHomeRegion AWS API Documentation
|
388
|
+
#
|
389
|
+
# @overload get_home_region(params = {})
|
390
|
+
# @param [Hash] params ({})
|
391
|
+
def get_home_region(params = {}, options = {})
|
392
|
+
req = build_request(:get_home_region, params)
|
393
|
+
req.send_request(options)
|
394
|
+
end
|
395
|
+
|
396
|
+
# @!endgroup
|
397
|
+
|
398
|
+
# @param params ({})
|
399
|
+
# @api private
|
400
|
+
def build_request(operation_name, params = {})
|
401
|
+
handlers = @handlers.for(operation_name)
|
402
|
+
context = Seahorse::Client::RequestContext.new(
|
403
|
+
operation_name: operation_name,
|
404
|
+
operation: config.api.operation(operation_name),
|
405
|
+
client: self,
|
406
|
+
params: params,
|
407
|
+
config: config)
|
408
|
+
context[:gem_name] = 'aws-sdk-migrationhubconfig'
|
409
|
+
context[:gem_version] = '1.0.0'
|
410
|
+
Seahorse::Client::Request.new(handlers, context)
|
411
|
+
end
|
412
|
+
|
413
|
+
# @api private
|
414
|
+
# @deprecated
|
415
|
+
def waiter_names
|
416
|
+
[]
|
417
|
+
end
|
418
|
+
|
419
|
+
class << self
|
420
|
+
|
421
|
+
# @api private
|
422
|
+
attr_reader :identifier
|
423
|
+
|
424
|
+
# @api private
|
425
|
+
def errors_module
|
426
|
+
Errors
|
427
|
+
end
|
428
|
+
|
429
|
+
end
|
430
|
+
end
|
431
|
+
end
|
@@ -0,0 +1,153 @@
|
|
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
|
+
ServiceUnavailableException = Shapes::StructureShape.new(name: 'ServiceUnavailableException')
|
33
|
+
Target = Shapes::StructureShape.new(name: 'Target')
|
34
|
+
TargetId = Shapes::StringShape.new(name: 'TargetId')
|
35
|
+
TargetType = Shapes::StringShape.new(name: 'TargetType')
|
36
|
+
Token = Shapes::StringShape.new(name: 'Token')
|
37
|
+
|
38
|
+
AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
39
|
+
AccessDeniedException.struct_class = Types::AccessDeniedException
|
40
|
+
|
41
|
+
CreateHomeRegionControlRequest.add_member(:home_region, Shapes::ShapeRef.new(shape: HomeRegion, required: true, location_name: "HomeRegion"))
|
42
|
+
CreateHomeRegionControlRequest.add_member(:target, Shapes::ShapeRef.new(shape: Target, required: true, location_name: "Target"))
|
43
|
+
CreateHomeRegionControlRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: DryRun, location_name: "DryRun"))
|
44
|
+
CreateHomeRegionControlRequest.struct_class = Types::CreateHomeRegionControlRequest
|
45
|
+
|
46
|
+
CreateHomeRegionControlResult.add_member(:home_region_control, Shapes::ShapeRef.new(shape: HomeRegionControl, location_name: "HomeRegionControl"))
|
47
|
+
CreateHomeRegionControlResult.struct_class = Types::CreateHomeRegionControlResult
|
48
|
+
|
49
|
+
DescribeHomeRegionControlsRequest.add_member(:control_id, Shapes::ShapeRef.new(shape: ControlId, location_name: "ControlId"))
|
50
|
+
DescribeHomeRegionControlsRequest.add_member(:home_region, Shapes::ShapeRef.new(shape: HomeRegion, location_name: "HomeRegion"))
|
51
|
+
DescribeHomeRegionControlsRequest.add_member(:target, Shapes::ShapeRef.new(shape: Target, location_name: "Target"))
|
52
|
+
DescribeHomeRegionControlsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: DescribeHomeRegionControlsMaxResults, location_name: "MaxResults"))
|
53
|
+
DescribeHomeRegionControlsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
|
54
|
+
DescribeHomeRegionControlsRequest.struct_class = Types::DescribeHomeRegionControlsRequest
|
55
|
+
|
56
|
+
DescribeHomeRegionControlsResult.add_member(:home_region_controls, Shapes::ShapeRef.new(shape: HomeRegionControls, location_name: "HomeRegionControls"))
|
57
|
+
DescribeHomeRegionControlsResult.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
|
58
|
+
DescribeHomeRegionControlsResult.struct_class = Types::DescribeHomeRegionControlsResult
|
59
|
+
|
60
|
+
DryRunOperation.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
61
|
+
DryRunOperation.struct_class = Types::DryRunOperation
|
62
|
+
|
63
|
+
GetHomeRegionRequest.struct_class = Types::GetHomeRegionRequest
|
64
|
+
|
65
|
+
GetHomeRegionResult.add_member(:home_region, Shapes::ShapeRef.new(shape: HomeRegion, location_name: "HomeRegion"))
|
66
|
+
GetHomeRegionResult.struct_class = Types::GetHomeRegionResult
|
67
|
+
|
68
|
+
HomeRegionControl.add_member(:control_id, Shapes::ShapeRef.new(shape: ControlId, location_name: "ControlId"))
|
69
|
+
HomeRegionControl.add_member(:home_region, Shapes::ShapeRef.new(shape: HomeRegion, location_name: "HomeRegion"))
|
70
|
+
HomeRegionControl.add_member(:target, Shapes::ShapeRef.new(shape: Target, location_name: "Target"))
|
71
|
+
HomeRegionControl.add_member(:requested_time, Shapes::ShapeRef.new(shape: RequestedTime, location_name: "RequestedTime"))
|
72
|
+
HomeRegionControl.struct_class = Types::HomeRegionControl
|
73
|
+
|
74
|
+
HomeRegionControls.member = Shapes::ShapeRef.new(shape: HomeRegionControl)
|
75
|
+
|
76
|
+
InternalServerError.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
77
|
+
InternalServerError.struct_class = Types::InternalServerError
|
78
|
+
|
79
|
+
InvalidInputException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
80
|
+
InvalidInputException.struct_class = Types::InvalidInputException
|
81
|
+
|
82
|
+
ServiceUnavailableException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
83
|
+
ServiceUnavailableException.struct_class = Types::ServiceUnavailableException
|
84
|
+
|
85
|
+
Target.add_member(:type, Shapes::ShapeRef.new(shape: TargetType, required: true, location_name: "Type"))
|
86
|
+
Target.add_member(:id, Shapes::ShapeRef.new(shape: TargetId, location_name: "Id"))
|
87
|
+
Target.struct_class = Types::Target
|
88
|
+
|
89
|
+
|
90
|
+
# @api private
|
91
|
+
API = Seahorse::Model::Api.new.tap do |api|
|
92
|
+
|
93
|
+
api.version = "2019-06-30"
|
94
|
+
|
95
|
+
api.metadata = {
|
96
|
+
"apiVersion" => "2019-06-30",
|
97
|
+
"endpointPrefix" => "migrationhub-config",
|
98
|
+
"jsonVersion" => "1.1",
|
99
|
+
"protocol" => "json",
|
100
|
+
"serviceFullName" => "AWS Migration Hub Config",
|
101
|
+
"serviceId" => "MigrationHub Config",
|
102
|
+
"signatureVersion" => "v4",
|
103
|
+
"signingName" => "mgh",
|
104
|
+
"targetPrefix" => "AWSMigrationHubMultiAccountService",
|
105
|
+
"uid" => "migrationhub-config-2019-06-30",
|
106
|
+
}
|
107
|
+
|
108
|
+
api.add_operation(:create_home_region_control, Seahorse::Model::Operation.new.tap do |o|
|
109
|
+
o.name = "CreateHomeRegionControl"
|
110
|
+
o.http_method = "POST"
|
111
|
+
o.http_request_uri = "/"
|
112
|
+
o.input = Shapes::ShapeRef.new(shape: CreateHomeRegionControlRequest)
|
113
|
+
o.output = Shapes::ShapeRef.new(shape: CreateHomeRegionControlResult)
|
114
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
115
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
116
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
117
|
+
o.errors << Shapes::ShapeRef.new(shape: DryRunOperation)
|
118
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
|
119
|
+
end)
|
120
|
+
|
121
|
+
api.add_operation(:describe_home_region_controls, Seahorse::Model::Operation.new.tap do |o|
|
122
|
+
o.name = "DescribeHomeRegionControls"
|
123
|
+
o.http_method = "POST"
|
124
|
+
o.http_request_uri = "/"
|
125
|
+
o.input = Shapes::ShapeRef.new(shape: DescribeHomeRegionControlsRequest)
|
126
|
+
o.output = Shapes::ShapeRef.new(shape: DescribeHomeRegionControlsResult)
|
127
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
128
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
129
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
130
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
|
131
|
+
o[:pager] = Aws::Pager.new(
|
132
|
+
limit_key: "max_results",
|
133
|
+
tokens: {
|
134
|
+
"next_token" => "next_token"
|
135
|
+
}
|
136
|
+
)
|
137
|
+
end)
|
138
|
+
|
139
|
+
api.add_operation(:get_home_region, Seahorse::Model::Operation.new.tap do |o|
|
140
|
+
o.name = "GetHomeRegion"
|
141
|
+
o.http_method = "POST"
|
142
|
+
o.http_request_uri = "/"
|
143
|
+
o.input = Shapes::ShapeRef.new(shape: GetHomeRegionRequest)
|
144
|
+
o.output = Shapes::ShapeRef.new(shape: GetHomeRegionResult)
|
145
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
146
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
147
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
148
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
|
149
|
+
end)
|
150
|
+
end
|
151
|
+
|
152
|
+
end
|
153
|
+
end
|
File without changes
|
@@ -0,0 +1,94 @@
|
|
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 Errors
|
10
|
+
|
11
|
+
extend Aws::Errors::DynamicErrors
|
12
|
+
|
13
|
+
class AccessDeniedException < ServiceError
|
14
|
+
|
15
|
+
# @param [Seahorse::Client::RequestContext] context
|
16
|
+
# @param [String] message
|
17
|
+
# @param [Aws::MigrationHubConfig::Types::AccessDeniedException] data
|
18
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
19
|
+
super(context, message, data)
|
20
|
+
end
|
21
|
+
|
22
|
+
# @return [String]
|
23
|
+
def message
|
24
|
+
@message || @data[:message]
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
28
|
+
|
29
|
+
class DryRunOperation < ServiceError
|
30
|
+
|
31
|
+
# @param [Seahorse::Client::RequestContext] context
|
32
|
+
# @param [String] message
|
33
|
+
# @param [Aws::MigrationHubConfig::Types::DryRunOperation] data
|
34
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
35
|
+
super(context, message, data)
|
36
|
+
end
|
37
|
+
|
38
|
+
# @return [String]
|
39
|
+
def message
|
40
|
+
@message || @data[:message]
|
41
|
+
end
|
42
|
+
|
43
|
+
end
|
44
|
+
|
45
|
+
class InternalServerError < ServiceError
|
46
|
+
|
47
|
+
# @param [Seahorse::Client::RequestContext] context
|
48
|
+
# @param [String] message
|
49
|
+
# @param [Aws::MigrationHubConfig::Types::InternalServerError] data
|
50
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
51
|
+
super(context, message, data)
|
52
|
+
end
|
53
|
+
|
54
|
+
# @return [String]
|
55
|
+
def message
|
56
|
+
@message || @data[:message]
|
57
|
+
end
|
58
|
+
|
59
|
+
end
|
60
|
+
|
61
|
+
class InvalidInputException < ServiceError
|
62
|
+
|
63
|
+
# @param [Seahorse::Client::RequestContext] context
|
64
|
+
# @param [String] message
|
65
|
+
# @param [Aws::MigrationHubConfig::Types::InvalidInputException] data
|
66
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
67
|
+
super(context, message, data)
|
68
|
+
end
|
69
|
+
|
70
|
+
# @return [String]
|
71
|
+
def message
|
72
|
+
@message || @data[:message]
|
73
|
+
end
|
74
|
+
|
75
|
+
end
|
76
|
+
|
77
|
+
class ServiceUnavailableException < ServiceError
|
78
|
+
|
79
|
+
# @param [Seahorse::Client::RequestContext] context
|
80
|
+
# @param [String] message
|
81
|
+
# @param [Aws::MigrationHubConfig::Types::ServiceUnavailableException] data
|
82
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
83
|
+
super(context, message, data)
|
84
|
+
end
|
85
|
+
|
86
|
+
# @return [String]
|
87
|
+
def message
|
88
|
+
@message || @data[:message]
|
89
|
+
end
|
90
|
+
|
91
|
+
end
|
92
|
+
|
93
|
+
end
|
94
|
+
end
|
@@ -0,0 +1,23 @@
|
|
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
|
+
class Resource
|
10
|
+
|
11
|
+
# @param options ({})
|
12
|
+
# @option options [Client] :client
|
13
|
+
def initialize(options = {})
|
14
|
+
@client = options[:client] || Client.new(options)
|
15
|
+
end
|
16
|
+
|
17
|
+
# @return [Client]
|
18
|
+
def client
|
19
|
+
@client
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,274 @@
|
|
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
|
+
end
|
274
|
+
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.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Amazon Web Services
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-11-20 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.5.2.3
|
85
|
+
signing_key:
|
86
|
+
specification_version: 4
|
87
|
+
summary: AWS SDK for Ruby - AWS Migration Hub Config
|
88
|
+
test_files: []
|