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
@@ -17,12 +17,19 @@ module Aws::Signin
17
17
  AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
18
18
  AccessToken = Shapes::StructureShape.new(name: 'AccessToken')
19
19
  AccountId = Shapes::StringShape.new(name: 'AccountId')
20
+ Assertion = Shapes::StringShape.new(name: 'Assertion')
20
21
  AuthorizationCode = Shapes::StringShape.new(name: 'AuthorizationCode')
22
+ BatchRevokeSessionError = Shapes::StructureShape.new(name: 'BatchRevokeSessionError')
23
+ BatchRevokeSessionErrorList = Shapes::ListShape.new(name: 'BatchRevokeSessionErrorList')
24
+ BatchRevokeSessionsInput = Shapes::StructureShape.new(name: 'BatchRevokeSessionsInput')
25
+ BatchRevokeSessionsOutput = Shapes::StructureShape.new(name: 'BatchRevokeSessionsOutput')
26
+ BearerTokenExpiresIn = Shapes::IntegerShape.new(name: 'BearerTokenExpiresIn')
21
27
  BearerTokenType = Shapes::StringShape.new(name: 'BearerTokenType')
22
28
  Boolean = Shapes::BooleanShape.new(name: 'Boolean')
23
29
  ClientCredentialsGrantType = Shapes::StringShape.new(name: 'ClientCredentialsGrantType')
24
30
  ClientId = Shapes::StringShape.new(name: 'ClientId')
25
31
  ClientToken = Shapes::StringShape.new(name: 'ClientToken')
32
+ ClientType = Shapes::StringShape.new(name: 'ClientType')
26
33
  CodeVerifier = Shapes::StringShape.new(name: 'CodeVerifier')
27
34
  Condition = Shapes::MapShape.new(name: 'Condition')
28
35
  ConditionBlock = Shapes::MapShape.new(name: 'ConditionBlock')
@@ -30,13 +37,16 @@ module Aws::Signin
30
37
  ConditionValues = Shapes::ListShape.new(name: 'ConditionValues')
31
38
  ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
32
39
  ConsolePermissionMaxResults = Shapes::IntegerShape.new(name: 'ConsolePermissionMaxResults')
40
+ CreateBearerTokenRequest = Shapes::StructureShape.new(name: 'CreateBearerTokenRequest')
41
+ CreateBearerTokenResponse = Shapes::StructureShape.new(name: 'CreateBearerTokenResponse')
33
42
  CreateOAuth2TokenRequest = Shapes::StructureShape.new(name: 'CreateOAuth2TokenRequest')
34
43
  CreateOAuth2TokenRequestBody = Shapes::StructureShape.new(name: 'CreateOAuth2TokenRequestBody')
35
44
  CreateOAuth2TokenResponse = Shapes::StructureShape.new(name: 'CreateOAuth2TokenResponse')
36
45
  CreateOAuth2TokenResponseBody = Shapes::StructureShape.new(name: 'CreateOAuth2TokenResponseBody')
37
46
  CreateOAuth2TokenWithIAMRequest = Shapes::StructureShape.new(name: 'CreateOAuth2TokenWithIAMRequest')
38
- CreateOAuth2TokenWithIAMRequestResourceString = Shapes::StringShape.new(name: 'CreateOAuth2TokenWithIAMRequestResourceString')
39
47
  CreateOAuth2TokenWithIAMResponse = Shapes::StructureShape.new(name: 'CreateOAuth2TokenWithIAMResponse')
48
+ CreateOAuth2TokenWithTokenExchangeRequest = Shapes::StructureShape.new(name: 'CreateOAuth2TokenWithTokenExchangeRequest')
49
+ CreateOAuth2TokenWithTokenExchangeResponse = Shapes::StructureShape.new(name: 'CreateOAuth2TokenWithTokenExchangeResponse')
40
50
  DeleteConsoleAuthorizationConfigurationInput = Shapes::StructureShape.new(name: 'DeleteConsoleAuthorizationConfigurationInput')
41
51
  DeleteConsoleAuthorizationConfigurationOutput = Shapes::StructureShape.new(name: 'DeleteConsoleAuthorizationConfigurationOutput')
42
52
  DeleteResourcePermissionStatementInput = Shapes::StructureShape.new(name: 'DeleteResourcePermissionStatementInput')
@@ -47,6 +57,8 @@ module Aws::Signin
47
57
  GetConsoleAuthorizationConfigurationOutput = Shapes::StructureShape.new(name: 'GetConsoleAuthorizationConfigurationOutput')
48
58
  GetResourcePolicyInput = Shapes::StructureShape.new(name: 'GetResourcePolicyInput')
49
59
  GetResourcePolicyOutput = Shapes::StructureShape.new(name: 'GetResourcePolicyOutput')
60
+ GetSessionInput = Shapes::StructureShape.new(name: 'GetSessionInput')
61
+ GetSessionOutput = Shapes::StructureShape.new(name: 'GetSessionOutput')
50
62
  GrantType = Shapes::StringShape.new(name: 'GrantType')
