aws-sdk-core 3.260.0 → 3.271.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.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +85 -0
  3. data/VERSION +1 -1
  4. data/lib/aws-sdk-core/json/error_handler.rb +1 -1
  5. data/lib/aws-sdk-core/log/formatter.rb +3 -2
  6. data/lib/aws-sdk-core/log/param_filter.rb +73 -9
  7. data/lib/aws-sdk-core/login_credentials.rb +21 -6
  8. data/lib/aws-sdk-core/pageable_response.rb +8 -1
  9. data/lib/aws-sdk-core/plugins/checksum_algorithm.rb +53 -20
  10. data/lib/aws-sdk-core/plugins/retries/clock_skew.rb +8 -9
  11. data/lib/aws-sdk-core/plugins/retries/retry_quota.rb +3 -9
  12. data/lib/aws-sdk-core/plugins/retry_errors.rb +36 -49
  13. data/lib/aws-sdk-core/plugins/stub_responses.rb +1 -1
  14. data/lib/aws-sdk-core/plugins/user_agent.rb +2 -1
  15. data/lib/aws-sdk-core/response.rb +23 -0
  16. data/lib/aws-sdk-core/rest/response/headers.rb +4 -3
  17. data/lib/aws-sdk-core/rpc_v2/error_handler.rb +1 -1
  18. data/lib/aws-sdk-core/xml/error_handler.rb +1 -1
  19. data/lib/aws-sdk-core.rb +1 -0
  20. data/lib/aws-sdk-signin/client.rb +503 -75
  21. data/lib/aws-sdk-signin/client_api.rb +218 -3
  22. data/lib/aws-sdk-signin/endpoints.rb +55 -0
  23. data/lib/aws-sdk-signin/errors.rb +67 -0
  24. data/lib/aws-sdk-signin/types.rb +611 -132
  25. data/lib/aws-sdk-signin.rb +2 -2
  26. data/lib/aws-sdk-sso/client.rb +7 -6
  27. data/lib/aws-sdk-sso.rb +1 -1
  28. data/lib/aws-sdk-ssooidc/client.rb +7 -6
  29. data/lib/aws-sdk-ssooidc.rb +1 -1
  30. data/lib/aws-sdk-sts/client.rb +240 -122
  31. data/lib/aws-sdk-sts/client_api.rb +84 -0
  32. data/lib/aws-sdk-sts/errors.rb +57 -0
  33. data/lib/aws-sdk-sts/types.rb +461 -141
  34. data/lib/aws-sdk-sts.rb +1 -1
  35. data/lib/seahorse/client/configuration.rb +68 -1
  36. data/lib/seahorse/client/h2/connection.rb +9 -1
  37. data/lib/seahorse/client/http/request.rb +19 -0
  38. data/lib/seahorse/client/net_http/handler.rb +1 -1
  39. data/lib/seahorse/model/shapes.rb +6 -6
  40. metadata +2 -1
@@ -10,28 +10,15 @@
10
10
  module Aws::Signin
11
11
  module Types
12
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.
13
+ # You do not have sufficient access to perform this action.
25
14
  #
26
15
  # @!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
16
+ # One of TOKEN\_EXPIRED, AUTHCODE\_EXPIRED,
17
+ # USER\_CREDENTIALS\_CHANGED, or INSUFFICIENT\_PERMISSIONS.
30
18
  # @return [String]
31
19
  #
32
20
  # @!attribute [rw] message
33
- # Detailed message explaining the access denial Provides specific
34
- # information about why access was denied
21
+ # The reason access was denied.
35
22
  # @return [String]
36
23
  #
37
24
  # @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/AccessDeniedException AWS API Documentation
@@ -43,20 +30,19 @@ module Aws::Signin
43
30
  include Aws::Structure
44
31
  end
45
32
 
46
- # AWS credentials structure containing temporary access credentials
47
- #
48
- # Scoped, temporary AWS credentials with a 15-minute duration.
33
+ # Contains the scoped, temporary AWS credentials used to sign requests
34
+ # with SigV4. Valid for 15 minutes.
49
35
  #
50
36
  # @!attribute [rw] access_key_id
51
- # AWS access key ID for temporary credentials
37
+ # The AWS access key ID for the temporary credentials.
52
38
  # @return [String]
53
39
  #
54
40
  # @!attribute [rw] secret_access_key
55
- # AWS secret access key for temporary credentials
41
+ # The AWS secret access key used to sign requests.
56
42
  # @return [String]
57
43
  #
58
44
  # @!attribute [rw] session_token
59
- # AWS session token for temporary credentials
45
+ # The session token that validates the temporary security credentials.
60
46
  # @return [String]
61
47
  #
62
48
  # @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/AccessToken AWS API Documentation
@@ -69,6 +55,74 @@ module Aws::Signin
69
55
  include Aws::Structure
70
56
  end
71
57
 
