aws-sdk-core 3.236.0 → 3.239.2

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.
@@ -28,22 +28,29 @@ module Aws::STS
28
28
  DecodeAuthorizationMessageRequest = Shapes::StructureShape.new(name: 'DecodeAuthorizationMessageRequest')
29
29
  DecodeAuthorizationMessageResponse = Shapes::StructureShape.new(name: 'DecodeAuthorizationMessageResponse')
30
30
  ExpiredTokenException = Shapes::StructureShape.new(name: 'ExpiredTokenException', error: {"code" => "ExpiredTokenException", "httpStatusCode" => 400, "senderFault" => true})
31
+ ExpiredTradeInTokenException = Shapes::StructureShape.new(name: 'ExpiredTradeInTokenException', error: {"code" => "ExpiredTradeInTokenException", "httpStatusCode" => 400, "senderFault" => true})
31
32
  FederatedUser = Shapes::StructureShape.new(name: 'FederatedUser')
32
33
  GetAccessKeyInfoRequest = Shapes::StructureShape.new(name: 'GetAccessKeyInfoRequest')
33
34
  GetAccessKeyInfoResponse = Shapes::StructureShape.new(name: 'GetAccessKeyInfoResponse')
34
35
  GetCallerIdentityRequest = Shapes::StructureShape.new(name: 'GetCallerIdentityRequest')
35
36
  GetCallerIdentityResponse = Shapes::StructureShape.new(name: 'GetCallerIdentityResponse')
37
+ GetDelegatedAccessTokenRequest = Shapes::StructureShape.new(name: 'GetDelegatedAccessTokenRequest')
38
+ GetDelegatedAccessTokenResponse = Shapes::StructureShape.new(name: 'GetDelegatedAccessTokenResponse')
36
39
  GetFederationTokenRequest = Shapes::StructureShape.new(name: 'GetFederationTokenRequest')
37
40
  GetFederationTokenResponse = Shapes::StructureShape.new(name: 'GetFederationTokenResponse')
38
41
  GetSessionTokenRequest = Shapes::StructureShape.new(name: 'GetSessionTokenRequest')
39
42
  GetSessionTokenResponse = Shapes::StructureShape.new(name: 'GetSessionTokenResponse')
43
+ GetWebIdentityTokenRequest = Shapes::StructureShape.new(name: 'GetWebIdentityTokenRequest')
44
+ GetWebIdentityTokenResponse = Shapes::StructureShape.new(name: 'GetWebIdentityTokenResponse')
40
45
  IDPCommunicationErrorException = Shapes::StructureShape.new(name: 'IDPCommunicationErrorException', error: {"code" => "IDPCommunicationError", "httpStatusCode" => 400, "senderFault" => true})
41
46
  IDPRejectedClaimException = Shapes::StructureShape.new(name: 'IDPRejectedClaimException', error: {"code" => "IDPRejectedClaim", "httpStatusCode" => 403, "senderFault" => true})
42
47
  InvalidAuthorizationMessageException = Shapes::StructureShape.new(name: 'InvalidAuthorizationMessageException', error: {"code" => "InvalidAuthorizationMessageException", "httpStatusCode" => 400, "senderFault" => true})
43
48
  InvalidIdentityTokenException = Shapes::StructureShape.new(name: 'InvalidIdentityTokenException', error: {"code" => "InvalidIdentityToken", "httpStatusCode" => 400, "senderFault" => true})
44
49
  Issuer = Shapes::StringShape.new(name: 'Issuer')
50
+ JWTPayloadSizeExceededException = Shapes::StructureShape.new(name: 'JWTPayloadSizeExceededException', error: {"code" => "JWTPayloadSizeExceededException", "httpStatusCode" => 400, "senderFault" => true})
45
51
  MalformedPolicyDocumentException = Shapes::StructureShape.new(name: 'MalformedPolicyDocumentException', error: {"code" => "MalformedPolicyDocument", "httpStatusCode" => 400, "senderFault" => true})
46
52
  NameQualifier = Shapes::StringShape.new(name: 'NameQualifier')
53
+ OutboundWebIdentityFederationDisabledException = Shapes::StructureShape.new(name: 'OutboundWebIdentityFederationDisabledException', error: {"code" => "OutboundWebIdentityFederationDisabledException", "httpStatusCode" => 403, "senderFault" => true})
47
54
  PackedPolicyTooLargeException = Shapes::StructureShape.new(name: 'PackedPolicyTooLargeException', error: {"code" => "PackedPolicyTooLarge", "httpStatusCode" => 400, "senderFault" => true})
48
55
  PolicyDescriptorType = Shapes::StructureShape.new(name: 'PolicyDescriptorType')
49
56
  ProvidedContext = Shapes::StructureShape.new(name: 'ProvidedContext')
