aws-sdk-elasticinference 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 37b8fdc8561d40341c733cbf6502b172c41581e2
4
+ data.tar.gz: b782f282edb8cc4d7f75ff5802560aa38f5986c3
5
+ SHA512:
6
+ metadata.gz: 3644412772027fd64b974ce6d6a3de776969491794f97fd295ea38d9e55d03ce9479d50937ee6fa220a35a0047133e5be3196f33a0dfc30dc4c20a989d970a5f
7
+ data.tar.gz: b2ed1cbea3b829bb78f843c407c406bb5c209b43803b55ad31c22d186a117e242cb4de1e4f79059112a86cb8a0377c1f66bb860f9cd2c4c01d05caa62447a21f
@@ -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-elasticinference/types'
12
+ require_relative 'aws-sdk-elasticinference/client_api'
13
+ require_relative 'aws-sdk-elasticinference/client'
14
+ require_relative 'aws-sdk-elasticinference/errors'
15
+ require_relative 'aws-sdk-elasticinference/resource'
16
+ require_relative 'aws-sdk-elasticinference/customizations'
17
+
18
+ # This module provides support for Amazon Elastic Inference. This module is available in the
19
+ # `aws-sdk-elasticinference` 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 Amazon Elastic Inference all
32
+ # extend {Errors::ServiceError}.
33
+ #
34
+ # begin
35
+ # # do stuff
36
+ # rescue Aws::ElasticInference::Errors::ServiceError
37
+ # # rescues all service API errors
38
+ # end
39
+ #
40
+ # See {Errors} for more information.
41
+ #
42
+ # @service
43
+ module Aws::ElasticInference
44
+
45
+ GEM_VERSION = '1.0.0'
46
+
47
+ end
@@ -0,0 +1,375 @@
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(:elasticinference)
31
+
32
+ module Aws::ElasticInference
33
+ class Client < Seahorse::Client::Base
34
+
35
+ include Aws::ClientStubs
36
+
37
+ @identifier = :elasticinference
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
+ # Returns all tags of an Elastic Inference Accelerator.
258
+ #
259
+ # @option params [required, String] :resource_arn
260
+ # The ARN of the Elastic Inference Accelerator to list the tags for.
261
+ #
262
+ # @return [Types::ListTagsForResourceResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
263
+ #
264
+ # * {Types::ListTagsForResourceResult#tags #tags} => Hash&lt;String,String&gt;
265
+ #
266
+ # @example Request syntax with placeholder values
267
+ #
268
+ # resp = client.list_tags_for_resource({
269
+ # resource_arn: "ResourceARN", # required
270
+ # })
271
+ #
272
+ # @example Response structure
273
+ #
274
+ # resp.tags #=> Hash
275
+ # resp.tags["TagKey"] #=> String
276
+ #
277
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elastic-inference-2017-07-25/ListTagsForResource AWS API Documentation
278
+ #
279
+ # @overload list_tags_for_resource(params = {})
280
+ # @param [Hash] params ({})
281
+ def list_tags_for_resource(params = {}, options = {})
282
+ req = build_request(:list_tags_for_resource, params)
283
+ req.send_request(options)
284
+ end
285
+
286
+ # Adds the specified tag(s) to an Elastic Inference Accelerator.
287
+ #
288
+ # @option params [required, String] :resource_arn
289
+ # The ARN of the Elastic Inference Accelerator to tag.
290
+ #
291
+ # @option params [required, Hash<String,String>] :tags
292
+ # The tags to add to the Elastic Inference Accelerator.
293
+ #
294
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
295
+ #
296
+ # @example Request syntax with placeholder values
297
+ #
298
+ # resp = client.tag_resource({
299
+ # resource_arn: "ResourceARN", # required
300
+ # tags: { # required
301
+ # "TagKey" => "TagValue",
302
+ # },
303
+ # })
304
+ #
305
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elastic-inference-2017-07-25/TagResource AWS API Documentation
306
+ #
307
+ # @overload tag_resource(params = {})
308
+ # @param [Hash] params ({})
309
+ def tag_resource(params = {}, options = {})
310
+ req = build_request(:tag_resource, params)
311
+ req.send_request(options)
312
+ end
313
+
314
+ # Removes the specified tag(s) from an Elastic Inference Accelerator.
315
+ #
316
+ # @option params [required, String] :resource_arn
317
+ # The ARN of the Elastic Inference Accelerator to untag.
318
+ #
319
+ # @option params [required, Array<String>] :tag_keys
320
+ # The list of tags to remove from the Elastic Inference Accelerator.
321
+ #
322
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
323
+ #
324
+ # @example Request syntax with placeholder values
325
+ #
326
+ # resp = client.untag_resource({
327
+ # resource_arn: "ResourceARN", # required
328
+ # tag_keys: ["TagKey"], # required
329
+ # })
330
+ #
331
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elastic-inference-2017-07-25/UntagResource AWS API Documentation
332
+ #
333
+ # @overload untag_resource(params = {})
334
+ # @param [Hash] params ({})
335
+ def untag_resource(params = {}, options = {})
336
+ req = build_request(:untag_resource, params)
337
+ req.send_request(options)
338
+ end
339
+
340
+ # @!endgroup
341
+
342
+ # @param params ({})
343
+ # @api private
344
+ def build_request(operation_name, params = {})
345
+ handlers = @handlers.for(operation_name)
346
+ context = Seahorse::Client::RequestContext.new(
347
+ operation_name: operation_name,
348
+ operation: config.api.operation(operation_name),
349
+ client: self,
350
+ params: params,
351
+ config: config)
352
+ context[:gem_name] = 'aws-sdk-elasticinference'
353
+ context[:gem_version] = '1.0.0'
354
+ Seahorse::Client::Request.new(handlers, context)
355
+ end
356
+
357
+ # @api private
358
+ # @deprecated
359
+ def waiter_names
360
+ []
361
+ end
362
+
363
+ class << self
364
+
365
+ # @api private
366
+ attr_reader :identifier
367
+
368
+ # @api private
369
+ def errors_module
370
+ Errors
371
+ end
372
+
373
+ end
374
+ end
375
+ end
@@ -0,0 +1,116 @@
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::ElasticInference
9
+ # @api private
10
+ module ClientApi
11
+
12
+ include Seahorse::Model
13
+
14
+ BadRequestException = Shapes::StructureShape.new(name: 'BadRequestException')
15
+ InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
16
+ ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
17
+ ListTagsForResourceResult = Shapes::StructureShape.new(name: 'ListTagsForResourceResult')
18
+ ResourceARN = Shapes::StringShape.new(name: 'ResourceARN')
19
+ ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
20
+ String = Shapes::StringShape.new(name: 'String')
21
+ TagKey = Shapes::StringShape.new(name: 'TagKey')
22
+ TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
23
+ TagMap = Shapes::MapShape.new(name: 'TagMap')
24
+ TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
25
+ TagResourceResult = Shapes::StructureShape.new(name: 'TagResourceResult')
26
+ TagValue = Shapes::StringShape.new(name: 'TagValue')
27
+ UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
28
+ UntagResourceResult = Shapes::StructureShape.new(name: 'UntagResourceResult')
29
+
30
+ BadRequestException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
31
+ BadRequestException.struct_class = Types::BadRequestException
32
+
33
+ InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
34
+ InternalServerException.struct_class = Types::InternalServerException
35
+
36
+ ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceARN, required: true, location: "uri", location_name: "resourceArn"))
37
+ ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
38
+
39
+ ListTagsForResourceResult.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
40
+ ListTagsForResourceResult.struct_class = Types::ListTagsForResourceResult
41
+
42
+ ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
43
+ ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
44
+
45
+ TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
46
+
47
+ TagMap.key = Shapes::ShapeRef.new(shape: TagKey)
48
+ TagMap.value = Shapes::ShapeRef.new(shape: TagValue)
49
+
50
+ TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceARN, required: true, location: "uri", location_name: "resourceArn"))
51
+ TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, required: true, location_name: "tags"))
52
+ TagResourceRequest.struct_class = Types::TagResourceRequest
53
+
54
+ TagResourceResult.struct_class = Types::TagResourceResult
55
+
56
+ UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceARN, required: true, location: "uri", location_name: "resourceArn"))
57
+ UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location: "querystring", location_name: "tagKeys"))
58
+ UntagResourceRequest.struct_class = Types::UntagResourceRequest
59
+
60
+ UntagResourceResult.struct_class = Types::UntagResourceResult
61
+
62
+
63
+ # @api private
64
+ API = Seahorse::Model::Api.new.tap do |api|
65
+
66
+ api.version = "2017-07-25"
67
+
68
+ api.metadata = {
69
+ "apiVersion" => "2017-07-25",
70
+ "endpointPrefix" => "api.elastic-inference",
71
+ "jsonVersion" => "1.1",
72
+ "protocol" => "rest-json",
73
+ "serviceAbbreviation" => "Amazon Elastic Inference",
74
+ "serviceFullName" => "Amazon Elastic Inference",
75
+ "serviceId" => "Elastic Inference",
76
+ "signatureVersion" => "v4",
77
+ "signingName" => "elastic-inference",
78
+ "uid" => "elastic-inference-2017-07-25",
79
+ }
80
+
81
+ api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
82
+ o.name = "ListTagsForResource"
83
+ o.http_method = "GET"
84
+ o.http_request_uri = "/tags/{resourceArn}"
85
+ o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
86
+ o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResult)
87
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
88
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
89
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
90
+ end)
91
+
92
+ api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
93
+ o.name = "TagResource"
94
+ o.http_method = "POST"
95
+ o.http_request_uri = "/tags/{resourceArn}"
96
+ o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
97
+ o.output = Shapes::ShapeRef.new(shape: TagResourceResult)
98
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
99
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
100
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
101
+ end)
102
+
103
+ api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
104
+ o.name = "UntagResource"
105
+ o.http_method = "DELETE"
106
+ o.http_request_uri = "/tags/{resourceArn}"
107
+ o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
108
+ o.output = Shapes::ShapeRef.new(shape: UntagResourceResult)
109
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
110
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
111
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
112
+ end)
113
+ end
114
+
115
+ end
116
+ end
@@ -0,0 +1,62 @@
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::ElasticInference
9
+ module Errors
10
+
11
+ extend Aws::Errors::DynamicErrors
12
+
13
+ class BadRequestException < ServiceError
14
+
15
+ # @param [Seahorse::Client::RequestContext] context
16
+ # @param [String] message
17
+ # @param [Aws::ElasticInference::Types::BadRequestException] 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 InternalServerException < ServiceError
30
+
31
+ # @param [Seahorse::Client::RequestContext] context
32
+ # @param [String] message
33
+ # @param [Aws::ElasticInference::Types::InternalServerException] 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 ResourceNotFoundException < ServiceError
46
+
47
+ # @param [Seahorse::Client::RequestContext] context
48
+ # @param [String] message
49
+ # @param [Aws::ElasticInference::Types::ResourceNotFoundException] 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
+ end
62
+ 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::ElasticInference
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,135 @@
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::ElasticInference
9
+ module Types
10
+
11
+ # Raised when a malformed input has been provided to the API.
12
+ #
13
+ # @!attribute [rw] message
14
+ # @return [String]
15
+ #
16
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elastic-inference-2017-07-25/BadRequestException AWS API Documentation
17
+ #
18
+ class BadRequestException < Struct.new(
19
+ :message)
20
+ include Aws::Structure
21
+ end
22
+
23
+ # Raised when an unexpected error occurred during request processing.
24
+ #
25
+ # @!attribute [rw] message
26
+ # @return [String]
27
+ #
28
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elastic-inference-2017-07-25/InternalServerException AWS API Documentation
29
+ #
30
+ class InternalServerException < Struct.new(
31
+ :message)
32
+ include Aws::Structure
33
+ end
34
+
35
+ # @note When making an API call, you may pass ListTagsForResourceRequest
36
+ # data as a hash:
37
+ #
38
+ # {
39
+ # resource_arn: "ResourceARN", # required
40
+ # }
41
+ #
42
+ # @!attribute [rw] resource_arn
43
+ # The ARN of the Elastic Inference Accelerator to list the tags for.
44
+ # @return [String]
45
+ #
46
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elastic-inference-2017-07-25/ListTagsForResourceRequest AWS API Documentation
47
+ #
48
+ class ListTagsForResourceRequest < Struct.new(
49
+ :resource_arn)
50
+ include Aws::Structure
51
+ end
52
+
53
+ # @!attribute [rw] tags
54
+ # The tags of the Elastic Inference Accelerator.
55
+ # @return [Hash<String,String>]
56
+ #
57
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elastic-inference-2017-07-25/ListTagsForResourceResult AWS API Documentation
58
+ #
59
+ class ListTagsForResourceResult < Struct.new(
60
+ :tags)
61
+ include Aws::Structure
62
+ end
63
+
64
+ # Raised when the requested resource cannot be found.
65
+ #
66
+ # @!attribute [rw] message
67
+ # @return [String]
68
+ #
69
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elastic-inference-2017-07-25/ResourceNotFoundException AWS API Documentation
70
+ #
71
+ class ResourceNotFoundException < Struct.new(
72
+ :message)
73
+ include Aws::Structure
74
+ end
75
+
76
+ # @note When making an API call, you may pass TagResourceRequest
77
+ # data as a hash:
78
+ #
79
+ # {
80
+ # resource_arn: "ResourceARN", # required
81
+ # tags: { # required
82
+ # "TagKey" => "TagValue",
83
+ # },
84
+ # }
85
+ #
86
+ # @!attribute [rw] resource_arn
87
+ # The ARN of the Elastic Inference Accelerator to tag.
88
+ # @return [String]
89
+ #
90
+ # @!attribute [rw] tags
91
+ # The tags to add to the Elastic Inference Accelerator.
92
+ # @return [Hash<String,String>]
93
+ #
94
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elastic-inference-2017-07-25/TagResourceRequest AWS API Documentation
95
+ #
96
+ class TagResourceRequest < Struct.new(
97
+ :resource_arn,
98
+ :tags)
99
+ include Aws::Structure
100
+ end
101
+
102
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elastic-inference-2017-07-25/TagResourceResult AWS API Documentation
103
+ #
104
+ class TagResourceResult < Aws::EmptyStructure; end
105
+
106
+ # @note When making an API call, you may pass UntagResourceRequest
107
+ # data as a hash:
108
+ #
109
+ # {
110
+ # resource_arn: "ResourceARN", # required
111
+ # tag_keys: ["TagKey"], # required
112
+ # }
113
+ #
114
+ # @!attribute [rw] resource_arn
115
+ # The ARN of the Elastic Inference Accelerator to untag.
116
+ # @return [String]
117
+ #
118
+ # @!attribute [rw] tag_keys
119
+ # The list of tags to remove from the Elastic Inference Accelerator.
120
+ # @return [Array<String>]
121
+ #
122
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elastic-inference-2017-07-25/UntagResourceRequest AWS API Documentation
123
+ #
124
+ class UntagResourceRequest < Struct.new(
125
+ :resource_arn,
126
+ :tag_keys)
127
+ include Aws::Structure
128
+ end
129
+
130
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elastic-inference-2017-07-25/UntagResourceResult AWS API Documentation
131
+ #
132
+ class UntagResourceResult < Aws::EmptyStructure; end
133
+
134
+ end
135
+ end
metadata ADDED
@@ -0,0 +1,88 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: aws-sdk-elasticinference
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-26 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 Amazon Elastic Inference (Amazon Elastic Inference).
48
+ This gem is part 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-elasticinference.rb
56
+ - lib/aws-sdk-elasticinference/client.rb
57
+ - lib/aws-sdk-elasticinference/client_api.rb
58
+ - lib/aws-sdk-elasticinference/customizations.rb
59
+ - lib/aws-sdk-elasticinference/errors.rb
60
+ - lib/aws-sdk-elasticinference/resource.rb
61
+ - lib/aws-sdk-elasticinference/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-elasticinference
67
+ changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/master/gems/aws-sdk-elasticinference/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 - Amazon Elastic Inference
88
+ test_files: []