58
+ # A session that could not be revoked
59
+ #
60
+ # @!attribute [rw] session_arn
61
+ # The session ARN
62
+ # @return [String]
63
+ #
64
+ # @!attribute [rw] code
65
+ # The error code
66
+ # @return [String]
67
+ #
68
+ # @!attribute [rw] message
69
+ # The error message
70
+ # @return [String]
71
+ #
72
+ # @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/BatchRevokeSessionError AWS API Documentation
73
+ #
74
+ class BatchRevokeSessionError < Struct.new(
75
+ :session_arn,
76
+ :code,
77
+ :message)
78
+ SENSITIVE = []
79
+ include Aws::Structure
80
+ end
81
+
82
+ # Input for BatchRevokeSessions operation
83
+ #
84
+ # @!attribute [rw] principal_arn
85
+ # The identity that owns the sessions. Omit to use the caller. Specify
86
+ # arn:aws:iam::\{account-id}:* to revoke any session in the account.
87
+ # @return [String]
88
+ #
89
+ # @!attribute [rw] session_arns
90
+ # The ARNs of the sessions to revoke
91
+ # @return [Array<String>]
92
+ #
93
+ # @!attribute [rw] reason
94
+ # The reason for revoking the sessions
95
+ # @return [String]
96
+ #
97
+ # @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/BatchRevokeSessionsInput AWS API Documentation
98
+ #
99
+ class BatchRevokeSessionsInput < Struct.new(
100
+ :principal_arn,
101
+ :session_arns,
102
+ :reason)
103
+ SENSITIVE = []
104
+ include Aws::Structure
105
+ end
106
+
107
+ # Output for BatchRevokeSessions operation
108
+ #
109
+ # @!attribute [rw] revoked_sessions
110
+ # Sessions that were revoked
111
+ # @return [Array<Types::RevokedSession>]
112
+ #
113
+ # @!attribute [rw] errors
114
+ # Sessions that could not be revoked
115
+ # @return [Array<Types::BatchRevokeSessionError>]
116
+ #
117
+ # @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/BatchRevokeSessionsOutput AWS API Documentation
118
+ #
119
+ class BatchRevokeSessionsOutput < Struct.new(
120
+ :revoked_sessions,
121
+ :errors)
122
+ SENSITIVE = []
123
+ include Aws::Structure
124
+ end
125
+
72
126
  # Error thrown when request conflicts with current state
73
127
  #
74
128
  # HTTP Status Code: 409 Conflict
@@ -93,6 +147,60 @@ module Aws::Signin
93
147
  include Aws::Structure
94
148
  end
95
149
 
150
+ # Input structure for CreateBearerToken operation
151
+ #
152
+ # @!attribute [rw] grant_type
153
+ # The grant type. Must be "client\_credentials".
154
+ # @return [String]
155
+ #
156
+ # @!attribute [rw] resource
157
+ # The AWS service the bearer token is for. Example:
158
+ # "ecr.amazonaws.com".
159
+ # @return [String]
160
+ #
161
+ # @!attribute [rw] duration_seconds
162
+ # The requested token lifetime in seconds, from 300 (5 minutes) up to
163
+ # the maximum allowed for the service, currently 43200 (12 hours). If
164
+ # omitted, the token is valid for 12 hours.
165
+ # @return [Integer]
166
+ #
167
+ # @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/CreateBearerTokenRequest AWS API Documentation
168
+ #
169
+ class CreateBearerTokenRequest < Struct.new(
170
+ :grant_type,
171
+ :resource,
172
+ :duration_seconds)
173
+ SENSITIVE = []
174
+ include Aws::Structure
175
+ end
176
+
177
+ # Output structure for CreateBearerToken operation
178
+ #
179
+ # Contains the bearer token, its type, and its lifetime.
180
+ #
181
+ # @!attribute [rw] access_token
182
+ # The bearer token. Present it to the AWS service named in the
183
+ # request.
184
+ # @return [String]
185
+ #
186
+ # @!attribute [rw] token_type
187
+ # The token type. Always "Bearer".
188
+ # @return [String]
189
+ #
190
+ # @!attribute [rw] expires_in
191
+ # Token lifetime in seconds.
192
+ # @return [Integer]
193
+ #
194
+ # @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/CreateBearerTokenResponse AWS API Documentation
195
+ #
196
+ class CreateBearerTokenResponse < Struct.new(
197
+ :access_token,
198
+ :token_type,
199
+ :expires_in)
200
+ SENSITIVE = [:access_token]
201
+ include Aws::Structure
202
+ end
203
+
96
204
  # Input structure for CreateOAuth2Token operation
97
205
  #
98
206
  # Contains flattened token operation inputs for both authorization code
@@ -100,8 +208,8 @@ module Aws::Signin
100
208
  # grant\_type parameter in the request body.
101
209
  #
102
210
  # @!attribute [rw] token_input
103
- # Flattened token operation inputs The specific operation is
104
- # determined by grant\_type in the request body
211
+ # Flattened token operation inputs. The "grant\_type" in the request
212
+ # body determines the specific operation.
105
213
  # @return [Types::CreateOAuth2TokenRequestBody]
106
214
  #
107
215
  # @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/CreateOAuth2TokenRequest AWS API Documentation
@@ -112,42 +220,43 @@ module Aws::Signin
112
220
  include Aws::Structure
113
221
  end
114
222
 
115
- # Request body payload for CreateOAuth2Token operation
116
- #
117
- # The operation type is determined by the grant\_type parameter:
118
- #
119
- # * grant\_type=authorization\_code: Requires code, redirect\_uri,
120
- # code\_verifier
121
- # * grant\_type=refresh\_token: Requires refresh\_token
223
+ # The request body for creating an OAuth 2.0 token. Supports both the
224
+ # authorization code and refresh token flows, selected by the
225
+ # "grant\_type" parameter.
122
226
  #