@@ -51,6 +58,7 @@ module Aws::STS
51
58
  RegionDisabledException = Shapes::StructureShape.new(name: 'RegionDisabledException', error: {"code" => "RegionDisabledException", "httpStatusCode" => 403, "senderFault" => true})
52
59
  RootDurationSecondsType = Shapes::IntegerShape.new(name: 'RootDurationSecondsType')
53
60
  SAMLAssertionType = Shapes::StringShape.new(name: 'SAMLAssertionType')
61
+ SessionDurationEscalationException = Shapes::StructureShape.new(name: 'SessionDurationEscalationException', error: {"code" => "SessionDurationEscalationException", "httpStatusCode" => 403, "senderFault" => true})
54
62
  Subject = Shapes::StringShape.new(name: 'Subject')
55
63
  SubjectType = Shapes::StringShape.new(name: 'SubjectType')
56
64
  Tag = Shapes::StructureShape.new(name: 'Tag')
@@ -67,20 +75,25 @@ module Aws::STS
67
75
  durationSecondsType = Shapes::IntegerShape.new(name: 'durationSecondsType')
68
76
  encodedMessageType = Shapes::StringShape.new(name: 'encodedMessageType')
69
77
  expiredIdentityTokenMessage = Shapes::StringShape.new(name: 'expiredIdentityTokenMessage')
78
+ expiredTradeInTokenExceptionMessage = Shapes::StringShape.new(name: 'expiredTradeInTokenExceptionMessage')
70
79
  externalIdType = Shapes::StringShape.new(name: 'externalIdType')
71
80
  federatedIdType = Shapes::StringShape.new(name: 'federatedIdType')
72
81
  idpCommunicationErrorMessage = Shapes::StringShape.new(name: 'idpCommunicationErrorMessage')
73
82
  idpRejectedClaimMessage = Shapes::StringShape.new(name: 'idpRejectedClaimMessage')
74
83
  invalidAuthorizationMessage = Shapes::StringShape.new(name: 'invalidAuthorizationMessage')
75
84
  invalidIdentityTokenMessage = Shapes::StringShape.new(name: 'invalidIdentityTokenMessage')
85
+ jwtAlgorithmType = Shapes::StringShape.new(name: 'jwtAlgorithmType')
86
+ jwtPayloadSizeExceededException = Shapes::StringShape.new(name: 'jwtPayloadSizeExceededException')
76
87
  malformedPolicyDocumentMessage = Shapes::StringShape.new(name: 'malformedPolicyDocumentMessage')
77
88
  nonNegativeIntegerType = Shapes::IntegerShape.new(name: 'nonNegativeIntegerType')
89
+ outboundWebIdentityFederationDisabledException = Shapes::StringShape.new(name: 'outboundWebIdentityFederationDisabledException')
78
90
  packedPolicyTooLargeMessage = Shapes::StringShape.new(name: 'packedPolicyTooLargeMessage')
79
91
  policyDescriptorListType = Shapes::ListShape.new(name: 'policyDescriptorListType')
80
92
  regionDisabledMessage = Shapes::StringShape.new(name: 'regionDisabledMessage')
81
93
  roleDurationSecondsType = Shapes::IntegerShape.new(name: 'roleDurationSecondsType')
82
94
  roleSessionNameType = Shapes::StringShape.new(name: 'roleSessionNameType')
83
95
  serialNumberType = Shapes::StringShape.new(name: 'serialNumberType')
96
+ sessionDurationEscalationException = Shapes::StringShape.new(name: 'sessionDurationEscalationException')
84
97
  sessionPolicyDocumentType = Shapes::StringShape.new(name: 'sessionPolicyDocumentType')
85
98
  sourceIdentityType = Shapes::StringShape.new(name: 'sourceIdentityType')
86
99
  tagKeyListType = Shapes::ListShape.new(name: 'tagKeyListType')
@@ -89,11 +102,16 @@ module Aws::STS
89
102
  tagValueType = Shapes::StringShape.new(name: 'tagValueType')
90
103
  tokenCodeType = Shapes::StringShape.new(name: 'tokenCodeType')
91
104
  tokenType = Shapes::StringShape.new(name: 'tokenType')
105
+ tradeInTokenType = Shapes::StringShape.new(name: 'tradeInTokenType')
92
106
  unrestrictedSessionPolicyDocumentType = Shapes::StringShape.new(name: 'unrestrictedSessionPolicyDocumentType')
93
107
  urlType = Shapes::StringShape.new(name: 'urlType')
94
108
  userIdType = Shapes::StringShape.new(name: 'userIdType')
95
109
  userNameType = Shapes::StringShape.new(name: 'userNameType')
96
110
  webIdentitySubjectType = Shapes::StringShape.new(name: 'webIdentitySubjectType')
