aws-sdk-core 3.209.1 → 3.240.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 +331 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-core/arn.rb +1 -3
- data/lib/aws-sdk-core/assume_role_credentials.rb +9 -8
- data/lib/aws-sdk-core/assume_role_web_identity_credentials.rb +3 -2
- data/lib/aws-sdk-core/cbor/decoder.rb +0 -2
- data/lib/aws-sdk-core/cbor/encoder.rb +2 -2
- data/lib/aws-sdk-core/cbor.rb +3 -56
- data/lib/aws-sdk-core/client_stubs.rb +35 -55
- data/lib/aws-sdk-core/credential_provider.rb +4 -0
- data/lib/aws-sdk-core/credential_provider_chain.rb +91 -22
- data/lib/aws-sdk-core/credentials.rb +6 -0
- data/lib/aws-sdk-core/ecs_credentials.rb +14 -13
- data/lib/aws-sdk-core/endpoints/matchers.rb +3 -9
- data/lib/aws-sdk-core/endpoints.rb +37 -13
- data/lib/aws-sdk-core/error_handler.rb +5 -0
- data/lib/aws-sdk-core/errors.rb +5 -2
- data/lib/aws-sdk-core/event_emitter.rb +1 -1
- data/lib/aws-sdk-core/instance_profile_credentials.rb +147 -157
- data/lib/aws-sdk-core/json/error_handler.rb +14 -3
- data/lib/aws-sdk-core/json/handler.rb +1 -0
- data/lib/aws-sdk-core/log/param_formatter.rb +7 -3
- data/lib/aws-sdk-core/login_credentials.rb +229 -0
- data/lib/aws-sdk-core/plugins/checksum_algorithm.rb +347 -171
- data/lib/aws-sdk-core/plugins/client_metrics_plugin.rb +0 -1
- data/lib/aws-sdk-core/plugins/credentials_configuration.rb +75 -59
- data/lib/aws-sdk-core/plugins/endpoint_pattern.rb +40 -32
- data/lib/aws-sdk-core/plugins/http_checksum.rb +2 -8
- data/lib/aws-sdk-core/plugins/regional_endpoint.rb +44 -25
- data/lib/aws-sdk-core/plugins/sign.rb +30 -21
- data/lib/aws-sdk-core/plugins/stub_responses.rb +30 -8
- data/lib/aws-sdk-core/plugins/user_agent.rb +35 -2
- data/lib/aws-sdk-core/process_credentials.rb +1 -1
- data/lib/aws-sdk-core/refreshing_credentials.rb +8 -11
- data/lib/aws-sdk-core/rest/request/headers.rb +3 -3
- data/lib/aws-sdk-core/rpc_v2/builder.rb +1 -1
- data/lib/aws-sdk-core/{cbor → rpc_v2}/cbor_engine.rb +4 -5
- data/lib/aws-sdk-core/rpc_v2/content_type_handler.rb +3 -1
- data/lib/aws-sdk-core/rpc_v2/error_handler.rb +27 -16
- data/lib/aws-sdk-core/rpc_v2/handler.rb +2 -1
- data/lib/aws-sdk-core/rpc_v2/parser.rb +9 -1
- data/lib/aws-sdk-core/rpc_v2.rb +65 -2
- data/lib/aws-sdk-core/shared_config.rb +104 -21
- data/lib/aws-sdk-core/shared_credentials.rb +1 -0
- data/lib/aws-sdk-core/sso_credentials.rb +3 -1
- data/lib/aws-sdk-core/static_token_provider.rb +1 -2
- data/lib/aws-sdk-core/stubbing/protocols/ec2.rb +12 -11
- data/lib/aws-sdk-core/stubbing/protocols/json.rb +11 -10
- data/lib/aws-sdk-core/stubbing/protocols/query.rb +7 -6
- data/lib/aws-sdk-core/stubbing/protocols/rest.rb +2 -1
- data/lib/aws-sdk-core/stubbing/protocols/rest_json.rb +9 -8
- data/lib/aws-sdk-core/stubbing/protocols/rest_xml.rb +6 -5
- data/lib/aws-sdk-core/stubbing/protocols/rpc_v2.rb +13 -15
- data/lib/aws-sdk-core/stubbing.rb +2 -2
- data/lib/aws-sdk-core/token.rb +3 -3
- data/lib/aws-sdk-core/token_provider.rb +4 -0
- data/lib/aws-sdk-core/token_provider_chain.rb +2 -6
- data/lib/aws-sdk-core/util.rb +2 -1
- data/lib/aws-sdk-core/xml/error_handler.rb +3 -1
- data/lib/aws-sdk-core.rb +4 -0
- data/lib/aws-sdk-signin/client.rb +604 -0
- data/lib/aws-sdk-signin/client_api.rb +119 -0
- data/lib/aws-sdk-signin/customizations.rb +1 -0
- data/lib/aws-sdk-signin/endpoint_parameters.rb +69 -0
- data/lib/aws-sdk-signin/endpoint_provider.rb +59 -0
- data/lib/aws-sdk-signin/endpoints.rb +20 -0
- data/lib/aws-sdk-signin/errors.rb +122 -0
- data/lib/aws-sdk-signin/plugins/endpoints.rb +77 -0
- data/lib/aws-sdk-signin/resource.rb +26 -0
- data/lib/aws-sdk-signin/types.rb +299 -0
- data/lib/aws-sdk-signin.rb +63 -0
- data/lib/aws-sdk-sso/client.rb +76 -47
- data/lib/aws-sdk-sso/endpoint_parameters.rb +13 -10
- data/lib/aws-sdk-sso/endpoint_provider.rb +16 -20
- data/lib/aws-sdk-sso/endpoints.rb +2 -42
- data/lib/aws-sdk-sso/plugins/endpoints.rb +1 -14
- data/lib/aws-sdk-sso.rb +1 -1
- data/lib/aws-sdk-ssooidc/client.rb +132 -73
- data/lib/aws-sdk-ssooidc/client_api.rb +11 -0
- data/lib/aws-sdk-ssooidc/endpoint_parameters.rb +13 -10
- data/lib/aws-sdk-ssooidc/endpoint_provider.rb +14 -18
- data/lib/aws-sdk-ssooidc/endpoints.rb +2 -42
- data/lib/aws-sdk-ssooidc/errors.rb +10 -0
- data/lib/aws-sdk-ssooidc/plugins/endpoints.rb +1 -14
- data/lib/aws-sdk-ssooidc/types.rb +65 -21
- data/lib/aws-sdk-ssooidc.rb +1 -1
- data/lib/aws-sdk-sts/client.rb +416 -107
- data/lib/aws-sdk-sts/client_api.rb +105 -8
- data/lib/aws-sdk-sts/customizations.rb +0 -1
- data/lib/aws-sdk-sts/endpoint_parameters.rb +15 -14
- data/lib/aws-sdk-sts/endpoint_provider.rb +50 -55
- data/lib/aws-sdk-sts/endpoints.rb +2 -94
- data/lib/aws-sdk-sts/errors.rb +79 -0
- data/lib/aws-sdk-sts/plugins/endpoints.rb +1 -22
- data/lib/aws-sdk-sts/presigner.rb +2 -6
- data/lib/aws-sdk-sts/types.rb +343 -32
- data/lib/aws-sdk-sts.rb +1 -1
- data/lib/seahorse/client/async_base.rb +4 -5
- data/lib/seahorse/client/base.rb +0 -14
- data/lib/seahorse/client/h2/connection.rb +18 -28
- data/lib/seahorse/client/h2/handler.rb +6 -1
- data/lib/seahorse/client/http/response.rb +1 -1
- data/lib/seahorse/client/net_http/connection_pool.rb +4 -1
- data/lib/seahorse/client/networking_error.rb +1 -1
- data/lib/seahorse/client/plugins/h2.rb +4 -4
- data/lib/seahorse/client/request_context.rb +2 -2
- data/lib/seahorse/client/response.rb +2 -0
- data/lib/seahorse/util.rb +2 -1
- data/sig/aws-sdk-core/async_client_stubs.rbs +21 -0
- data/sig/seahorse/client/async_base.rbs +18 -0
- metadata +69 -17
|
@@ -12,49 +12,9 @@ module Aws::SSO
|
|
|
12
12
|
# @api private
|
|
13
13
|
module Endpoints
|
|
14
14
|
|
|
15
|
-
class GetRoleCredentials
|
|
16
|
-
def self.build(context)
|
|
17
|
-
Aws::SSO::EndpointParameters.new(
|
|
18
|
-
region: context.config.region,
|
|
19
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
|
20
|
-
use_fips: context.config.use_fips_endpoint,
|
|
21
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
|
22
|
-
)
|
|
23
|
-
end
|
|
24
|
-
end
|
|
25
|
-
|
|
26
|
-
class ListAccountRoles
|
|
27
|
-
def self.build(context)
|
|
28
|
-
Aws::SSO::EndpointParameters.new(
|
|
29
|
-
region: context.config.region,
|
|
30
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
|
31
|
-
use_fips: context.config.use_fips_endpoint,
|
|
32
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
|
33
|
-
)
|
|
34
|
-
end
|
|
35
|
-
end
|
|
36
15
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
Aws::SSO::EndpointParameters.new(
|
|
40
|
-
region: context.config.region,
|
|
41
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
|
42
|
-
use_fips: context.config.use_fips_endpoint,
|
|
43
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
|
44
|
-
)
|
|
45
|
-
end
|
|
16
|
+
def self.parameters_for_operation(context)
|
|
17
|
+
Aws::SSO::EndpointParameters.create(context.config)
|
|
46
18
|
end
|
|
47
|
-
|
|
48
|
-
class Logout
|
|
49
|
-
def self.build(context)
|
|
50
|
-
Aws::SSO::EndpointParameters.new(
|
|
51
|
-
region: context.config.region,
|
|
52
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
|
53
|
-
use_fips: context.config.use_fips_endpoint,
|
|
54
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
|
55
|
-
)
|
|
56
|
-
end
|
|
57
|
-
end
|
|
58
|
-
|
|
59
19
|
end
|
|
60
20
|
end
|
|
@@ -27,7 +27,7 @@ The endpoint provider used to resolve endpoints. Any object that responds to
|
|
|
27
27
|
class Handler < Seahorse::Client::Handler
|
|
28
28
|
def call(context)
|
|
29
29
|
unless context[:discovered_endpoint]
|
|
30
|
-
params = parameters_for_operation(context)
|
|
30
|
+
params = Aws::SSO::Endpoints.parameters_for_operation(context)
|
|
31
31
|
endpoint = context.config.endpoint_provider.resolve_endpoint(params)
|
|
32
32
|
|
|
33
33
|
context.http_request.endpoint = endpoint.url
|
|
@@ -67,19 +67,6 @@ The endpoint provider used to resolve endpoints. Any object that responds to
|
|
|
67
67
|
context.http_request.headers[key] = value
|
|
68
68
|
end
|
|
69
69
|
end
|
|
70
|
-
|
|
71
|
-
def parameters_for_operation(context)
|
|
72
|
-
case context.operation_name
|
|
73
|
-
when :get_role_credentials
|
|
74
|
-
Aws::SSO::Endpoints::GetRoleCredentials.build(context)
|
|
75
|
-
when :list_account_roles
|
|
76
|
-
Aws::SSO::Endpoints::ListAccountRoles.build(context)
|
|
77
|
-
when :list_accounts
|
|
78
|
-
Aws::SSO::Endpoints::ListAccounts.build(context)
|
|
79
|
-
when :logout
|
|
80
|
-
Aws::SSO::Endpoints::Logout.build(context)
|
|
81
|
-
end
|
|
82
|
-
end
|
|
83
70
|
end
|
|
84
71
|
|
|
85
72
|
def add_handlers(handlers, _config)
|
data/lib/aws-sdk-sso.rb
CHANGED
|
@@ -7,34 +7,34 @@
|
|
|
7
7
|
#
|
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
|
9
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
|
|
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
38
|
|
|
39
39
|
module Aws::SSOOIDC
|
|
40
40
|
# An API client for SSOOIDC. To construct a client, you need to configure a `:region` and `:credentials`.
|
|
@@ -95,8 +95,8 @@ module Aws::SSOOIDC
|
|
|
95
95
|
# class name or an instance of a plugin class.
|
|
96
96
|
#
|
|
97
97
|
# @option options [required, Aws::CredentialProvider] :credentials
|
|
98
|
-
# Your AWS credentials. This can be
|
|
99
|
-
# following classes:
|
|
98
|
+
# Your AWS credentials used for authentication. This can be any class that includes and implements
|
|
99
|
+
# `Aws::CredentialProvider`, or instance of any one of the following classes:
|
|
100
100
|
#
|
|
101
101
|
# * `Aws::Credentials` - Used for configuring static, non-refreshing
|
|
102
102
|
# credentials.
|
|
@@ -124,22 +124,24 @@ module Aws::SSOOIDC
|
|
|
124
124
|
# * `Aws::CognitoIdentityCredentials` - Used for loading credentials
|
|
125
125
|
# from the Cognito Identity service.
|
|
126
126
|
#
|
|
127
|
-
# When `:credentials` are not configured directly, the following
|
|
128
|
-
# locations will be searched for credentials:
|
|
127
|
+
# When `:credentials` are not configured directly, the following locations will be searched for credentials:
|
|
129
128
|
#
|
|
130
129
|
# * `Aws.config[:credentials]`
|
|
130
|
+
#
|
|
131
131
|
# * The `:access_key_id`, `:secret_access_key`, `:session_token`, and
|
|
132
132
|
# `:account_id` options.
|
|
133
|
-
#
|
|
134
|
-
#
|
|
133
|
+
#
|
|
134
|
+
# * `ENV['AWS_ACCESS_KEY_ID']`, `ENV['AWS_SECRET_ACCESS_KEY']`,
|
|
135
|
+
# `ENV['AWS_SESSION_TOKEN']`, and `ENV['AWS_ACCOUNT_ID']`.
|
|
136
|
+
#
|
|
135
137
|
# * `~/.aws/credentials`
|
|
138
|
+
#
|
|
136
139
|
# * `~/.aws/config`
|
|
137
|
-
#
|
|
138
|
-
#
|
|
139
|
-
# `Aws::InstanceProfileCredentials` or `Aws::ECSCredentials` to
|
|
140
|
-
# enable retries and extended timeouts. Instance profile credential
|
|
141
|
-
#
|
|
142
|
-
# to true.
|
|
140
|
+
#
|
|
141
|
+
# * EC2/ECS IMDS instance profile - When used by default, the timeouts are very aggressive.
|
|
142
|
+
# Construct and pass an instance of `Aws::InstanceProfileCredentials` or `Aws::ECSCredentials` to
|
|
143
|
+
# enable retries and extended timeouts. Instance profile credential fetching can be disabled by
|
|
144
|
+
# setting `ENV['AWS_EC2_METADATA_DISABLED']` to `true`.
|
|
143
145
|
#
|
|
144
146
|
# @option options [required, String] :region
|
|
145
147
|
# The AWS region to connect to. The configured `:region` is
|
|
@@ -167,6 +169,11 @@ module Aws::SSOOIDC
|
|
|
167
169
|
# When false, the request will raise a `RetryCapacityNotAvailableError` and will
|
|
168
170
|
# not retry instead of sleeping.
|
|
169
171
|
#
|
|
172
|
+
# @option options [Array<String>] :auth_scheme_preference
|
|
173
|
+
# A list of preferred authentication schemes to use when making a request. Supported values are:
|
|
174
|
+
# `sigv4`, `sigv4a`, `httpBearerAuth`, and `noAuth`. When set using `ENV['AWS_AUTH_SCHEME_PREFERENCE']` or in
|
|
175
|
+
# shared config as `auth_scheme_preference`, the value should be a comma-separated list.
|
|
176
|
+
#
|
|
170
177
|
# @option options [Boolean] :client_side_monitoring (false)
|
|
171
178
|
# When `true`, client-side metrics will be collected for all API requests from
|
|
172
179
|
# this client.
|
|
@@ -200,8 +207,7 @@ module Aws::SSOOIDC
|
|
|
200
207
|
# accepted modes and the configuration defaults that are included.
|
|
201
208
|
#
|
|
202
209
|
# @option options [Boolean] :disable_host_prefix_injection (false)
|
|
203
|
-
#
|
|
204
|
-
# to default service endpoint when available.
|
|
210
|
+
# When `true`, the SDK will not prepend the modeled host prefix to the endpoint.
|
|
205
211
|
#
|
|
206
212
|
# @option options [Boolean] :disable_request_compression (false)
|
|
207
213
|
# When set to 'true' the request body will not be compressed
|
|
@@ -254,14 +260,37 @@ module Aws::SSOOIDC
|
|
|
254
260
|
# 4 times. Used in `standard` and `adaptive` retry modes.
|
|
255
261
|
#
|
|
256
262
|
# @option options [String] :profile ("default")
|
|
257
|
-
# Used when loading credentials from the shared credentials file
|
|
258
|
-
#
|
|
263
|
+
# Used when loading credentials from the shared credentials file at `HOME/.aws/credentials`.
|
|
264
|
+
# When not specified, 'default' is used.
|
|
265
|
+
#
|
|
266
|
+
# @option options [String] :request_checksum_calculation ("when_supported")
|
|
267
|
+
# Determines when a checksum will be calculated for request payloads. Values are:
|
|
268
|
+
#
|
|
269
|
+
# * `when_supported` - (default) When set, a checksum will be
|
|
270
|
+
# calculated for all request payloads of operations modeled with the
|
|
271
|
+
# `httpChecksum` trait where `requestChecksumRequired` is `true` and/or a
|
|
272
|
+
# `requestAlgorithmMember` is modeled.
|
|
273
|
+
# * `when_required` - When set, a checksum will only be calculated for
|
|
274
|
+
# request payloads of operations modeled with the `httpChecksum` trait where
|
|
275
|
+
# `requestChecksumRequired` is `true` or where a `requestAlgorithmMember`
|
|
276
|
+
# is modeled and supplied.
|
|
259
277
|
#
|
|
260
278
|
# @option options [Integer] :request_min_compression_size_bytes (10240)
|
|
261
279
|
# The minimum size in bytes that triggers compression for request
|
|
262
280
|
# bodies. The value must be non-negative integer value between 0
|
|
263
281
|
# and 10485780 bytes inclusive.
|
|
264
282
|
#
|
|
283
|
+
# @option options [String] :response_checksum_validation ("when_supported")
|
|
284
|
+
# Determines when checksum validation will be performed on response payloads. Values are:
|
|
285
|
+
#
|
|
286
|
+
# * `when_supported` - (default) When set, checksum validation is performed on all
|
|
287
|
+
# response payloads of operations modeled with the `httpChecksum` trait where
|
|
288
|
+
# `responseAlgorithms` is modeled, except when no modeled checksum algorithms
|
|
289
|
+
# are supported.
|
|
290
|
+
# * `when_required` - When set, checksum validation is not performed on
|
|
291
|
+
# response payloads of operations unless the checksum algorithm is supported and
|
|
292
|
+
# the `requestValidationModeMember` member is set to `ENABLED`.
|
|
293
|
+
#
|
|
265
294
|
# @option options [Proc] :retry_backoff
|
|
266
295
|
# A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
|
|
267
296
|
# This option is only used in the `legacy` retry mode.
|
|
@@ -345,8 +374,8 @@ module Aws::SSOOIDC
|
|
|
345
374
|
# `Aws::Telemetry::OTelProvider` for telemetry provider.
|
|
346
375
|
#
|
|
347
376
|
# @option options [Aws::TokenProvider] :token_provider
|
|
348
|
-
#
|
|
349
|
-
# following classes:
|
|
377
|
+
# Your Bearer token used for authentication. This can be any class that includes and implements
|
|
378
|
+
# `Aws::TokenProvider`, or instance of any one of the following classes:
|
|
350
379
|
#
|
|
351
380
|
# * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
|
|
352
381
|
# tokens.
|
|
@@ -449,7 +478,7 @@ module Aws::SSOOIDC
|
|
|
449
478
|
|
|
450
479
|
# Creates and returns access and refresh tokens for clients that are
|
|
451
480
|
# authenticated using client secrets. The access token can be used to
|
|
452
|
-
# fetch short-
|
|
481
|
+
# fetch short-lived credentials for the assigned AWS accounts or to
|
|
453
482
|
# access application APIs using `bearer` authentication.
|
|
454
483
|
#
|
|
455
484
|
# @option params [required, String] :client_id
|
|
@@ -461,30 +490,28 @@ module Aws::SSOOIDC
|
|
|
461
490
|
# the persisted result of the RegisterClient API.
|
|
462
491
|
#
|
|
463
492
|
# @option params [required, String] :grant_type
|
|
464
|
-
# Supports the following OAuth grant types:
|
|
465
|
-
# Token. Specify
|
|
466
|
-
# type that you want:
|
|
493
|
+
# Supports the following OAuth grant types: Authorization Code, Device
|
|
494
|
+
# Code, and Refresh Token. Specify one of the following values,
|
|
495
|
+
# depending on the grant type that you want:
|
|
496
|
+
#
|
|
497
|
+
# * Authorization Code - `authorization_code`
|
|
467
498
|
#
|
|
468
499
|
# * Device Code - `urn:ietf:params:oauth:grant-type:device_code`
|
|
469
500
|
#
|
|
470
501
|
# * Refresh Token - `refresh_token`
|
|
471
502
|
#
|
|
472
|
-
# For information about how to obtain the device code, see the
|
|
473
|
-
# StartDeviceAuthorization topic.
|
|
474
|
-
#
|
|
475
503
|
# @option params [String] :device_code
|
|
476
504
|
# Used only when calling this API for the Device Code grant type. This
|
|
477
|
-
# short-
|
|
505
|
+
# short-lived code is used to identify this authorization request. This
|
|
478
506
|
# comes from the result of the StartDeviceAuthorization API.
|
|
479
507
|
#
|
|
480
508
|
# @option params [String] :code
|
|
481
509
|
# Used only when calling this API for the Authorization Code grant type.
|
|
482
|
-
# The short-
|
|
483
|
-
# This grant type is currently unsupported for the CreateToken API.
|
|
510
|
+
# The short-lived code is used to identify this authorization request.
|
|
484
511
|
#
|
|
485
512
|
# @option params [String] :refresh_token
|
|
486
513
|
# Used only when calling this API for the Refresh Token grant type. This
|
|
487
|
-
# token is used to refresh short-
|
|
514
|
+
# token is used to refresh short-lived tokens, such as the access token,
|
|
488
515
|
# that might expire.
|
|
489
516
|
#
|
|
490
517
|
# For more information about the features and limitations of the current
|
|
@@ -496,10 +523,9 @@ module Aws::SSOOIDC
|
|
|
496
523
|
# [1]: https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/Welcome.html
|
|
497
524
|
#
|
|
498
525
|
# @option params [Array<String>] :scope
|
|
499
|
-
# The list of scopes for which authorization is requested.
|
|
500
|
-
#
|
|
501
|
-
#
|
|
502
|
-
# that are configured for the client during the call to RegisterClient.
|
|
526
|
+
# The list of scopes for which authorization is requested. This
|
|
527
|
+
# parameter has no effect; the access token will always include all
|
|
528
|
+
# scopes configured during client registration.
|
|
503
529
|
#
|
|
504
530
|
# @option params [String] :redirect_uri
|
|
505
531
|
# Used only when calling this API for the Authorization Code grant type.
|
|
@@ -588,12 +614,26 @@ module Aws::SSOOIDC
|
|
|
588
614
|
req.send_request(options)
|
|
589
615
|
end
|
|
590
616
|
|
|
591
|
-
# Creates and returns access and refresh tokens for
|
|
592
|
-
# applications that are authenticated using IAM
|
|
593
|
-
#
|
|
617
|
+
# Creates and returns access and refresh tokens for authorized client
|
|
618
|
+
# applications that are authenticated using any IAM entity, such as a
|
|
619
|
+
# service role or user. These tokens might contain defined scopes that
|
|
620
|
+
# specify permissions such as `read:profile` or `write:data`. Through
|
|
621
|
+
# downscoping, you can use the scopes parameter to request tokens with
|
|
622
|
+
# reduced permissions compared to the original client application's
|
|
623
|
+
# permissions or, if applicable, the refresh token's scopes. The access
|
|
624
|
+
# token can be used to fetch short-lived credentials for the assigned
|
|
594
625
|
# Amazon Web Services accounts or to access application APIs using
|
|
595
626
|
# `bearer` authentication.
|
|
596
627
|
#
|
|
628
|
+
# <note markdown="1"> This API is used with Signature Version 4. For more information, see
|
|
629
|
+
# [Amazon Web Services Signature Version 4 for API Requests][1].
|
|
630
|
+
#
|
|
631
|
+
# </note>
|
|
632
|
+
#
|
|
633
|
+
#
|
|
634
|
+
#
|
|
635
|
+
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_sigv.html
|
|
636
|
+
#
|
|
597
637
|
# @option params [required, String] :client_id
|
|
598
638
|
# The unique identifier string for the client or application. This value
|
|
599
639
|
# is an application ARN that has OAuth grants configured.
|
|
@@ -613,14 +653,14 @@ module Aws::SSOOIDC
|
|
|
613
653
|
#
|
|
614
654
|
# @option params [String] :code
|
|
615
655
|
# Used only when calling this API for the Authorization Code grant type.
|
|
616
|
-
# This short-
|
|
656
|
+
# This short-lived code is used to identify this authorization request.
|
|
617
657
|
# The code is obtained through a redirect from IAM Identity Center to a
|
|
618
658
|
# redirect URI persisted in the Authorization Code GrantOptions for the
|
|
619
659
|
# application.
|
|
620
660
|
#
|
|
621
661
|
# @option params [String] :refresh_token
|
|
622
662
|
# Used only when calling this API for the Refresh Token grant type. This
|
|
623
|
-
# token is used to refresh short-
|
|
663
|
+
# token is used to refresh short-lived tokens, such as the access token,
|
|
624
664
|
# that might expire.
|
|
625
665
|
#
|
|
626
666
|
# For more information about the features and limitations of the current
|
|
@@ -687,6 +727,7 @@ module Aws::SSOOIDC
|
|
|
687
727
|
# * {Types::CreateTokenWithIAMResponse#id_token #id_token} => String
|
|
688
728
|
# * {Types::CreateTokenWithIAMResponse#issued_token_type #issued_token_type} => String
|
|
689
729
|
# * {Types::CreateTokenWithIAMResponse#scope #scope} => Array<String>
|
|
730
|
+
# * {Types::CreateTokenWithIAMResponse#aws_additional_details #aws_additional_details} => Types::AwsAdditionalDetails
|
|
690
731
|
#
|
|
691
732
|
#
|
|
692
733
|
# @example Example: Call OAuth/OIDC /token endpoint for Authorization Code grant with IAM authentication
|
|
@@ -706,6 +747,9 @@ module Aws::SSOOIDC
|
|
|
706
747
|
# resp.to_h outputs the following:
|
|
707
748
|
# {
|
|
708
749
|
# access_token: "aoal-YigITUDiNX1xZwOMXM5MxOWDL0E0jg9P6_C_jKQPxS_SKCP6f0kh1Up4g7TtvQqkMnD-GJiU_S1gvug6SrggAkc0:MGYCMQD3IatVjV7jAJU91kK3PkS/SfA2wtgWzOgZWDOR7sDGN9t0phCZz5It/aes/3C1Zj0CMQCKWOgRaiz6AIhza3DSXQNMLjRKXC8F8ceCsHlgYLMZ7hZidEXAMPLEACCESSTOKEN",
|
|
750
|
+
# aws_additional_details: {
|
|
751
|
+
# identity_context: "EXAMPLEIDENTITYCONTEXT",
|
|
752
|
+
# },
|
|
709
753
|
# expires_in: 1579729529,
|
|
710
754
|
# id_token: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhd3M6aWRlbnRpdHlfc3RvcmVfaWQiOiJkLTMzMzMzMzMzMzMiLCJzdWIiOiI3MzA0NDhmMi1lMGExLTcwYTctYzk1NC0wMDAwMDAwMDAwMDAiLCJhd3M6aW5zdGFuY2VfYWNjb3VudCI6IjExMTExMTExMTExMSIsInN0czppZGVudGl0eV9jb250ZXh0IjoiRVhBTVBMRUlERU5USVRZQ09OVEVYVCIsInN0czphdWRpdF9jb250ZXh0IjoiRVhBTVBMRUFVRElUQ09OVEVYVCIsImlzcyI6Imh0dHBzOi8vaWRlbnRpdHljZW50ZXIuYW1hem9uYXdzLmNvbS9zc29pbnMtMTExMTExMTExMTExIiwiYXdzOmlkZW50aXR5X3N0b3JlX2FybiI6ImFybjphd3M6aWRlbnRpdHlzdG9yZTo6MTExMTExMTExMTExOmlkZW50aXR5c3RvcmUvZC0zMzMzMzMzMzMzIiwiYXVkIjoiYXJuOmF3czpzc286OjEyMzQ1Njc4OTAxMjphcHBsaWNhdGlvbi9zc29pbnMtMTExMTExMTExMTExL2FwbC0yMjIyMjIyMjIyMjIiLCJhd3M6aW5zdGFuY2VfYXJuIjoiYXJuOmF3czpzc286OjppbnN0YW5jZS9zc29pbnMtMTExMTExMTExMTExIiwiYXdzOmNyZWRlbnRpYWxfaWQiOiJfWlIyTjZhVkJqMjdGUEtheWpfcEtwVjc3QVBERl80MXB4ZXRfWWpJdUpONlVJR2RBdkpFWEFNUExFQ1JFRElEIiwiYXV0aF90aW1lIjoiMjAyMC0wMS0yMlQxMjo0NToyOVoiLCJleHAiOjE1Nzk3Mjk1MjksImlhdCI6MTU3OTcyNTkyOX0.Xyah6qbk78qThzJ41iFU2yfGuRqqtKXHrJYwQ8L9Ip0",
|
|
711
755
|
# issued_token_type: "urn:ietf:params:oauth:token-type:refresh_token",
|
|
@@ -751,6 +795,9 @@ module Aws::SSOOIDC
|
|
|
751
795
|
# resp.to_h outputs the following:
|
|
752
796
|
# {
|
|
753
797
|
# access_token: "aoal-YigITUDiNX1xZwOMXM5MxOWDL0E0jg9P6_C_jKQPxS_SKCP6f0kh1Up4g7TtvQqkMnD-GJiU_S1gvug6SrggAkc0:MGYCMQD3IatVjV7jAJU91kK3PkS/SfA2wtgWzOgZWDOR7sDGN9t0phCZz5It/aes/3C1Zj0CMQCKWOgRaiz6AIhza3DSXQNMLjRKXC8F8ceCsHlgYLMZ7hZidEXAMPLEACCESSTOKEN",
|
|
798
|
+
# aws_additional_details: {
|
|
799
|
+
# identity_context: "EXAMPLEIDENTITYCONTEXT",
|
|
800
|
+
# },
|
|
754
801
|
# expires_in: 1579729529,
|
|
755
802
|
# id_token: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhd3M6aWRlbnRpdHlfc3RvcmVfaWQiOiJkLTMzMzMzMzMzMzMiLCJzdWIiOiI3MzA0NDhmMi1lMGExLTcwYTctYzk1NC0wMDAwMDAwMDAwMDAiLCJhd3M6aW5zdGFuY2VfYWNjb3VudCI6IjExMTExMTExMTExMSIsInN0czppZGVudGl0eV9jb250ZXh0IjoiRVhBTVBMRUlERU5USVRZQ09OVEVYVCIsInN0czphdWRpdF9jb250ZXh0IjoiRVhBTVBMRUFVRElUQ09OVEVYVCIsImlzcyI6Imh0dHBzOi8vaWRlbnRpdHljZW50ZXIuYW1hem9uYXdzLmNvbS9zc29pbnMtMTExMTExMTExMTExIiwiYXdzOmlkZW50aXR5X3N0b3JlX2FybiI6ImFybjphd3M6aWRlbnRpdHlzdG9yZTo6MTExMTExMTExMTExOmlkZW50aXR5c3RvcmUvZC0zMzMzMzMzMzMzIiwiYXVkIjoiYXJuOmF3czpzc286OjEyMzQ1Njc4OTAxMjphcHBsaWNhdGlvbi9zc29pbnMtMTExMTExMTExMTExL2FwbC0yMjIyMjIyMjIyMjIiLCJhd3M6aW5zdGFuY2VfYXJuIjoiYXJuOmF3czpzc286OjppbnN0YW5jZS9zc29pbnMtMTExMTExMTExMTExIiwiYXdzOmNyZWRlbnRpYWxfaWQiOiJfWlIyTjZhVkJqMjdGUEtheWpfcEtwVjc3QVBERl80MXB4ZXRfWWpJdUpONlVJR2RBdkpFWEFNUExFQ1JFRElEIiwiYXV0aF90aW1lIjoiMjAyMC0wMS0yMlQxMjo0NToyOVoiLCJleHAiOjE1Nzk3Mjk1MjksImlhdCI6MTU3OTcyNTkyOX0.Xyah6qbk78qThzJ41iFU2yfGuRqqtKXHrJYwQ8L9Ip0",
|
|
756
803
|
# issued_token_type: "urn:ietf:params:oauth:token-type:refresh_token",
|
|
@@ -776,6 +823,9 @@ module Aws::SSOOIDC
|
|
|
776
823
|
# resp.to_h outputs the following:
|
|
777
824
|
# {
|
|
778
825
|
# access_token: "aoal-YigITUDiNX1xZwOMXM5MxOWDL0E0jg9P6_C_jKQPxS_SKCP6f0kh1Up4g7TtvQqkMnD-GJiU_S1gvug6SrggAkc0:MGYCMQD3IatVjV7jAJU91kK3PkS/SfA2wtgWzOgZWDOR7sDGN9t0phCZz5It/aes/3C1Zj0CMQCKWOgRaiz6AIhza3DSXQNMLjRKXC8F8ceCsHlgYLMZ7hZidEXAMPLEACCESSTOKEN",
|
|
826
|
+
# aws_additional_details: {
|
|
827
|
+
# identity_context: "EXAMPLEIDENTITYCONTEXT",
|
|
828
|
+
# },
|
|
779
829
|
# expires_in: 1579729529,
|
|
780
830
|
# id_token: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhd3M6aWRlbnRpdHlfc3RvcmVfaWQiOiJkLTMzMzMzMzMzMzMiLCJzdWIiOiI3MzA0NDhmMi1lMGExLTcwYTctYzk1NC0wMDAwMDAwMDAwMDAiLCJhd3M6aW5zdGFuY2VfYWNjb3VudCI6IjExMTExMTExMTExMSIsInN0czppZGVudGl0eV9jb250ZXh0IjoiRVhBTVBMRUlERU5USVRZQ09OVEVYVCIsImlzcyI6Imh0dHBzOi8vaWRlbnRpdHljZW50ZXIuYW1hem9uYXdzLmNvbS9zc29pbnMtMTExMTExMTExMTExIiwiYXdzOmlkZW50aXR5X3N0b3JlX2FybiI6ImFybjphd3M6aWRlbnRpdHlzdG9yZTo6MTExMTExMTExMTExOmlkZW50aXR5c3RvcmUvZC0zMzMzMzMzMzMzIiwiYXVkIjoiYXJuOmF3czpzc286OjEyMzQ1Njc4OTAxMjphcHBsaWNhdGlvbi9zc29pbnMtMTExMTExMTExMTExL2FwbC0yMjIyMjIyMjIyMjIiLCJhd3M6aW5zdGFuY2VfYXJuIjoiYXJuOmF3czpzc286OjppbnN0YW5jZS9zc29pbnMtMTExMTExMTExMTExIiwiYXdzOmNyZWRlbnRpYWxfaWQiOiJfWlIyTjZhVkJqMjdGUEtheWpfcEtwVjc3QVBERl80MXB4ZXRfWWpJdUpONlVJR2RBdkpFWEFNUExFQ1JFRElEIiwiYXV0aF90aW1lIjoiMjAyMC0wMS0yMlQxMjo0NToyOVoiLCJleHAiOjE1Nzk3Mjk1MjksImlhdCI6MTU3OTcyNTkyOX0.5SYiW1kMsuUr7nna-l5tlakM0GNbMHvIM2_n0QD23jM",
|
|
781
831
|
# issued_token_type: "urn:ietf:params:oauth:token-type:access_token",
|
|
@@ -813,6 +863,7 @@ module Aws::SSOOIDC
|
|
|
813
863
|
# resp.issued_token_type #=> String
|
|
814
864
|
# resp.scope #=> Array
|
|
815
865
|
# resp.scope[0] #=> String
|
|
866
|
+
# resp.aws_additional_details.identity_context #=> String
|
|
816
867
|
#
|
|
817
868
|
# @see http://docs.aws.amazon.com/goto/WebAPI/sso-oidc-2019-06-10/CreateTokenWithIAM AWS API Documentation
|
|
818
869
|
#
|
|
@@ -823,9 +874,10 @@ module Aws::SSOOIDC
|
|
|
823
874
|
req.send_request(options)
|
|
824
875
|
end
|
|
825
876
|
|
|
826
|
-
# Registers a client with IAM Identity Center. This allows
|
|
827
|
-
#
|
|
828
|
-
#
|
|
877
|
+
# Registers a public client with IAM Identity Center. This allows
|
|
878
|
+
# clients to perform authorization using the authorization
|
|
879
|
+
# code grant with Proof Key for Code Exchange (PKCE) or the device
|
|
880
|
+
# code grant.
|
|
829
881
|
#
|
|
830
882
|
# @option params [required, String] :client_name
|
|
831
883
|
# The friendly name of the client.
|
|
@@ -847,7 +899,14 @@ module Aws::SSOOIDC
|
|
|
847
899
|
# @option params [Array<String>] :grant_types
|
|
848
900
|
# The list of OAuth 2.0 grant types that are defined by the client. This
|
|
849
901
|
# list is used to restrict the token granting flows available to the
|
|
850
|
-
# client.
|
|
902
|
+
# client. Supports the following OAuth 2.0 grant types: Authorization
|
|
903
|
+
# Code, Device Code, and Refresh Token.
|
|
904
|
+
#
|
|
905
|
+
# * Authorization Code - `authorization_code`
|
|
906
|
+
#
|
|
907
|
+
# * Device Code - `urn:ietf:params:oauth:grant-type:device_code`
|
|
908
|
+
#
|
|
909
|
+
# * Refresh Token - `refresh_token`
|
|
851
910
|
#
|
|
852
911
|
# @option params [String] :issuer_url
|
|
853
912
|
# The IAM Identity Center Issuer URL associated with an instance of IAM
|
|
@@ -974,8 +1033,8 @@ module Aws::SSOOIDC
|
|
|
974
1033
|
# expires_in: 1579729529,
|
|
975
1034
|
# interval: 1,
|
|
976
1035
|
# user_code: "makdfsk83yJraWQiOiJrZXktMTU2Njk2sImFsZyI6IkhTMzIn0EXAMPLEUSERCODE",
|
|
977
|
-
# verification_uri: "https://
|
|
978
|
-
# verification_uri_complete: "https://
|
|
1036
|
+
# verification_uri: "https://directory-alias-example.awsapps.com/start/#/device",
|
|
1037
|
+
# verification_uri_complete: "https://directory-alias-example.awsapps.com/start/#/device?user_code=makdfsk83yJraWQiOiJrZXktMTU2Njk2sImFsZyI6IkhTMzIn0EXAMPLEUSERCODE",
|
|
979
1038
|
# }
|
|
980
1039
|
#
|
|
981
1040
|
# @example Request syntax with placeholder values
|
|
@@ -1022,7 +1081,7 @@ module Aws::SSOOIDC
|
|
|
1022
1081
|
tracer: tracer
|
|
1023
1082
|
)
|
|
1024
1083
|
context[:gem_name] = 'aws-sdk-core'
|
|
1025
|
-
context[:gem_version] = '3.
|
|
1084
|
+
context[:gem_version] = '3.240.0'
|
|
1026
1085
|
Seahorse::Client::Request.new(handlers, context)
|
|
1027
1086
|
end
|
|
1028
1087
|
|
|
@@ -15,11 +15,13 @@ module Aws::SSOOIDC
|
|
|
15
15
|
include Seahorse::Model
|
|
16
16
|
|
|
17
17
|
AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
|
|
18
|
+
AccessDeniedExceptionReason = Shapes::StringShape.new(name: 'AccessDeniedExceptionReason')
|
|
18
19
|
AccessToken = Shapes::StringShape.new(name: 'AccessToken')
|
|
19
20
|
ArnType = Shapes::StringShape.new(name: 'ArnType')
|
|
20
21
|
Assertion = Shapes::StringShape.new(name: 'Assertion')
|
|
21
22
|
AuthCode = Shapes::StringShape.new(name: 'AuthCode')
|
|
22
23
|
AuthorizationPendingException = Shapes::StructureShape.new(name: 'AuthorizationPendingException')
|
|
24
|
+
AwsAdditionalDetails = Shapes::StructureShape.new(name: 'AwsAdditionalDetails')
|
|
23
25
|
ClientId = Shapes::StringShape.new(name: 'ClientId')
|
|
24
26
|
ClientName = Shapes::StringShape.new(name: 'ClientName')
|
|
25
27
|
ClientSecret = Shapes::StringShape.new(name: 'ClientSecret')
|
|
@@ -37,6 +39,7 @@ module Aws::SSOOIDC
|
|
|
37
39
|
GrantType = Shapes::StringShape.new(name: 'GrantType')
|
|
38
40
|
GrantTypes = Shapes::ListShape.new(name: 'GrantTypes')
|
|
39
41
|
IdToken = Shapes::StringShape.new(name: 'IdToken')
|
|
42
|
+
IdentityContext = Shapes::StringShape.new(name: 'IdentityContext')
|
|
40
43
|
InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
|
|
41
44
|
IntervalInSeconds = Shapes::IntegerShape.new(name: 'IntervalInSeconds')
|
|
42
45
|
InvalidClientException = Shapes::StructureShape.new(name: 'InvalidClientException')
|
|
@@ -44,6 +47,7 @@ module Aws::SSOOIDC
|
|
|
44
47
|
InvalidGrantException = Shapes::StructureShape.new(name: 'InvalidGrantException')
|
|
45
48
|
InvalidRedirectUriException = Shapes::StructureShape.new(name: 'InvalidRedirectUriException')
|
|
46
49
|
InvalidRequestException = Shapes::StructureShape.new(name: 'InvalidRequestException')
|
|
50
|
+
InvalidRequestExceptionReason = Shapes::StringShape.new(name: 'InvalidRequestExceptionReason')
|
|
47
51
|
InvalidRequestRegionException = Shapes::StructureShape.new(name: 'InvalidRequestRegionException')
|
|
48
52
|
InvalidScopeException = Shapes::StructureShape.new(name: 'InvalidScopeException')
|
|
49
53
|
Location = Shapes::StringShape.new(name: 'Location')
|
|
@@ -67,6 +71,7 @@ module Aws::SSOOIDC
|
|
|
67
71
|
UserCode = Shapes::StringShape.new(name: 'UserCode')
|
|
68
72
|
|
|
69
73
|
AccessDeniedException.add_member(:error, Shapes::ShapeRef.new(shape: Error, location_name: "error"))
|
|
74
|
+
AccessDeniedException.add_member(:reason, Shapes::ShapeRef.new(shape: AccessDeniedExceptionReason, location_name: "reason"))
|
|
70
75
|
AccessDeniedException.add_member(:error_description, Shapes::ShapeRef.new(shape: ErrorDescription, location_name: "error_description"))
|
|
71
76
|
AccessDeniedException.struct_class = Types::AccessDeniedException
|
|
72
77
|
|
|
@@ -74,6 +79,9 @@ module Aws::SSOOIDC
|
|
|
74
79
|
AuthorizationPendingException.add_member(:error_description, Shapes::ShapeRef.new(shape: ErrorDescription, location_name: "error_description"))
|
|
75
80
|
AuthorizationPendingException.struct_class = Types::AuthorizationPendingException
|
|
76
81
|
|
|
82
|
+
AwsAdditionalDetails.add_member(:identity_context, Shapes::ShapeRef.new(shape: IdentityContext, location_name: "identityContext"))
|
|
83
|
+
AwsAdditionalDetails.struct_class = Types::AwsAdditionalDetails
|
|
84
|
+
|
|
77
85
|
CreateTokenRequest.add_member(:client_id, Shapes::ShapeRef.new(shape: ClientId, required: true, location_name: "clientId"))
|
|
78
86
|
CreateTokenRequest.add_member(:client_secret, Shapes::ShapeRef.new(shape: ClientSecret, required: true, location_name: "clientSecret"))
|
|
79
87
|
CreateTokenRequest.add_member(:grant_type, Shapes::ShapeRef.new(shape: GrantType, required: true, location_name: "grantType"))
|
|
@@ -112,6 +120,7 @@ module Aws::SSOOIDC
|
|
|
112
120
|
CreateTokenWithIAMResponse.add_member(:id_token, Shapes::ShapeRef.new(shape: IdToken, location_name: "idToken"))
|
|
113
121
|
CreateTokenWithIAMResponse.add_member(:issued_token_type, Shapes::ShapeRef.new(shape: TokenTypeURI, location_name: "issuedTokenType"))
|
|
114
122
|
CreateTokenWithIAMResponse.add_member(:scope, Shapes::ShapeRef.new(shape: Scopes, location_name: "scope"))
|
|
123
|
+
CreateTokenWithIAMResponse.add_member(:aws_additional_details, Shapes::ShapeRef.new(shape: AwsAdditionalDetails, location_name: "awsAdditionalDetails"))
|
|
115
124
|
CreateTokenWithIAMResponse.struct_class = Types::CreateTokenWithIAMResponse
|
|
116
125
|
|
|
117
126
|
ExpiredTokenException.add_member(:error, Shapes::ShapeRef.new(shape: Error, location_name: "error"))
|
|
@@ -141,6 +150,7 @@ module Aws::SSOOIDC
|
|
|
141
150
|
InvalidRedirectUriException.struct_class = Types::InvalidRedirectUriException
|
|
142
151
|
|
|
143
152
|
InvalidRequestException.add_member(:error, Shapes::ShapeRef.new(shape: Error, location_name: "error"))
|
|
153
|
+
InvalidRequestException.add_member(:reason, Shapes::ShapeRef.new(shape: InvalidRequestExceptionReason, location_name: "reason"))
|
|
144
154
|
InvalidRequestException.add_member(:error_description, Shapes::ShapeRef.new(shape: ErrorDescription, location_name: "error_description"))
|
|
145
155
|
InvalidRequestException.struct_class = Types::InvalidRequestException
|
|
146
156
|
|
|
@@ -276,6 +286,7 @@ module Aws::SSOOIDC
|
|
|
276
286
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
277
287
|
o.errors << Shapes::ShapeRef.new(shape: InvalidRedirectUriException)
|
|
278
288
|
o.errors << Shapes::ShapeRef.new(shape: UnsupportedGrantTypeException)
|
|
289
|
+
o.errors << Shapes::ShapeRef.new(shape: SlowDownException)
|
|
279
290
|
end)
|
|
280
291
|
|
|
281
292
|
api.add_operation(:start_device_authorization, Seahorse::Model::Operation.new.tap do |o|
|
|
@@ -13,22 +13,22 @@ module Aws::SSOOIDC
|
|
|
13
13
|
# @!attribute region
|
|
14
14
|
# The AWS region used to dispatch the request.
|
|
15
15
|
#
|
|
16
|
-
# @return [
|
|
16
|
+
# @return [string]
|
|
17
17
|
#
|
|
18
18
|
# @!attribute use_dual_stack
|
|
19
19
|
# When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
|
|
20
20
|
#
|
|
21
|
-
# @return [
|
|
21
|
+
# @return [boolean]
|
|
22
22
|
#
|
|
23
23
|
# @!attribute use_fips
|
|
24
24
|
# When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
|
|
25
25
|
#
|
|
26
|
-
# @return [
|
|
26
|
+
# @return [boolean]
|
|
27
27
|
#
|
|
28
28
|
# @!attribute endpoint
|
|
29
29
|
# Override the endpoint used to send this request
|
|
30
30
|
#
|
|
31
|
-
# @return [
|
|
31
|
+
# @return [string]
|
|
32
32
|
#
|
|
33
33
|
EndpointParameters = Struct.new(
|
|
34
34
|
:region,
|
|
@@ -52,15 +52,18 @@ module Aws::SSOOIDC
|
|
|
52
52
|
self[:region] = options[:region]
|
|
53
53
|
self[:use_dual_stack] = options[:use_dual_stack]
|
|
54
54
|
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
|
55
|
-
if self[:use_dual_stack].nil?
|
|
56
|
-
raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
|
|
57
|
-
end
|
|
58
55
|
self[:use_fips] = options[:use_fips]
|
|
59
56
|
self[:use_fips] = false if self[:use_fips].nil?
|
|
60
|
-
if self[:use_fips].nil?
|
|
61
|
-
raise ArgumentError, "Missing required EndpointParameter: :use_fips"
|
|
62
|
-
end
|
|
63
57
|
self[:endpoint] = options[:endpoint]
|
|
64
58
|
end
|
|
59
|
+
|
|
60
|
+
def self.create(config, options={})
|
|
61
|
+
new({
|
|
62
|
+
region: config.region,
|
|
63
|
+
use_dual_stack: config.use_dualstack_endpoint,
|
|
64
|
+
use_fips: config.use_fips_endpoint,
|
|
65
|
+
endpoint: (config.endpoint.to_s unless config.regional_endpoint),
|
|
66
|
+
}.merge(options))
|
|
67
|
+
end
|
|
65
68
|
end
|
|
66
69
|
end
|