51
63
  IdToken = Shapes::StringShape.new(name: 'IdToken')
52
64
  InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
@@ -54,8 +66,14 @@ module Aws::Signin
54
66
  IntrospectOAuth2TokenWithIAMResponse = Shapes::StructureShape.new(name: 'IntrospectOAuth2TokenWithIAMResponse')
55
67
  IntrospectedTokenType = Shapes::StringShape.new(name: 'IntrospectedTokenType')
56
68
  IntrospectionToken = Shapes::StringShape.new(name: 'IntrospectionToken')
69
+ InvalidGrantException = Shapes::StructureShape.new(name: 'InvalidGrantException')
70
+ InvalidScopeException = Shapes::StructureShape.new(name: 'InvalidScopeException')
71
+ IssuedOAuthAccessTokenType = Shapes::StringShape.new(name: 'IssuedOAuthAccessTokenType')
72
+ JwtBearerClientId = Shapes::StringShape.new(name: 'JwtBearerClientId')
57
73
  ListResourcePermissionStatementsInput = Shapes::StructureShape.new(name: 'ListResourcePermissionStatementsInput')
58
74
  ListResourcePermissionStatementsOutput = Shapes::StructureShape.new(name: 'ListResourcePermissionStatementsOutput')
75
+ ListSessionsInput = Shapes::StructureShape.new(name: 'ListSessionsInput')
76
+ ListSessionsOutput = Shapes::StructureShape.new(name: 'ListSessionsOutput')
59
77
  Long = Shapes::IntegerShape.new(name: 'Long')
60
78
  NextToken = Shapes::StringShape.new(name: 'NextToken')
61
79
  OAuth2ErrorCode = Shapes::StringShape.new(name: 'OAuth2ErrorCode')
@@ -66,6 +84,8 @@ module Aws::Signin
66
84
  PolicyStatement = Shapes::StructureShape.new(name: 'PolicyStatement')
67
85
  PolicyStatements = Shapes::ListShape.new(name: 'PolicyStatements')
68
86
  Principal = Shapes::MapShape.new(name: 'Principal')
87
+ PrincipalArn = Shapes::StringShape.new(name: 'PrincipalArn')
88
+ PrincipalArnFilter = Shapes::StringShape.new(name: 'PrincipalArnFilter')
69
89
  PutConsoleAuthorizationConfigurationInput = Shapes::StructureShape.new(name: 'PutConsoleAuthorizationConfigurationInput')
70
90
  PutConsoleAuthorizationConfigurationOutput = Shapes::StructureShape.new(name: 'PutConsoleAuthorizationConfigurationOutput')
71
91
  PutResourcePermissionStatementInput = Shapes::StructureShape.new(name: 'PutResourcePermissionStatementInput')
@@ -73,18 +93,34 @@ module Aws::Signin
73
93
  RedirectUri = Shapes::StringShape.new(name: 'RedirectUri')
74
94
  RefreshToken = Shapes::StringShape.new(name: 'RefreshToken')
75
95
  RequestedRegion = Shapes::StringShape.new(name: 'RequestedRegion')
96
+ Resource = Shapes::StringShape.new(name: 'Resource')
76
97
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
98
+ RevocationReason = Shapes::StringShape.new(name: 'RevocationReason')
77
99
  RevocationToken = Shapes::StringShape.new(name: 'RevocationToken')
78
100
  RevokeOAuth2TokenWithIAMRequest = Shapes::StructureShape.new(name: 'RevokeOAuth2TokenWithIAMRequest')
79
101
  RevokeOAuth2TokenWithIAMResponse = Shapes::StructureShape.new(name: 'RevokeOAuth2TokenWithIAMResponse')
102
+ RevokedSession = Shapes::StructureShape.new(name: 'RevokedSession')
103
+ RevokedSessionList = Shapes::ListShape.new(name: 'RevokedSessionList')
104
+ Scope = Shapes::StringShape.new(name: 'Scope')
80
105
  ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
106
+ ServiceUnavailableException = Shapes::StructureShape.new(name: 'ServiceUnavailableException')
107
+ Session = Shapes::StructureShape.new(name: 'Session')
108
+ SessionArn = Shapes::StringShape.new(name: 'SessionArn')
109
+ SessionArnList = Shapes::ListShape.new(name: 'SessionArnList')
110
+ SessionStatus = Shapes::StringShape.new(name: 'SessionStatus')
111
+ SessionSummaryList = Shapes::ListShape.new(name: 'SessionSummaryList')
112
+ SessionsMaxResults = Shapes::IntegerShape.new(name: 'SessionsMaxResults')
81
113
  SigninResourceBasedPolicy = Shapes::StructureShape.new(name: 'SigninResourceBasedPolicy')
82
114
  SourceIp = Shapes::StringShape.new(name: 'SourceIp')
83
115
  SourceVpc = Shapes::StringShape.new(name: 'SourceVpc')
84
116
  SourceVpce = Shapes::StringShape.new(name: 'SourceVpce')