111
+ webIdentityTokenAudienceListType = Shapes::ListShape.new(name: 'webIdentityTokenAudienceListType')
112
+ webIdentityTokenAudienceStringType = Shapes::StringShape.new(name: 'webIdentityTokenAudienceStringType')
113
+ webIdentityTokenDurationSecondsType = Shapes::IntegerShape.new(name: 'webIdentityTokenDurationSecondsType')
114
+ webIdentityTokenType = Shapes::StringShape.new(name: 'webIdentityTokenType')
97
115
 
98
116
  AssumeRoleRequest.add_member(:role_arn, Shapes::ShapeRef.new(shape: arnType, required: true, location_name: "RoleArn"))
99
117
  AssumeRoleRequest.add_member(:role_session_name, Shapes::ShapeRef.new(shape: roleSessionNameType, required: true, location_name: "RoleSessionName"))
@@ -180,6 +198,9 @@ module Aws::STS
180
198
  ExpiredTokenException.add_member(:message, Shapes::ShapeRef.new(shape: expiredIdentityTokenMessage, location_name: "message"))
181
199
  ExpiredTokenException.struct_class = Types::ExpiredTokenException
182
200
 
201
+ ExpiredTradeInTokenException.add_member(:message, Shapes::ShapeRef.new(shape: expiredTradeInTokenExceptionMessage, location_name: "message"))
202
+ ExpiredTradeInTokenException.struct_class = Types::ExpiredTradeInTokenException
203
+
183
204
  FederatedUser.add_member(:federated_user_id, Shapes::ShapeRef.new(shape: federatedIdType, required: true, location_name: "FederatedUserId"))
184
205
  FederatedUser.add_member(:arn, Shapes::ShapeRef.new(shape: arnType, required: true, location_name: "Arn"))
185
206
  FederatedUser.struct_class = Types::FederatedUser
@@ -197,6 +218,14 @@ module Aws::STS
197
218
  GetCallerIdentityResponse.add_member(:arn, Shapes::ShapeRef.new(shape: arnType, location_name: "Arn"))
198
219
  GetCallerIdentityResponse.struct_class = Types::GetCallerIdentityResponse
199
220
 
221
+ GetDelegatedAccessTokenRequest.add_member(:trade_in_token, Shapes::ShapeRef.new(shape: tradeInTokenType, required: true, location_name: "TradeInToken"))
222
+ GetDelegatedAccessTokenRequest.struct_class = Types::GetDelegatedAccessTokenRequest
223
+
224
+ GetDelegatedAccessTokenResponse.add_member(:credentials, Shapes::ShapeRef.new(shape: Credentials, location_name: "Credentials"))
225
+ GetDelegatedAccessTokenResponse.add_member(:packed_policy_size, Shapes::ShapeRef.new(shape: nonNegativeIntegerType, location_name: "PackedPolicySize"))
226
+ GetDelegatedAccessTokenResponse.add_member(:assumed_principal, Shapes::ShapeRef.new(shape: arnType, location_name: "AssumedPrincipal"))
227
+ GetDelegatedAccessTokenResponse.struct_class = Types::GetDelegatedAccessTokenResponse
228
+
200
229
  GetFederationTokenRequest.add_member(:name, Shapes::ShapeRef.new(shape: userNameType, required: true, location_name: "Name"))
201
230
  GetFederationTokenRequest.add_member(:policy, Shapes::ShapeRef.new(shape: sessionPolicyDocumentType, location_name: "Policy"))
202
231
  GetFederationTokenRequest.add_member(:policy_arns, Shapes::ShapeRef.new(shape: policyDescriptorListType, location_name: "PolicyArns"))
@@ -217,6 +246,16 @@ module Aws::STS
217
246
  GetSessionTokenResponse.add_member(:credentials, Shapes::ShapeRef.new(shape: Credentials, location_name: "Credentials"))
218
247
  GetSessionTokenResponse.struct_class = Types::GetSessionTokenResponse
219
248
 
249
+ GetWebIdentityTokenRequest.add_member(:audience, Shapes::ShapeRef.new(shape: webIdentityTokenAudienceListType, required: true, location_name: "Audience"))
250
+ GetWebIdentityTokenRequest.add_member(:duration_seconds, Shapes::ShapeRef.new(shape: webIdentityTokenDurationSecondsType, location_name: "DurationSeconds"))
251
+ GetWebIdentityTokenRequest.add_member(:signing_algorithm, Shapes::ShapeRef.new(shape: jwtAlgorithmType, required: true, location_name: "SigningAlgorithm"))
252
+ GetWebIdentityTokenRequest.add_member(:tags, Shapes::ShapeRef.new(shape: tagListType, location_name: "Tags"))
253
+ GetWebIdentityTokenRequest.struct_class = Types::GetWebIdentityTokenRequest
254
+
255
+ GetWebIdentityTokenResponse.add_member(:web_identity_token, Shapes::ShapeRef.new(shape: webIdentityTokenType, location_name: "WebIdentityToken"))
256
+ GetWebIdentityTokenResponse.add_member(:expiration, Shapes::ShapeRef.new(shape: dateType, location_name: "Expiration"))
257
+ GetWebIdentityTokenResponse.struct_class = Types::GetWebIdentityTokenResponse
258
+
220
259
  IDPCommunicationErrorException.add_member(:message, Shapes::ShapeRef.new(shape: idpCommunicationErrorMessage, location_name: "message"))
