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
|
@@ -0,0 +1,299 @@
|
|
|
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
|
+
module Aws::Signin
|
|
11
|
+
module Types
|
|
12
|
+
|
|
13
|
+
# Error thrown for access denied scenarios with flexible HTTP status
|
|
14
|
+
# mapping
|
|
15
|
+
#
|
|
16
|
+
# Runtime HTTP Status Code Mapping:
|
|
17
|
+
#
|
|
18
|
+
# * HTTP 401 (Unauthorized): TOKEN\_EXPIRED, AUTHCODE\_EXPIRED
|
|
19
|
+
# * HTTP 403 (Forbidden): USER\_CREDENTIALS\_CHANGED,
|
|
20
|
+
# INSUFFICIENT\_PERMISSIONS
|
|
21
|
+
#
|
|
22
|
+
# The specific HTTP status code is determined at runtime based on the
|
|
23
|
+
# error enum value. Consumers should use the error field to determine
|
|
24
|
+
# the specific access denial reason.
|
|
25
|
+
#
|
|
26
|
+
# @!attribute [rw] error
|
|
27
|
+
# OAuth 2.0 error code indicating the specific type of access denial
|
|
28
|
+
# Can be TOKEN\_EXPIRED, AUTHCODE\_EXPIRED,
|
|
29
|
+
# USER\_CREDENTIALS\_CHANGED, or INSUFFICIENT\_PERMISSIONS
|
|
30
|
+
# @return [String]
|
|
31
|
+
#
|
|
32
|
+
# @!attribute [rw] message
|
|
33
|
+
# Detailed message explaining the access denial Provides specific
|
|
34
|
+
# information about why access was denied
|
|
35
|
+
# @return [String]
|
|
36
|
+
#
|
|
37
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/AccessDeniedException AWS API Documentation
|
|
38
|
+
#
|
|
39
|
+
class AccessDeniedException < Struct.new(
|
|
40
|
+
:error,
|
|
41
|
+
:message)
|
|
42
|
+
SENSITIVE = []
|
|
43
|
+
include Aws::Structure
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# AWS credentials structure containing temporary access credentials
|
|
47
|
+
#
|
|
48
|
+
# The scoped-down, 15 minute duration AWS credentials. Scoping down will
|
|
49
|
+
# be based on CLI policy (CLI team needs to create it). Similar to cloud
|
|
50
|
+
# shell implementation.
|
|
51
|
+
#
|
|
52
|
+
# @!attribute [rw] access_key_id
|
|
53
|
+
# AWS access key ID for temporary credentials
|
|
54
|
+
# @return [String]
|
|
55
|
+
#
|
|
56
|
+
# @!attribute [rw] secret_access_key
|
|
57
|
+
# AWS secret access key for temporary credentials
|
|
58
|
+
# @return [String]
|
|
59
|
+
#
|
|
60
|
+
# @!attribute [rw] session_token
|
|
61
|
+
# AWS session token for temporary credentials
|
|
62
|
+
# @return [String]
|
|
63
|
+
#
|
|
64
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/AccessToken AWS API Documentation
|
|
65
|
+
#
|
|
66
|
+
class AccessToken < Struct.new(
|
|
67
|
+
:access_key_id,
|
|
68
|
+
:secret_access_key,
|
|
69
|
+
:session_token)
|
|
70
|
+
SENSITIVE = []
|
|
71
|
+
include Aws::Structure
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# Input structure for CreateOAuth2Token operation
|
|
75
|
+
#
|
|
76
|
+
# Contains flattened token operation inputs for both authorization code
|
|
77
|
+
# and refresh token flows. The operation type is determined by the
|
|
78
|
+
# grant\_type parameter in the request body.
|
|
79
|
+
#
|
|
80
|
+
# @!attribute [rw] token_input
|
|
81
|
+
# Flattened token operation inputs The specific operation is
|
|
82
|
+
# determined by grant\_type in the request body
|
|
83
|
+
# @return [Types::CreateOAuth2TokenRequestBody]
|
|
84
|
+
#
|
|
85
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/CreateOAuth2TokenRequest AWS API Documentation
|
|
86
|
+
#
|
|
87
|
+
class CreateOAuth2TokenRequest < Struct.new(
|
|
88
|
+
:token_input)
|
|
89
|
+
SENSITIVE = []
|
|
90
|
+
include Aws::Structure
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# Request body payload for CreateOAuth2Token operation
|
|
94
|
+
#
|
|
95
|
+
# The operation type is determined by the grant\_type parameter:
|
|
96
|
+
#
|
|
97
|
+
# * grant\_type=authorization\_code: Requires code, redirect\_uri,
|
|
98
|
+
# code\_verifier
|
|
99
|
+
# * grant\_type=refresh\_token: Requires refresh\_token
|
|
100
|
+
#
|
|
101
|
+
# @!attribute [rw] client_id
|
|
102
|
+
# The client identifier (ARN) used during Sign-In onboarding Required
|
|
103
|
+
# for both authorization code and refresh token flows
|
|
104
|
+
# @return [String]
|
|
105
|
+
#
|
|
106
|
+
# @!attribute [rw] grant_type
|
|
107
|
+
# OAuth 2.0 grant type - determines which flow is used Must be
|
|
108
|
+
# "authorization\_code" or "refresh\_token"
|
|
109
|
+
# @return [String]
|
|
110
|
+
#
|
|
111
|
+
# @!attribute [rw] code
|
|
112
|
+
# The authorization code received from /v1/authorize Required only
|
|
113
|
+
# when grant\_type=authorization\_code
|
|
114
|
+
# @return [String]
|
|
115
|
+
#
|
|
116
|
+
# @!attribute [rw] redirect_uri
|
|
117
|
+
# The redirect URI that must match the original authorization request
|
|
118
|
+
# Required only when grant\_type=authorization\_code
|
|
119
|
+
# @return [String]
|
|
120
|
+
#
|
|
121
|
+
# @!attribute [rw] code_verifier
|
|
122
|
+
# PKCE code verifier to prove possession of the original code
|
|
123
|
+
# challenge Required only when grant\_type=authorization\_code
|
|
124
|
+
# @return [String]
|
|
125
|
+
#
|
|
126
|
+
# @!attribute [rw] refresh_token
|
|
127
|
+
# The refresh token returned from auth\_code redemption Required only
|
|
128
|
+
# when grant\_type=refresh\_token
|
|
129
|
+
# @return [String]
|
|
130
|
+
#
|
|
131
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/CreateOAuth2TokenRequestBody AWS API Documentation
|
|
132
|
+
#
|
|
133
|
+
class CreateOAuth2TokenRequestBody < Struct.new(
|
|
134
|
+
:client_id,
|
|
135
|
+
:grant_type,
|
|
136
|
+
:code,
|
|
137
|
+
:redirect_uri,
|
|
138
|
+
:code_verifier,
|
|
139
|
+
:refresh_token)
|
|
140
|
+
SENSITIVE = [:refresh_token]
|
|
141
|
+
include Aws::Structure
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
# Output structure for CreateOAuth2Token operation
|
|
145
|
+
#
|
|
146
|
+
# Contains flattened token operation outputs for both authorization code
|
|
147
|
+
# and refresh token flows. The response content depends on the
|
|
148
|
+
# grant\_type from the original request.
|
|
149
|
+
#
|
|
150
|
+
# @!attribute [rw] token_output
|
|
151
|
+
# Flattened token operation outputs The specific response fields
|
|
152
|
+
# depend on the grant\_type used in the request
|
|
153
|
+
# @return [Types::CreateOAuth2TokenResponseBody]
|
|
154
|
+
#
|
|
155
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/CreateOAuth2TokenResponse AWS API Documentation
|
|
156
|
+
#
|
|
157
|
+
class CreateOAuth2TokenResponse < Struct.new(
|
|
158
|
+
:token_output)
|
|
159
|
+
SENSITIVE = []
|
|
160
|
+
include Aws::Structure
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
# Response body payload for CreateOAuth2Token operation
|
|
164
|
+
#
|
|
165
|
+
# The response content depends on the grant\_type from the request:
|
|
166
|
+
#
|
|
167
|
+
# * grant\_type=authorization\_code: Returns all fields including
|
|
168
|
+
# refresh\_token and id\_token
|
|
169
|
+
# * grant\_type=refresh\_token: Returns access\_token, token\_type,
|
|
170
|
+
# expires\_in, refresh\_token (no id\_token)
|
|
171
|
+
#
|
|
172
|
+
# @!attribute [rw] access_token
|
|
173
|
+
# Scoped-down AWS credentials (15 minute duration) Present for both
|
|
174
|
+
# authorization code redemption and token refresh
|
|
175
|
+
# @return [Types::AccessToken]
|
|
176
|
+
#
|
|
177
|
+
# @!attribute [rw] token_type
|
|
178
|
+
# Token type indicating this is AWS SigV4 credentials Value is
|
|
179
|
+
# "aws\_sigv4" for both flows
|
|
180
|
+
# @return [String]
|
|
181
|
+
#
|
|
182
|
+
# @!attribute [rw] expires_in
|
|
183
|
+
# Time to expiry in seconds (maximum 900) Present for both
|
|
184
|
+
# authorization code redemption and token refresh
|
|
185
|
+
# @return [Integer]
|
|
186
|
+
#
|
|
187
|
+
# @!attribute [rw] refresh_token
|
|
188
|
+
# Encrypted refresh token with cnf.jkt (SHA-256 thumbprint of
|
|
189
|
+
# presented jwk) Always present in responses (required for both flows)
|
|
190
|
+
# @return [String]
|
|
191
|
+
#
|
|
192
|
+
# @!attribute [rw] id_token
|
|
193
|
+
# ID token containing user identity information Present only in
|
|
194
|
+
# authorization code redemption response
|
|
195
|
+
# (grant\_type=authorization\_code) Not included in token refresh
|
|
196
|
+
# responses
|
|
197
|
+
# @return [String]
|
|
198
|
+
#
|
|
199
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/CreateOAuth2TokenResponseBody AWS API Documentation
|
|
200
|
+
#
|
|
201
|
+
class CreateOAuth2TokenResponseBody < Struct.new(
|
|
202
|
+
:access_token,
|
|
203
|
+
:token_type,
|
|
204
|
+
:expires_in,
|
|
205
|
+
:refresh_token,
|
|
206
|
+
:id_token)
|
|
207
|
+
SENSITIVE = [:access_token, :refresh_token]
|
|
208
|
+
include Aws::Structure
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
# Error thrown when an internal server error occurs
|
|
212
|
+
#
|
|
213
|
+
# HTTP Status Code: 500 Internal Server Error
|
|
214
|
+
#
|
|
215
|
+
# Used for unexpected server-side errors that prevent request
|
|
216
|
+
# processing.
|
|
217
|
+
#
|
|
218
|
+
# @!attribute [rw] error
|
|
219
|
+
# OAuth 2.0 error code indicating server error Will be SERVER\_ERROR
|
|
220
|
+
# for internal server errors
|
|
221
|
+
# @return [String]
|
|
222
|
+
#
|
|
223
|
+
# @!attribute [rw] message
|
|
224
|
+
# Detailed message explaining the server error May include error
|
|
225
|
+
# details for debugging purposes
|
|
226
|
+
# @return [String]
|
|
227
|
+
#
|
|
228
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/InternalServerException AWS API Documentation
|
|
229
|
+
#
|
|
230
|
+
class InternalServerException < Struct.new(
|
|
231
|
+
:error,
|
|
232
|
+
:message)
|
|
233
|
+
SENSITIVE = []
|
|
234
|
+
include Aws::Structure
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
# Error thrown when rate limit is exceeded
|
|
238
|
+
#
|
|
239
|
+
# HTTP Status Code: 429 Too Many Requests
|
|
240
|
+
#
|
|
241
|
+
# Possible OAuth2ErrorCode values:
|
|
242
|
+
#
|
|
243
|
+
# * INVALID\_REQUEST: Rate limiting, too many requests, abuse prevention
|
|
244
|
+
#
|
|
245
|
+
# Possible causes:
|
|
246
|
+
#
|
|
247
|
+
# * Too many token requests from the same client
|
|
248
|
+
# * Rate limiting based on client\_id or IP address
|
|
249
|
+
# * Abuse prevention mechanisms triggered
|
|
250
|
+
# * Service protection against excessive token generation
|
|
251
|
+
#
|
|
252
|
+
# @!attribute [rw] error
|
|
253
|
+
# OAuth 2.0 error code indicating the specific type of error Will be
|
|
254
|
+
# INVALID\_REQUEST for rate limiting scenarios
|
|
255
|
+
# @return [String]
|
|
256
|
+
#
|
|
257
|
+
# @!attribute [rw] message
|
|
258
|
+
# Detailed message about the rate limiting May include retry-after
|
|
259
|
+
# information or rate limit details
|
|
260
|
+
# @return [String]
|
|
261
|
+
#
|
|
262
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/TooManyRequestsError AWS API Documentation
|
|
263
|
+
#
|
|
264
|
+
class TooManyRequestsError < Struct.new(
|
|
265
|
+
:error,
|
|
266
|
+
:message)
|
|
267
|
+
SENSITIVE = []
|
|
268
|
+
include Aws::Structure
|
|
269
|
+
end
|
|
270
|
+
|
|
271
|
+
# Error thrown when request validation fails
|
|
272
|
+
#
|
|
273
|
+
# HTTP Status Code: 400 Bad Request
|
|
274
|
+
#
|
|
275
|
+
# Used for request validation errors such as malformed parameters,
|
|
276
|
+
# missing required fields, or invalid parameter values.
|
|
277
|
+
#
|
|
278
|
+
# @!attribute [rw] error
|
|
279
|
+
# OAuth 2.0 error code indicating validation failure Will be
|
|
280
|
+
# INVALID\_REQUEST for validation errors
|
|
281
|
+
# @return [String]
|
|
282
|
+
#
|
|
283
|
+
# @!attribute [rw] message
|
|
284
|
+
# Detailed message explaining the validation failure Provides specific
|
|
285
|
+
# information about which validation failed
|
|
286
|
+
# @return [String]
|
|
287
|
+
#
|
|
288
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/ValidationException AWS API Documentation
|
|
289
|
+
#
|
|
290
|
+
class ValidationException < Struct.new(
|
|
291
|
+
:error,
|
|
292
|
+
:message)
|
|
293
|
+
SENSITIVE = []
|
|
294
|
+
include Aws::Structure
|
|
295
|
+
end
|
|
296
|
+
|
|
297
|
+
end
|
|
298
|
+
end
|
|
299
|
+
|
|
@@ -0,0 +1,63 @@
|
|
|
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
|
+
|
|
11
|
+
unless Module.const_defined?(:Aws)
|
|
12
|
+
require 'aws-sdk-core'
|
|
13
|
+
require 'aws-sigv4'
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
Aws::Plugins::GlobalConfiguration.add_identifier(:signin)
|
|
17
|
+
|
|
18
|
+
# This module provides support for AWS Sign-In Service. This module is available in the
|
|
19
|
+
# `aws-sdk-core` gem.
|
|
20
|
+
#
|
|
21
|
+
# # Client
|
|
22
|
+
#
|
|
23
|
+
# The {Client} class provides one method for each API operation. Operation
|
|
24
|
+
# methods each accept a hash of request parameters and return a response
|
|
25
|
+
# structure.
|
|
26
|
+
#
|
|
27
|
+
# signin = Aws::Signin::Client.new
|
|
28
|
+
# resp = signin.create_o_auth_2_token(params)
|
|
29
|
+
#
|
|
30
|
+
# See {Client} for more information.
|
|
31
|
+
#
|
|
32
|
+
# # Errors
|
|
33
|
+
#
|
|
34
|
+
# Errors returned from AWS Sign-In Service are defined in the
|
|
35
|
+
# {Errors} module and all extend {Errors::ServiceError}.
|
|
36
|
+
#
|
|
37
|
+
# begin
|
|
38
|
+
# # do stuff
|
|
39
|
+
# rescue Aws::Signin::Errors::ServiceError
|
|
40
|
+
# # rescues all AWS Sign-In Service API errors
|
|
41
|
+
# end
|
|
42
|
+
#
|
|
43
|
+
# See {Errors} for more information.
|
|
44
|
+
#
|
|
45
|
+
# @!group service
|
|
46
|
+
module Aws::Signin
|
|
47
|
+
autoload :Types, 'aws-sdk-signin/types'
|
|
48
|
+
autoload :ClientApi, 'aws-sdk-signin/client_api'
|
|
49
|
+
module Plugins
|
|
50
|
+
autoload :Endpoints, 'aws-sdk-signin/plugins/endpoints.rb'
|
|
51
|
+
end
|
|
52
|
+
autoload :Client, 'aws-sdk-signin/client'
|
|
53
|
+
autoload :Errors, 'aws-sdk-signin/errors'
|
|
54
|
+
autoload :Resource, 'aws-sdk-signin/resource'
|
|
55
|
+
autoload :EndpointParameters, 'aws-sdk-signin/endpoint_parameters'
|
|
56
|
+
autoload :EndpointProvider, 'aws-sdk-signin/endpoint_provider'
|
|
57
|
+
autoload :Endpoints, 'aws-sdk-signin/endpoints'
|
|
58
|
+
|
|
59
|
+
GEM_VERSION = '3.240.0'
|
|
60
|
+
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
require_relative 'aws-sdk-signin/customizations'
|
data/lib/aws-sdk-sso/client.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::SSO
|
|
40
40
|
# An API client for SSO. To construct a client, you need to configure a `:region` and `:credentials`.
|
|
@@ -95,8 +95,8 @@ module Aws::SSO
|
|
|
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::SSO
|
|
|
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::SSO
|
|
|
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::SSO
|
|
|
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::SSO
|
|
|
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::SSO
|
|
|
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.
|
|
@@ -669,7 +698,7 @@ module Aws::SSO
|
|
|
669
698
|
tracer: tracer
|
|
670
699
|
)
|
|
671
700
|
context[:gem_name] = 'aws-sdk-core'
|
|
672
|
-
context[:gem_version] = '3.
|
|
701
|
+
context[:gem_version] = '3.240.0'
|
|
673
702
|
Seahorse::Client::Request.new(handlers, context)
|
|
674
703
|
end
|
|
675
704
|
|
|
@@ -13,22 +13,22 @@ module Aws::SSO
|
|
|
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::SSO
|
|
|
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
|
|
@@ -10,43 +10,39 @@
|
|
|
10
10
|
module Aws::SSO
|
|
11
11
|
class EndpointProvider
|
|
12
12
|
def resolve_endpoint(parameters)
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
use_fips = parameters.use_fips
|
|
16
|
-
endpoint = parameters.endpoint
|
|
17
|
-
if Aws::Endpoints::Matchers.set?(endpoint)
|
|
18
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
|
13
|
+
if Aws::Endpoints::Matchers.set?(parameters.endpoint)
|
|
14
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
|
|
19
15
|
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
|
20
16
|
end
|
|
21
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
|
17
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
|
22
18
|
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
|
23
19
|
end
|
|
24
|
-
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
|
20
|
+
return Aws::Endpoints::Endpoint.new(url: parameters.endpoint, headers: {}, properties: {})
|
|
25
21
|
end
|
|
26
|
-
if Aws::Endpoints::Matchers.set?(region)
|
|
27
|
-
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
|
28
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
|
22
|
+
if Aws::Endpoints::Matchers.set?(parameters.region)
|
|
23
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region))
|
|
24
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
|
29
25
|
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
|
30
|
-
return Aws::Endpoints::Endpoint.new(url: "https://portal.sso-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
|
26
|
+
return Aws::Endpoints::Endpoint.new(url: "https://portal.sso-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
|
31
27
|
end
|
|
32
28
|
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
|
33
29
|
end
|
|
34
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
|
35
|
-
if Aws::Endpoints::Matchers.boolean_equals?(
|
|
36
|
-
if Aws::Endpoints::Matchers.string_equals?(
|
|
37
|
-
return Aws::Endpoints::Endpoint.new(url: "https://portal.sso.#{region}.amazonaws.com", headers: {}, properties: {})
|
|
30
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
|
|
31
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
|
32
|
+
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-us-gov")
|
|
33
|
+
return Aws::Endpoints::Endpoint.new(url: "https://portal.sso.#{parameters.region}.amazonaws.com", headers: {}, properties: {})
|
|
38
34
|
end
|
|
39
|
-
return Aws::Endpoints::Endpoint.new(url: "https://portal.sso-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
|
35
|
+
return Aws::Endpoints::Endpoint.new(url: "https://portal.sso-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
|
40
36
|
end
|
|
41
37
|
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
|
42
38
|
end
|
|
43
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
|
39
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
|
44
40
|
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
|
45
|
-
return Aws::Endpoints::Endpoint.new(url: "https://portal.sso.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
|
41
|
+
return Aws::Endpoints::Endpoint.new(url: "https://portal.sso.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
|
46
42
|
end
|
|
47
43
|
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
|
48
44
|
end
|
|
49
|
-
return Aws::Endpoints::Endpoint.new(url: "https://portal.sso.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
|
45
|
+
return Aws::Endpoints::Endpoint.new(url: "https://portal.sso.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
|
50
46
|
end
|
|
51
47
|
end
|
|
52
48
|
raise ArgumentError, "Invalid Configuration: Missing Region"
|