123
227
  # @!attribute [rw] client_id
124
- # The client identifier (ARN) used during Sign-In onboarding Required
125
- # for both authorization code and refresh token flows
228
+ # The OAuth 2.0 client identifier. Expected values:
229
+ # "arn:aws:signin:::devtools/same-device" or
230
+ # "arn:aws:signin:::devtools/cross-device".
126
231
  # @return [String]
127
232
  #
128
233
  # @!attribute [rw] grant_type
129
- # OAuth 2.0 grant type - determines which flow is used Must be
130
- # "authorization\_code" or "refresh\_token"
234
+ # The OAuth 2.0 grant type. Supported values:
235
+ #
236
+ # * "authorization\_code" - Exchange an authorization code for tokens.
237
+ # * "refresh\_token" - Use a refresh token to obtain a new access
238
+ # token.
131
239
  # @return [String]
132
240
  #
133
241
  # @!attribute [rw] code
134
- # The authorization code received from /v1/authorize Required only
135
- # when grant\_type=authorization\_code
242
+ # The authorization code received from the "/v1/authorize" endpoint.
243
+ # Required when "grant\_type=authorization\_code".
136
244
  # @return [String]
137
245
  #
138
246
  # @!attribute [rw] redirect_uri
139
- # The redirect URI that must match the original authorization request
140
- # Required only when grant\_type=authorization\_code
247
+ # The redirect URI that was used in the original authorization
248
+ # request. Must match exactly. Required when
249
+ # "grant\_type=authorization\_code".
141
250
  # @return [String]
142
251
  #
143
252
  # @!attribute [rw] code_verifier
144
- # PKCE code verifier to prove possession of the original code
145
- # challenge Required only when grant\_type=authorization\_code
253
+ # The PKCE code verifier that proves possession of the original code
254
+ # challenge. Required when "grant\_type=authorization\_code".
146
255
  # @return [String]
147
256
  #
148
257
  # @!attribute [rw] refresh_token
149
- # The refresh token returned from auth\_code redemption Required only
150
- # when grant\_type=refresh\_token
258
+ # The refresh token issued by a previous token response. Required when
259
+ # "grant\_type=refresh\_token".
151
260
  # @return [String]
152
261
  #
153
262
  # @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/CreateOAuth2TokenRequestBody AWS API Documentation
@@ -170,8 +279,8 @@ module Aws::Signin
170
279
  # grant\_type from the original request.
171
280
  #
172
281
  # @!attribute [rw] token_output
173
- # Flattened token operation outputs The specific response fields
174
- # depend on the grant\_type used in the request
282
+ # Flattened token operation outputs. The specific response fields
283
+ # depend on the grant\_type used in the request.
175
284
  # @return [Types::CreateOAuth2TokenResponseBody]
176
285
  #
177
286
  # @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/CreateOAuth2TokenResponse AWS API Documentation
@@ -182,40 +291,35 @@ module Aws::Signin
182
291
  include Aws::Structure
183
292
  end
184
293
 
185
- # Response body payload for CreateOAuth2Token operation
186
- #
187
- # The response content depends on the grant\_type from the request:
188
- #
189
- # * grant\_type=authorization\_code: Returns all fields including
190
- # refresh\_token and id\_token
191
- # * grant\_type=refresh\_token: Returns access\_token, token\_type,
192
- # expires\_in, refresh\_token (no id\_token)
294
+ # The response body for an OAuth 2.0 token request. The fields returned
295
+ # depend on the "grant\_type". The authorization code flow returns
296
+ # "refresh\_token" and "id\_token". The refresh token flow omits
297
+ # "id\_token".
193
298
  #
194
299
  # @!attribute [rw] access_token
195
- # Scoped-down AWS credentials (15 minute duration) Present for both
196
- # authorization code redemption and token refresh
300
+ # The access token issued by the authorization server. The token
301
+ # contains temporary AWS security credentials that you use to sign
302
+ # requests with SigV4.
197
303
  # @return [Types::AccessToken]
198
304
  #
199
305
  # @!attribute [rw] token_type
200
- # Token type indicating this is AWS SigV4 credentials Value is
201
- # "aws\_sigv4" for both flows
306
+ # The type of token issued. Value is "aws\_sigv4".
202
307
  # @return [String]
203
308
  #
204
309
  # @!attribute [rw] expires_in
205
- # Time to expiry in seconds (maximum 900) Present for both
206
- # authorization code redemption and token refresh
310
+ # The number of seconds until the access token expires. Maximum value
311
+ # is 900 seconds (15 minutes).
207
312
  # @return [Integer]
208
313
  #
209
314
  # @!attribute [rw] refresh_token
210
- # Encrypted refresh token with cnf.jkt (SHA-256 thumbprint of
211
- # presented jwk) Always present in responses (required for both flows)
315
+ # A refresh token that can be used to obtain new access tokens without
316
+ # re-authenticating.
212
317
  # @return [String]
213
318
  #
214
319
  # @!attribute [rw] id_token
