aws-sdk-ssmguiconnect 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,622 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ require 'seahorse/client/plugins/content_length'
11
+ require 'aws-sdk-core/plugins/credentials_configuration'
12
+ require 'aws-sdk-core/plugins/logging'
13
+ require 'aws-sdk-core/plugins/param_converter'
14
+ require 'aws-sdk-core/plugins/param_validator'
15
+ require 'aws-sdk-core/plugins/user_agent'
16
+ require 'aws-sdk-core/plugins/helpful_socket_errors'
17
+ require 'aws-sdk-core/plugins/retry_errors'
18
+ require 'aws-sdk-core/plugins/global_configuration'
19
+ require 'aws-sdk-core/plugins/regional_endpoint'
20
+ require 'aws-sdk-core/plugins/endpoint_discovery'
21
+ require 'aws-sdk-core/plugins/endpoint_pattern'
22
+ require 'aws-sdk-core/plugins/response_paging'
23
+ require 'aws-sdk-core/plugins/stub_responses'
24
+ require 'aws-sdk-core/plugins/idempotency_token'
25
+ require 'aws-sdk-core/plugins/invocation_id'
26
+ require 'aws-sdk-core/plugins/jsonvalue_converter'
27
+ require 'aws-sdk-core/plugins/client_metrics_plugin'
28
+ require 'aws-sdk-core/plugins/client_metrics_send_plugin'
29
+ require 'aws-sdk-core/plugins/transfer_encoding'
30
+ require 'aws-sdk-core/plugins/http_checksum'
31
+ require 'aws-sdk-core/plugins/checksum_algorithm'
32
+ require 'aws-sdk-core/plugins/request_compression'
33
+ require 'aws-sdk-core/plugins/defaults_mode'
34
+ require 'aws-sdk-core/plugins/recursion_detection'
35
+ require 'aws-sdk-core/plugins/telemetry'
36
+ require 'aws-sdk-core/plugins/sign'
37
+ require 'aws-sdk-core/plugins/protocols/rest_json'
38
+
39
+ module Aws::SSMGuiConnect
40
+ # An API client for SSMGuiConnect. To construct a client, you need to configure a `:region` and `:credentials`.
41
+ #
42
+ # client = Aws::SSMGuiConnect::Client.new(
43
+ # region: region_name,
44
+ # credentials: credentials,
45
+ # # ...
46
+ # )
47
+ #
48
+ # For details on configuring region and credentials see
49
+ # the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
50
+ #
51
+ # See {#initialize} for a full list of supported configuration options.
52
+ class Client < Seahorse::Client::Base
53
+
54
+ include Aws::ClientStubs
55
+
56
+ @identifier = :ssmguiconnect
57
+
58
+ set_api(ClientApi::API)
59
+
60
+ add_plugin(Seahorse::Client::Plugins::ContentLength)
61
+ add_plugin(Aws::Plugins::CredentialsConfiguration)
62
+ add_plugin(Aws::Plugins::Logging)
63
+ add_plugin(Aws::Plugins::ParamConverter)
64
+ add_plugin(Aws::Plugins::ParamValidator)
65
+ add_plugin(Aws::Plugins::UserAgent)
66
+ add_plugin(Aws::Plugins::HelpfulSocketErrors)
67
+ add_plugin(Aws::Plugins::RetryErrors)
68
+ add_plugin(Aws::Plugins::GlobalConfiguration)
69
+ add_plugin(Aws::Plugins::RegionalEndpoint)
70
+ add_plugin(Aws::Plugins::EndpointDiscovery)
71
+ add_plugin(Aws::Plugins::EndpointPattern)
72
+ add_plugin(Aws::Plugins::ResponsePaging)
73
+ add_plugin(Aws::Plugins::StubResponses)
74
+ add_plugin(Aws::Plugins::IdempotencyToken)
75
+ add_plugin(Aws::Plugins::InvocationId)
76
+ add_plugin(Aws::Plugins::JsonvalueConverter)
77
+ add_plugin(Aws::Plugins::ClientMetricsPlugin)
78
+ add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
79
+ add_plugin(Aws::Plugins::TransferEncoding)
80
+ add_plugin(Aws::Plugins::HttpChecksum)
81
+ add_plugin(Aws::Plugins::ChecksumAlgorithm)
82
+ add_plugin(Aws::Plugins::RequestCompression)
83
+ add_plugin(Aws::Plugins::DefaultsMode)
84
+ add_plugin(Aws::Plugins::RecursionDetection)
85
+ add_plugin(Aws::Plugins::Telemetry)
86
+ add_plugin(Aws::Plugins::Sign)
87
+ add_plugin(Aws::Plugins::Protocols::RestJson)
88
+ add_plugin(Aws::SSMGuiConnect::Plugins::Endpoints)
89
+
90
+ # @overload initialize(options)
91
+ # @param [Hash] options
92
+ #
93
+ # @option options [Array<Seahorse::Client::Plugin>] :plugins ([]])
94
+ # A list of plugins to apply to the client. Each plugin is either a
95
+ # class name or an instance of a plugin class.
96
+ #
97
+ # @option options [required, Aws::CredentialProvider] :credentials
98
+ # Your AWS credentials. This can be an instance of any one of the
99
+ # following classes:
100
+ #
101
+ # * `Aws::Credentials` - Used for configuring static, non-refreshing
102
+ # credentials.
103
+ #
104
+ # * `Aws::SharedCredentials` - Used for loading static credentials from a
105
+ # shared file, such as `~/.aws/config`.
106
+ #
107
+ # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
108
+ #
109
+ # * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to
110
+ # assume a role after providing credentials via the web.
111
+ #
112
+ # * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an
113
+ # access token generated from `aws login`.
114
+ #
115
+ # * `Aws::ProcessCredentials` - Used for loading credentials from a
116
+ # process that outputs to stdout.
117
+ #
118
+ # * `Aws::InstanceProfileCredentials` - Used for loading credentials
119
+ # from an EC2 IMDS on an EC2 instance.
120
+ #
121
+ # * `Aws::ECSCredentials` - Used for loading credentials from
122
+ # instances running in ECS.
123
+ #
124
+ # * `Aws::CognitoIdentityCredentials` - Used for loading credentials
125
+ # from the Cognito Identity service.
126
+ #
127
+ # When `:credentials` are not configured directly, the following
128
+ # locations will be searched for credentials:
129
+ #
130
+ # * `Aws.config[:credentials]`
131
+ # * The `:access_key_id`, `:secret_access_key`, `:session_token`, and
132
+ # `:account_id` options.
133
+ # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY'],
134
+ # ENV['AWS_SESSION_TOKEN'], and ENV['AWS_ACCOUNT_ID']
135
+ # * `~/.aws/credentials`
136
+ # * `~/.aws/config`
137
+ # * EC2/ECS IMDS instance profile - When used by default, the timeouts
138
+ # are very aggressive. Construct and pass an instance of
139
+ # `Aws::InstanceProfileCredentials` or `Aws::ECSCredentials` to
140
+ # enable retries and extended timeouts. Instance profile credential
141
+ # fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
142
+ # to true.
143
+ #
144
+ # @option options [required, String] :region
145
+ # The AWS region to connect to. The configured `:region` is
146
+ # used to determine the service `:endpoint`. When not passed,
147
+ # a default `:region` is searched for in the following locations:
148
+ #
149
+ # * `Aws.config[:region]`
150
+ # * `ENV['AWS_REGION']`
151
+ # * `ENV['AMAZON_REGION']`
152
+ # * `ENV['AWS_DEFAULT_REGION']`
153
+ # * `~/.aws/credentials`
154
+ # * `~/.aws/config`
155
+ #
156
+ # @option options [String] :access_key_id
157
+ #
158
+ # @option options [String] :account_id
159
+ #
160
+ # @option options [Boolean] :active_endpoint_cache (false)
161
+ # When set to `true`, a thread polling for endpoints will be running in
162
+ # the background every 60 secs (default). Defaults to `false`.
163
+ #
164
+ # @option options [Boolean] :adaptive_retry_wait_to_fill (true)
165
+ # Used only in `adaptive` retry mode. When true, the request will sleep
166
+ # until there is sufficent client side capacity to retry the request.
167
+ # When false, the request will raise a `RetryCapacityNotAvailableError` and will
168
+ # not retry instead of sleeping.
169
+ #
170
+ # @option options [Boolean] :client_side_monitoring (false)
171
+ # When `true`, client-side metrics will be collected for all API requests from
172
+ # this client.
173
+ #
174
+ # @option options [String] :client_side_monitoring_client_id ("")
175
+ # Allows you to provide an identifier for this client which will be attached to
176
+ # all generated client side metrics. Defaults to an empty string.
177
+ #
178
+ # @option options [String] :client_side_monitoring_host ("127.0.0.1")
179
+ # Allows you to specify the DNS hostname or IPv4 or IPv6 address that the client
180
+ # side monitoring agent is running on, where client metrics will be published via UDP.
181
+ #
182
+ # @option options [Integer] :client_side_monitoring_port (31000)
183
+ # Required for publishing client metrics. The port that the client side monitoring
184
+ # agent is running on, where client metrics will be published via UDP.
185
+ #
186
+ # @option options [Aws::ClientSideMonitoring::Publisher] :client_side_monitoring_publisher (Aws::ClientSideMonitoring::Publisher)
187
+ # Allows you to provide a custom client-side monitoring publisher class. By default,
188
+ # will use the Client Side Monitoring Agent Publisher.
189
+ #
190
+ # @option options [Boolean] :convert_params (true)
191
+ # When `true`, an attempt is made to coerce request parameters into
192
+ # the required types.
193
+ #
194
+ # @option options [Boolean] :correct_clock_skew (true)
195
+ # Used only in `standard` and adaptive retry modes. Specifies whether to apply
196
+ # a clock skew correction and retry requests with skewed client clocks.
197
+ #
198
+ # @option options [String] :defaults_mode ("legacy")
199
+ # See {Aws::DefaultsModeConfiguration} for a list of the
200
+ # accepted modes and the configuration defaults that are included.
201
+ #
202
+ # @option options [Boolean] :disable_host_prefix_injection (false)
203
+ # Set to true to disable SDK automatically adding host prefix
204
+ # to default service endpoint when available.
205
+ #
206
+ # @option options [Boolean] :disable_request_compression (false)
207
+ # When set to 'true' the request body will not be compressed
208
+ # for supported operations.
209
+ #
210
+ # @option options [String, URI::HTTPS, URI::HTTP] :endpoint
211
+ # Normally you should not configure the `:endpoint` option
212
+ # directly. This is normally constructed from the `:region`
213
+ # option. Configuring `:endpoint` is normally reserved for
214
+ # connecting to test or custom endpoints. The endpoint should
215
+ # be a URI formatted like:
216
+ #
217
+ # 'http://example.com'
218
+ # 'https://example.com'
219
+ # 'http://example.com:123'
220
+ #
221
+ # @option options [Integer] :endpoint_cache_max_entries (1000)
222
+ # Used for the maximum size limit of the LRU cache storing endpoints data
223
+ # for endpoint discovery enabled operations. Defaults to 1000.
224
+ #
225
+ # @option options [Integer] :endpoint_cache_max_threads (10)
226
+ # Used for the maximum threads in use for polling endpoints to be cached, defaults to 10.
227
+ #
228
+ # @option options [Integer] :endpoint_cache_poll_interval (60)
229
+ # When :endpoint_discovery and :active_endpoint_cache is enabled,
230
+ # Use this option to config the time interval in seconds for making
231
+ # requests fetching endpoints information. Defaults to 60 sec.
232
+ #
233
+ # @option options [Boolean] :endpoint_discovery (false)
234
+ # When set to `true`, endpoint discovery will be enabled for operations when available.
235
+ #
236
+ # @option options [Boolean] :ignore_configured_endpoint_urls
237
+ # Setting to true disables use of endpoint URLs provided via environment
238
+ # variables and the shared configuration file.
239
+ #
240
+ # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
241
+ # The log formatter.
242
+ #
243
+ # @option options [Symbol] :log_level (:info)
244
+ # The log level to send messages to the `:logger` at.
245
+ #
246
+ # @option options [Logger] :logger
247
+ # The Logger instance to send log messages to. If this option
248
+ # is not set, logging will be disabled.
249
+ #
250
+ # @option options [Integer] :max_attempts (3)
251
+ # An integer representing the maximum number attempts that will be made for
252
+ # a single request, including the initial attempt. For example,
253
+ # setting this value to 5 will result in a request being retried up to
254
+ # 4 times. Used in `standard` and `adaptive` retry modes.
255
+ #
256
+ # @option options [String] :profile ("default")
257
+ # Used when loading credentials from the shared credentials file
258
+ # at HOME/.aws/credentials. When not specified, 'default' is used.
259
+ #
260
+ # @option options [String] :request_checksum_calculation ("when_supported")
261
+ # Determines when a checksum will be calculated for request payloads. Values are:
262
+ #
263
+ # * `when_supported` - (default) When set, a checksum will be
264
+ # calculated for all request payloads of operations modeled with the
265
+ # `httpChecksum` trait where `requestChecksumRequired` is `true` and/or a
266
+ # `requestAlgorithmMember` is modeled.
267
+ # * `when_required` - When set, a checksum will only be calculated for
268
+ # request payloads of operations modeled with the `httpChecksum` trait where
269
+ # `requestChecksumRequired` is `true` or where a `requestAlgorithmMember`
270
+ # is modeled and supplied.
271
+ #
272
+ # @option options [Integer] :request_min_compression_size_bytes (10240)
273
+ # The minimum size in bytes that triggers compression for request
274
+ # bodies. The value must be non-negative integer value between 0
275
+ # and 10485780 bytes inclusive.
276
+ #
277
+ # @option options [String] :response_checksum_validation ("when_supported")
278
+ # Determines when checksum validation will be performed on response payloads. Values are:
279
+ #
280
+ # * `when_supported` - (default) When set, checksum validation is performed on all
281
+ # response payloads of operations modeled with the `httpChecksum` trait where
282
+ # `responseAlgorithms` is modeled, except when no modeled checksum algorithms
283
+ # are supported.
284
+ # * `when_required` - When set, checksum validation is not performed on
285
+ # response payloads of operations unless the checksum algorithm is supported and
286
+ # the `requestValidationModeMember` member is set to `ENABLED`.
287
+ #
288
+ # @option options [Proc] :retry_backoff
289
+ # A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
290
+ # This option is only used in the `legacy` retry mode.
291
+ #
292
+ # @option options [Float] :retry_base_delay (0.3)
293
+ # The base delay in seconds used by the default backoff function. This option
294
+ # is only used in the `legacy` retry mode.
295
+ #
296
+ # @option options [Symbol] :retry_jitter (:none)
297
+ # A delay randomiser function used by the default backoff function.
298
+ # Some predefined functions can be referenced by name - :none, :equal, :full,
299
+ # otherwise a Proc that takes and returns a number. This option is only used
300
+ # in the `legacy` retry mode.
301
+ #
302
+ # @see https://www.awsarchitectureblog.com/2015/03/backoff.html
303
+ #
304
+ # @option options [Integer] :retry_limit (3)
305
+ # The maximum number of times to retry failed requests. Only
306
+ # ~ 500 level server errors and certain ~ 400 level client errors
307
+ # are retried. Generally, these are throttling errors, data
308
+ # checksum errors, networking errors, timeout errors, auth errors,
309
+ # endpoint discovery, and errors from expired credentials.
310
+ # This option is only used in the `legacy` retry mode.
311
+ #
312
+ # @option options [Integer] :retry_max_delay (0)
313
+ # The maximum number of seconds to delay between retries (0 for no limit)
314
+ # used by the default backoff function. This option is only used in the
315
+ # `legacy` retry mode.
316
+ #
317
+ # @option options [String] :retry_mode ("legacy")
318
+ # Specifies which retry algorithm to use. Values are:
319
+ #
320
+ # * `legacy` - The pre-existing retry behavior. This is default value if
321
+ # no retry mode is provided.
322
+ #
323
+ # * `standard` - A standardized set of retry rules across the AWS SDKs.
324
+ # This includes support for retry quotas, which limit the number of
325
+ # unsuccessful retries a client can make.
326
+ #
327
+ # * `adaptive` - An experimental retry mode that includes all the
328
+ # functionality of `standard` mode along with automatic client side
329
+ # throttling. This is a provisional mode that may change behavior
330
+ # in the future.
331
+ #
332
+ # @option options [String] :sdk_ua_app_id
333
+ # A unique and opaque application ID that is appended to the
334
+ # User-Agent header as app/sdk_ua_app_id. It should have a
335
+ # maximum length of 50. This variable is sourced from environment
336
+ # variable AWS_SDK_UA_APP_ID or the shared config profile attribute sdk_ua_app_id.
337
+ #
338
+ # @option options [String] :secret_access_key
339
+ #
340
+ # @option options [String] :session_token
341
+ #
342
+ # @option options [Array] :sigv4a_signing_region_set
343
+ # A list of regions that should be signed with SigV4a signing. When
344
+ # not passed, a default `:sigv4a_signing_region_set` is searched for
345
+ # in the following locations:
346
+ #
347
+ # * `Aws.config[:sigv4a_signing_region_set]`
348
+ # * `ENV['AWS_SIGV4A_SIGNING_REGION_SET']`
349
+ # * `~/.aws/config`
350
+ #
351
+ # @option options [Boolean] :stub_responses (false)
352
+ # Causes the client to return stubbed responses. By default
353
+ # fake responses are generated and returned. You can specify
354
+ # the response data to return or errors to raise by calling
355
+ # {ClientStubs#stub_responses}. See {ClientStubs} for more information.
356
+ #
357
+ # ** Please note ** When response stubbing is enabled, no HTTP
358
+ # requests are made, and retries are disabled.
359
+ #
360
+ # @option options [Aws::Telemetry::TelemetryProviderBase] :telemetry_provider (Aws::Telemetry::NoOpTelemetryProvider)
361
+ # Allows you to provide a telemetry provider, which is used to
362
+ # emit telemetry data. By default, uses `NoOpTelemetryProvider` which
363
+ # will not record or emit any telemetry data. The SDK supports the
364
+ # following telemetry providers:
365
+ #
366
+ # * OpenTelemetry (OTel) - To use the OTel provider, install and require the
367
+ # `opentelemetry-sdk` gem and then, pass in an instance of a
368
+ # `Aws::Telemetry::OTelProvider` for telemetry provider.
369
+ #
370
+ # @option options [Aws::TokenProvider] :token_provider
371
+ # A Bearer Token Provider. This can be an instance of any one of the
372
+ # following classes:
373
+ #
374
+ # * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
375
+ # tokens.
376
+ #
377
+ # * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
378
+ # access token generated from `aws login`.
379
+ #
380
+ # When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
381
+ # will be used to search for tokens configured for your profile in shared configuration files.
382
+ #
383
+ # @option options [Boolean] :use_dualstack_endpoint
384
+ # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
385
+ # will be used if available.
386
+ #
387
+ # @option options [Boolean] :use_fips_endpoint
388
+ # When set to `true`, fips compatible endpoints will be used if available.
389
+ # When a `fips` region is used, the region is normalized and this config
390
+ # is set to `true`.
391
+ #
392
+ # @option options [Boolean] :validate_params (true)
393
+ # When `true`, request parameters are validated before
394
+ # sending the request.
395
+ #
396
+ # @option options [Aws::SSMGuiConnect::EndpointProvider] :endpoint_provider
397
+ # The endpoint provider used to resolve endpoints. Any object that responds to
398
+ # `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to
399
+ # `Aws::SSMGuiConnect::EndpointParameters`.
400
+ #
401
+ # @option options [Float] :http_continue_timeout (1)
402
+ # The number of seconds to wait for a 100-continue response before sending the
403
+ # request body. This option has no effect unless the request has "Expect"
404
+ # header set to "100-continue". Defaults to `nil` which disables this
405
+ # behaviour. This value can safely be set per request on the session.
406
+ #
407
+ # @option options [Float] :http_idle_timeout (5)
408
+ # The number of seconds a connection is allowed to sit idle before it
409
+ # is considered stale. Stale connections are closed and removed from the
410
+ # pool before making a request.
411
+ #
412
+ # @option options [Float] :http_open_timeout (15)
413
+ # The default number of seconds to wait for response data.
414
+ # This value can safely be set per-request on the session.
415
+ #
416
+ # @option options [URI::HTTP,String] :http_proxy
417
+ # A proxy to send requests through. Formatted like 'http://proxy.com:123'.
418
+ #
419
+ # @option options [Float] :http_read_timeout (60)
420
+ # The default number of seconds to wait for response data.
421
+ # This value can safely be set per-request on the session.
422
+ #
423
+ # @option options [Boolean] :http_wire_trace (false)
424
+ # When `true`, HTTP debug output will be sent to the `:logger`.
425
+ #
426
+ # @option options [Proc] :on_chunk_received
427
+ # When a Proc object is provided, it will be used as callback when each chunk
428
+ # of the response body is received. It provides three arguments: the chunk,
429
+ # the number of bytes received, and the total number of
430
+ # bytes in the response (or nil if the server did not send a `content-length`).
431
+ #
432
+ # @option options [Proc] :on_chunk_sent
433
+ # When a Proc object is provided, it will be used as callback when each chunk
434
+ # of the request body is sent. It provides three arguments: the chunk,
435
+ # the number of bytes read from the body, and the total number of
436
+ # bytes in the body.
437
+ #
438
+ # @option options [Boolean] :raise_response_errors (true)
439
+ # When `true`, response errors are raised.
440
+ #
441
+ # @option options [String] :ssl_ca_bundle
442
+ # Full path to the SSL certificate authority bundle file that should be used when
443
+ # verifying peer certificates. If you do not pass `:ssl_ca_bundle` or
444
+ # `:ssl_ca_directory` the the system default will be used if available.
445
+ #
446
+ # @option options [String] :ssl_ca_directory
447
+ # Full path of the directory that contains the unbundled SSL certificate
448
+ # authority files for verifying peer certificates. If you do
449
+ # not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the system
450
+ # default will be used if available.
451
+ #
452
+ # @option options [String] :ssl_ca_store
453
+ # Sets the X509::Store to verify peer certificate.
454
+ #
455
+ # @option options [OpenSSL::X509::Certificate] :ssl_cert
456
+ # Sets a client certificate when creating http connections.
457
+ #
458
+ # @option options [OpenSSL::PKey] :ssl_key
459
+ # Sets a client key when creating http connections.
460
+ #
461
+ # @option options [Float] :ssl_timeout
462
+ # Sets the SSL timeout in seconds
463
+ #
464
+ # @option options [Boolean] :ssl_verify_peer (true)
465
+ # When `true`, SSL peer certificates are verified when establishing a connection.
466
+ #
467
+ def initialize(*args)
468
+ super
469
+ end
470
+
471
+ # @!group API Operations
472
+
473
+ # Deletes the preferences for recording RDP connections.
474
+ #
475
+ # @option params [String] :client_token
476
+ # User-provided idempotency token.
477
+ #
478
+ # **A suitable default value is auto-generated.** You should normally
479
+ # not need to pass this option.**
480
+ #
481
+ # @return [Types::DeleteConnectionRecordingPreferencesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
482
+ #
483
+ # * {Types::DeleteConnectionRecordingPreferencesResponse#client_token #client_token} => String
484
+ #
485
+ # @example Request syntax with placeholder values
486
+ #
487
+ # resp = client.delete_connection_recording_preferences({
488
+ # client_token: "ClientToken",
489
+ # })
490
+ #
491
+ # @example Response structure
492
+ #
493
+ # resp.client_token #=> String
494
+ #
495
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ssm-guiconnect-2021-05-01/DeleteConnectionRecordingPreferences AWS API Documentation
496
+ #
497
+ # @overload delete_connection_recording_preferences(params = {})
498
+ # @param [Hash] params ({})
499
+ def delete_connection_recording_preferences(params = {}, options = {})
500
+ req = build_request(:delete_connection_recording_preferences, params)
501
+ req.send_request(options)
502
+ end
503
+
504
+ # Returns the preferences specified for recording RDP connections in the
505
+ # requesting Amazon Web Services account and Amazon Web Services Region.
506
+ #
507
+ # @return [Types::GetConnectionRecordingPreferencesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
508
+ #
509
+ # * {Types::GetConnectionRecordingPreferencesResponse#client_token #client_token} => String
510
+ # * {Types::GetConnectionRecordingPreferencesResponse#connection_recording_preferences #connection_recording_preferences} => Types::ConnectionRecordingPreferences
511
+ #
512
+ # @example Response structure
513
+ #
514
+ # resp.client_token #=> String
515
+ # resp.connection_recording_preferences.kms_key_arn #=> String
516
+ # resp.connection_recording_preferences.recording_destinations.s3_buckets #=> Array
517
+ # resp.connection_recording_preferences.recording_destinations.s3_buckets[0].bucket_name #=> String
518
+ # resp.connection_recording_preferences.recording_destinations.s3_buckets[0].bucket_owner #=> String
519
+ #
520
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ssm-guiconnect-2021-05-01/GetConnectionRecordingPreferences AWS API Documentation
521
+ #
522
+ # @overload get_connection_recording_preferences(params = {})
523
+ # @param [Hash] params ({})
524
+ def get_connection_recording_preferences(params = {}, options = {})
525
+ req = build_request(:get_connection_recording_preferences, params)
526
+ req.send_request(options)
527
+ end
528
+
529
+ # Updates the preferences for recording RDP connections.
530
+ #
531
+ # @option params [String] :client_token
532
+ # User-provided idempotency token.
533
+ #
534
+ # **A suitable default value is auto-generated.** You should normally
535
+ # not need to pass this option.**
536
+ #
537
+ # @option params [required, Types::ConnectionRecordingPreferences] :connection_recording_preferences
538
+ # The set of preferences used for recording RDP connections in the
539
+ # requesting Amazon Web Services account and Amazon Web Services Region.
540
+ # This includes details such as which S3 bucket recordings are stored
541
+ # in.
542
+ #
543
+ # @return [Types::UpdateConnectionRecordingPreferencesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
544
+ #
545
+ # * {Types::UpdateConnectionRecordingPreferencesResponse#client_token #client_token} => String
546
+ # * {Types::UpdateConnectionRecordingPreferencesResponse#connection_recording_preferences #connection_recording_preferences} => Types::ConnectionRecordingPreferences
547
+ #
548
+ # @example Request syntax with placeholder values
549
+ #
550
+ # resp = client.update_connection_recording_preferences({
551
+ # client_token: "ClientToken",
552
+ # connection_recording_preferences: { # required
553
+ # kms_key_arn: "ConnectionRecordingPreferencesKMSKeyArnString", # required
554
+ # recording_destinations: { # required
555
+ # s3_buckets: [ # required
556
+ # {
557
+ # bucket_name: "BucketName", # required
558
+ # bucket_owner: "AccountId", # required
559
+ # },
560
+ # ],
561
+ # },
562
+ # },
563
+ # })
564
+ #
565
+ # @example Response structure
566
+ #
567
+ # resp.client_token #=> String
568
+ # resp.connection_recording_preferences.kms_key_arn #=> String
569
+ # resp.connection_recording_preferences.recording_destinations.s3_buckets #=> Array
570
+ # resp.connection_recording_preferences.recording_destinations.s3_buckets[0].bucket_name #=> String
571
+ # resp.connection_recording_preferences.recording_destinations.s3_buckets[0].bucket_owner #=> String
572
+ #
573
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ssm-guiconnect-2021-05-01/UpdateConnectionRecordingPreferences AWS API Documentation
574
+ #
575
+ # @overload update_connection_recording_preferences(params = {})
576
+ # @param [Hash] params ({})
577
+ def update_connection_recording_preferences(params = {}, options = {})
578
+ req = build_request(:update_connection_recording_preferences, params)
579
+ req.send_request(options)
580
+ end
581
+
582
+ # @!endgroup
583
+
584
+ # @param params ({})
585
+ # @api private
586
+ def build_request(operation_name, params = {})
587
+ handlers = @handlers.for(operation_name)
588
+ tracer = config.telemetry_provider.tracer_provider.tracer(
589
+ Aws::Telemetry.module_to_tracer_name('Aws::SSMGuiConnect')
590
+ )
591
+ context = Seahorse::Client::RequestContext.new(
592
+ operation_name: operation_name,
593
+ operation: config.api.operation(operation_name),
594
+ client: self,
595
+ params: params,
596
+ config: config,
597
+ tracer: tracer
598
+ )
599
+ context[:gem_name] = 'aws-sdk-ssmguiconnect'
600
+ context[:gem_version] = '1.0.0'
601
+ Seahorse::Client::Request.new(handlers, context)
602
+ end
603
+
604
+ # @api private
605
+ # @deprecated
606
+ def waiter_names
607
+ []
608
+ end
609
+
610
+ class << self
611
+
612
+ # @api private
613
+ attr_reader :identifier
614
+
615
+ # @api private
616
+ def errors_module
617
+ Errors
618
+ end
619
+
620
+ end
621
+ end
622
+ end