221
260
  IDPCommunicationErrorException.struct_class = Types::IDPCommunicationErrorException
222
261
 
@@ -229,9 +268,15 @@ module Aws::STS
229
268
  InvalidIdentityTokenException.add_member(:message, Shapes::ShapeRef.new(shape: invalidIdentityTokenMessage, location_name: "message"))
230
269
  InvalidIdentityTokenException.struct_class = Types::InvalidIdentityTokenException
231
270
 
271
+ JWTPayloadSizeExceededException.add_member(:message, Shapes::ShapeRef.new(shape: jwtPayloadSizeExceededException, location_name: "message"))
272
+ JWTPayloadSizeExceededException.struct_class = Types::JWTPayloadSizeExceededException
273
+
232
274
  MalformedPolicyDocumentException.add_member(:message, Shapes::ShapeRef.new(shape: malformedPolicyDocumentMessage, location_name: "message"))
233
275
  MalformedPolicyDocumentException.struct_class = Types::MalformedPolicyDocumentException
234
276
 
277
+ OutboundWebIdentityFederationDisabledException.add_member(:message, Shapes::ShapeRef.new(shape: outboundWebIdentityFederationDisabledException, location_name: "message"))
278
+ OutboundWebIdentityFederationDisabledException.struct_class = Types::OutboundWebIdentityFederationDisabledException
279
+
235
280
  PackedPolicyTooLargeException.add_member(:message, Shapes::ShapeRef.new(shape: packedPolicyTooLargeMessage, location_name: "message"))
236
281
  PackedPolicyTooLargeException.struct_class = Types::PackedPolicyTooLargeException
237
282
 
@@ -247,6 +292,9 @@ module Aws::STS
247
292
  RegionDisabledException.add_member(:message, Shapes::ShapeRef.new(shape: regionDisabledMessage, location_name: "message"))
248
293
  RegionDisabledException.struct_class = Types::RegionDisabledException
249
294
 
295
+ SessionDurationEscalationException.add_member(:message, Shapes::ShapeRef.new(shape: sessionDurationEscalationException, location_name: "message"))
296
+ SessionDurationEscalationException.struct_class = Types::SessionDurationEscalationException
297
+
250
298
  Tag.add_member(:key, Shapes::ShapeRef.new(shape: tagKeyType, required: true, location_name: "Key"))
251
299
  Tag.add_member(:value, Shapes::ShapeRef.new(shape: tagValueType, required: true, location_name: "Value"))
252
300
  Tag.struct_class = Types::Tag
@@ -257,6 +305,8 @@ module Aws::STS
257
305
 
258
306
  tagListType.member = Shapes::ShapeRef.new(shape: Tag)
259
307
 
308
+ webIdentityTokenAudienceListType.member = Shapes::ShapeRef.new(shape: webIdentityTokenAudienceStringType)
309
+
260
310
 
261
311
  # @api private
262
312
  API = Seahorse::Model::Api.new.tap do |api|
@@ -358,6 +408,17 @@ module Aws::STS
358
408
  o.output = Shapes::ShapeRef.new(shape: GetCallerIdentityResponse)
359
409
  end)
360
410
 
411
+ api.add_operation(:get_delegated_access_token, Seahorse::Model::Operation.new.tap do |o|
412
+ o.name = "GetDelegatedAccessToken"
413
+ o.http_method = "POST"
414
+ o.http_request_uri = "/"
415
+ o.input = Shapes::ShapeRef.new(shape: GetDelegatedAccessTokenRequest)
416
+ o.output = Shapes::ShapeRef.new(shape: GetDelegatedAccessTokenResponse)
417
+ o.errors << Shapes::ShapeRef.new(shape: ExpiredTradeInTokenException)
418
+ o.errors << Shapes::ShapeRef.new(shape: RegionDisabledException)
419
+ o.errors << Shapes::ShapeRef.new(shape: PackedPolicyTooLargeException)
420
+ end)
421
+
361
422
  api.add_operation(:get_federation_token, Seahorse::Model::Operation.new.tap do |o|
362
423
  o.name = "GetFederationToken"
363
424
  o.http_method = "POST"
@@ -377,6 +438,17 @@ module Aws::STS
377
438
  o.output = Shapes::ShapeRef.new(shape: GetSessionTokenResponse)
378
439
  o.errors << Shapes::ShapeRef.new(shape: RegionDisabledException)
379
440
  end)