215
- # ID token containing user identity information Present only in
216
- # authorization code redemption response
217
- # (grant\_type=authorization\_code) Not included in token refresh
218
- # responses
320
+ # A JSON Web Token (JWT) containing user identity claims. Present only
321
+ # when "grant\_type=authorization\_code". Not included in refresh
322
+ # token responses.
219
323
  # @return [String]
220
324
  #
221
325
  # @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/CreateOAuth2TokenResponseBody AWS API Documentation
@@ -233,7 +337,7 @@ module Aws::Signin
233
337
  # Input structure for CreateOAuth2TokenWithIAM operation
234
338
  #
235
339
  # @!attribute [rw] grant_type
236
- # OAuth 2.0 grant type. Must be "client\_credentials".
340
+ # The OAuth 2.0 grant type. Must be "client\_credentials".
237
341
  # @return [String]
238
342
  #
239
343
  # @!attribute [rw] resource
@@ -252,21 +356,21 @@ module Aws::Signin
252
356
 
253
357
  # Output structure for CreateOAuth2TokenWithIAM operation
254
358
  #
255
- # Contains the JWT access token, token type, and expiration per RFC 6749
256
- # §5.1.
359
+ # Contains the access token, token type, and expiration as defined in
360
+ # RFC 6749 §5.1.
257
361
  #
258
362
  # @!attribute [rw] access_token
259
- # JWT access token containing principal identity, resource scope, and
260
- # session metadata
363
+ # The access token containing principal identity, resource scope, and
364
+ # session metadata.
261
365
  # @return [String]
262
366
  #
263
367
  # @!attribute [rw] token_type
264
- # Always "Bearer" per OAuth 2.1 specification
368
+ # The token type. Always "Bearer" as defined in RFC 6749.
265
369
  # @return [String]
266
370
  #
267
371
  # @!attribute [rw] expires_in
268
- # Token lifetime in seconds. Value is the minimum of session validity
269
- # and 1 hour.
372
+ # The token lifetime in seconds. Value is the minimum of the caller's
373
+ # session validity and 1 hour (3600 seconds).
270
374
  # @return [Integer]
271
375
  #
272
376
  # @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/CreateOAuth2TokenWithIAMResponse AWS API Documentation
@@ -279,6 +383,126 @@ module Aws::Signin
279
383
  include Aws::Structure
280
384
  end
281
385
 
386
+ # Input structure for CreateOAuth2TokenWithTokenExchange operation
387
+ #
388
+ # @!attribute [rw] grant_type
389
+ # The OAuth 2.0 grant type. Currently supports
390
+ # "urn:ietf:params:oauth:grant-type:token-exchange" and
391
+ # "urn:ietf:params:oauth:grant-type:jwt-bearer".
392
+ # @return [String]
393
+ #
394
+ # @!attribute [rw] subject_token
395
+ # The subject token that represents the identity of the party on whose
396
+ # behalf the request is made. Required when
397
+ # "grant\_type=urn:ietf:params:oauth:grant-type:token-exchange".
398
+ # @return [String]
399
+ #
400
+ # @!attribute [rw] subject_token_type
401
+ # The token type of the subject token. Currently only supports
402
+ # "urn:ietf:params:oauth:token-type:jwt". Required when
403
+ # "grant\_type=urn:ietf:params:oauth:grant-type:token-exchange".
404
+ # @return [String]
405
+ #
406
+ # @!attribute [rw] assertion
407
+ # The JWT authorization grant, as defined in RFC 7523. Required when
408
+ # "grant\_type=urn:ietf:params:oauth:grant-type:jwt-bearer".
409
+ # @return [String]
410
+ #
411
+ # @!attribute [rw] client_id
412
+ # The OAuth 2.0 client identifier. If provided with
413
+ # "grant\_type=urn:ietf:params:oauth:grant-type:jwt-bearer", must
414
+ # match the assertion's "client\_id" claim.
415
+ # @return [String]
416
+ #
417
+ # @!attribute [rw] resource
418
+ # The OAuth resource for which the access token is requested:
419
+ #
420
+ # * "grant\_type=urn:ietf:params:oauth:grant-type:token-exchange":
421
+ # Required. Must be a service principal. Example:
422
+ # "glue.amazonaws.com".
423
+ # * "grant\_type=urn:ietf:params:oauth:grant-type:jwt-bearer":
424
+ # Required when the assertion has no "resource" claim, otherwise
425
+ # must match it. Must be a URI. Example:
426
+ # "https://aws-mcp.us-east-1.api.aws/mcp".
427
+ # @return [String]
428
+ #
429
+ # @!attribute [rw] scope
430
+ # The IAM managed policy Amazon Resource Names (ARNs) to apply as
431
+ # session policies that further scope down the permissions of the
432
+ # issued access token, provided as a space-delimited list. Example:
433
+ # "arn:aws:iam::444455556666:policy/MyPolicy".
434
+ #
435
+ # If provided with
436
+ # "grant\_type=urn:ietf:params:oauth:grant-type:jwt-bearer", must
437
+ # match the assertion's "scope" claim.
438
+ # @return [String]
439
+ #
440
+ # @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/CreateOAuth2TokenWithTokenExchangeRequest AWS API Documentation
441
+ #
442
+ class CreateOAuth2TokenWithTokenExchangeRequest < Struct.new(
443
+ :grant_type,
444
+ :subject_token,
445
+ :subject_token_type,
446
+ :assertion,
447
+ :client_id,
448
+ :resource,
449
+ :scope)
450
+ SENSITIVE = [:subject_token, :assertion]
451
+ include Aws::Structure
452
+ end
453
+
454
+ # Output structure for CreateOAuth2TokenWithTokenExchange operation.
455
+ #
456
+ # Contains the access token, token type, and expiration as defined in
457
+ # RFC 6749 §5.1, plus fields specific to the grant type.
458
+ #
459
+ # @!attribute [rw] access_token
460
+ # The access token containing principal identity, resource scope, and
461
+ # session metadata.
462
+ # @return [String]
463
+ #
464
+ # @!attribute [rw] issued_token_type
465
+ # The token type of the issued token. Returned when
466
+ # "grant\_type=urn:ietf:params:oauth:grant-type:token-exchange". Value
467
+ # is "urn:ietf:params:oauth:token-type:access\_token" as defined in
468
+ # RFC 8693 §2.2.1.
469
+ # @return [String]
470
+ #
471
+ # @!attribute [rw] token_type
472
+ # The token type. Currently only supports "Bearer" as defined in RFC
473
+ # 6749.
474
+ # @return [String]
475
+ #
476
+ # @!attribute [rw] expires_in
477
+ # The token lifetime in seconds. Value is the minimum of the provided
478
+ # token's validity and 1 hour (3600 seconds).
479
+ # @return [Integer]
480
+ #
481
+ # @!attribute [rw] resource
482
+ # The resource the access token is scoped to. Returned when
483
+ # "grant\_type=urn:ietf:params:oauth:grant-type:jwt-bearer".
484
+ # @return [String]
485
+ #
486
+ # @!attribute [rw] scope
487
+ # The IAM managed policy ARNs applied as session policies, as a
488
+ # space-delimited list. Returned when
489
+ # "grant\_type=urn:ietf:params:oauth:grant-type:jwt-bearer" and the
490
+ # assertion has a scope.
491
+ # @return [String]
492
+ #
493
+ # @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/CreateOAuth2TokenWithTokenExchangeResponse AWS API Documentation
494
+ #
495
+ class CreateOAuth2TokenWithTokenExchangeResponse < Struct.new(
496
+ :access_token,
497
+ :issued_token_type,
498
+ :token_type,
499
+ :expires_in,
500
+ :resource,
501
+ :scope)
502
+ SENSITIVE = [:access_token]
503
+ include Aws::Structure
504
+ end
505
+
282
506
  # Input for DeleteConsoleAuthorizationConfiguration operation