85
117
  StatementId = Shapes::StringShape.new(name: 'StatementId')
86
118
  String = Shapes::StringShape.new(name: 'String')
119
+ SubjectToken = Shapes::StringShape.new(name: 'SubjectToken')
120
+ SubjectTokenType = Shapes::StringShape.new(name: 'SubjectTokenType')
87
121
  TargetId = Shapes::StringShape.new(name: 'TargetId')
122
+ TokenDuration = Shapes::IntegerShape.new(name: 'TokenDuration')
123
+ TokenExchangeGrantType = Shapes::StringShape.new(name: 'TokenExchangeGrantType')
88
124
  TokenExpiresIn = Shapes::IntegerShape.new(name: 'TokenExpiresIn')
89
125
  TokenType = Shapes::StringShape.new(name: 'TokenType')
90
126
  TokenTypeHint = Shapes::StringShape.new(name: 'TokenTypeHint')
@@ -101,6 +137,22 @@ module Aws::Signin
101
137
  AccessToken.add_member(:session_token, Shapes::ShapeRef.new(shape: String, required: true, location_name: "sessionToken"))
102
138
  AccessToken.struct_class = Types::AccessToken
103
139
 
140
+ BatchRevokeSessionError.add_member(:session_arn, Shapes::ShapeRef.new(shape: SessionArn, required: true, location_name: "sessionArn"))
141
+ BatchRevokeSessionError.add_member(:code, Shapes::ShapeRef.new(shape: String, required: true, location_name: "code"))
142
+ BatchRevokeSessionError.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
143
+ BatchRevokeSessionError.struct_class = Types::BatchRevokeSessionError
144
+
145
+ BatchRevokeSessionErrorList.member = Shapes::ShapeRef.new(shape: BatchRevokeSessionError)
146
+
147
+ BatchRevokeSessionsInput.add_member(:principal_arn, Shapes::ShapeRef.new(shape: PrincipalArnFilter, location_name: "principalArn"))
148
+ BatchRevokeSessionsInput.add_member(:session_arns, Shapes::ShapeRef.new(shape: SessionArnList, required: true, location_name: "sessionArns"))
149
+ BatchRevokeSessionsInput.add_member(:reason, Shapes::ShapeRef.new(shape: RevocationReason, location_name: "reason"))
150
+ BatchRevokeSessionsInput.struct_class = Types::BatchRevokeSessionsInput
151
+
152
+ BatchRevokeSessionsOutput.add_member(:revoked_sessions, Shapes::ShapeRef.new(shape: RevokedSessionList, required: true, location_name: "revokedSessions"))
153
+ BatchRevokeSessionsOutput.add_member(:errors, Shapes::ShapeRef.new(shape: BatchRevokeSessionErrorList, required: true, location_name: "errors"))
154
+ BatchRevokeSessionsOutput.struct_class = Types::BatchRevokeSessionsOutput
155
+
104
156
  Condition.key = Shapes::ShapeRef.new(shape: String)
105
157
  Condition.value = Shapes::ShapeRef.new(shape: ConditionValues)
106
158
 
@@ -113,6 +165,16 @@ module Aws::Signin
113
165
  ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
114
166
  ConflictException.struct_class = Types::ConflictException
115
167
 
168
+ CreateBearerTokenRequest.add_member(:grant_type, Shapes::ShapeRef.new(shape: ClientCredentialsGrantType, required: true, location_name: "grant_type"))
169
+ CreateBearerTokenRequest.add_member(:resource, Shapes::ShapeRef.new(shape: Resource, required: true, location_name: "resource"))
170
+ CreateBearerTokenRequest.add_member(:duration_seconds, Shapes::ShapeRef.new(shape: TokenDuration, location_name: "duration"))
171
+ CreateBearerTokenRequest.struct_class = Types::CreateBearerTokenRequest
172
+
173
+ CreateBearerTokenResponse.add_member(:access_token, Shapes::ShapeRef.new(shape: OAuthAccessToken, required: true, location_name: "access_token"))
174
+ CreateBearerTokenResponse.add_member(:token_type, Shapes::ShapeRef.new(shape: BearerTokenType, required: true, location_name: "token_type"))
175
+ CreateBearerTokenResponse.add_member(:expires_in, Shapes::ShapeRef.new(shape: BearerTokenExpiresIn, required: true, location_name: "expires_in"))
176
+ CreateBearerTokenResponse.struct_class = Types::CreateBearerTokenResponse
177
+
116
178
  CreateOAuth2TokenRequest.add_member(:token_input, Shapes::ShapeRef.new(shape: CreateOAuth2TokenRequestBody, required: true, location_name: "tokenInput"))
117
179
  CreateOAuth2TokenRequest.struct_class = Types::CreateOAuth2TokenRequest
118
180
  CreateOAuth2TokenRequest[:payload] = :token_input
@@ -139,7 +201,7 @@ module Aws::Signin
139
201
  CreateOAuth2TokenResponseBody.struct_class = Types::CreateOAuth2TokenResponseBody
140
202
 
