aws-sdk-outposts 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-outposts.rb +47 -0
- data/lib/aws-sdk-outposts/client.rb +504 -0
- data/lib/aws-sdk-outposts/client_api.rb +228 -0
- data/lib/aws-sdk-outposts/customizations.rb +0 -0
- data/lib/aws-sdk-outposts/errors.rb +94 -0
- data/lib/aws-sdk-outposts/resource.rb +23 -0
- data/lib/aws-sdk-outposts/types.rb +384 -0
- metadata +88 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: d36f4f3a41b66443405dec4d82d301b7cb2147ae
|
4
|
+
data.tar.gz: ac4a33824d041bb0c828a5dd7ef1d96619b8b39a
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 71a63fbd3f899c4f557f84c9a4e1609fd93f24cd8768e4c7f9847b0f2da8f2ba6133940c2b3b3a08ed9bcd7bd9c253e539cf8308e9576bfed55b3d6559511bbb
|
7
|
+
data.tar.gz: 1dab540a3d0987e9ba9f1c1d3d7edd398d1b8f01e54bb6082943f0c485277533335b92fe569e34175758f780180984e124de3d04f6419e15dd007a12eab3f619
|
@@ -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-outposts/types'
|
12
|
+
require_relative 'aws-sdk-outposts/client_api'
|
13
|
+
require_relative 'aws-sdk-outposts/client'
|
14
|
+
require_relative 'aws-sdk-outposts/errors'
|
15
|
+
require_relative 'aws-sdk-outposts/resource'
|
16
|
+
require_relative 'aws-sdk-outposts/customizations'
|
17
|
+
|
18
|
+
# This module provides support for AWS Outposts. This module is available in the
|
19
|
+
# `aws-sdk-outposts` 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 Outposts all
|
32
|
+
# extend {Errors::ServiceError}.
|
33
|
+
#
|
34
|
+
# begin
|
35
|
+
# # do stuff
|
36
|
+
# rescue Aws::Outposts::Errors::ServiceError
|
37
|
+
# # rescues all service API errors
|
38
|
+
# end
|
39
|
+
#
|
40
|
+
# See {Errors} for more information.
|
41
|
+
#
|
42
|
+
# @service
|
43
|
+
module Aws::Outposts
|
44
|
+
|
45
|
+
GEM_VERSION = '1.0.0'
|
46
|
+
|
47
|
+
end
|
@@ -0,0 +1,504 @@
|
|
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/rest_json.rb'
|
29
|
+
|
30
|
+
Aws::Plugins::GlobalConfiguration.add_identifier(:outposts)
|
31
|
+
|
32
|
+
module Aws::Outposts
|
33
|
+
class Client < Seahorse::Client::Base
|
34
|
+
|
35
|
+
include Aws::ClientStubs
|
36
|
+
|
37
|
+
@identifier = :outposts
|
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::RestJson)
|
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] :stub_responses (false)
|
196
|
+
# Causes the client to return stubbed responses. By default
|
197
|
+
# fake responses are generated and returned. You can specify
|
198
|
+
# the response data to return or errors to raise by calling
|
199
|
+
# {ClientStubs#stub_responses}. See {ClientStubs} for more information.
|
200
|
+
#
|
201
|
+
# ** Please note ** When response stubbing is enabled, no HTTP
|
202
|
+
# requests are made, and retries are disabled.
|
203
|
+
#
|
204
|
+
# @option options [Boolean] :validate_params (true)
|
205
|
+
# When `true`, request parameters are validated before
|
206
|
+
# sending the request.
|
207
|
+
#
|
208
|
+
# @option options [URI::HTTP,String] :http_proxy A proxy to send
|
209
|
+
# requests through. Formatted like 'http://proxy.com:123'.
|
210
|
+
#
|
211
|
+
# @option options [Float] :http_open_timeout (15) The number of
|
212
|
+
# seconds to wait when opening a HTTP session before rasing a
|
213
|
+
# `Timeout::Error`.
|
214
|
+
#
|
215
|
+
# @option options [Integer] :http_read_timeout (60) The default
|
216
|
+
# number of seconds to wait for response data. This value can
|
217
|
+
# safely be set
|
218
|
+
# per-request on the session yeidled by {#session_for}.
|
219
|
+
#
|
220
|
+
# @option options [Float] :http_idle_timeout (5) The number of
|
221
|
+
# seconds a connection is allowed to sit idble before it is
|
222
|
+
# considered stale. Stale connections are closed and removed
|
223
|
+
# from the pool before making a request.
|
224
|
+
#
|
225
|
+
# @option options [Float] :http_continue_timeout (1) The number of
|
226
|
+
# seconds to wait for a 100-continue response before sending the
|
227
|
+
# request body. This option has no effect unless the request has
|
228
|
+
# "Expect" header set to "100-continue". Defaults to `nil` which
|
229
|
+
# disables this behaviour. This value can safely be set per
|
230
|
+
# request on the session yeidled by {#session_for}.
|
231
|
+
#
|
232
|
+
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
233
|
+
# HTTP debug output will be sent to the `:logger`.
|
234
|
+
#
|
235
|
+
# @option options [Boolean] :ssl_verify_peer (true) When `true`,
|
236
|
+
# SSL peer certificates are verified when establishing a
|
237
|
+
# connection.
|
238
|
+
#
|
239
|
+
# @option options [String] :ssl_ca_bundle Full path to the SSL
|
240
|
+
# certificate authority bundle file that should be used when
|
241
|
+
# verifying peer certificates. If you do not pass
|
242
|
+
# `:ssl_ca_bundle` or `:ssl_ca_directory` the the system default
|
243
|
+
# will be used if available.
|
244
|
+
#
|
245
|
+
# @option options [String] :ssl_ca_directory Full path of the
|
246
|
+
# directory that contains the unbundled SSL certificate
|
247
|
+
# authority files for verifying peer certificates. If you do
|
248
|
+
# not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the
|
249
|
+
# system default will be used if available.
|
250
|
+
#
|
251
|
+
def initialize(*args)
|
252
|
+
super
|
253
|
+
end
|
254
|
+
|
255
|
+
# @!group API Operations
|
256
|
+
|
257
|
+
# Creates an Outpost.
|
258
|
+
#
|
259
|
+
# @option params [String] :name
|
260
|
+
# The name of the Outpost.
|
261
|
+
#
|
262
|
+
# @option params [String] :description
|
263
|
+
# The Outpost description.
|
264
|
+
#
|
265
|
+
# @option params [required, String] :site_id
|
266
|
+
# The ID of the site.
|
267
|
+
#
|
268
|
+
# @option params [String] :availability_zone
|
269
|
+
# The Availability Zone.
|
270
|
+
#
|
271
|
+
# @option params [String] :availability_zone_id
|
272
|
+
# The ID of the Availability Zone.
|
273
|
+
#
|
274
|
+
# @return [Types::CreateOutpostOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
275
|
+
#
|
276
|
+
# * {Types::CreateOutpostOutput#outpost #outpost} => Types::Outpost
|
277
|
+
#
|
278
|
+
# @example Request syntax with placeholder values
|
279
|
+
#
|
280
|
+
# resp = client.create_outpost({
|
281
|
+
# name: "OutpostName",
|
282
|
+
# description: "OutpostDescription",
|
283
|
+
# site_id: "SiteId", # required
|
284
|
+
# availability_zone: "AvailabilityZone",
|
285
|
+
# availability_zone_id: "AvailabilityZoneId",
|
286
|
+
# })
|
287
|
+
#
|
288
|
+
# @example Response structure
|
289
|
+
#
|
290
|
+
# resp.outpost.outpost_id #=> String
|
291
|
+
# resp.outpost.owner_id #=> String
|
292
|
+
# resp.outpost.outpost_arn #=> String
|
293
|
+
# resp.outpost.site_id #=> String
|
294
|
+
# resp.outpost.name #=> String
|
295
|
+
# resp.outpost.description #=> String
|
296
|
+
# resp.outpost.life_cycle_status #=> String
|
297
|
+
# resp.outpost.availability_zone #=> String
|
298
|
+
# resp.outpost.availability_zone_id #=> String
|
299
|
+
#
|
300
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/CreateOutpost AWS API Documentation
|
301
|
+
#
|
302
|
+
# @overload create_outpost(params = {})
|
303
|
+
# @param [Hash] params ({})
|
304
|
+
def create_outpost(params = {}, options = {})
|
305
|
+
req = build_request(:create_outpost, params)
|
306
|
+
req.send_request(options)
|
307
|
+
end
|
308
|
+
|
309
|
+
# Gets information about the specified Outpost.
|
310
|
+
#
|
311
|
+
# @option params [required, String] :outpost_id
|
312
|
+
# The ID of the Outpost.
|
313
|
+
#
|
314
|
+
# @return [Types::GetOutpostOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
315
|
+
#
|
316
|
+
# * {Types::GetOutpostOutput#outpost #outpost} => Types::Outpost
|
317
|
+
#
|
318
|
+
# @example Request syntax with placeholder values
|
319
|
+
#
|
320
|
+
# resp = client.get_outpost({
|
321
|
+
# outpost_id: "OutpostId", # required
|
322
|
+
# })
|
323
|
+
#
|
324
|
+
# @example Response structure
|
325
|
+
#
|
326
|
+
# resp.outpost.outpost_id #=> String
|
327
|
+
# resp.outpost.owner_id #=> String
|
328
|
+
# resp.outpost.outpost_arn #=> String
|
329
|
+
# resp.outpost.site_id #=> String
|
330
|
+
# resp.outpost.name #=> String
|
331
|
+
# resp.outpost.description #=> String
|
332
|
+
# resp.outpost.life_cycle_status #=> String
|
333
|
+
# resp.outpost.availability_zone #=> String
|
334
|
+
# resp.outpost.availability_zone_id #=> String
|
335
|
+
#
|
336
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/GetOutpost AWS API Documentation
|
337
|
+
#
|
338
|
+
# @overload get_outpost(params = {})
|
339
|
+
# @param [Hash] params ({})
|
340
|
+
def get_outpost(params = {}, options = {})
|
341
|
+
req = build_request(:get_outpost, params)
|
342
|
+
req.send_request(options)
|
343
|
+
end
|
344
|
+
|
345
|
+
# Lists the instance types for the specified Outpost.
|
346
|
+
#
|
347
|
+
# @option params [required, String] :outpost_id
|
348
|
+
# The ID of the Outpost.
|
349
|
+
#
|
350
|
+
# @option params [String] :next_token
|
351
|
+
# The pagination token.
|
352
|
+
#
|
353
|
+
# @option params [Integer] :max_results
|
354
|
+
# The maximum page size.
|
355
|
+
#
|
356
|
+
# @return [Types::GetOutpostInstanceTypesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
357
|
+
#
|
358
|
+
# * {Types::GetOutpostInstanceTypesOutput#instance_types #instance_types} => Array<Types::InstanceTypeItem>
|
359
|
+
# * {Types::GetOutpostInstanceTypesOutput#next_token #next_token} => String
|
360
|
+
# * {Types::GetOutpostInstanceTypesOutput#outpost_id #outpost_id} => String
|
361
|
+
# * {Types::GetOutpostInstanceTypesOutput#outpost_arn #outpost_arn} => String
|
362
|
+
#
|
363
|
+
# @example Request syntax with placeholder values
|
364
|
+
#
|
365
|
+
# resp = client.get_outpost_instance_types({
|
366
|
+
# outpost_id: "OutpostId", # required
|
367
|
+
# next_token: "Token",
|
368
|
+
# max_results: 1,
|
369
|
+
# })
|
370
|
+
#
|
371
|
+
# @example Response structure
|
372
|
+
#
|
373
|
+
# resp.instance_types #=> Array
|
374
|
+
# resp.instance_types[0].instance_type #=> String
|
375
|
+
# resp.next_token #=> String
|
376
|
+
# resp.outpost_id #=> String
|
377
|
+
# resp.outpost_arn #=> String
|
378
|
+
#
|
379
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/GetOutpostInstanceTypes AWS API Documentation
|
380
|
+
#
|
381
|
+
# @overload get_outpost_instance_types(params = {})
|
382
|
+
# @param [Hash] params ({})
|
383
|
+
def get_outpost_instance_types(params = {}, options = {})
|
384
|
+
req = build_request(:get_outpost_instance_types, params)
|
385
|
+
req.send_request(options)
|
386
|
+
end
|
387
|
+
|
388
|
+
# List the Outposts for your AWS account.
|
389
|
+
#
|
390
|
+
# @option params [String] :next_token
|
391
|
+
# The pagination token.
|
392
|
+
#
|
393
|
+
# @option params [Integer] :max_results
|
394
|
+
# The maximum page size.
|
395
|
+
#
|
396
|
+
# @return [Types::ListOutpostsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
397
|
+
#
|
398
|
+
# * {Types::ListOutpostsOutput#outposts #outposts} => Array<Types::Outpost>
|
399
|
+
# * {Types::ListOutpostsOutput#next_token #next_token} => String
|
400
|
+
#
|
401
|
+
# @example Request syntax with placeholder values
|
402
|
+
#
|
403
|
+
# resp = client.list_outposts({
|
404
|
+
# next_token: "Token",
|
405
|
+
# max_results: 1,
|
406
|
+
# })
|
407
|
+
#
|
408
|
+
# @example Response structure
|
409
|
+
#
|
410
|
+
# resp.outposts #=> Array
|
411
|
+
# resp.outposts[0].outpost_id #=> String
|
412
|
+
# resp.outposts[0].owner_id #=> String
|
413
|
+
# resp.outposts[0].outpost_arn #=> String
|
414
|
+
# resp.outposts[0].site_id #=> String
|
415
|
+
# resp.outposts[0].name #=> String
|
416
|
+
# resp.outposts[0].description #=> String
|
417
|
+
# resp.outposts[0].life_cycle_status #=> String
|
418
|
+
# resp.outposts[0].availability_zone #=> String
|
419
|
+
# resp.outposts[0].availability_zone_id #=> String
|
420
|
+
# resp.next_token #=> String
|
421
|
+
#
|
422
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/ListOutposts AWS API Documentation
|
423
|
+
#
|
424
|
+
# @overload list_outposts(params = {})
|
425
|
+
# @param [Hash] params ({})
|
426
|
+
def list_outposts(params = {}, options = {})
|
427
|
+
req = build_request(:list_outposts, params)
|
428
|
+
req.send_request(options)
|
429
|
+
end
|
430
|
+
|
431
|
+
# Lists the sites for the specified AWS account.
|
432
|
+
#
|
433
|
+
# @option params [String] :next_token
|
434
|
+
# The pagination token.
|
435
|
+
#
|
436
|
+
# @option params [Integer] :max_results
|
437
|
+
# The maximum page size.
|
438
|
+
#
|
439
|
+
# @return [Types::ListSitesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
440
|
+
#
|
441
|
+
# * {Types::ListSitesOutput#sites #sites} => Array<Types::Site>
|
442
|
+
# * {Types::ListSitesOutput#next_token #next_token} => String
|
443
|
+
#
|
444
|
+
# @example Request syntax with placeholder values
|
445
|
+
#
|
446
|
+
# resp = client.list_sites({
|
447
|
+
# next_token: "Token",
|
448
|
+
# max_results: 1,
|
449
|
+
# })
|
450
|
+
#
|
451
|
+
# @example Response structure
|
452
|
+
#
|
453
|
+
# resp.sites #=> Array
|
454
|
+
# resp.sites[0].site_id #=> String
|
455
|
+
# resp.sites[0].account_id #=> String
|
456
|
+
# resp.sites[0].name #=> String
|
457
|
+
# resp.sites[0].description #=> String
|
458
|
+
# resp.next_token #=> String
|
459
|
+
#
|
460
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/ListSites AWS API Documentation
|
461
|
+
#
|
462
|
+
# @overload list_sites(params = {})
|
463
|
+
# @param [Hash] params ({})
|
464
|
+
def list_sites(params = {}, options = {})
|
465
|
+
req = build_request(:list_sites, params)
|
466
|
+
req.send_request(options)
|
467
|
+
end
|
468
|
+
|
469
|
+
# @!endgroup
|
470
|
+
|
471
|
+
# @param params ({})
|
472
|
+
# @api private
|
473
|
+
def build_request(operation_name, params = {})
|
474
|
+
handlers = @handlers.for(operation_name)
|
475
|
+
context = Seahorse::Client::RequestContext.new(
|
476
|
+
operation_name: operation_name,
|
477
|
+
operation: config.api.operation(operation_name),
|
478
|
+
client: self,
|
479
|
+
params: params,
|
480
|
+
config: config)
|
481
|
+
context[:gem_name] = 'aws-sdk-outposts'
|
482
|
+
context[:gem_version] = '1.0.0'
|
483
|
+
Seahorse::Client::Request.new(handlers, context)
|
484
|
+
end
|
485
|
+
|
486
|
+
# @api private
|
487
|
+
# @deprecated
|
488
|
+
def waiter_names
|
489
|
+
[]
|
490
|
+
end
|
491
|
+
|
492
|
+
class << self
|
493
|
+
|
494
|
+
# @api private
|
495
|
+
attr_reader :identifier
|
496
|
+
|
497
|
+
# @api private
|
498
|
+
def errors_module
|
499
|
+
Errors
|
500
|
+
end
|
501
|
+
|
502
|
+
end
|
503
|
+
end
|
504
|
+
end
|