283
507
  #
284
508
  # @!attribute [rw] target_id
@@ -405,21 +629,110 @@ module Aws::Signin
405
629
  include Aws::Structure
406
630
  end
407
631
 
408
- # Error thrown when an internal server error occurs
632
+ # Input for GetSession operation
633
+ #
634
+ # @!attribute [rw] session_arn
635
+ # The ARN of the session to retrieve
636
+ # @return [String]
637
+ #
638
+ # @!attribute [rw] principal_arn
639
+ # The identity that owns the session. Omit to use the caller. Specify
640
+ # arn:aws:iam::\{account-id}:* to retrieve any session in the
641
+ # account.
642
+ # @return [String]
643
+ #
644
+ # @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/GetSessionInput AWS API Documentation
645
+ #
646
+ class GetSessionInput < Struct.new(
647
+ :session_arn,
648
+ :principal_arn)
649
+ SENSITIVE = []
650
+ include Aws::Structure
651
+ end
652
+
653
+ # Output for GetSession operation
654
+ #
655
+ # @!attribute [rw] session_arn
656
+ # The session ARN
657
+ # @return [String]
658
+ #
659
+ # @!attribute [rw] principal_arn
660
+ # The IAM identity that owns the session
661
+ # @return [String]
662
+ #
663
+ # @!attribute [rw] role
664
+ # The IAM role for the session, when the owner is a role
665
+ # @return [String]
409
666
  #
410
- # HTTP Status Code: 500 Internal Server Error
667
+ # @!attribute [rw] status
668
+ # The session status
669
+ # @return [String]
670
+ #
671
+ # @!attribute [rw] client_id
672
+ # The OAuth client that created the session
673
+ # @return [String]
674
+ #
675
+ # @!attribute [rw] client_type
676
+ # The type of OAuth client that created the session
677
+ # @return [String]
678
+ #
679
+ # @!attribute [rw] resource
680
+ # The resource that the session's tokens are bound to
681
+ # @return [String]
682
+ #
683
+ # @!attribute [rw] issued_at
684
+ # The time the session was created, in Unix epoch seconds
685
+ # @return [Integer]
686
+ #
687
+ # @!attribute [rw] expires_at
688
+ # The time the session expires, in Unix epoch seconds
689
+ # @return [Integer]
690
+ #
691
+ # @!attribute [rw] last_used_at
692
+ # The time the session was last refreshed, in Unix epoch seconds
693
+ # @return [Integer]
694
+ #
695
+ # @!attribute [rw] issued_in_region
696
+ # The AWS Region where the session was created
697
+ # @return [String]
698
+ #
699
+ # @!attribute [rw] origin_session_arn
700
+ # The ARN of the session this session originated from
701
+ # @return [String]
411
702
  #