441
+
442
+ api.add_operation(:get_web_identity_token, Seahorse::Model::Operation.new.tap do |o|
443
+ o.name = "GetWebIdentityToken"
444
+ o.http_method = "POST"
445
+ o.http_request_uri = "/"
446
+ o.input = Shapes::ShapeRef.new(shape: GetWebIdentityTokenRequest)
447
+ o.output = Shapes::ShapeRef.new(shape: GetWebIdentityTokenResponse)
448
+ o.errors << Shapes::ShapeRef.new(shape: SessionDurationEscalationException)
449
+ o.errors << Shapes::ShapeRef.new(shape: OutboundWebIdentityFederationDisabledException)
450
+ o.errors << Shapes::ShapeRef.new(shape: JWTPayloadSizeExceededException)
451
+ end)
380
452
  end
381
453
 
382
454
  end
@@ -28,6 +28,7 @@ module Aws::STS
28
28
  #
29
29
  # ## Error Classes
30
30
  # * {ExpiredTokenException}
31
+ # * {ExpiredTradeInTokenException}
31
32
  # * {IDPCommunicationErrorException}
32
33
  # * This error class is not used. `IDPCommunicationError` is used during parsing instead.
33
34
  # * {IDPRejectedClaimException}
@@ -35,11 +36,14 @@ module Aws::STS
35
36
  # * {InvalidAuthorizationMessageException}
36
37
  # * {InvalidIdentityTokenException}
37
38
  # * This error class is not used. `InvalidIdentityToken` is used during parsing instead.
39
+ # * {JWTPayloadSizeExceededException}
38
40
  # * {MalformedPolicyDocumentException}
39
41
  # * This error class is not used. `MalformedPolicyDocument` is used during parsing instead.
42
+ # * {OutboundWebIdentityFederationDisabledException}
40
43
  # * {PackedPolicyTooLargeException}
41
44
  # * This error class is not used. `PackedPolicyTooLarge` is used during parsing instead.
42
45
  # * {RegionDisabledException}
46
+ # * {SessionDurationEscalationException}
43
47
  #
44
48
  # Additionally, error classes are dynamically generated for service errors based on the error code
45
49
  # if they are not defined above.
@@ -62,6 +66,21 @@ module Aws::STS
62
66
  end
63
67
  end
64
68
 
69
+ class ExpiredTradeInTokenException < ServiceError
70
+
71
+ # @param [Seahorse::Client::RequestContext] context
72
+ # @param [String] message
73
+ # @param [Aws::STS::Types::ExpiredTradeInTokenException] data
74
+ def initialize(context, message, data = Aws::EmptyStructure.new)
75
+ super(context, message, data)
76
+ end
77
+
78
+ # @return [String]
79
+ def message
80
+ @message || @data[:message]
81
+ end
82
+ end
83
+
65
84
  # @deprecated This error class is not used during parsing.
66
85
  # Please use `IDPCommunicationError` instead.
67
86
  class IDPCommunicationErrorException < ServiceError
@@ -128,6 +147,21 @@ module Aws::STS
128
147
  end
129
148
  end
130
149
 
150
+ class JWTPayloadSizeExceededException < ServiceError
151
+
152
+ # @param [Seahorse::Client::RequestContext] context
153
+ # @param [String] message
154
+ # @param [Aws::STS::Types::JWTPayloadSizeExceededException] data
155
+ def initialize(context, message, data = Aws::EmptyStructure.new)
156
+ super(context, message, data)
157
+ end
158
+
159
+ # @return [String]
160
+ def message
161
+ @message || @data[:message]
162
+ end
163
+ end
164
+
131
165
  # @deprecated This error class is not used during parsing.
132
166
  # Please use `MalformedPolicyDocument` instead.
133
167
  class MalformedPolicyDocumentException < ServiceError
@@ -145,6 +179,21 @@ module Aws::STS
145
179
  end
146
180
  end
147
181
 
182
+ class OutboundWebIdentityFederationDisabledException < ServiceError
183
+
184
+ # @param [Seahorse::Client::RequestContext] context
185
+ # @param [String] message
186
+ # @param [Aws::STS::Types::OutboundWebIdentityFederationDisabledException] data
187
+ def initialize(context, message, data = Aws::EmptyStructure.new)
188
+ super(context, message, data)
189
+ end
190
+
191
+ # @return [String]
192
+ def message
193
+ @message || @data[:message]
194
+ end
195
+ end
196
+
148
197
  # @deprecated This error class is not used during parsing.
149
198
  # Please use `PackedPolicyTooLarge` instead.
150
199
  class PackedPolicyTooLargeException < ServiceError
@@ -177,5 +226,20 @@ module Aws::STS
177
226
  end
178
227
  end
179
228
 