141
203
  CreateOAuth2TokenWithIAMRequest.add_member(:grant_type, Shapes::ShapeRef.new(shape: ClientCredentialsGrantType, required: true, location_name: "grant_type"))
142
- CreateOAuth2TokenWithIAMRequest.add_member(:resource, Shapes::ShapeRef.new(shape: CreateOAuth2TokenWithIAMRequestResourceString, required: true, location_name: "resource"))
204
+ CreateOAuth2TokenWithIAMRequest.add_member(:resource, Shapes::ShapeRef.new(shape: Resource, required: true, location_name: "resource"))
143
205
  CreateOAuth2TokenWithIAMRequest.struct_class = Types::CreateOAuth2TokenWithIAMRequest
144
206
 
145
207
  CreateOAuth2TokenWithIAMResponse.add_member(:access_token, Shapes::ShapeRef.new(shape: OAuthAccessToken, required: true, location_name: "access_token"))
@@ -147,6 +209,23 @@ module Aws::Signin
147
209
  CreateOAuth2TokenWithIAMResponse.add_member(:expires_in, Shapes::ShapeRef.new(shape: TokenExpiresIn, required: true, location_name: "expires_in"))
148
210
  CreateOAuth2TokenWithIAMResponse.struct_class = Types::CreateOAuth2TokenWithIAMResponse
149
211
 
212
+ CreateOAuth2TokenWithTokenExchangeRequest.add_member(:grant_type, Shapes::ShapeRef.new(shape: TokenExchangeGrantType, required: true, location_name: "grant_type"))
213
+ CreateOAuth2TokenWithTokenExchangeRequest.add_member(:subject_token, Shapes::ShapeRef.new(shape: SubjectToken, location_name: "subject_token"))
214
+ CreateOAuth2TokenWithTokenExchangeRequest.add_member(:subject_token_type, Shapes::ShapeRef.new(shape: SubjectTokenType, location_name: "subject_token_type"))
215
+ CreateOAuth2TokenWithTokenExchangeRequest.add_member(:assertion, Shapes::ShapeRef.new(shape: Assertion, location_name: "assertion"))
216
+ CreateOAuth2TokenWithTokenExchangeRequest.add_member(:client_id, Shapes::ShapeRef.new(shape: JwtBearerClientId, location_name: "client_id"))
217
+ CreateOAuth2TokenWithTokenExchangeRequest.add_member(:resource, Shapes::ShapeRef.new(shape: Resource, location_name: "resource"))
218
+ CreateOAuth2TokenWithTokenExchangeRequest.add_member(:scope, Shapes::ShapeRef.new(shape: Scope, location_name: "scope"))
219
+ CreateOAuth2TokenWithTokenExchangeRequest.struct_class = Types::CreateOAuth2TokenWithTokenExchangeRequest
220
+
221
+ CreateOAuth2TokenWithTokenExchangeResponse.add_member(:access_token, Shapes::ShapeRef.new(shape: OAuthAccessToken, required: true, location_name: "access_token"))
222
+ CreateOAuth2TokenWithTokenExchangeResponse.add_member(:issued_token_type, Shapes::ShapeRef.new(shape: IssuedOAuthAccessTokenType, location_name: "issued_token_type"))
223
+ CreateOAuth2TokenWithTokenExchangeResponse.add_member(:token_type, Shapes::ShapeRef.new(shape: BearerTokenType, required: true, location_name: "token_type"))
224
+ CreateOAuth2TokenWithTokenExchangeResponse.add_member(:expires_in, Shapes::ShapeRef.new(shape: TokenExpiresIn, required: true, location_name: "expires_in"))
225
+ CreateOAuth2TokenWithTokenExchangeResponse.add_member(:resource, Shapes::ShapeRef.new(shape: Resource, location_name: "resource"))
226
+ CreateOAuth2TokenWithTokenExchangeResponse.add_member(:scope, Shapes::ShapeRef.new(shape: Scope, location_name: "scope"))
227
+ CreateOAuth2TokenWithTokenExchangeResponse.struct_class = Types::CreateOAuth2TokenWithTokenExchangeResponse
228
+
150
229
  DeleteConsoleAuthorizationConfigurationInput.add_member(:target_id, Shapes::ShapeRef.new(shape: TargetId, location_name: "targetId"))
151
230
  DeleteConsoleAuthorizationConfigurationInput.struct_class = Types::DeleteConsoleAuthorizationConfigurationInput
152
231
 
@@ -174,6 +253,25 @@ module Aws::Signin
174
253
  GetResourcePolicyOutput.add_member(:signin_resource_based_policy, Shapes::ShapeRef.new(shape: SigninResourceBasedPolicy, required: true, location_name: "signinResourceBasedPolicy"))
175
254
  GetResourcePolicyOutput.struct_class = Types::GetResourcePolicyOutput
176
255
 