412
- # Used for unexpected server-side errors that prevent request
413
- # processing.
703
+ # @!attribute [rw] user_agent
704
+ # The user agent captured when the session was created or last
705
+ # refreshed
706
+ # @return [String]
707
+ #
708
+ # @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/GetSessionOutput AWS API Documentation
709
+ #
710
+ class GetSessionOutput < Struct.new(
711
+ :session_arn,
712
+ :principal_arn,
713
+ :role,
714
+ :status,
715
+ :client_id,
716
+ :client_type,
717
+ :resource,
718
+ :issued_at,
719
+ :expires_at,
720
+ :last_used_at,
721
+ :issued_in_region,
722
+ :origin_session_arn,
723
+ :user_agent)
724
+ SENSITIVE = []
725
+ include Aws::Structure
726
+ end
727
+
728
+ # The request failed because of an internal server error.
414
729
  #
415
730
  # @!attribute [rw] error
416
- # OAuth 2.0 error code indicating server error Will be SERVER\_ERROR
417
- # for internal server errors
731
+ # Will be server\_error.
418
732
  # @return [String]
419
733
  #
420
734
  # @!attribute [rw] message
421
- # Detailed message explaining the server error May include error
422
- # details for debugging purposes
735
+ # The server error detail.
423
736
  # @return [String]
424
737
  #
425
738
  # @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/InternalServerException AWS API Documentation
@@ -437,15 +750,14 @@ module Aws::Signin
437
750
  # an optional hint about the token's type.
438
751
  #
439
752
  # @!attribute [rw] token
440
- # The string value of the token to introspect. May be either an
441
- # access\_token or a refresh\_token issued by AWS Sign-In.
753
+ # The access token or refresh token issued by AWS Sign-In.
442
754
  # @return [String]
443
755
  #
444
756
  # @!attribute [rw] token_type_hint
445
- # Optional hint about the type of the token submitted for
446
- # introspection. The server uses this hint to optimize lookup, but
447
- # still falls back to the other token type on miss. Allowed values:
448
- # access\_token, refresh\_token.
757
+ # An optional hint about the type of the token submitted for
758
+ # introspection, as defined in RFC 7662 §2.1. The server checks both
759
+ # token types regardless of the hint. Allowed values: "access\_token",
760
+ # "refresh\_token".
449
761
  # @return [String]
450
762
  #
451
763
  # @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/IntrospectOAuth2TokenWithIAMRequest AWS API Documentation
@@ -463,8 +775,8 @@ module Aws::Signin
463
775
  # other claims are omitted when the token is inactive.
464
776
  #
465
777
  # @!attribute [rw] active
466
- # Indicates whether the token is currently active. `true` only when
467
- # the token is valid, has not expired, has not been revoked, and
778
+ # Indicates whether the token is currently active. Returns "true" only
779
+ # when the token is valid, has not expired, has not been revoked, and
468
780
  # belongs to the caller's account.
469
781
  # @return [Boolean]
470
782
  #
@@ -473,9 +785,8 @@ module Aws::Signin
473
785
  # @return [String]
474
786
  #
475
787
  # @!attribute [rw] user_id
476
- # User identifier matching sts:GetCallerIdentity's `UserId` field for
477
- # the token's subject principal (e.g. "AIDAEXAMPLE" for an IAM user,
478
- # or "AROAEXAMPLE:session-name" for an assumed role).
788
+ # User identifier matching the "UserId" field from
789
+ # "sts:GetCallerIdentity" for the token's subject principal.
479
790
  # @return [String]
480
791
  #
481
792
  # @!attribute [rw] token_type
@@ -496,15 +807,13 @@ module Aws::Signin
496
807
  # @return [Integer]
497
808
  #
498
809
  # @!attribute [rw] sub
499
- # Subject of the token: the IAM principal ARN. For assumed-role
500
- # sessions, this is the session ARN (matches sts:GetCallerIdentity's
501
- # `Arn` field), e.g.
502
- # arn:aws:sts::123456789012:assumed-role/MyRole/session-name.
810
+ # The IAM principal Amazon Resource Name (ARN). For assumed-role
811
+ # sessions, this is the session ARN.
503
812
  # @return [String]
504
813
  #
505
814
  # @!attribute [rw] aud
506
- # Audience of the token: the OAuth resource the token is scoped to
507
- # (for example, "aws-mcp.amazonaws.com"). Omitted for refresh tokens.
815
+ # The OAuth resource the token is scoped to. Omitted for refresh
816
+ # tokens. Example: "aws-mcp.amazonaws.com".
508
817
  # @return [String]
509
818
  #
510
819
  # @!attribute [rw] iss
@@ -525,8 +834,8 @@ module Aws::Signin
525
834
  # @return [String]
526
835
  #
527
836
  # @!attribute [rw] resource
528
- # The OAuth resource the token is scoped to during Human OAuth flow.
529
- # Only present for refresh token introspection.
837
+ # The OAuth resource the token is scoped to. Only present for refresh
838
+ # token introspection.
530
839
  # @return [String]
531
840
  #