229
+ class SessionDurationEscalationException < ServiceError
230
+
231
+ # @param [Seahorse::Client::RequestContext] context
232
+ # @param [String] message
233
+ # @param [Aws::STS::Types::SessionDurationEscalationException] data
234
+ def initialize(context, message, data = Aws::EmptyStructure.new)
235
+ super(context, message, data)
236
+ end
237
+
238
+ # @return [String]
239
+ def message
240
+ @message || @data[:message]
241
+ end
242
+ end
243
+
180
244
  end
181
245
  end
@@ -35,7 +35,7 @@ module Aws::STS
35
35
  # The regex used to validate this parameter is a string of characters
36
36
  # consisting of upper- and lower-case alphanumeric characters with no
37
37
  # spaces. You can also include underscores or any of the following
38
- # characters: =,.@-
38
+ # characters: +=,.@-
39
39
  #
40
40
  #
41
41
  #
@@ -240,7 +240,7 @@ module Aws::STS
240
240
  # The regex used to validate this parameter is a string of characters
241
241
  # consisting of upper- and lower-case alphanumeric characters with no
242
242
  # spaces. You can also include underscores or any of the following
243
- # characters: =,.@:/-
243
+ # characters: +=,.@:\\/-
244
244
  #
245
245
  #
246
246
  #
@@ -259,7 +259,7 @@ module Aws::STS
259
259
  # The regex used to validate this parameter is a string of characters
260
260
  # consisting of upper- and lower-case alphanumeric characters with no
261
261
  # spaces. You can also include underscores or any of the following
262
- # characters: =,.@-
262
+ # characters: +=/:,.@-
263
263
  # @return [String]
264
264
  #
265
265
  # @!attribute [rw] token_code
@@ -961,8 +961,8 @@ module Aws::STS
961
961
  #
962
962
  # @!attribute [rw] task_policy_arn
963
963
  # The identity based policy that scopes the session to the privileged
964
- # tasks that can be performed. You can use one of following Amazon Web
965
- # Services managed policies to scope root session actions.
964
+ # tasks that can be performed. You must use one of following Amazon
965
+ # Web Services managed policies to scope root session actions:
966
966
  #
967
967
  # * [IAMAuditRootUserCredentials][1]
968
968
  #
@@ -1144,6 +1144,21 @@ module Aws::STS
1144
1144
  include Aws::Structure
1145
1145
  end
1146
1146
 
1147
+ # The trade-in token provided in the request has expired and can no
1148
+ # longer be exchanged for credentials. Request a new token and retry the
1149
+ # operation.
1150
+ #
1151
+ # @!attribute [rw] message
1152
+ # @return [String]
1153
+ #
1154
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/ExpiredTradeInTokenException AWS API Documentation
1155
+ #
1156
+ class ExpiredTradeInTokenException < Struct.new(
1157
+ :message)
1158
+ SENSITIVE = []
1159
+ include Aws::Structure
1160
+ end
1161
+
1147
1162
  # Identifiers for the federated user that is associated with the
1148
1163
  # credentials.
1149
1164
  #
@@ -1239,6 +1254,47 @@ module Aws::STS
1239
1254
  include Aws::Structure
1240
1255
  end
1241
1256
 
1257
+ # @!attribute [rw] trade_in_token
1258
+ # The token to exchange for temporary Amazon Web Services credentials.
1259
+ # This token must be valid and unexpired at the time of the request.
1260
+ # @return [String]
1261
+ #
1262
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/GetDelegatedAccessTokenRequest AWS API Documentation
1263
+ #
1264
+ class GetDelegatedAccessTokenRequest < Struct.new(
1265
+ :trade_in_token)
1266
+ SENSITIVE = [:trade_in_token]
1267
+ include Aws::Structure
1268
+ end
1269
+
1270
+ # @!attribute [rw] credentials
1271
+ # Amazon Web Services credentials for API authentication.
1272
+ # @return [Types::Credentials]
1273
+ #
1274
+ # @!attribute [rw] packed_policy_size
1275
+ # The percentage of the maximum policy size that is used by the
1276
+ # session policy. The policy size is calculated as the sum of all the
1277
+ # session policies and permission boundaries attached to the session.
1278
+ # If the packed size exceeds 100%, the request fails.
1279
+ # @return [Integer]
1280
+ #
1281
+ # @!attribute [rw] assumed_principal
1282
+ # The Amazon Resource Name (ARN) of the principal that was assumed
1283
+ # when obtaining the delegated access token. This ARN identifies the
1284
+ # IAM entity whose permissions are granted by the temporary
1285
+ # credentials.
1286
+ # @return [String]
1287
+ #
1288
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/GetDelegatedAccessTokenResponse AWS API Documentation
1289
+ #
1290
+ class GetDelegatedAccessTokenResponse < Struct.new(
1291
+ :credentials,
1292
+ :packed_policy_size,
1293
+ :assumed_principal)
1294
+ SENSITIVE = []
1295
+ include Aws::Structure
1296
+ end
1297
+
1242
1298
  # @!attribute [rw] name