256
+ GetSessionInput.add_member(:session_arn, Shapes::ShapeRef.new(shape: SessionArn, required: true, location_name: "sessionArn"))
257
+ GetSessionInput.add_member(:principal_arn, Shapes::ShapeRef.new(shape: PrincipalArnFilter, location_name: "principalArn"))
258
+ GetSessionInput.struct_class = Types::GetSessionInput
259
+
260
+ GetSessionOutput.add_member(:session_arn, Shapes::ShapeRef.new(shape: SessionArn, required: true, location_name: "sessionArn"))
261
+ GetSessionOutput.add_member(:principal_arn, Shapes::ShapeRef.new(shape: PrincipalArn, required: true, location_name: "principalArn"))
262
+ GetSessionOutput.add_member(:role, Shapes::ShapeRef.new(shape: PrincipalArn, location_name: "role"))
263
+ GetSessionOutput.add_member(:status, Shapes::ShapeRef.new(shape: SessionStatus, location_name: "status"))
264
+ GetSessionOutput.add_member(:client_id, Shapes::ShapeRef.new(shape: String, location_name: "clientId"))
265
+ GetSessionOutput.add_member(:client_type, Shapes::ShapeRef.new(shape: ClientType, location_name: "clientType"))
266
+ GetSessionOutput.add_member(:resource, Shapes::ShapeRef.new(shape: String, location_name: "resource"))
267
+ GetSessionOutput.add_member(:issued_at, Shapes::ShapeRef.new(shape: Long, required: true, location_name: "issuedAt"))
268
+ GetSessionOutput.add_member(:expires_at, Shapes::ShapeRef.new(shape: Long, required: true, location_name: "expiresAt"))
269
+ GetSessionOutput.add_member(:last_used_at, Shapes::ShapeRef.new(shape: Long, location_name: "lastUsedAt"))
270
+ GetSessionOutput.add_member(:issued_in_region, Shapes::ShapeRef.new(shape: String, location_name: "issuedInRegion"))
271
+ GetSessionOutput.add_member(:origin_session_arn, Shapes::ShapeRef.new(shape: SessionArn, location_name: "originSessionArn"))
272
+ GetSessionOutput.add_member(:user_agent, Shapes::ShapeRef.new(shape: String, location_name: "userAgent"))
273
+ GetSessionOutput.struct_class = Types::GetSessionOutput
274
+
177
275
  InternalServerException.add_member(:error, Shapes::ShapeRef.new(shape: OAuth2ErrorCode, required: true, location_name: "error"))
178
276
  InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
179
277
  InternalServerException.struct_class = Types::InternalServerException
@@ -195,9 +293,17 @@ module Aws::Signin
195
293
  IntrospectOAuth2TokenWithIAMResponse.add_member(:jti, Shapes::ShapeRef.new(shape: String, location_name: "jti"))
196
294
  IntrospectOAuth2TokenWithIAMResponse.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "account_id"))
197
295
  IntrospectOAuth2TokenWithIAMResponse.add_member(:signin_session, Shapes::ShapeRef.new(shape: String, location_name: "signin_session"))
198
- IntrospectOAuth2TokenWithIAMResponse.add_member(:resource, Shapes::ShapeRef.new(shape: String, location_name: "resource"))
296
+ IntrospectOAuth2TokenWithIAMResponse.add_member(:resource, Shapes::ShapeRef.new(shape: Resource, location_name: "resource"))
199
297
  IntrospectOAuth2TokenWithIAMResponse.struct_class = Types::IntrospectOAuth2TokenWithIAMResponse
200
298
 
299
+ InvalidGrantException.add_member(:error, Shapes::ShapeRef.new(shape: OAuth2ErrorCode, required: true, location_name: "error"))
300
+ InvalidGrantException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
301
+ InvalidGrantException.struct_class = Types::InvalidGrantException
302
+
303
+ InvalidScopeException.add_member(:error, Shapes::ShapeRef.new(shape: OAuth2ErrorCode, required: true, location_name: "error"))
304
+ InvalidScopeException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
305
+ InvalidScopeException.struct_class = Types::InvalidScopeException
306
+
201
307
  ListResourcePermissionStatementsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: ConsolePermissionMaxResults, location_name: "maxResults"))
202
308
  ListResourcePermissionStatementsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
203
309
  ListResourcePermissionStatementsInput.struct_class = Types::ListResourcePermissionStatementsInput
@@ -206,6 +312,19 @@ module Aws::Signin
206
312
  ListResourcePermissionStatementsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
207
313
  ListResourcePermissionStatementsOutput.struct_class = Types::ListResourcePermissionStatementsOutput
208
314
 