532
841
  # @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/IntrospectOAuth2TokenWithIAMResponse AWS API Documentation
@@ -550,6 +859,43 @@ module Aws::Signin
550
859
  include Aws::Structure
551
860
  end
552
861
 
862
+ # The request failed because the provided grant is invalid or expired.
863
+ #
864
+ # @!attribute [rw] error
865
+ # Will be invalid\_grant.
866
+ # @return [String]
867
+ #
868
+ # @!attribute [rw] message
869
+ # @return [String]
870
+ #
871
+ # @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/InvalidGrantException AWS API Documentation
872
+ #
873
+ class InvalidGrantException < Struct.new(
874
+ :error,
875
+ :message)
876
+ SENSITIVE = []
877
+ include Aws::Structure
878
+ end
879
+
880
+ # The request failed because the requested scope is invalid or exceeds
881
+ # the scope that can be granted.
882
+ #
883
+ # @!attribute [rw] error
884
+ # Will be invalid\_scope.
885
+ # @return [String]
886
+ #
887
+ # @!attribute [rw] message
888
+ # @return [String]
889
+ #
890
+ # @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/InvalidScopeException AWS API Documentation
891
+ #
892
+ class InvalidScopeException < Struct.new(
893
+ :error,
894
+ :message)
895
+ SENSITIVE = []
896
+ include Aws::Structure
897
+ end
898
+
553
899
  # Input for ListResourcePermissionStatements operation
554
900
  #
555
901
  # @!attribute [rw] max_results
@@ -588,6 +934,73 @@ module Aws::Signin
588
934
  include Aws::Structure
589
935
  end
590
936
 
937
+ # Input for ListSessions operation
938
+ #
939
+ # @!attribute [rw] principal_arn
940
+ # The identity whose sessions to list. Omit to list the caller's own
941
+ # sessions. Specify arn:aws:iam::\{account-id}:* to list all sessions
942
+ # in the account.
943
+ # @return [String]
944
+ #
945
+ # @!attribute [rw] max_results
946
+ # Maximum number of results to return
947
+ # @return [Integer]
948
+ #
949
+ # @!attribute [rw] next_token
950
+ # Token for pagination
951
+ # @return [String]
952
+ #
953
+ # @!attribute [rw] status
954
+ # Returns only sessions with this status
955
+ # @return [String]
956
+ #
957
+ # @!attribute [rw] client_id
958
+ # Returns only sessions created by this OAuth client
959
+ # @return [String]
960
+ #
961
+ # @!attribute [rw] issued_after
962
+ # Returns only sessions created at or after this time, in Unix epoch
963
+ # seconds
964
+ # @return [Integer]
965
+ #
966
+ # @!attribute [rw] issued_before
967
+ # Returns only sessions created before this time, in Unix epoch
968
+ # seconds
969
+ # @return [Integer]
970
+ #
971
+ # @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/ListSessionsInput AWS API Documentation
972
+ #
973
+ class ListSessionsInput < Struct.new(
974
+ :principal_arn,
975
+ :max_results,
976
+ :next_token,
977
+ :status,
978
+ :client_id,
979
+ :issued_after,
980
+ :issued_before)
981
+ SENSITIVE = []
982
+ include Aws::Structure
983
+ end
984
+
985
+ # Output for ListSessions operation
986
+ #
987
+ # @!attribute [rw] items
988
+ # List of session summaries
989
+ # @return [Array<Types::Session>]
990
+ #
991
+ # @!attribute [rw] next_token
992
+ # Token for next page of results
993
+ # @return [String]
994
+ #
995
+ # @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/ListSessionsOutput AWS API Documentation
996
+ #
997
+ class ListSessionsOutput < Struct.new(
998
+ :items,
999
+ :next_token)
1000
+ SENSITIVE = []
1001
+ include Aws::Structure
1002
+ end
1003
+
591
1004
  # Summary of a permission statement
592
1005
  #
593
1006
  # @!attribute [rw] sid
@@ -777,9 +1190,8 @@ module Aws::Signin
777
1190
  # revoke.
778
1191
  #
779
1192
  # @!attribute [rw] token
780
- # The refresh\_token to revoke. Must be a refresh\_token issued by AWS
781
- # Sign-In (prefix "ASOR"); access\_tokens are not accepted for
782
- # revocation.
1193
+ # The refresh token to revoke. Must be a refresh token issued by AWS
1194
+ # Sign-In. Access tokens are not accepted for revocation.
783
1195
  # @return [String]
784
1196
  #
785
1197
  # @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/RevokeOAuth2TokenWithIAMRequest AWS API Documentation
@@ -799,6 +1211,20 @@ module Aws::Signin
799
1211
  #
800
1212
  class RevokeOAuth2TokenWithIAMResponse < Aws::EmptyStructure; end
801
1213
 
1214
+ # A session that was revoked
1215
+ #
1216
+ # @!attribute [rw] session_arn
1217
+ # The revoked session ARN
1218
+ # @return [String]
1219
+ #
1220
+ # @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/RevokedSession AWS API Documentation
1221
+ #
1222
+ class RevokedSession < Struct.new(
1223
+ :session_arn)
1224
+ SENSITIVE = []
1225
+ include Aws::Structure
1226
+ end
1227
+
802
1228
  # Error thrown when service quota is exceeded
