aws-sdk-core 3.237.0 → 3.238.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-core/credential_provider_chain.rb +23 -0
- data/lib/aws-sdk-core/errors.rb +3 -0
- data/lib/aws-sdk-core/login_credentials.rb +229 -0
- data/lib/aws-sdk-core/plugins/user_agent.rb +3 -1
- data/lib/aws-sdk-core/shared_config.rb +18 -0
- data/lib/aws-sdk-core.rb +4 -0
- data/lib/aws-sdk-signin/client.rb +604 -0
- data/lib/aws-sdk-signin/client_api.rb +119 -0
- data/lib/aws-sdk-signin/customizations.rb +1 -0
- data/lib/aws-sdk-signin/endpoint_parameters.rb +69 -0
- data/lib/aws-sdk-signin/endpoint_provider.rb +59 -0
- data/lib/aws-sdk-signin/endpoints.rb +20 -0
- data/lib/aws-sdk-signin/errors.rb +122 -0
- data/lib/aws-sdk-signin/plugins/endpoints.rb +77 -0
- data/lib/aws-sdk-signin/resource.rb +26 -0
- data/lib/aws-sdk-signin/types.rb +299 -0
- data/lib/aws-sdk-signin.rb +63 -0
- data/lib/aws-sdk-sso/client.rb +1 -1
- data/lib/aws-sdk-sso.rb +1 -1
- data/lib/aws-sdk-ssooidc/client.rb +1 -1
- data/lib/aws-sdk-ssooidc.rb +1 -1
- data/lib/aws-sdk-sts/client.rb +73 -2
- data/lib/aws-sdk-sts/client_api.rb +46 -0
- data/lib/aws-sdk-sts/errors.rb +48 -0
- data/lib/aws-sdk-sts/types.rb +127 -0
- data/lib/aws-sdk-sts.rb +1 -1
- metadata +13 -1
data/lib/aws-sdk-sts/errors.rb
CHANGED
|
@@ -36,11 +36,14 @@ module Aws::STS
|
|
|
36
36
|
# * {InvalidAuthorizationMessageException}
|
|
37
37
|
# * {InvalidIdentityTokenException}
|
|
38
38
|
# * This error class is not used. `InvalidIdentityToken` is used during parsing instead.
|
|
39
|
+
# * {JWTPayloadSizeExceededException}
|
|
39
40
|
# * {MalformedPolicyDocumentException}
|
|
40
41
|
# * This error class is not used. `MalformedPolicyDocument` is used during parsing instead.
|
|
42
|
+
# * {OutboundWebIdentityFederationDisabledException}
|
|
41
43
|
# * {PackedPolicyTooLargeException}
|
|
42
44
|
# * This error class is not used. `PackedPolicyTooLarge` is used during parsing instead.
|
|
43
45
|
# * {RegionDisabledException}
|
|
46
|
+
# * {SessionDurationEscalationException}
|
|
44
47
|
#
|
|
45
48
|
# Additionally, error classes are dynamically generated for service errors based on the error code
|
|
46
49
|
# if they are not defined above.
|
|
@@ -144,6 +147,21 @@ module Aws::STS
|
|
|
144
147
|
end
|
|
145
148
|
end
|
|
146
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
|
+
|
|
147
165
|
# @deprecated This error class is not used during parsing.
|
|
148
166
|
# Please use `MalformedPolicyDocument` instead.
|
|
149
167
|
class MalformedPolicyDocumentException < ServiceError
|
|
@@ -161,6 +179,21 @@ module Aws::STS
|
|
|
161
179
|
end
|
|
162
180
|
end
|
|
163
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
|
+
|
|
164
197
|
# @deprecated This error class is not used during parsing.
|
|
165
198
|
# Please use `PackedPolicyTooLarge` instead.
|
|
166
199
|
class PackedPolicyTooLargeException < ServiceError
|
|
@@ -193,5 +226,20 @@ module Aws::STS
|
|
|
193
226
|
end
|
|
194
227
|
end
|
|
195
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
|
+
|
|
196
244
|
end
|
|
197
245
|
end
|
data/lib/aws-sdk-sts/types.rb
CHANGED
|
@@ -1144,6 +1144,10 @@ 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
|
+
#
|
|
1147
1151
|
# @!attribute [rw] message
|
|
1148
1152
|
# @return [String]
|
|
1149
1153
|
#
|
|
@@ -1251,6 +1255,8 @@ module Aws::STS
|
|
|
1251
1255
|
end
|
|
1252
1256
|
|
|
1253
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.
|
|
1254
1260
|
# @return [String]
|
|
1255
1261
|
#
|
|
1256
1262
|
# @see http://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/GetDelegatedAccessTokenRequest AWS API Documentation
|
|
@@ -1266,9 +1272,17 @@ module Aws::STS
|
|
|
1266
1272
|
# @return [Types::Credentials]
|
|
1267
1273
|
#
|
|
1268
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.
|
|
1269
1279
|
# @return [Integer]
|
|
1270
1280
|
#
|
|
1271
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.
|
|
1272
1286
|
# @return [String]
|
|
1273
1287
|
#
|
|
1274
1288
|
# @see http://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/GetDelegatedAccessTokenResponse AWS API Documentation
|
|
@@ -1564,6 +1578,73 @@ module Aws::STS
|
|
|
1564
1578
|
include Aws::Structure
|
|
1565
1579
|
end
|
|
1566
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
|
+
|
|
1567
1648
|
# The request could not be fulfilled because the identity provider (IDP)
|
|
1568
1649
|
# that was asked to verify the incoming identity token could not be
|
|
1569
1650
|
# reached. This is often a transient error caused by network conditions.
|
|
@@ -1631,6 +1712,21 @@ module Aws::STS
|
|
|
1631
1712
|
include Aws::Structure
|
|
1632
1713
|
end
|
|
1633
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
|
+
|
|
1634
1730
|
# The request was rejected because the policy document was malformed.
|
|
1635
1731
|
# The error message describes the specific error.
|
|
1636
1732
|
#
|
|
@@ -1645,6 +1741,21 @@ module Aws::STS
|
|
|
1645
1741
|
include Aws::Structure
|
|
1646
1742
|
end
|
|
1647
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
|
+
|
|
1648
1759
|
# The request was rejected because the total packed size of the session
|
|
1649
1760
|
# policies and session tags combined was too large. An Amazon Web
|
|
1650
1761
|
# Services conversion compresses the session policy document, session
|
|
@@ -1741,6 +1852,22 @@ module Aws::STS
|
|
|
1741
1852
|
include Aws::Structure
|
|
1742
1853
|
end
|
|
1743
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
|
+
|
|
1744
1871
|
# You can pass custom key-value pair attributes when you assume a role
|
|
1745
1872
|
# or federate a user. These are called session tags. You can then use
|
|
1746
1873
|
# the session tags to control access to resources. For more information,
|
data/lib/aws-sdk-sts.rb
CHANGED
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.
|
|
4
|
+
version: 3.238.0
|
|
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
|