315
+ ListSessionsInput.add_member(:principal_arn, Shapes::ShapeRef.new(shape: PrincipalArnFilter, location_name: "principalArn"))
316
+ ListSessionsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: SessionsMaxResults, location_name: "maxResults"))
317
+ ListSessionsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
318
+ ListSessionsInput.add_member(:status, Shapes::ShapeRef.new(shape: SessionStatus, location_name: "status"))
319
+ ListSessionsInput.add_member(:client_id, Shapes::ShapeRef.new(shape: String, location_name: "clientId"))
320
+ ListSessionsInput.add_member(:issued_after, Shapes::ShapeRef.new(shape: Long, location_name: "issuedAfter"))
321
+ ListSessionsInput.add_member(:issued_before, Shapes::ShapeRef.new(shape: Long, location_name: "issuedBefore"))
322
+ ListSessionsInput.struct_class = Types::ListSessionsInput
323
+
324
+ ListSessionsOutput.add_member(:items, Shapes::ShapeRef.new(shape: SessionSummaryList, required: true, location_name: "items"))
325
+ ListSessionsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
326
+ ListSessionsOutput.struct_class = Types::ListSessionsOutput
327
+
209
328
  PermissionStatementSummaries.member = Shapes::ShapeRef.new(shape: PermissionStatementSummary)
210
329
 
211
330
  PermissionStatementSummary.add_member(:sid, Shapes::ShapeRef.new(shape: StatementId, required: true, location_name: "sid"))
@@ -256,10 +375,34 @@ module Aws::Signin
256
375
 
257
376
  RevokeOAuth2TokenWithIAMResponse.struct_class = Types::RevokeOAuth2TokenWithIAMResponse
258
377
 
378
+ RevokedSession.add_member(:session_arn, Shapes::ShapeRef.new(shape: SessionArn, required: true, location_name: "sessionArn"))
379
+ RevokedSession.struct_class = Types::RevokedSession
380
+
381
+ RevokedSessionList.member = Shapes::ShapeRef.new(shape: RevokedSession)
382
+
259
383
  ServiceQuotaExceededException.add_member(:error, Shapes::ShapeRef.new(shape: OAuth2ErrorCode, required: true, location_name: "error"))
260
384
  ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
261
385
  ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
262
386
 
387
+ ServiceUnavailableException.add_member(:error, Shapes::ShapeRef.new(shape: OAuth2ErrorCode, required: true, location_name: "error"))
388
+ ServiceUnavailableException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
389
+ ServiceUnavailableException.struct_class = Types::ServiceUnavailableException
390
+
391
+ Session.add_member(:session_arn, Shapes::ShapeRef.new(shape: SessionArn, required: true, location_name: "sessionArn"))
392
+ Session.add_member(:principal_arn, Shapes::ShapeRef.new(shape: PrincipalArn, required: true, location_name: "principalArn"))
393
+ Session.add_member(:role, Shapes::ShapeRef.new(shape: PrincipalArn, location_name: "role"))
394
+ Session.add_member(:status, Shapes::ShapeRef.new(shape: SessionStatus, location_name: "status"))
395
+ Session.add_member(:issued_at, Shapes::ShapeRef.new(shape: Long, required: true, location_name: "issuedAt"))
396
+ Session.add_member(:expires_at, Shapes::ShapeRef.new(shape: Long, required: true, location_name: "expiresAt"))
397
+ Session.add_member(:client_id, Shapes::ShapeRef.new(shape: String, location_name: "clientId"))
398
+ Session.add_member(:client_type, Shapes::ShapeRef.new(shape: ClientType, location_name: "clientType"))
399
+ Session.add_member(:resource, Shapes::ShapeRef.new(shape: String, location_name: "resource"))
400
+ Session.struct_class = Types::Session
401
+
402
+ SessionArnList.member = Shapes::ShapeRef.new(shape: SessionArn)
403
+
404
+ SessionSummaryList.member = Shapes::ShapeRef.new(shape: Session)
405
+
263
406
  SigninResourceBasedPolicy.add_member(:version, Shapes::ShapeRef.new(shape: String, location_name: "Version"))
264
407
  SigninResourceBasedPolicy.add_member(:statement, Shapes::ShapeRef.new(shape: PolicyStatements, location_name: "Statement"))
265
408
  SigninResourceBasedPolicy.struct_class = Types::SigninResourceBasedPolicy
@@ -291,6 +434,31 @@ module Aws::Signin
291
434
  "uid" => "signin-2023-01-01",
292
435
  }
293
436
 
437
+ api.add_operation(:batch_revoke_sessions, Seahorse::Model::Operation.new.tap do |o|
438
+ o.name = "BatchRevokeSessions"
439
+ o.http_method = "POST"
440
+ o.http_request_uri = "/batch-revoke-sessions"
441
+ o.input = Shapes::ShapeRef.new(shape: BatchRevokeSessionsInput)
442
+ o.output = Shapes::ShapeRef.new(shape: BatchRevokeSessionsOutput)
443
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsError)
444
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
445
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
446
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
447
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
448
+ end)
449
+
450
+ api.add_operation(:create_bearer_token, Seahorse::Model::Operation.new.tap do |o|
451
+ o.name = "CreateBearerToken"
452
+ o.http_method = "POST"
453
+ o.http_request_uri = "/v1/token?x-amz-token-request-type=bearer"
454
+ o.input = Shapes::ShapeRef.new(shape: CreateBearerTokenRequest)
455
+ o.output = Shapes::ShapeRef.new(shape: CreateBearerTokenResponse)
456
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsError)
457
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
458
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
459
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
460
+ end)
461
+
294
462
  api.add_operation(:create_o_auth_2_token, Seahorse::Model::Operation.new.tap do |o|
295
463
  o.name = "CreateOAuth2Token"
296
464
  o.http_method = "POST"
@@ -317,6 +485,22 @@ module Aws::Signin
317
485
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
318
486
  end)