1243
1299
  # The name of the federated user. The name is used as an identifier
1244
1300
  # for the temporary security credentials (such as `Bob`). For example,
@@ -1522,6 +1578,73 @@ module Aws::STS
1522
1578
  include Aws::Structure
1523
1579
  end
1524
1580
 
1581
+ # @!attribute [rw] audience
1582
+ # The intended recipient of the web identity token. This value
1583
+ # populates the `aud` claim in the JWT and should identify the service
1584
+ # or application that will validate and use the token. The external
1585
+ # service should verify this claim to ensure the token was intended
1586
+ # for their use.
1587
+ # @return [Array<String>]
1588
+ #
1589
+ # @!attribute [rw] duration_seconds
1590
+ # The duration, in seconds, for which the JSON Web Token (JWT) will
1591
+ # remain valid. The value can range from 60 seconds (1 minute) to 3600
1592
+ # seconds (1 hour). If not specified, the default duration is 300
1593
+ # seconds (5 minutes). The token is designed to be short-lived and
1594
+ # should be used for proof of identity, then exchanged for credentials
1595
+ # or short-lived tokens in the external service.
1596
+ # @return [Integer]
1597
+ #
1598
+ # @!attribute [rw] signing_algorithm
1599
+ # The cryptographic algorithm to use for signing the JSON Web Token
1600
+ # (JWT). Valid values are RS256 (RSA with SHA-256) and ES384 (ECDSA
1601
+ # using P-384 curve with SHA-384).
1602
+ # @return [String]
1603
+ #
1604
+ # @!attribute [rw] tags
1605
+ # An optional list of tags to include in the JSON Web Token (JWT).
1606
+ # These tags are added as custom claims to the JWT and can be used by
1607
+ # the downstream service for authorization decisions.
1608
+ # @return [Array<Types::Tag>]
1609
+ #
1610
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/GetWebIdentityTokenRequest AWS API Documentation
1611
+ #
1612
+ class GetWebIdentityTokenRequest < Struct.new(
1613
+ :audience,
1614
+ :duration_seconds,
1615
+ :signing_algorithm,
1616
+ :tags)
1617
+ SENSITIVE = []
1618
+ include Aws::Structure
1619
+ end
1620
+
1621
+ # @!attribute [rw] web_identity_token
1622
+ # A signed JSON Web Token (JWT) that represents the caller's Amazon
1623
+ # Web Services identity. The token contains standard JWT claims such
1624
+ # as subject, audience, expiration time, and additional identity
1625
+ # attributes added by STS as custom claims. You can also add your own
1626
+ # custom claims to the token by passing tags as request parameters to
1627
+ # the `GetWebIdentityToken` API. The token is signed using the
1628
+ # specified signing algorithm and can be verified using the
1629
+ # verification keys available at the issuer's JWKS endpoint.
1630
+ # @return [String]
1631
+ #
1632
+ # @!attribute [rw] expiration
1633
+ # The date and time when the web identity token expires, in UTC. The
1634
+ # expiration is determined by adding the `DurationSeconds` value to
1635
+ # the time the token was issued. After this time, the token should no
1636
+ # longer be considered valid.
1637
+ # @return [Time]
1638
+ #
1639
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/GetWebIdentityTokenResponse AWS API Documentation
1640
+ #
1641
+ class GetWebIdentityTokenResponse < Struct.new(
1642
+ :web_identity_token,
1643
+ :expiration)
1644
+ SENSITIVE = [:web_identity_token]
1645
+ include Aws::Structure
1646
+ end
1647
+
1525
1648
  # The request could not be fulfilled because the identity provider (IDP)
1526
1649
  # that was asked to verify the incoming identity token could not be
1527
1650
  # reached. This is often a transient error caused by network conditions.
@@ -1589,6 +1712,21 @@ module Aws::STS
1589
1712
  include Aws::Structure
1590
1713
  end
1591
1714
 
1715
+ # The requested token payload size exceeds the maximum allowed size.
1716
+ # Reduce the number of request tags included in the
1717
+ # `GetWebIdentityToken` API call to reduce the token payload size.
1718
+ #
1719
+ # @!attribute [rw] message
1720
+ # @return [String]
1721
+ #
1722
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/JWTPayloadSizeExceededException AWS API Documentation
1723
+ #
1724
+ class JWTPayloadSizeExceededException < Struct.new(
1725
+ :message)
1726
+ SENSITIVE = []
1727
+ include Aws::Structure
1728
+ end
1729
+
1592
1730
  # The request was rejected because the policy document was malformed.
1593
1731
  # The error message describes the specific error.
1594
1732
  #
@@ -1603,6 +1741,21 @@ module Aws::STS
1603
1741
  include Aws::Structure
1604
1742
  end
1605
1743
 
