aws-sdk-core 3.191.0 → 3.195.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +100 -1
- data/VERSION +1 -1
- data/lib/aws-sdk-core/binary/decode_handler.rb +0 -5
- data/lib/aws-sdk-core/binary/event_builder.rb +34 -37
- data/lib/aws-sdk-core/credential_provider.rb +1 -1
- data/lib/aws-sdk-core/ec2_metadata.rb +1 -1
- data/lib/aws-sdk-core/ecs_credentials.rb +2 -1
- data/lib/aws-sdk-core/event_emitter.rb +0 -16
- data/lib/aws-sdk-core/instance_profile_credentials.rb +3 -2
- data/lib/aws-sdk-core/json/builder.rb +8 -1
- data/lib/aws-sdk-core/json/error_handler.rb +10 -3
- data/lib/aws-sdk-core/json/parser.rb +4 -1
- data/lib/aws-sdk-core/lru_cache.rb +75 -0
- data/lib/aws-sdk-core/param_validator.rb +7 -2
- data/lib/aws-sdk-core/plugins/invocation_id.rb +1 -11
- data/lib/aws-sdk-core/plugins/protocols/rest_json.rb +3 -16
- data/lib/aws-sdk-core/plugins/protocols/rest_xml.rb +1 -2
- data/lib/aws-sdk-core/plugins/request_compression.rb +1 -1
- data/lib/aws-sdk-core/plugins/sign.rb +8 -3
- data/lib/aws-sdk-core/query/ec2_param_builder.rb +5 -7
- data/lib/aws-sdk-core/query/param_builder.rb +2 -2
- data/lib/aws-sdk-core/rest/request/body.rb +32 -5
- data/lib/aws-sdk-core/rest/request/content_type.rb +60 -0
- data/lib/aws-sdk-core/rest/request/endpoint.rb +22 -4
- data/lib/aws-sdk-core/rest/request/headers.rb +15 -7
- data/lib/aws-sdk-core/rest/request/querystring_builder.rb +23 -11
- data/lib/aws-sdk-core/rest/response/body.rb +15 -1
- data/lib/aws-sdk-core/rest/response/header_list_parser.rb +79 -0
- data/lib/aws-sdk-core/rest/response/headers.rb +8 -3
- data/lib/aws-sdk-core/rest.rb +1 -0
- data/lib/aws-sdk-core/util.rb +39 -0
- data/lib/aws-sdk-core/xml/builder.rb +17 -9
- data/lib/aws-sdk-core/xml/error_handler.rb +24 -8
- data/lib/aws-sdk-core/xml/parser/frame.rb +4 -20
- data/lib/aws-sdk-core/xml/parser/stack.rb +2 -0
- data/lib/aws-sdk-core.rb +1 -0
- data/lib/aws-sdk-sso/client.rb +70 -46
- data/lib/aws-sdk-sso.rb +1 -1
- data/lib/aws-sdk-ssooidc/client.rb +120 -48
- data/lib/aws-sdk-ssooidc/client_api.rb +22 -0
- data/lib/aws-sdk-ssooidc/errors.rb +21 -0
- data/lib/aws-sdk-ssooidc/types.rb +77 -9
- data/lib/aws-sdk-ssooidc.rb +1 -1
- data/lib/aws-sdk-sts/client.rb +70 -46
- data/lib/aws-sdk-sts/client_api.rb +8 -8
- data/lib/aws-sdk-sts.rb +1 -1
- data/lib/seahorse/client/async_base.rb +1 -1
- data/lib/seahorse/client/async_response.rb +19 -0
- data/lib/seahorse/client/base.rb +1 -0
- data/lib/seahorse/client/h2/handler.rb +1 -0
- data/lib/seahorse/client/net_http/connection_pool.rb +1 -5
- data/lib/seahorse/client/plugin.rb +8 -0
- data/lib/seahorse/client/plugins/net_http.rb +48 -16
- data/lib/seahorse/model/shapes.rb +2 -2
- metadata +5 -2
data/lib/aws-sdk-sso/client.rb
CHANGED
|
@@ -22,6 +22,7 @@ require 'aws-sdk-core/plugins/endpoint_pattern.rb'
|
|
|
22
22
|
require 'aws-sdk-core/plugins/response_paging.rb'
|
|
23
23
|
require 'aws-sdk-core/plugins/stub_responses.rb'
|
|
24
24
|
require 'aws-sdk-core/plugins/idempotency_token.rb'
|
|
25
|
+
require 'aws-sdk-core/plugins/invocation_id.rb'
|
|
25
26
|
require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
|
|
26
27
|
require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
|
27
28
|
require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
|
@@ -72,6 +73,7 @@ module Aws::SSO
|
|
|
72
73
|
add_plugin(Aws::Plugins::ResponsePaging)
|
|
73
74
|
add_plugin(Aws::Plugins::StubResponses)
|
|
74
75
|
add_plugin(Aws::Plugins::IdempotencyToken)
|
|
76
|
+
add_plugin(Aws::Plugins::InvocationId)
|
|
75
77
|
add_plugin(Aws::Plugins::JsonvalueConverter)
|
|
76
78
|
add_plugin(Aws::Plugins::ClientMetricsPlugin)
|
|
77
79
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
|
@@ -196,10 +198,17 @@ module Aws::SSO
|
|
|
196
198
|
# When set to 'true' the request body will not be compressed
|
|
197
199
|
# for supported operations.
|
|
198
200
|
#
|
|
199
|
-
# @option options [String] :endpoint
|
|
200
|
-
#
|
|
201
|
-
#
|
|
202
|
-
#
|
|
201
|
+
# @option options [String, URI::HTTPS, URI::HTTP] :endpoint
|
|
202
|
+
# Normally you should not configure the `:endpoint` option
|
|
203
|
+
# directly. This is normally constructed from the `:region`
|
|
204
|
+
# option. Configuring `:endpoint` is normally reserved for
|
|
205
|
+
# connecting to test or custom endpoints. The endpoint should
|
|
206
|
+
# be a URI formatted like:
|
|
207
|
+
#
|
|
208
|
+
# 'http://example.com'
|
|
209
|
+
# 'https://example.com'
|
|
210
|
+
# 'http://example.com:123'
|
|
211
|
+
#
|
|
203
212
|
#
|
|
204
213
|
# @option options [Integer] :endpoint_cache_max_entries (1000)
|
|
205
214
|
# Used for the maximum size limit of the LRU cache storing endpoints data
|
|
@@ -337,50 +346,65 @@ module Aws::SSO
|
|
|
337
346
|
# @option options [Aws::SSO::EndpointProvider] :endpoint_provider
|
|
338
347
|
# The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::SSO::EndpointParameters`
|
|
339
348
|
#
|
|
340
|
-
# @option options [
|
|
341
|
-
#
|
|
342
|
-
#
|
|
343
|
-
#
|
|
344
|
-
#
|
|
345
|
-
#
|
|
346
|
-
#
|
|
347
|
-
#
|
|
348
|
-
#
|
|
349
|
-
#
|
|
350
|
-
#
|
|
351
|
-
# @option options [Float] :
|
|
352
|
-
#
|
|
353
|
-
#
|
|
354
|
-
#
|
|
355
|
-
#
|
|
356
|
-
#
|
|
357
|
-
#
|
|
358
|
-
#
|
|
359
|
-
#
|
|
360
|
-
#
|
|
361
|
-
#
|
|
362
|
-
#
|
|
363
|
-
#
|
|
364
|
-
#
|
|
349
|
+
# @option options [Float] :http_continue_timeout (1)
|
|
350
|
+
# The number of seconds to wait for a 100-continue response before sending the
|
|
351
|
+
# request body. This option has no effect unless the request has "Expect"
|
|
352
|
+
# header set to "100-continue". Defaults to `nil` which disables this
|
|
353
|
+
# behaviour. This value can safely be set per request on the session.
|
|
354
|
+
#
|
|
355
|
+
# @option options [Float] :http_idle_timeout (5)
|
|
356
|
+
# The number of seconds a connection is allowed to sit idle before it
|
|
357
|
+
# is considered stale. Stale connections are closed and removed from the
|
|
358
|
+
# pool before making a request.
|
|
359
|
+
#
|
|
360
|
+
# @option options [Float] :http_open_timeout (15)
|
|
361
|
+
# The default number of seconds to wait for response data.
|
|
362
|
+
# This value can safely be set per-request on the session.
|
|
363
|
+
#
|
|
364
|
+
# @option options [URI::HTTP,String] :http_proxy
|
|
365
|
+
# A proxy to send requests through. Formatted like 'http://proxy.com:123'.
|
|
366
|
+
#
|
|
367
|
+
# @option options [Float] :http_read_timeout (60)
|
|
368
|
+
# The default number of seconds to wait for response data.
|
|
369
|
+
# This value can safely be set per-request on the session.
|
|
370
|
+
#
|
|
371
|
+
# @option options [Boolean] :http_wire_trace (false)
|
|
372
|
+
# When `true`, HTTP debug output will be sent to the `:logger`.
|
|
373
|
+
#
|
|
374
|
+
# @option options [Proc] :on_chunk_received
|
|
375
|
+
# When a Proc object is provided, it will be used as callback when each chunk
|
|
376
|
+
# of the response body is received. It provides three arguments: the chunk,
|
|
377
|
+
# the number of bytes received, and the total number of
|
|
378
|
+
# bytes in the response (or nil if the server did not send a `content-length`).
|
|
379
|
+
#
|
|
380
|
+
# @option options [Proc] :on_chunk_sent
|
|
381
|
+
# When a Proc object is provided, it will be used as callback when each chunk
|
|
382
|
+
# of the request body is sent. It provides three arguments: the chunk,
|
|
383
|
+
# the number of bytes read from the body, and the total number of
|
|
384
|
+
# bytes in the body.
|
|
385
|
+
#
|
|
386
|
+
# @option options [Boolean] :raise_response_errors (true)
|
|
387
|
+
# When `true`, response errors are raised.
|
|
388
|
+
#
|
|
389
|
+
# @option options [String] :ssl_ca_bundle
|
|
390
|
+
# Full path to the SSL certificate authority bundle file that should be used when
|
|
391
|
+
# verifying peer certificates. If you do not pass `:ssl_ca_bundle` or
|
|
392
|
+
# `:ssl_ca_directory` the the system default will be used if available.
|
|
393
|
+
#
|
|
394
|
+
# @option options [String] :ssl_ca_directory
|
|
395
|
+
# Full path of the directory that contains the unbundled SSL certificate
|
|
396
|
+
# authority files for verifying peer certificates. If you do
|
|
397
|
+
# not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the system
|
|
398
|
+
# default will be used if available.
|
|
365
399
|
#
|
|
366
|
-
# @option options [
|
|
367
|
-
#
|
|
400
|
+
# @option options [String] :ssl_ca_store
|
|
401
|
+
# Sets the X509::Store to verify peer certificate.
|
|
368
402
|
#
|
|
369
|
-
# @option options [
|
|
370
|
-
#
|
|
371
|
-
# connection.
|
|
403
|
+
# @option options [Float] :ssl_timeout
|
|
404
|
+
# Sets the SSL timeout in seconds
|
|
372
405
|
#
|
|
373
|
-
# @option options [
|
|
374
|
-
#
|
|
375
|
-
# verifying peer certificates. If you do not pass
|
|
376
|
-
# `:ssl_ca_bundle` or `:ssl_ca_directory` the the system default
|
|
377
|
-
# will be used if available.
|
|
378
|
-
#
|
|
379
|
-
# @option options [String] :ssl_ca_directory Full path of the
|
|
380
|
-
# directory that contains the unbundled SSL certificate
|
|
381
|
-
# authority files for verifying peer certificates. If you do
|
|
382
|
-
# not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the
|
|
383
|
-
# system default will be used if available.
|
|
406
|
+
# @option options [Boolean] :ssl_verify_peer (true)
|
|
407
|
+
# When `true`, SSL peer certificates are verified when establishing a connection.
|
|
384
408
|
#
|
|
385
409
|
def initialize(*args)
|
|
386
410
|
super
|
|
@@ -605,7 +629,7 @@ module Aws::SSO
|
|
|
605
629
|
params: params,
|
|
606
630
|
config: config)
|
|
607
631
|
context[:gem_name] = 'aws-sdk-core'
|
|
608
|
-
context[:gem_version] = '3.
|
|
632
|
+
context[:gem_version] = '3.195.0'
|
|
609
633
|
Seahorse::Client::Request.new(handlers, context)
|
|
610
634
|
end
|
|
611
635
|
|
data/lib/aws-sdk-sso.rb
CHANGED
|
@@ -22,6 +22,7 @@ require 'aws-sdk-core/plugins/endpoint_pattern.rb'
|
|
|
22
22
|
require 'aws-sdk-core/plugins/response_paging.rb'
|
|
23
23
|
require 'aws-sdk-core/plugins/stub_responses.rb'
|
|
24
24
|
require 'aws-sdk-core/plugins/idempotency_token.rb'
|
|
25
|
+
require 'aws-sdk-core/plugins/invocation_id.rb'
|
|
25
26
|
require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
|
|
26
27
|
require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
|
27
28
|
require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
|
@@ -72,6 +73,7 @@ module Aws::SSOOIDC
|
|
|
72
73
|
add_plugin(Aws::Plugins::ResponsePaging)
|
|
73
74
|
add_plugin(Aws::Plugins::StubResponses)
|
|
74
75
|
add_plugin(Aws::Plugins::IdempotencyToken)
|
|
76
|
+
add_plugin(Aws::Plugins::InvocationId)
|
|
75
77
|
add_plugin(Aws::Plugins::JsonvalueConverter)
|
|
76
78
|
add_plugin(Aws::Plugins::ClientMetricsPlugin)
|
|
77
79
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
|
@@ -196,10 +198,17 @@ module Aws::SSOOIDC
|
|
|
196
198
|
# When set to 'true' the request body will not be compressed
|
|
197
199
|
# for supported operations.
|
|
198
200
|
#
|
|
199
|
-
# @option options [String] :endpoint
|
|
200
|
-
#
|
|
201
|
-
#
|
|
202
|
-
#
|
|
201
|
+
# @option options [String, URI::HTTPS, URI::HTTP] :endpoint
|
|
202
|
+
# Normally you should not configure the `:endpoint` option
|
|
203
|
+
# directly. This is normally constructed from the `:region`
|
|
204
|
+
# option. Configuring `:endpoint` is normally reserved for
|
|
205
|
+
# connecting to test or custom endpoints. The endpoint should
|
|
206
|
+
# be a URI formatted like:
|
|
207
|
+
#
|
|
208
|
+
# 'http://example.com'
|
|
209
|
+
# 'https://example.com'
|
|
210
|
+
# 'http://example.com:123'
|
|
211
|
+
#
|
|
203
212
|
#
|
|
204
213
|
# @option options [Integer] :endpoint_cache_max_entries (1000)
|
|
205
214
|
# Used for the maximum size limit of the LRU cache storing endpoints data
|
|
@@ -337,50 +346,65 @@ module Aws::SSOOIDC
|
|
|
337
346
|
# @option options [Aws::SSOOIDC::EndpointProvider] :endpoint_provider
|
|
338
347
|
# The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::SSOOIDC::EndpointParameters`
|
|
339
348
|
#
|
|
340
|
-
# @option options [
|
|
341
|
-
#
|
|
342
|
-
#
|
|
343
|
-
#
|
|
344
|
-
#
|
|
345
|
-
#
|
|
346
|
-
#
|
|
347
|
-
#
|
|
348
|
-
#
|
|
349
|
-
#
|
|
350
|
-
#
|
|
351
|
-
# @option options [Float] :
|
|
352
|
-
#
|
|
353
|
-
#
|
|
354
|
-
#
|
|
355
|
-
#
|
|
356
|
-
#
|
|
357
|
-
#
|
|
358
|
-
#
|
|
359
|
-
#
|
|
360
|
-
#
|
|
361
|
-
#
|
|
362
|
-
#
|
|
363
|
-
#
|
|
364
|
-
#
|
|
349
|
+
# @option options [Float] :http_continue_timeout (1)
|
|
350
|
+
# The number of seconds to wait for a 100-continue response before sending the
|
|
351
|
+
# request body. This option has no effect unless the request has "Expect"
|
|
352
|
+
# header set to "100-continue". Defaults to `nil` which disables this
|
|
353
|
+
# behaviour. This value can safely be set per request on the session.
|
|
354
|
+
#
|
|
355
|
+
# @option options [Float] :http_idle_timeout (5)
|
|
356
|
+
# The number of seconds a connection is allowed to sit idle before it
|
|
357
|
+
# is considered stale. Stale connections are closed and removed from the
|
|
358
|
+
# pool before making a request.
|
|
359
|
+
#
|
|
360
|
+
# @option options [Float] :http_open_timeout (15)
|
|
361
|
+
# The default number of seconds to wait for response data.
|
|
362
|
+
# This value can safely be set per-request on the session.
|
|
363
|
+
#
|
|
364
|
+
# @option options [URI::HTTP,String] :http_proxy
|
|
365
|
+
# A proxy to send requests through. Formatted like 'http://proxy.com:123'.
|
|
366
|
+
#
|
|
367
|
+
# @option options [Float] :http_read_timeout (60)
|
|
368
|
+
# The default number of seconds to wait for response data.
|
|
369
|
+
# This value can safely be set per-request on the session.
|
|
370
|
+
#
|
|
371
|
+
# @option options [Boolean] :http_wire_trace (false)
|
|
372
|
+
# When `true`, HTTP debug output will be sent to the `:logger`.
|
|
373
|
+
#
|
|
374
|
+
# @option options [Proc] :on_chunk_received
|
|
375
|
+
# When a Proc object is provided, it will be used as callback when each chunk
|
|
376
|
+
# of the response body is received. It provides three arguments: the chunk,
|
|
377
|
+
# the number of bytes received, and the total number of
|
|
378
|
+
# bytes in the response (or nil if the server did not send a `content-length`).
|
|
379
|
+
#
|
|
380
|
+
# @option options [Proc] :on_chunk_sent
|
|
381
|
+
# When a Proc object is provided, it will be used as callback when each chunk
|
|
382
|
+
# of the request body is sent. It provides three arguments: the chunk,
|
|
383
|
+
# the number of bytes read from the body, and the total number of
|
|
384
|
+
# bytes in the body.
|
|
385
|
+
#
|
|
386
|
+
# @option options [Boolean] :raise_response_errors (true)
|
|
387
|
+
# When `true`, response errors are raised.
|
|
388
|
+
#
|
|
389
|
+
# @option options [String] :ssl_ca_bundle
|
|
390
|
+
# Full path to the SSL certificate authority bundle file that should be used when
|
|
391
|
+
# verifying peer certificates. If you do not pass `:ssl_ca_bundle` or
|
|
392
|
+
# `:ssl_ca_directory` the the system default will be used if available.
|
|
393
|
+
#
|
|
394
|
+
# @option options [String] :ssl_ca_directory
|
|
395
|
+
# Full path of the directory that contains the unbundled SSL certificate
|
|
396
|
+
# authority files for verifying peer certificates. If you do
|
|
397
|
+
# not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the system
|
|
398
|
+
# default will be used if available.
|
|
365
399
|
#
|
|
366
|
-
# @option options [
|
|
367
|
-
#
|
|
400
|
+
# @option options [String] :ssl_ca_store
|
|
401
|
+
# Sets the X509::Store to verify peer certificate.
|
|
368
402
|
#
|
|
369
|
-
# @option options [
|
|
370
|
-
#
|
|
371
|
-
# connection.
|
|
403
|
+
# @option options [Float] :ssl_timeout
|
|
404
|
+
# Sets the SSL timeout in seconds
|
|
372
405
|
#
|
|
373
|
-
# @option options [
|
|
374
|
-
#
|
|
375
|
-
# verifying peer certificates. If you do not pass
|
|
376
|
-
# `:ssl_ca_bundle` or `:ssl_ca_directory` the the system default
|
|
377
|
-
# will be used if available.
|
|
378
|
-
#
|
|
379
|
-
# @option options [String] :ssl_ca_directory Full path of the
|
|
380
|
-
# directory that contains the unbundled SSL certificate
|
|
381
|
-
# authority files for verifying peer certificates. If you do
|
|
382
|
-
# not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the
|
|
383
|
-
# system default will be used if available.
|
|
406
|
+
# @option options [Boolean] :ssl_verify_peer (true)
|
|
407
|
+
# When `true`, SSL peer certificates are verified when establishing a connection.
|
|
384
408
|
#
|
|
385
409
|
def initialize(*args)
|
|
386
410
|
super
|
|
@@ -447,6 +471,11 @@ module Aws::SSOOIDC
|
|
|
447
471
|
# This value specifies the location of the client or application that
|
|
448
472
|
# has registered to receive the authorization code.
|
|
449
473
|
#
|
|
474
|
+
# @option params [String] :code_verifier
|
|
475
|
+
# Used only when calling this API for the Authorization Code grant type.
|
|
476
|
+
# This value is generated by the client and presented to validate the
|
|
477
|
+
# original code challenge value the client passed at authorization time.
|
|
478
|
+
#
|
|
450
479
|
# @return [Types::CreateTokenResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
451
480
|
#
|
|
452
481
|
# * {Types::CreateTokenResponse#access_token #access_token} => String
|
|
@@ -504,6 +533,7 @@ module Aws::SSOOIDC
|
|
|
504
533
|
# refresh_token: "RefreshToken",
|
|
505
534
|
# scope: ["Scope"],
|
|
506
535
|
# redirect_uri: "URI",
|
|
536
|
+
# code_verifier: "CodeVerifier",
|
|
507
537
|
# })
|
|
508
538
|
#
|
|
509
539
|
# @example Response structure
|
|
@@ -525,8 +555,9 @@ module Aws::SSOOIDC
|
|
|
525
555
|
|
|
526
556
|
# Creates and returns access and refresh tokens for clients and
|
|
527
557
|
# applications that are authenticated using IAM entities. The access
|
|
528
|
-
# token can be used to fetch short-term credentials for the assigned
|
|
529
|
-
# accounts or to access application APIs using
|
|
558
|
+
# token can be used to fetch short-term credentials for the assigned
|
|
559
|
+
# Amazon Web Services accounts or to access application APIs using
|
|
560
|
+
# `bearer` authentication.
|
|
530
561
|
#
|
|
531
562
|
# @option params [required, String] :client_id
|
|
532
563
|
# The unique identifier string for the client or application. This value
|
|
@@ -607,6 +638,11 @@ module Aws::SSOOIDC
|
|
|
607
638
|
#
|
|
608
639
|
# * Refresh Token - `urn:ietf:params:oauth:token-type:refresh_token`
|
|
609
640
|
#
|
|
641
|
+
# @option params [String] :code_verifier
|
|
642
|
+
# Used only when calling this API for the Authorization Code grant type.
|
|
643
|
+
# This value is generated by the client and presented to validate the
|
|
644
|
+
# original code challenge value the client passed at authorization time.
|
|
645
|
+
#
|
|
610
646
|
# @return [Types::CreateTokenWithIAMResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
611
647
|
#
|
|
612
648
|
# * {Types::CreateTokenWithIAMResponse#access_token #access_token} => String
|
|
@@ -729,6 +765,7 @@ module Aws::SSOOIDC
|
|
|
729
765
|
# subject_token: "SubjectToken",
|
|
730
766
|
# subject_token_type: "TokenTypeURI",
|
|
731
767
|
# requested_token_type: "TokenTypeURI",
|
|
768
|
+
# code_verifier: "CodeVerifier",
|
|
732
769
|
# })
|
|
733
770
|
#
|
|
734
771
|
# @example Response structure
|
|
@@ -767,6 +804,28 @@ module Aws::SSOOIDC
|
|
|
767
804
|
# this list is used to restrict permissions when granting an access
|
|
768
805
|
# token.
|
|
769
806
|
#
|
|
807
|
+
# @option params [Array<String>] :redirect_uris
|
|
808
|
+
# The list of redirect URI that are defined by the client. At completion
|
|
809
|
+
# of authorization, this list is used to restrict what locations the
|
|
810
|
+
# user agent can be redirected back to.
|
|
811
|
+
#
|
|
812
|
+
# @option params [Array<String>] :grant_types
|
|
813
|
+
# The list of OAuth 2.0 grant types that are defined by the client. This
|
|
814
|
+
# list is used to restrict the token granting flows available to the
|
|
815
|
+
# client.
|
|
816
|
+
#
|
|
817
|
+
# @option params [String] :issuer_url
|
|
818
|
+
# The IAM Identity Center Issuer URL associated with an instance of IAM
|
|
819
|
+
# Identity Center. This value is needed for user access to resources
|
|
820
|
+
# through the client.
|
|
821
|
+
#
|
|
822
|
+
# @option params [String] :entitled_application_arn
|
|
823
|
+
# This IAM Identity Center application ARN is used to define
|
|
824
|
+
# administrator-managed configuration for public client access to
|
|
825
|
+
# resources. At authorization, the scopes, grants, and redirect URI
|
|
826
|
+
# available to this client will be restricted by this application
|
|
827
|
+
# resource.
|
|
828
|
+
#
|
|
770
829
|
# @return [Types::RegisterClientResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
771
830
|
#
|
|
772
831
|
# * {Types::RegisterClientResponse#client_id #client_id} => String
|
|
@@ -782,6 +841,15 @@ module Aws::SSOOIDC
|
|
|
782
841
|
# resp = client.register_client({
|
|
783
842
|
# client_name: "My IDE Plugin",
|
|
784
843
|
# client_type: "public",
|
|
844
|
+
# entitled_application_arn: "arn:aws:sso::ACCOUNTID:application/ssoins-1111111111111111/apl-1111111111111111",
|
|
845
|
+
# grant_types: [
|
|
846
|
+
# "authorization_code",
|
|
847
|
+
# "refresh_token",
|
|
848
|
+
# ],
|
|
849
|
+
# issuer_url: "https://identitycenter.amazonaws.com/ssoins-1111111111111111",
|
|
850
|
+
# redirect_uris: [
|
|
851
|
+
# "127.0.0.1:PORT/oauth/callback",
|
|
852
|
+
# ],
|
|
785
853
|
# scopes: [
|
|
786
854
|
# "sso:account:access",
|
|
787
855
|
# "codewhisperer:completions",
|
|
@@ -802,6 +870,10 @@ module Aws::SSOOIDC
|
|
|
802
870
|
# client_name: "ClientName", # required
|
|
803
871
|
# client_type: "ClientType", # required
|
|
804
872
|
# scopes: ["Scope"],
|
|
873
|
+
# redirect_uris: ["URI"],
|
|
874
|
+
# grant_types: ["GrantType"],
|
|
875
|
+
# issuer_url: "URI",
|
|
876
|
+
# entitled_application_arn: "ArnType",
|
|
805
877
|
# })
|
|
806
878
|
#
|
|
807
879
|
# @example Response structure
|
|
@@ -910,7 +982,7 @@ module Aws::SSOOIDC
|
|
|
910
982
|
params: params,
|
|
911
983
|
config: config)
|
|
912
984
|
context[:gem_name] = 'aws-sdk-core'
|
|
913
|
-
context[:gem_version] = '3.
|
|
985
|
+
context[:gem_version] = '3.195.0'
|
|
914
986
|
Seahorse::Client::Request.new(handlers, context)
|
|
915
987
|
end
|
|
916
988
|
|
|
@@ -15,6 +15,7 @@ module Aws::SSOOIDC
|
|
|
15
15
|
|
|
16
16
|
AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
|
|
17
17
|
AccessToken = Shapes::StringShape.new(name: 'AccessToken')
|
|
18
|
+
ArnType = Shapes::StringShape.new(name: 'ArnType')
|
|
18
19
|
Assertion = Shapes::StringShape.new(name: 'Assertion')
|
|
19
20
|
AuthCode = Shapes::StringShape.new(name: 'AuthCode')
|
|
20
21
|
AuthorizationPendingException = Shapes::StructureShape.new(name: 'AuthorizationPendingException')
|
|
@@ -22,6 +23,7 @@ module Aws::SSOOIDC
|
|
|
22
23
|
ClientName = Shapes::StringShape.new(name: 'ClientName')
|
|
23
24
|
ClientSecret = Shapes::StringShape.new(name: 'ClientSecret')
|
|
24
25
|
ClientType = Shapes::StringShape.new(name: 'ClientType')
|
|
26
|
+
CodeVerifier = Shapes::StringShape.new(name: 'CodeVerifier')
|
|
25
27
|
CreateTokenRequest = Shapes::StructureShape.new(name: 'CreateTokenRequest')
|
|
26
28
|
CreateTokenResponse = Shapes::StructureShape.new(name: 'CreateTokenResponse')
|
|
27
29
|
CreateTokenWithIAMRequest = Shapes::StructureShape.new(name: 'CreateTokenWithIAMRequest')
|
|
@@ -32,17 +34,20 @@ module Aws::SSOOIDC
|
|
|
32
34
|
ExpirationInSeconds = Shapes::IntegerShape.new(name: 'ExpirationInSeconds')
|
|
33
35
|
ExpiredTokenException = Shapes::StructureShape.new(name: 'ExpiredTokenException')
|
|
34
36
|
GrantType = Shapes::StringShape.new(name: 'GrantType')
|
|
37
|
+
GrantTypes = Shapes::ListShape.new(name: 'GrantTypes')
|
|
35
38
|
IdToken = Shapes::StringShape.new(name: 'IdToken')
|
|
36
39
|
InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
|
|
37
40
|
IntervalInSeconds = Shapes::IntegerShape.new(name: 'IntervalInSeconds')
|
|
38
41
|
InvalidClientException = Shapes::StructureShape.new(name: 'InvalidClientException')
|
|
39
42
|
InvalidClientMetadataException = Shapes::StructureShape.new(name: 'InvalidClientMetadataException')
|
|
40
43
|
InvalidGrantException = Shapes::StructureShape.new(name: 'InvalidGrantException')
|
|
44
|
+
InvalidRedirectUriException = Shapes::StructureShape.new(name: 'InvalidRedirectUriException')
|
|
41
45
|
InvalidRequestException = Shapes::StructureShape.new(name: 'InvalidRequestException')
|
|
42
46
|
InvalidRequestRegionException = Shapes::StructureShape.new(name: 'InvalidRequestRegionException')
|
|
43
47
|
InvalidScopeException = Shapes::StructureShape.new(name: 'InvalidScopeException')
|
|
44
48
|
Location = Shapes::StringShape.new(name: 'Location')
|
|
45
49
|
LongTimeStampType = Shapes::IntegerShape.new(name: 'LongTimeStampType')
|
|
50
|
+
RedirectUris = Shapes::ListShape.new(name: 'RedirectUris')
|
|
46
51
|
RefreshToken = Shapes::StringShape.new(name: 'RefreshToken')
|
|
47
52
|
Region = Shapes::StringShape.new(name: 'Region')
|
|
48
53
|
RegisterClientRequest = Shapes::StructureShape.new(name: 'RegisterClientRequest')
|
|
@@ -76,6 +81,7 @@ module Aws::SSOOIDC
|
|
|
76
81
|
CreateTokenRequest.add_member(:refresh_token, Shapes::ShapeRef.new(shape: RefreshToken, location_name: "refreshToken"))
|
|
77
82
|
CreateTokenRequest.add_member(:scope, Shapes::ShapeRef.new(shape: Scopes, location_name: "scope"))
|
|
78
83
|
CreateTokenRequest.add_member(:redirect_uri, Shapes::ShapeRef.new(shape: URI, location_name: "redirectUri"))
|
|
84
|
+
CreateTokenRequest.add_member(:code_verifier, Shapes::ShapeRef.new(shape: CodeVerifier, location_name: "codeVerifier"))
|
|
79
85
|
CreateTokenRequest.struct_class = Types::CreateTokenRequest
|
|
80
86
|
|
|
81
87
|
CreateTokenResponse.add_member(:access_token, Shapes::ShapeRef.new(shape: AccessToken, location_name: "accessToken"))
|
|
@@ -95,6 +101,7 @@ module Aws::SSOOIDC
|
|
|
95
101
|
CreateTokenWithIAMRequest.add_member(:subject_token, Shapes::ShapeRef.new(shape: SubjectToken, location_name: "subjectToken"))
|
|
96
102
|
CreateTokenWithIAMRequest.add_member(:subject_token_type, Shapes::ShapeRef.new(shape: TokenTypeURI, location_name: "subjectTokenType"))
|
|
97
103
|
CreateTokenWithIAMRequest.add_member(:requested_token_type, Shapes::ShapeRef.new(shape: TokenTypeURI, location_name: "requestedTokenType"))
|
|
104
|
+
CreateTokenWithIAMRequest.add_member(:code_verifier, Shapes::ShapeRef.new(shape: CodeVerifier, location_name: "codeVerifier"))
|
|
98
105
|
CreateTokenWithIAMRequest.struct_class = Types::CreateTokenWithIAMRequest
|
|
99
106
|
|
|
100
107
|
CreateTokenWithIAMResponse.add_member(:access_token, Shapes::ShapeRef.new(shape: AccessToken, location_name: "accessToken"))
|
|
@@ -110,6 +117,8 @@ module Aws::SSOOIDC
|
|
|
110
117
|
ExpiredTokenException.add_member(:error_description, Shapes::ShapeRef.new(shape: ErrorDescription, location_name: "error_description"))
|
|
111
118
|
ExpiredTokenException.struct_class = Types::ExpiredTokenException
|
|
112
119
|
|
|
120
|
+
GrantTypes.member = Shapes::ShapeRef.new(shape: GrantType)
|
|
121
|
+
|
|
113
122
|
InternalServerException.add_member(:error, Shapes::ShapeRef.new(shape: Error, location_name: "error"))
|
|
114
123
|
InternalServerException.add_member(:error_description, Shapes::ShapeRef.new(shape: ErrorDescription, location_name: "error_description"))
|
|
115
124
|
InternalServerException.struct_class = Types::InternalServerException
|
|
@@ -126,6 +135,10 @@ module Aws::SSOOIDC
|
|
|
126
135
|
InvalidGrantException.add_member(:error_description, Shapes::ShapeRef.new(shape: ErrorDescription, location_name: "error_description"))
|
|
127
136
|
InvalidGrantException.struct_class = Types::InvalidGrantException
|
|
128
137
|
|
|
138
|
+
InvalidRedirectUriException.add_member(:error, Shapes::ShapeRef.new(shape: Error, location_name: "error"))
|
|
139
|
+
InvalidRedirectUriException.add_member(:error_description, Shapes::ShapeRef.new(shape: ErrorDescription, location_name: "error_description"))
|
|
140
|
+
InvalidRedirectUriException.struct_class = Types::InvalidRedirectUriException
|
|
141
|
+
|
|
129
142
|
InvalidRequestException.add_member(:error, Shapes::ShapeRef.new(shape: Error, location_name: "error"))
|
|
130
143
|
InvalidRequestException.add_member(:error_description, Shapes::ShapeRef.new(shape: ErrorDescription, location_name: "error_description"))
|
|
131
144
|
InvalidRequestException.struct_class = Types::InvalidRequestException
|
|
@@ -140,9 +153,15 @@ module Aws::SSOOIDC
|
|
|
140
153
|
InvalidScopeException.add_member(:error_description, Shapes::ShapeRef.new(shape: ErrorDescription, location_name: "error_description"))
|
|
141
154
|
InvalidScopeException.struct_class = Types::InvalidScopeException
|
|
142
155
|
|
|
156
|
+
RedirectUris.member = Shapes::ShapeRef.new(shape: URI)
|
|
157
|
+
|
|
143
158
|
RegisterClientRequest.add_member(:client_name, Shapes::ShapeRef.new(shape: ClientName, required: true, location_name: "clientName"))
|
|
144
159
|
RegisterClientRequest.add_member(:client_type, Shapes::ShapeRef.new(shape: ClientType, required: true, location_name: "clientType"))
|
|
145
160
|
RegisterClientRequest.add_member(:scopes, Shapes::ShapeRef.new(shape: Scopes, location_name: "scopes"))
|
|
161
|
+
RegisterClientRequest.add_member(:redirect_uris, Shapes::ShapeRef.new(shape: RedirectUris, location_name: "redirectUris"))
|
|
162
|
+
RegisterClientRequest.add_member(:grant_types, Shapes::ShapeRef.new(shape: GrantTypes, location_name: "grantTypes"))
|
|
163
|
+
RegisterClientRequest.add_member(:issuer_url, Shapes::ShapeRef.new(shape: URI, location_name: "issuerUrl"))
|
|
164
|
+
RegisterClientRequest.add_member(:entitled_application_arn, Shapes::ShapeRef.new(shape: ArnType, location_name: "entitledApplicationArn"))
|
|
146
165
|
RegisterClientRequest.struct_class = Types::RegisterClientRequest
|
|
147
166
|
|
|
148
167
|
RegisterClientResponse.add_member(:client_id, Shapes::ShapeRef.new(shape: ClientId, location_name: "clientId"))
|
|
@@ -191,6 +210,7 @@ module Aws::SSOOIDC
|
|
|
191
210
|
"endpointPrefix" => "oidc",
|
|
192
211
|
"jsonVersion" => "1.1",
|
|
193
212
|
"protocol" => "rest-json",
|
|
213
|
+
"protocols" => ["rest-json"],
|
|
194
214
|
"serviceAbbreviation" => "SSO OIDC",
|
|
195
215
|
"serviceFullName" => "AWS SSO OIDC",
|
|
196
216
|
"serviceId" => "SSO OIDC",
|
|
@@ -250,6 +270,8 @@ module Aws::SSOOIDC
|
|
|
250
270
|
o.errors << Shapes::ShapeRef.new(shape: InvalidScopeException)
|
|
251
271
|
o.errors << Shapes::ShapeRef.new(shape: InvalidClientMetadataException)
|
|
252
272
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
273
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRedirectUriException)
|
|
274
|
+
o.errors << Shapes::ShapeRef.new(shape: UnsupportedGrantTypeException)
|
|
253
275
|
end)
|
|
254
276
|
|
|
255
277
|
api.add_operation(:start_device_authorization, Seahorse::Model::Operation.new.tap do |o|
|
|
@@ -34,6 +34,7 @@ module Aws::SSOOIDC
|
|
|
34
34
|
# * {InvalidClientException}
|
|
35
35
|
# * {InvalidClientMetadataException}
|
|
36
36
|
# * {InvalidGrantException}
|
|
37
|
+
# * {InvalidRedirectUriException}
|
|
37
38
|
# * {InvalidRequestException}
|
|
38
39
|
# * {InvalidRequestRegionException}
|
|
39
40
|
# * {InvalidScopeException}
|
|
@@ -187,6 +188,26 @@ module Aws::SSOOIDC
|
|
|
187
188
|
end
|
|
188
189
|
end
|
|
189
190
|
|
|
191
|
+
class InvalidRedirectUriException < ServiceError
|
|
192
|
+
|
|
193
|
+
# @param [Seahorse::Client::RequestContext] context
|
|
194
|
+
# @param [String] message
|
|
195
|
+
# @param [Aws::SSOOIDC::Types::InvalidRedirectUriException] data
|
|
196
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
|
197
|
+
super(context, message, data)
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
# @return [String]
|
|
201
|
+
def error
|
|
202
|
+
@data[:error]
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
# @return [String]
|
|
206
|
+
def error_description
|
|
207
|
+
@data[:error_description]
|
|
208
|
+
end
|
|
209
|
+
end
|
|
210
|
+
|
|
190
211
|
class InvalidRequestException < ServiceError
|
|
191
212
|
|
|
192
213
|
# @param [Seahorse::Client::RequestContext] context
|