319
487
 
488
+ api.add_operation(:create_o_auth_2_token_with_token_exchange, Seahorse::Model::Operation.new.tap do |o|
489
+ o.name = "CreateOAuth2TokenWithTokenExchange"
490
+ o.http_method = "POST"
491
+ o.http_request_uri = "/v1/token?x-amz-oauth-token-method=token-exchange"
492
+ o['authtype'] = "none"
493
+ o['auth'] = ["smithy.api#noAuth"]
494
+ o.input = Shapes::ShapeRef.new(shape: CreateOAuth2TokenWithTokenExchangeRequest)
495
+ o.output = Shapes::ShapeRef.new(shape: CreateOAuth2TokenWithTokenExchangeResponse)
496
+ o.errors << Shapes::ShapeRef.new(shape: InvalidGrantException)
497
+ o.errors << Shapes::ShapeRef.new(shape: InvalidScopeException)
498
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsError)
499
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
500
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
501
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
502
+ end)
503
+
320
504
  api.add_operation(:delete_console_authorization_configuration, Seahorse::Model::Operation.new.tap do |o|
321
505
  o.name = "DeleteConsoleAuthorizationConfiguration"
322
506
  o.http_method = "POST"
@@ -368,6 +552,19 @@ module Aws::Signin
368
552
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
369
553
  end)
370
554
 
555
+ api.add_operation(:get_session, Seahorse::Model::Operation.new.tap do |o|
556
+ o.name = "GetSession"
557
+ o.http_method = "POST"
558
+ o.http_request_uri = "/get-session"
559
+ o.input = Shapes::ShapeRef.new(shape: GetSessionInput)
560
+ o.output = Shapes::ShapeRef.new(shape: GetSessionOutput)
561
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsError)
562
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
563
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
564
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
565
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
566
+ end)
567
+
371
568
  api.add_operation(:introspect_o_auth_2_token_with_iam, Seahorse::Model::Operation.new.tap do |o|
372
569
  o.name = "IntrospectOAuth2TokenWithIAM"
373
570
  o.http_method = "POST"
@@ -399,6 +596,24 @@ module Aws::Signin
399
596
  )
400
597
  end)
401
598
 
