aws-sdk-iotsecuretunneling 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: 52e9b057e291cb595ffbcb15e0c1497be115d6ae
4
+ data.tar.gz: 8289446a4eeda402bee89f1a1cd36e2059e13c35
5
+ SHA512:
6
+ metadata.gz: eba6b995dd45c41b0009a2c584841a8d1655557f341291f78a5e2cbde66753ff3dc06b0b87ba6212d5ea599e1cb5a0d1db466e5a87603348d3dcb6987eb93b0b
7
+ data.tar.gz: 86dcc8bb9a9bc06b0be08c38e05f1e58e455e4c9cd968fa2e811a14cedd273d9bed70573c07d43dcd4dfb3231fb19ba182eafc826117bcb40414b3235040e3f5
@@ -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-iotsecuretunneling/types'
12
+ require_relative 'aws-sdk-iotsecuretunneling/client_api'
13
+ require_relative 'aws-sdk-iotsecuretunneling/client'
14
+ require_relative 'aws-sdk-iotsecuretunneling/errors'
15
+ require_relative 'aws-sdk-iotsecuretunneling/resource'
16
+ require_relative 'aws-sdk-iotsecuretunneling/customizations'
17
+
18
+ # This module provides support for AWS IoT Secure Tunneling. This module is available in the
19
+ # `aws-sdk-iotsecuretunneling` 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 IoT Secure Tunneling all
32
+ # extend {Errors::ServiceError}.
33
+ #
34
+ # begin
35
+ # # do stuff
36
+ # rescue Aws::IoTSecureTunneling::Errors::ServiceError
37
+ # # rescues all service API errors
38
+ # end
39
+ #
40
+ # See {Errors} for more information.
41
+ #
42
+ # @service
43
+ module Aws::IoTSecureTunneling
44
+
45
+ GEM_VERSION = '1.0.0'
46
+
47
+ end
@@ -0,0 +1,551 @@
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(:iotsecuretunneling)
31
+
32
+ module Aws::IoTSecureTunneling
33
+ class Client < Seahorse::Client::Base
34
+
35
+ include Aws::ClientStubs
36
+
37
+ @identifier = :iotsecuretunneling
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
+ # Closes a tunnel identified by the unique tunnel id. When a
268
+ # `CloseTunnel` request is received, we close the WebSocket connections
269
+ # between the client and proxy server so no data can be transmitted.
270
+ #
271
+ # @option params [required, String] :tunnel_id
272
+ # The ID of the tunnel to close.
273
+ #
274
+ # @option params [Boolean] :delete
275
+ # When set to true, AWS IoT Secure Tunneling deletes the tunnel data
276
+ # immediately.
277
+ #
278
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
279
+ #
280
+ # @example Request syntax with placeholder values
281
+ #
282
+ # resp = client.close_tunnel({
283
+ # tunnel_id: "TunnelId", # required
284
+ # delete: false,
285
+ # })
286
+ #
287
+ # @overload close_tunnel(params = {})
288
+ # @param [Hash] params ({})
289
+ def close_tunnel(params = {}, options = {})
290
+ req = build_request(:close_tunnel, params)
291
+ req.send_request(options)
292
+ end
293
+
294
+ # Gets information about a tunnel identified by the unique tunnel id.
295
+ #
296
+ # @option params [required, String] :tunnel_id
297
+ # The tunnel to describe.
298
+ #
299
+ # @return [Types::DescribeTunnelResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
300
+ #
301
+ # * {Types::DescribeTunnelResponse#tunnel #tunnel} => Types::Tunnel
302
+ #
303
+ # @example Request syntax with placeholder values
304
+ #
305
+ # resp = client.describe_tunnel({
306
+ # tunnel_id: "TunnelId", # required
307
+ # })
308
+ #
309
+ # @example Response structure
310
+ #
311
+ # resp.tunnel.tunnel_id #=> String
312
+ # resp.tunnel.tunnel_arn #=> String
313
+ # resp.tunnel.status #=> String, one of "OPEN", "CLOSED"
314
+ # resp.tunnel.source_connection_state.status #=> String, one of "CONNECTED", "DISCONNECTED"
315
+ # resp.tunnel.source_connection_state.last_updated_at #=> Time
316
+ # resp.tunnel.destination_connection_state.status #=> String, one of "CONNECTED", "DISCONNECTED"
317
+ # resp.tunnel.destination_connection_state.last_updated_at #=> Time
318
+ # resp.tunnel.description #=> String
319
+ # resp.tunnel.destination_config.thing_name #=> String
320
+ # resp.tunnel.destination_config.services #=> Array
321
+ # resp.tunnel.destination_config.services[0] #=> String
322
+ # resp.tunnel.timeout_config.max_lifetime_timeout_minutes #=> Integer
323
+ # resp.tunnel.tags #=> Array
324
+ # resp.tunnel.tags[0].key #=> String
325
+ # resp.tunnel.tags[0].value #=> String
326
+ # resp.tunnel.created_at #=> Time
327
+ # resp.tunnel.last_updated_at #=> Time
328
+ #
329
+ # @overload describe_tunnel(params = {})
330
+ # @param [Hash] params ({})
331
+ def describe_tunnel(params = {}, options = {})
332
+ req = build_request(:describe_tunnel, params)
333
+ req.send_request(options)
334
+ end
335
+
336
+ # Lists the tags for the specified resource.
337
+ #
338
+ # @option params [required, String] :resource_arn
339
+ # The resource ARN.
340
+ #
341
+ # @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
342
+ #
343
+ # * {Types::ListTagsForResourceResponse#tags #tags} => Array&lt;Types::Tag&gt;
344
+ #
345
+ # @example Request syntax with placeholder values
346
+ #
347
+ # resp = client.list_tags_for_resource({
348
+ # resource_arn: "AmazonResourceName", # required
349
+ # })
350
+ #
351
+ # @example Response structure
352
+ #
353
+ # resp.tags #=> Array
354
+ # resp.tags[0].key #=> String
355
+ # resp.tags[0].value #=> String
356
+ #
357
+ # @overload list_tags_for_resource(params = {})
358
+ # @param [Hash] params ({})
359
+ def list_tags_for_resource(params = {}, options = {})
360
+ req = build_request(:list_tags_for_resource, params)
361
+ req.send_request(options)
362
+ end
363
+
364
+ # List all tunnels for an AWS account. Tunnels are listed by creation
365
+ # time in descending order, newer tunnels will be listed before older
366
+ # tunnels.
367
+ #
368
+ # @option params [String] :thing_name
369
+ # The name of the IoT thing associated with the destination device.
370
+ #
371
+ # @option params [Integer] :max_results
372
+ # The maximum number of results to return at once.
373
+ #
374
+ # @option params [String] :next_token
375
+ # A token to retrieve the next set of results.
376
+ #
377
+ # @return [Types::ListTunnelsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
378
+ #
379
+ # * {Types::ListTunnelsResponse#tunnel_summaries #tunnel_summaries} => Array&lt;Types::TunnelSummary&gt;
380
+ # * {Types::ListTunnelsResponse#next_token #next_token} => String
381
+ #
382
+ # @example Request syntax with placeholder values
383
+ #
384
+ # resp = client.list_tunnels({
385
+ # thing_name: "ThingName",
386
+ # max_results: 1,
387
+ # next_token: "NextToken",
388
+ # })
389
+ #
390
+ # @example Response structure
391
+ #
392
+ # resp.tunnel_summaries #=> Array
393
+ # resp.tunnel_summaries[0].tunnel_id #=> String
394
+ # resp.tunnel_summaries[0].tunnel_arn #=> String
395
+ # resp.tunnel_summaries[0].status #=> String, one of "OPEN", "CLOSED"
396
+ # resp.tunnel_summaries[0].description #=> String
397
+ # resp.tunnel_summaries[0].created_at #=> Time
398
+ # resp.tunnel_summaries[0].last_updated_at #=> Time
399
+ # resp.next_token #=> String
400
+ #
401
+ # @overload list_tunnels(params = {})
402
+ # @param [Hash] params ({})
403
+ def list_tunnels(params = {}, options = {})
404
+ req = build_request(:list_tunnels, params)
405
+ req.send_request(options)
406
+ end
407
+
408
+ # Creates a new tunnel, and returns two client access tokens for clients
409
+ # to use to connect to the AWS IoT Secure Tunneling proxy server. .
410
+ #
411
+ # @option params [String] :description
412
+ # A short text description of the tunnel.
413
+ #
414
+ # @option params [Array<Types::Tag>] :tags
415
+ # A collection of tag metadata.
416
+ #
417
+ # @option params [Types::DestinationConfig] :destination_config
418
+ # The destination configuration for the OpenTunnel request.
419
+ #
420
+ # @option params [Types::TimeoutConfig] :timeout_config
421
+ # Timeout configuration for a tunnel.
422
+ #
423
+ # @return [Types::OpenTunnelResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
424
+ #
425
+ # * {Types::OpenTunnelResponse#tunnel_id #tunnel_id} => String
426
+ # * {Types::OpenTunnelResponse#tunnel_arn #tunnel_arn} => String
427
+ # * {Types::OpenTunnelResponse#source_access_token #source_access_token} => String
428
+ # * {Types::OpenTunnelResponse#destination_access_token #destination_access_token} => String
429
+ #
430
+ # @example Request syntax with placeholder values
431
+ #
432
+ # resp = client.open_tunnel({
433
+ # description: "Description",
434
+ # tags: [
435
+ # {
436
+ # key: "TagKey", # required
437
+ # value: "TagValue", # required
438
+ # },
439
+ # ],
440
+ # destination_config: {
441
+ # thing_name: "ThingName", # required
442
+ # services: ["Service"], # required
443
+ # },
444
+ # timeout_config: {
445
+ # max_lifetime_timeout_minutes: 1,
446
+ # },
447
+ # })
448
+ #
449
+ # @example Response structure
450
+ #
451
+ # resp.tunnel_id #=> String
452
+ # resp.tunnel_arn #=> String
453
+ # resp.source_access_token #=> String
454
+ # resp.destination_access_token #=> String
455
+ #
456
+ # @overload open_tunnel(params = {})
457
+ # @param [Hash] params ({})
458
+ def open_tunnel(params = {}, options = {})
459
+ req = build_request(:open_tunnel, params)
460
+ req.send_request(options)
461
+ end
462
+
463
+ # A resource tag.
464
+ #
465
+ # @option params [required, String] :resource_arn
466
+ # The ARN of the resource.
467
+ #
468
+ # @option params [required, Array<Types::Tag>] :tags
469
+ # The tags for the resource.
470
+ #
471
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
472
+ #
473
+ # @example Request syntax with placeholder values
474
+ #
475
+ # resp = client.tag_resource({
476
+ # resource_arn: "AmazonResourceName", # required
477
+ # tags: [ # required
478
+ # {
479
+ # key: "TagKey", # required
480
+ # value: "TagValue", # required
481
+ # },
482
+ # ],
483
+ # })
484
+ #
485
+ # @overload tag_resource(params = {})
486
+ # @param [Hash] params ({})
487
+ def tag_resource(params = {}, options = {})
488
+ req = build_request(:tag_resource, params)
489
+ req.send_request(options)
490
+ end
491
+
492
+ # Removes a tag from a resource.
493
+ #
494
+ # @option params [required, String] :resource_arn
495
+ # The resource ARN.
496
+ #
497
+ # @option params [required, Array<String>] :tag_keys
498
+ # The keys of the tags to remove.
499
+ #
500
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
501
+ #
502
+ # @example Request syntax with placeholder values
503
+ #
504
+ # resp = client.untag_resource({
505
+ # resource_arn: "AmazonResourceName", # required
506
+ # tag_keys: ["TagKey"], # required
507
+ # })
508
+ #
509
+ # @overload untag_resource(params = {})
510
+ # @param [Hash] params ({})
511
+ def untag_resource(params = {}, options = {})
512
+ req = build_request(:untag_resource, params)
513
+ req.send_request(options)
514
+ end
515
+
516
+ # @!endgroup
517
+
518
+ # @param params ({})
519
+ # @api private
520
+ def build_request(operation_name, params = {})
521
+ handlers = @handlers.for(operation_name)
522
+ context = Seahorse::Client::RequestContext.new(
523
+ operation_name: operation_name,
524
+ operation: config.api.operation(operation_name),
525
+ client: self,
526
+ params: params,
527
+ config: config)
528
+ context[:gem_name] = 'aws-sdk-iotsecuretunneling'
529
+ context[:gem_version] = '1.0.0'
530
+ Seahorse::Client::Request.new(handlers, context)
531
+ end
532
+
533
+ # @api private
534
+ # @deprecated
535
+ def waiter_names
536
+ []
537
+ end
538
+
539
+ class << self
540
+
541
+ # @api private
542
+ attr_reader :identifier
543
+
544
+ # @api private
545
+ def errors_module
546
+ Errors
547
+ end
548
+
549
+ end
550
+ end
551
+ end