1744
+ # The outbound web identity federation feature is not enabled for this
1745
+ # account. To use this feature, you must first enable it through the
1746
+ # Amazon Web Services Management Console or API.
1747
+ #
1748
+ # @!attribute [rw] message
1749
+ # @return [String]
1750
+ #
1751
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/OutboundWebIdentityFederationDisabledException AWS API Documentation
1752
+ #
1753
+ class OutboundWebIdentityFederationDisabledException < Struct.new(
1754
+ :message)
1755
+ SENSITIVE = []
1756
+ include Aws::Structure
1757
+ end
1758
+
1606
1759
  # The request was rejected because the total packed size of the session
1607
1760
  # policies and session tags combined was too large. An Amazon Web
1608
1761
  # Services conversion compresses the session policy document, session
@@ -1686,7 +1839,7 @@ module Aws::STS
1686
1839
  #
1687
1840
  #
1688
1841
  #
1689
- # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html
1842
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html#sts-regions-activate-deactivate
1690
1843
  #
1691
1844
  # @!attribute [rw] message
1692
1845
  # @return [String]
@@ -1699,6 +1852,22 @@ module Aws::STS
1699
1852
  include Aws::Structure
1700
1853
  end
1701
1854
 
1855
+ # The requested token duration would extend the session beyond its
1856
+ # original expiration time. You cannot use this operation to extend the
1857
+ # lifetime of a session beyond what was granted when the session was
1858
+ # originally created.
1859
+ #
1860
+ # @!attribute [rw] message
1861
+ # @return [String]
1862
+ #
1863
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/SessionDurationEscalationException AWS API Documentation
1864
+ #
1865
+ class SessionDurationEscalationException < Struct.new(
1866
+ :message)
1867
+ SENSITIVE = []
1868
+ include Aws::Structure
1869
+ end
1870
+
1702
1871
  # You can pass custom key-value pair attributes when you assume a role
1703
1872
  # or federate a user. These are called session tags. You can then use
1704
1873
  # the session tags to control access to resources. For more information,
data/lib/aws-sdk-sts.rb CHANGED
@@ -56,7 +56,7 @@ module Aws::STS
56
56
  autoload :EndpointProvider, 'aws-sdk-sts/endpoint_provider'
57
57
  autoload :Endpoints, 'aws-sdk-sts/endpoints'
58
58
 
59
- GEM_VERSION = '3.236.0'
59
+ GEM_VERSION = '3.239.2'
60
60
 
61
61
  end
62
62
 
@@ -130,7 +130,12 @@ module Seahorse
130
130
  # https://http2.github.io/http2-spec/#rfc.section.8.1.2.3
131
131
  def _h2_headers(req)
132
132
  headers = {}
133
- headers[':authority'] = req.endpoint.host
133
+ headers[':authority'] =
134
+ if req.endpoint.port != 443
135
+ "#{req.endpoint.host}:#{req.endpoint.port}"
136
+ else
137
+ req.endpoint.host
138
+ end
134
139
  headers[':method'] = req.http_method.upcase
135
140
  headers[':scheme'] = req.endpoint.scheme
136
141
  headers[':path'] = req.endpoint.path.empty? ? '/' : req.endpoint.path
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.236.0
4
+ version: 3.239.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
@@ -197,6 +197,7 @@ files:
197
197
  - lib/aws-sdk-core/log/handler.rb
198
198
  - lib/aws-sdk-core/log/param_filter.rb
199
199
  - lib/aws-sdk-core/log/param_formatter.rb
200
+ - lib/aws-sdk-core/login_credentials.rb
200
201
  - lib/aws-sdk-core/lru_cache.rb
201
202
  - lib/aws-sdk-core/pageable_response.rb
202
203
  - lib/aws-sdk-core/pager.rb
@@ -329,6 +330,17 @@ files:
329
330
  - lib/aws-sdk-core/xml/parser/parsing_error.rb
330
331
  - lib/aws-sdk-core/xml/parser/rexml_engine.rb
331
332
  - lib/aws-sdk-core/xml/parser/stack.rb
333
+ - lib/aws-sdk-signin.rb
334
+ - lib/aws-sdk-signin/client.rb
335
+ - lib/aws-sdk-signin/client_api.rb
336
+ - lib/aws-sdk-signin/customizations.rb
337
+ - lib/aws-sdk-signin/endpoint_parameters.rb
338
+ - lib/aws-sdk-signin/endpoint_provider.rb
339
+ - lib/aws-sdk-signin/endpoints.rb
340
+ - lib/aws-sdk-signin/errors.rb
341
+ - lib/aws-sdk-signin/plugins/endpoints.rb
342
+ - lib/aws-sdk-signin/resource.rb
343
+ - lib/aws-sdk-signin/types.rb
332
344
  - lib/aws-sdk-sso.rb
333
345
  - lib/aws-sdk-sso/client.rb
334
346
  - lib/aws-sdk-sso/client_api.rb