803
1229
  #
804
1230
  # HTTP Status Code: 402 Payment Required (used as quota exceeded
@@ -825,6 +1251,79 @@ module Aws::Signin
825
1251
  include Aws::Structure
826
1252
  end
827
1253
 
1254
+ # The request failed because a dependency is temporarily unavailable.
1255
+ # You can retry the request.
1256
+ #
1257
+ # @!attribute [rw] error
1258
+ # Will be service\_unavailable.
1259
+ # @return [String]
1260
+ #
1261
+ # @!attribute [rw] message
1262
+ # @return [String]
1263
+ #
1264
+ # @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/ServiceUnavailableException AWS API Documentation
1265
+ #
1266
+ class ServiceUnavailableException < Struct.new(
1267
+ :error,
1268
+ :message)
1269
+ SENSITIVE = []
1270
+ include Aws::Structure
1271
+ end
1272
+
1273
+ # Summary of a sign-in session
1274
+ #
1275
+ # @!attribute [rw] session_arn
1276
+ # The session ARN
1277
+ # @return [String]
1278
+ #
1279
+ # @!attribute [rw] principal_arn
1280
+ # The IAM identity that owns the session
1281
+ # @return [String]
1282
+ #
1283
+ # @!attribute [rw] role
1284
+ # The IAM role for the session, when the owner is a role
1285
+ # @return [String]
1286
+ #
1287
+ # @!attribute [rw] status
1288
+ # The session status
1289
+ # @return [String]
1290
+ #
1291
+ # @!attribute [rw] issued_at
1292
+ # The time the session was created, in Unix epoch seconds
1293
+ # @return [Integer]
1294
+ #
1295
+ # @!attribute [rw] expires_at
1296
+ # The time the session expires, in Unix epoch seconds
1297
+ # @return [Integer]
1298
+ #
1299
+ # @!attribute [rw] client_id
1300
+ # The OAuth client that created the session
1301
+ # @return [String]
1302
+ #
1303
+ # @!attribute [rw] client_type
1304
+ # The type of OAuth client that created the session
1305
+ # @return [String]
1306
+ #
1307
+ # @!attribute [rw] resource
1308
+ # The resource that the session's tokens are bound to
1309
+ # @return [String]
1310
+ #
1311
+ # @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/Session AWS API Documentation
1312
+ #
1313
+ class Session < Struct.new(
1314
+ :session_arn,
1315
+ :principal_arn,
1316
+ :role,
1317
+ :status,
1318
+ :issued_at,
1319
+ :expires_at,
1320
+ :client_id,
1321
+ :client_type,
1322
+ :resource)
1323
+ SENSITIVE = []
1324
+ include Aws::Structure
1325
+ end
1326
+
828
1327
  # SignIn resource-based policy document
829
1328
  #
830
1329
  # @!attribute [rw] version
@@ -844,29 +1343,15 @@ module Aws::Signin
844
1343
  include Aws::Structure
845
1344
  end
846
1345
 
847
- # Error thrown when rate limit is exceeded
848
- #
849
- # HTTP Status Code: 429 Too Many Requests
850
- #
851
- # Possible OAuth2ErrorCode values:
852
- #
853
- # * INVALID\_REQUEST: Rate limiting, too many requests, abuse prevention
854
- #
855
- # Possible causes:
856
- #
857
- # * Too many token requests from the same client
858
- # * Rate limiting based on client\_id or IP address
859
- # * Abuse prevention mechanisms triggered
860
- # * Service protection against excessive token generation
1346
+ # The request failed because you exceeded the request rate limit for
1347
+ # this operation.
861
1348
  #
862
1349
  # @!attribute [rw] error
863
- # OAuth 2.0 error code indicating the specific type of error Will be
864
- # INVALID\_REQUEST for rate limiting scenarios
1350
+ # Will be rate\_exceeded.
865
1351
  # @return [String]
866
1352
  #
867
1353
  # @!attribute [rw] message
868
- # Detailed message about the rate limiting May include retry-after
869
- # information or rate limit details
1354
+ # Details about the rate limit.
870
1355
  # @return [String]
871
1356
  #
872
1357
  # @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/TooManyRequestsError AWS API Documentation
@@ -878,21 +1363,15 @@ module Aws::Signin
878
1363
  include Aws::Structure
879
1364
  end
880
1365
 
881
- # Error thrown when request validation fails
882
- #
883
- # HTTP Status Code: 400 Bad Request
884
- #
885
- # Used for request validation errors such as malformed parameters,
886
- # missing required fields, or invalid parameter values.
1366
+ # The request failed because it contains a malformed, missing, or
1367
+ # invalid parameter.
887
1368
  #
888
1369
  # @!attribute [rw] error
889
- # OAuth 2.0 error code indicating validation failure Will be
890
- # INVALID\_REQUEST for validation errors
1370
+ # The specific code depends on which validation failed.
891
1371
  # @return [String]
892
1372
  #
893
1373
  # @!attribute [rw] message
894
- # Detailed message explaining the validation failure Provides specific
895
- # information about which validation failed
1374
+ # The validation constraint that failed.
896
1375
  # @return [String]
897
1376
  #
898
1377
  # @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/ValidationException AWS API Documentation