599
+ api.add_operation(:list_sessions, Seahorse::Model::Operation.new.tap do |o|
600
+ o.name = "ListSessions"
601
+ o.http_method = "POST"
602
+ o.http_request_uri = "/list-sessions"
603
+ o.input = Shapes::ShapeRef.new(shape: ListSessionsInput)
604
+ o.output = Shapes::ShapeRef.new(shape: ListSessionsOutput)
605
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsError)
606
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
607
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
608
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
609
+ o[:pager] = Aws::Pager.new(
610
+ limit_key: "max_results",
611
+ tokens: {
612
+ "next_token" => "next_token"
613
+ }
614
+ )
615
+ end)
616
+
402
617
  api.add_operation(:put_console_authorization_configuration, Seahorse::Model::Operation.new.tap do |o|
403
618
  o.name = "PutConsoleAuthorizationConfiguration"
404
619
  o.http_method = "POST"
@@ -12,6 +12,24 @@ module Aws::Signin
12
12
  # @api private
13
13
  module Endpoints
14
14
 
15
+ class BatchRevokeSessions
16
+ def self.build(context)
17
+ Aws::Signin::EndpointParameters.create(
18
+ context.config,
19
+ is_control_plane: true,
20
+ )
21
+ end
22
+ end
23
+
24
+ class CreateBearerToken
25
+ def self.build(context)
26
+ Aws::Signin::EndpointParameters.create(
27
+ context.config,
28
+ is_o_auth_endpoint: true,
29
+ )
30
+ end
31
+ end
32
+
15
33
  class CreateOAuth2TokenWithIAM
16
34
  def self.build(context)
17
35
  Aws::Signin::EndpointParameters.create(
@@ -21,6 +39,15 @@ module Aws::Signin
21
39
  end
22
40
  end
23
41
 
42
+ class CreateOAuth2TokenWithTokenExchange
43
+ def self.build(context)
44
+ Aws::Signin::EndpointParameters.create(
45
+ context.config,
46
+ is_o_auth_endpoint: true,
47
+ )
48
+ end
49
+ end
50
+
24
51
  class DeleteConsoleAuthorizationConfiguration
25
52
  def self.build(context)
26
53
  Aws::Signin::EndpointParameters.create(
@@ -57,6 +84,15 @@ module Aws::Signin
57
84
  end
58
85
  end
59
86
 
87
+ class GetSession
88
+ def self.build(context)
89
+ Aws::Signin::EndpointParameters.create(
90
+ context.config,
91
+ is_control_plane: true,
92
+ )
93
+ end
94
+ end
95
+
60
96
  class IntrospectOAuth2TokenWithIAM
61
97
  def self.build(context)
62
98
  Aws::Signin::EndpointParameters.create(
@@ -75,6 +111,15 @@ module Aws::Signin
75
111
  end
76
112
  end
77
113
 
114
+ class ListSessions
115
+ def self.build(context)
116
+ Aws::Signin::EndpointParameters.create(
117
+ context.config,
118
+ is_control_plane: true,
119
+ )
120
+ end
121
+ end
122
+
78
123
  class PutConsoleAuthorizationConfiguration
79
124
  def self.build(context)
80
125
  Aws::Signin::EndpointParameters.create(
@@ -105,8 +150,14 @@ module Aws::Signin
105
150
 
106
151
  def self.parameters_for_operation(context)
107
152
  case context.operation_name
153
+ when :batch_revoke_sessions
154
+ BatchRevokeSessions.build(context)
155
+ when :create_bearer_token
156
+ CreateBearerToken.build(context)
108
157
  when :create_o_auth_2_token_with_iam
109
158
  CreateOAuth2TokenWithIAM.build(context)
159
+ when :create_o_auth_2_token_with_token_exchange
160
+ CreateOAuth2TokenWithTokenExchange.build(context)
110
161
  when :delete_console_authorization_configuration
111
162
  DeleteConsoleAuthorizationConfiguration.build(context)
112
163
  when :delete_resource_permission_statement
@@ -115,10 +166,14 @@ module Aws::Signin
115
166
  GetConsoleAuthorizationConfiguration.build(context)
116
167
  when :get_resource_policy
117
168
  GetResourcePolicy.build(context)
169
+ when :get_session
170
+ GetSession.build(context)
118
171
  when :introspect_o_auth_2_token_with_iam
119
172
  IntrospectOAuth2TokenWithIAM.build(context)
120
173
  when :list_resource_permission_statements
121
174
  ListResourcePermissionStatements.build(context)
175
+ when :list_sessions
176
+ ListSessions.build(context)
122
177
  when :put_console_authorization_configuration
123
178
  PutConsoleAuthorizationConfiguration.build(context)
124
179
  when :put_resource_permission_statement
@@ -30,8 +30,11 @@ module Aws::Signin
30
30
  # * {AccessDeniedException}
31
31
  # * {ConflictException}
32
32
  # * {InternalServerException}
33
+ # * {InvalidGrantException}
34
+ # * {InvalidScopeException}
33
35
  # * {ResourceNotFoundException}
34
36
  # * {ServiceQuotaExceededException}
37
+ # * {ServiceUnavailableException}
35
38
  # * {TooManyRequestsError}
36
39
  # * {ValidationException}
37
40
  #
@@ -101,6 +104,46 @@ module Aws::Signin
101
104
  end
102
105
  end
103
106
 
107
+ class InvalidGrantException < ServiceError
108
+
109
+ # @param [Seahorse::Client::RequestContext] context
110
+ # @param [String] message
111
+ # @param [Aws::Signin::Types::InvalidGrantException] data
112
+ def initialize(context, message, data = Aws::EmptyStructure.new)
113
+ super(context, message, data)
114
+ end
115
+
116
+ # @return [String]
117
+ def error
118
+ @data[:error]
119
+ end
120
+
121
+ # @return [String]
122
+ def message
123
+ @message || @data[:message]
124
+ end
125
+ end
126
+
127
+ class InvalidScopeException < ServiceError
128
+
129
+ # @param [Seahorse::Client::RequestContext] context
130
+ # @param [String] message
131
+ # @param [Aws::Signin::Types::InvalidScopeException] data
132
+ def initialize(context, message, data = Aws::EmptyStructure.new)
133
+ super(context, message, data)
134
+ end
135
+
136
+ # @return [String]
137
+ def error
138
+ @data[:error]
139
+ end
140
+
141
+ # @return [String]
142
+ def message
143
+ @message || @data[:message]
144
+ end
145
+ end
146
+
104
147
  class ResourceNotFoundException < ServiceError
105
148
 
106
149
  # @param [Seahorse::Client::RequestContext] context
@@ -141,6 +184,30 @@ module Aws::Signin
141
184
  end
142
185
  end
143
186
 
187
+ class ServiceUnavailableException < ServiceError
188
+
189
+ # @param [Seahorse::Client::RequestContext] context
190
+ # @param [String] message
191
+ # @param [Aws::Signin::Types::ServiceUnavailableException] data
192
+ def initialize(context, message, data = Aws::EmptyStructure.new)
193
+ super(context, message, data)
194
+ end
195
+
196
+ # @return [String]
197
+ def error
198
+ @data[:error]
199
+ end
200
+
201
+ # @return [String]
202
+ def message
203
+ @message || @data[:message]
204
+ end
205
+
206
+ def retryable?
207
+ true
208
+ end
209
+ end
210
+
144
211
  class TooManyRequestsError < ServiceError
145
212
 
146
213
  # @param [Seahorse::Client::RequestContext] context