aws-sdk-ssooidc 1.18.0 → 1.21.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.
@@ -1,572 +0,0 @@
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.rb'
11
- require 'aws-sdk-core/plugins/credentials_configuration.rb'
12
- require 'aws-sdk-core/plugins/logging.rb'
13
- require 'aws-sdk-core/plugins/param_converter.rb'
14
- require 'aws-sdk-core/plugins/param_validator.rb'
15
- require 'aws-sdk-core/plugins/user_agent.rb'
16
- require 'aws-sdk-core/plugins/helpful_socket_errors.rb'
17
- require 'aws-sdk-core/plugins/retry_errors.rb'
18
- require 'aws-sdk-core/plugins/global_configuration.rb'
19
- require 'aws-sdk-core/plugins/regional_endpoint.rb'
20
- require 'aws-sdk-core/plugins/endpoint_discovery.rb'
21
- require 'aws-sdk-core/plugins/endpoint_pattern.rb'
22
- require 'aws-sdk-core/plugins/response_paging.rb'
23
- require 'aws-sdk-core/plugins/stub_responses.rb'
24
- require 'aws-sdk-core/plugins/idempotency_token.rb'
25
- require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
26
- require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
27
- require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
28
- require 'aws-sdk-core/plugins/transfer_encoding.rb'
29
- require 'aws-sdk-core/plugins/http_checksum.rb'
30
- require 'aws-sdk-core/plugins/defaults_mode.rb'
31
- require 'aws-sdk-core/plugins/recursion_detection.rb'
32
- require 'aws-sdk-core/plugins/signature_v4.rb'
33
- require 'aws-sdk-core/plugins/protocols/rest_json.rb'
34
-
35
- Aws::Plugins::GlobalConfiguration.add_identifier(:ssooidc)
36
-
37
- module Aws::SSOOIDC
38
- # An API client for SSOOIDC. To construct a client, you need to configure a `:region` and `:credentials`.
39
- #
40
- # client = Aws::SSOOIDC::Client.new(
41
- # region: region_name,
42
- # credentials: credentials,
43
- # # ...
44
- # )
45
- #
46
- # For details on configuring region and credentials see
47
- # the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
48
- #
49
- # See {#initialize} for a full list of supported configuration options.
50
- class Client < Seahorse::Client::Base
51
-
52
- include Aws::ClientStubs
53
-
54
- @identifier = :ssooidc
55
-
56
- set_api(ClientApi::API)
57
-
58
- add_plugin(Seahorse::Client::Plugins::ContentLength)
59
- add_plugin(Aws::Plugins::CredentialsConfiguration)
60
- add_plugin(Aws::Plugins::Logging)
61
- add_plugin(Aws::Plugins::ParamConverter)
62
- add_plugin(Aws::Plugins::ParamValidator)
63
- add_plugin(Aws::Plugins::UserAgent)
64
- add_plugin(Aws::Plugins::HelpfulSocketErrors)
65
- add_plugin(Aws::Plugins::RetryErrors)
66
- add_plugin(Aws::Plugins::GlobalConfiguration)
67
- add_plugin(Aws::Plugins::RegionalEndpoint)
68
- add_plugin(Aws::Plugins::EndpointDiscovery)
69
- add_plugin(Aws::Plugins::EndpointPattern)
70
- add_plugin(Aws::Plugins::ResponsePaging)
71
- add_plugin(Aws::Plugins::StubResponses)
72
- add_plugin(Aws::Plugins::IdempotencyToken)
73
- add_plugin(Aws::Plugins::JsonvalueConverter)
74
- add_plugin(Aws::Plugins::ClientMetricsPlugin)
75
- add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
76
- add_plugin(Aws::Plugins::TransferEncoding)
77
- add_plugin(Aws::Plugins::HttpChecksum)
78
- add_plugin(Aws::Plugins::DefaultsMode)
79
- add_plugin(Aws::Plugins::RecursionDetection)
80
- add_plugin(Aws::Plugins::SignatureV4)
81
- add_plugin(Aws::Plugins::Protocols::RestJson)
82
-
83
- # @overload initialize(options)
84
- # @param [Hash] options
85
- # @option options [required, Aws::CredentialProvider] :credentials
86
- # Your AWS credentials. This can be an instance of any one of the
87
- # following classes:
88
- #
89
- # * `Aws::Credentials` - Used for configuring static, non-refreshing
90
- # credentials.
91
- #
92
- # * `Aws::SharedCredentials` - Used for loading static credentials from a
93
- # shared file, such as `~/.aws/config`.
94
- #
95
- # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
96
- #
97
- # * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to
98
- # assume a role after providing credentials via the web.
99
- #
100
- # * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an
101
- # access token generated from `aws login`.
102
- #
103
- # * `Aws::ProcessCredentials` - Used for loading credentials from a
104
- # process that outputs to stdout.
105
- #
106
- # * `Aws::InstanceProfileCredentials` - Used for loading credentials
107
- # from an EC2 IMDS on an EC2 instance.
108
- #
109
- # * `Aws::ECSCredentials` - Used for loading credentials from
110
- # instances running in ECS.
111
- #
112
- # * `Aws::CognitoIdentityCredentials` - Used for loading credentials
113
- # from the Cognito Identity service.
114
- #
115
- # When `:credentials` are not configured directly, the following
116
- # locations will be searched for credentials:
117
- #
118
- # * `Aws.config[:credentials]`
119
- # * The `:access_key_id`, `:secret_access_key`, and `:session_token` options.
120
- # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
121
- # * `~/.aws/credentials`
122
- # * `~/.aws/config`
123
- # * EC2/ECS IMDS instance profile - When used by default, the timeouts
124
- # are very aggressive. Construct and pass an instance of
125
- # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
126
- # enable retries and extended timeouts. Instance profile credential
127
- # fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
128
- # to true.
129
- #
130
- # @option options [required, String] :region
131
- # The AWS region to connect to. The configured `:region` is
132
- # used to determine the service `:endpoint`. When not passed,
133
- # a default `:region` is searched for in the following locations:
134
- #
135
- # * `Aws.config[:region]`
136
- # * `ENV['AWS_REGION']`
137
- # * `ENV['AMAZON_REGION']`
138
- # * `ENV['AWS_DEFAULT_REGION']`
139
- # * `~/.aws/credentials`
140
- # * `~/.aws/config`
141
- #
142
- # @option options [String] :access_key_id
143
- #
144
- # @option options [Boolean] :active_endpoint_cache (false)
145
- # When set to `true`, a thread polling for endpoints will be running in
146
- # the background every 60 secs (default). Defaults to `false`.
147
- #
148
- # @option options [Boolean] :adaptive_retry_wait_to_fill (true)
149
- # Used only in `adaptive` retry mode. When true, the request will sleep
150
- # until there is sufficent client side capacity to retry the request.
151
- # When false, the request will raise a `RetryCapacityNotAvailableError` and will
152
- # not retry instead of sleeping.
153
- #
154
- # @option options [Boolean] :client_side_monitoring (false)
155
- # When `true`, client-side metrics will be collected for all API requests from
156
- # this client.
157
- #
158
- # @option options [String] :client_side_monitoring_client_id ("")
159
- # Allows you to provide an identifier for this client which will be attached to
160
- # all generated client side metrics. Defaults to an empty string.
161
- #
162
- # @option options [String] :client_side_monitoring_host ("127.0.0.1")
163
- # Allows you to specify the DNS hostname or IPv4 or IPv6 address that the client
164
- # side monitoring agent is running on, where client metrics will be published via UDP.
165
- #
166
- # @option options [Integer] :client_side_monitoring_port (31000)
167
- # Required for publishing client metrics. The port that the client side monitoring
168
- # agent is running on, where client metrics will be published via UDP.
169
- #
170
- # @option options [Aws::ClientSideMonitoring::Publisher] :client_side_monitoring_publisher (Aws::ClientSideMonitoring::Publisher)
171
- # Allows you to provide a custom client-side monitoring publisher class. By default,
172
- # will use the Client Side Monitoring Agent Publisher.
173
- #
174
- # @option options [Boolean] :convert_params (true)
175
- # When `true`, an attempt is made to coerce request parameters into
176
- # the required types.
177
- #
178
- # @option options [Boolean] :correct_clock_skew (true)
179
- # Used only in `standard` and adaptive retry modes. Specifies whether to apply
180
- # a clock skew correction and retry requests with skewed client clocks.
181
- #
182
- # @option options [String] :defaults_mode ("legacy")
183
- # See {Aws::DefaultsModeConfiguration} for a list of the
184
- # accepted modes and the configuration defaults that are included.
185
- #
186
- # @option options [Boolean] :disable_host_prefix_injection (false)
187
- # Set to true to disable SDK automatically adding host prefix
188
- # to default service endpoint when available.
189
- #
190
- # @option options [String] :endpoint
191
- # The client endpoint is normally constructed from the `:region`
192
- # option. You should only configure an `:endpoint` when connecting
193
- # to test or custom endpoints. This should be a valid HTTP(S) URI.
194
- #
195
- # @option options [Integer] :endpoint_cache_max_entries (1000)
196
- # Used for the maximum size limit of the LRU cache storing endpoints data
197
- # for endpoint discovery enabled operations. Defaults to 1000.
198
- #
199
- # @option options [Integer] :endpoint_cache_max_threads (10)
200
- # Used for the maximum threads in use for polling endpoints to be cached, defaults to 10.
201
- #
202
- # @option options [Integer] :endpoint_cache_poll_interval (60)
203
- # When :endpoint_discovery and :active_endpoint_cache is enabled,
204
- # Use this option to config the time interval in seconds for making
205
- # requests fetching endpoints information. Defaults to 60 sec.
206
- #
207
- # @option options [Boolean] :endpoint_discovery (false)
208
- # When set to `true`, endpoint discovery will be enabled for operations when available.
209
- #
210
- # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
211
- # The log formatter.
212
- #
213
- # @option options [Symbol] :log_level (:info)
214
- # The log level to send messages to the `:logger` at.
215
- #
216
- # @option options [Logger] :logger
217
- # The Logger instance to send log messages to. If this option
218
- # is not set, logging will be disabled.
219
- #
220
- # @option options [Integer] :max_attempts (3)
221
- # An integer representing the maximum number attempts that will be made for
222
- # a single request, including the initial attempt. For example,
223
- # setting this value to 5 will result in a request being retried up to
224
- # 4 times. Used in `standard` and `adaptive` retry modes.
225
- #
226
- # @option options [String] :profile ("default")
227
- # Used when loading credentials from the shared credentials file
228
- # at HOME/.aws/credentials. When not specified, 'default' is used.
229
- #
230
- # @option options [Proc] :retry_backoff
231
- # A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
232
- # This option is only used in the `legacy` retry mode.
233
- #
234
- # @option options [Float] :retry_base_delay (0.3)
235
- # The base delay in seconds used by the default backoff function. This option
236
- # is only used in the `legacy` retry mode.
237
- #
238
- # @option options [Symbol] :retry_jitter (:none)
239
- # A delay randomiser function used by the default backoff function.
240
- # Some predefined functions can be referenced by name - :none, :equal, :full,
241
- # otherwise a Proc that takes and returns a number. This option is only used
242
- # in the `legacy` retry mode.
243
- #
244
- # @see https://www.awsarchitectureblog.com/2015/03/backoff.html
245
- #
246
- # @option options [Integer] :retry_limit (3)
247
- # The maximum number of times to retry failed requests. Only
248
- # ~ 500 level server errors and certain ~ 400 level client errors
249
- # are retried. Generally, these are throttling errors, data
250
- # checksum errors, networking errors, timeout errors, auth errors,
251
- # endpoint discovery, and errors from expired credentials.
252
- # This option is only used in the `legacy` retry mode.
253
- #
254
- # @option options [Integer] :retry_max_delay (0)
255
- # The maximum number of seconds to delay between retries (0 for no limit)
256
- # used by the default backoff function. This option is only used in the
257
- # `legacy` retry mode.
258
- #
259
- # @option options [String] :retry_mode ("legacy")
260
- # Specifies which retry algorithm to use. Values are:
261
- #
262
- # * `legacy` - The pre-existing retry behavior. This is default value if
263
- # no retry mode is provided.
264
- #
265
- # * `standard` - A standardized set of retry rules across the AWS SDKs.
266
- # This includes support for retry quotas, which limit the number of
267
- # unsuccessful retries a client can make.
268
- #
269
- # * `adaptive` - An experimental retry mode that includes all the
270
- # functionality of `standard` mode along with automatic client side
271
- # throttling. This is a provisional mode that may change behavior
272
- # in the future.
273
- #
274
- #
275
- # @option options [String] :secret_access_key
276
- #
277
- # @option options [String] :session_token
278
- #
279
- # @option options [Boolean] :stub_responses (false)
280
- # Causes the client to return stubbed responses. By default
281
- # fake responses are generated and returned. You can specify
282
- # the response data to return or errors to raise by calling
283
- # {ClientStubs#stub_responses}. See {ClientStubs} for more information.
284
- #
285
- # ** Please note ** When response stubbing is enabled, no HTTP
286
- # requests are made, and retries are disabled.
287
- #
288
- # @option options [Boolean] :use_dualstack_endpoint
289
- # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
290
- # will be used if available.
291
- #
292
- # @option options [Boolean] :use_fips_endpoint
293
- # When set to `true`, fips compatible endpoints will be used if available.
294
- # When a `fips` region is used, the region is normalized and this config
295
- # is set to `true`.
296
- #
297
- # @option options [Boolean] :validate_params (true)
298
- # When `true`, request parameters are validated before
299
- # sending the request.
300
- #
301
- # @option options [URI::HTTP,String] :http_proxy A proxy to send
302
- # requests through. Formatted like 'http://proxy.com:123'.
303
- #
304
- # @option options [Float] :http_open_timeout (15) The number of
305
- # seconds to wait when opening a HTTP session before raising a
306
- # `Timeout::Error`.
307
- #
308
- # @option options [Float] :http_read_timeout (60) The default
309
- # number of seconds to wait for response data. This value can
310
- # safely be set per-request on the session.
311
- #
312
- # @option options [Float] :http_idle_timeout (5) The number of
313
- # seconds a connection is allowed to sit idle before it is
314
- # considered stale. Stale connections are closed and removed
315
- # from the pool before making a request.
316
- #
317
- # @option options [Float] :http_continue_timeout (1) The number of
318
- # seconds to wait for a 100-continue response before sending the
319
- # request body. This option has no effect unless the request has
320
- # "Expect" header set to "100-continue". Defaults to `nil` which
321
- # disables this behaviour. This value can safely be set per
322
- # request on the session.
323
- #
324
- # @option options [Float] :ssl_timeout (nil) Sets the SSL timeout
325
- # in seconds.
326
- #
327
- # @option options [Boolean] :http_wire_trace (false) When `true`,
328
- # HTTP debug output will be sent to the `:logger`.
329
- #
330
- # @option options [Boolean] :ssl_verify_peer (true) When `true`,
331
- # SSL peer certificates are verified when establishing a
332
- # connection.
333
- #
334
- # @option options [String] :ssl_ca_bundle Full path to the SSL
335
- # certificate authority bundle file that should be used when
336
- # verifying peer certificates. If you do not pass
337
- # `:ssl_ca_bundle` or `:ssl_ca_directory` the the system default
338
- # will be used if available.
339
- #
340
- # @option options [String] :ssl_ca_directory Full path of the
341
- # directory that contains the unbundled SSL certificate
342
- # authority files for verifying peer certificates. If you do
343
- # not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the
344
- # system default will be used if available.
345
- #
346
- def initialize(*args)
347
- super
348
- end
349
-
350
- # @!group API Operations
351
-
352
- # Creates and returns an access token for the authorized client. The
353
- # access token issued will be used to fetch short-term credentials for
354
- # the assigned roles in the AWS account.
355
- #
356
- # @option params [required, String] :client_id
357
- # The unique identifier string for each client. This value should come
358
- # from the persisted result of the RegisterClient API.
359
- #
360
- # @option params [required, String] :client_secret
361
- # A secret string generated for the client. This value should come from
362
- # the persisted result of the RegisterClient API.
363
- #
364
- # @option params [required, String] :grant_type
365
- # Supports grant types for authorization code, refresh token, and device
366
- # code request.
367
- #
368
- # @option params [required, String] :device_code
369
- # Used only when calling this API for the device code grant type. This
370
- # short-term code is used to identify this authentication attempt. This
371
- # should come from an in-memory reference to the result of the
372
- # StartDeviceAuthorization API.
373
- #
374
- # @option params [String] :code
375
- # The authorization code received from the authorization service. This
376
- # parameter is required to perform an authorization grant request to get
377
- # access to a token.
378
- #
379
- # @option params [String] :refresh_token
380
- # The token used to obtain an access token in the event that the access
381
- # token is invalid or expired. This token is not issued by the service.
382
- #
383
- # @option params [Array<String>] :scope
384
- # The list of scopes that is defined by the client. Upon authorization,
385
- # this list is used to restrict permissions when granting an access
386
- # token.
387
- #
388
- # @option params [String] :redirect_uri
389
- # The location of the application that will receive the authorization
390
- # code. Users authorize the service to send the request to this
391
- # location.
392
- #
393
- # @return [Types::CreateTokenResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
394
- #
395
- # * {Types::CreateTokenResponse#access_token #access_token} => String
396
- # * {Types::CreateTokenResponse#token_type #token_type} => String
397
- # * {Types::CreateTokenResponse#expires_in #expires_in} => Integer
398
- # * {Types::CreateTokenResponse#refresh_token #refresh_token} => String
399
- # * {Types::CreateTokenResponse#id_token #id_token} => String
400
- #
401
- # @example Request syntax with placeholder values
402
- #
403
- # resp = client.create_token({
404
- # client_id: "ClientId", # required
405
- # client_secret: "ClientSecret", # required
406
- # grant_type: "GrantType", # required
407
- # device_code: "DeviceCode", # required
408
- # code: "AuthCode",
409
- # refresh_token: "RefreshToken",
410
- # scope: ["Scope"],
411
- # redirect_uri: "URI",
412
- # })
413
- #
414
- # @example Response structure
415
- #
416
- # resp.access_token #=> String
417
- # resp.token_type #=> String
418
- # resp.expires_in #=> Integer
419
- # resp.refresh_token #=> String
420
- # resp.id_token #=> String
421
- #
422
- # @see http://docs.aws.amazon.com/goto/WebAPI/sso-oidc-2019-06-10/CreateToken AWS API Documentation
423
- #
424
- # @overload create_token(params = {})
425
- # @param [Hash] params ({})
426
- def create_token(params = {}, options = {})
427
- req = build_request(:create_token, params)
428
- req.send_request(options)
429
- end
430
-
431
- # Registers a client with AWS SSO. This allows clients to initiate
432
- # device authorization. The output should be persisted for reuse through
433
- # many authentication requests.
434
- #
435
- # @option params [required, String] :client_name
436
- # The friendly name of the client.
437
- #
438
- # @option params [required, String] :client_type
439
- # The type of client. The service supports only `public` as a client
440
- # type. Anything other than public will be rejected by the service.
441
- #
442
- # @option params [Array<String>] :scopes
443
- # The list of scopes that are defined by the client. Upon authorization,
444
- # this list is used to restrict permissions when granting an access
445
- # token.
446
- #
447
- # @return [Types::RegisterClientResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
448
- #
449
- # * {Types::RegisterClientResponse#client_id #client_id} => String
450
- # * {Types::RegisterClientResponse#client_secret #client_secret} => String
451
- # * {Types::RegisterClientResponse#client_id_issued_at #client_id_issued_at} => Integer
452
- # * {Types::RegisterClientResponse#client_secret_expires_at #client_secret_expires_at} => Integer
453
- # * {Types::RegisterClientResponse#authorization_endpoint #authorization_endpoint} => String
454
- # * {Types::RegisterClientResponse#token_endpoint #token_endpoint} => String
455
- #
456
- # @example Request syntax with placeholder values
457
- #
458
- # resp = client.register_client({
459
- # client_name: "ClientName", # required
460
- # client_type: "ClientType", # required
461
- # scopes: ["Scope"],
462
- # })
463
- #
464
- # @example Response structure
465
- #
466
- # resp.client_id #=> String
467
- # resp.client_secret #=> String
468
- # resp.client_id_issued_at #=> Integer
469
- # resp.client_secret_expires_at #=> Integer
470
- # resp.authorization_endpoint #=> String
471
- # resp.token_endpoint #=> String
472
- #
473
- # @see http://docs.aws.amazon.com/goto/WebAPI/sso-oidc-2019-06-10/RegisterClient AWS API Documentation
474
- #
475
- # @overload register_client(params = {})
476
- # @param [Hash] params ({})
477
- def register_client(params = {}, options = {})
478
- req = build_request(:register_client, params)
479
- req.send_request(options)
480
- end
481
-
482
- # Initiates device authorization by requesting a pair of verification
483
- # codes from the authorization service.
484
- #
485
- # @option params [required, String] :client_id
486
- # The unique identifier string for the client that is registered with
487
- # AWS SSO. This value should come from the persisted result of the
488
- # RegisterClient API operation.
489
- #
490
- # @option params [required, String] :client_secret
491
- # A secret string that is generated for the client. This value should
492
- # come from the persisted result of the RegisterClient API operation.
493
- #
494
- # @option params [required, String] :start_url
495
- # The URL for the AWS SSO user portal. For more information, see [Using
496
- # the User Portal][1] in the *AWS Single Sign-On User Guide*.
497
- #
498
- #
499
- #
500
- # [1]: https://docs.aws.amazon.com/singlesignon/latest/userguide/using-the-portal.html
501
- #
502
- # @return [Types::StartDeviceAuthorizationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
503
- #
504
- # * {Types::StartDeviceAuthorizationResponse#device_code #device_code} => String
505
- # * {Types::StartDeviceAuthorizationResponse#user_code #user_code} => String
506
- # * {Types::StartDeviceAuthorizationResponse#verification_uri #verification_uri} => String
507
- # * {Types::StartDeviceAuthorizationResponse#verification_uri_complete #verification_uri_complete} => String
508
- # * {Types::StartDeviceAuthorizationResponse#expires_in #expires_in} => Integer
509
- # * {Types::StartDeviceAuthorizationResponse#interval #interval} => Integer
510
- #
511
- # @example Request syntax with placeholder values
512
- #
513
- # resp = client.start_device_authorization({
514
- # client_id: "ClientId", # required
515
- # client_secret: "ClientSecret", # required
516
- # start_url: "URI", # required
517
- # })
518
- #
519
- # @example Response structure
520
- #
521
- # resp.device_code #=> String
522
- # resp.user_code #=> String
523
- # resp.verification_uri #=> String
524
- # resp.verification_uri_complete #=> String
525
- # resp.expires_in #=> Integer
526
- # resp.interval #=> Integer
527
- #
528
- # @see http://docs.aws.amazon.com/goto/WebAPI/sso-oidc-2019-06-10/StartDeviceAuthorization AWS API Documentation
529
- #
530
- # @overload start_device_authorization(params = {})
531
- # @param [Hash] params ({})
532
- def start_device_authorization(params = {}, options = {})
533
- req = build_request(:start_device_authorization, params)
534
- req.send_request(options)
535
- end
536
-
537
- # @!endgroup
538
-
539
- # @param params ({})
540
- # @api private
541
- def build_request(operation_name, params = {})
542
- handlers = @handlers.for(operation_name)
543
- context = Seahorse::Client::RequestContext.new(
544
- operation_name: operation_name,
545
- operation: config.api.operation(operation_name),
546
- client: self,
547
- params: params,
548
- config: config)
549
- context[:gem_name] = 'aws-sdk-ssooidc'
550
- context[:gem_version] = '1.18.0'
551
- Seahorse::Client::Request.new(handlers, context)
552
- end
553
-
554
- # @api private
555
- # @deprecated
556
- def waiter_names
557
- []
558
- end
559
-
560
- class << self
561
-
562
- # @api private
563
- attr_reader :identifier
564
-
565
- # @api private
566
- def errors_module
567
- Errors
568
- end
569
-
570
- end
571
- end
572
- end