aws-sdk-core 3.233.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +58 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-core/assume_role_credentials.rb +8 -8
- data/lib/aws-sdk-core/assume_role_web_identity_credentials.rb +2 -2
- data/lib/aws-sdk-core/credential_provider_chain.rb +71 -22
- data/lib/aws-sdk-core/ecs_credentials.rb +13 -13
- data/lib/aws-sdk-core/errors.rb +3 -0
- data/lib/aws-sdk-core/instance_profile_credentials.rb +7 -7
- data/lib/aws-sdk-core/login_credentials.rb +229 -0
- data/lib/aws-sdk-core/plugins/checksum_algorithm.rb +28 -14
- data/lib/aws-sdk-core/plugins/user_agent.rb +3 -1
- data/lib/aws-sdk-core/refreshing_credentials.rb +8 -11
- data/lib/aws-sdk-core/shared_config.rb +20 -0
- data/lib/aws-sdk-core/sso_credentials.rb +1 -1
- data/lib/aws-sdk-core.rb +4 -0
- data/lib/aws-sdk-signin/client.rb +604 -0
- data/lib/aws-sdk-signin/client_api.rb +119 -0
- data/lib/aws-sdk-signin/customizations.rb +1 -0
- data/lib/aws-sdk-signin/endpoint_parameters.rb +69 -0
- data/lib/aws-sdk-signin/endpoint_provider.rb +59 -0
- data/lib/aws-sdk-signin/endpoints.rb +20 -0
- data/lib/aws-sdk-signin/errors.rb +122 -0
- data/lib/aws-sdk-signin/plugins/endpoints.rb +77 -0
- data/lib/aws-sdk-signin/resource.rb +26 -0
- data/lib/aws-sdk-signin/types.rb +299 -0
- data/lib/aws-sdk-signin.rb +63 -0
- data/lib/aws-sdk-sso/client.rb +1 -1
- data/lib/aws-sdk-sso/endpoint_parameters.rb +4 -4
- data/lib/aws-sdk-sso.rb +1 -1
- data/lib/aws-sdk-ssooidc/client.rb +1 -1
- data/lib/aws-sdk-ssooidc/endpoint_parameters.rb +4 -4
- data/lib/aws-sdk-ssooidc.rb +1 -1
- data/lib/aws-sdk-sts/client.rb +136 -12
- data/lib/aws-sdk-sts/client_api.rb +72 -0
- data/lib/aws-sdk-sts/endpoint_parameters.rb +5 -5
- data/lib/aws-sdk-sts/errors.rb +64 -0
- data/lib/aws-sdk-sts/types.rb +175 -6
- data/lib/aws-sdk-sts.rb +1 -1
- data/lib/seahorse/client/h2/handler.rb +6 -1
- metadata +13 -1
data/lib/aws-sdk-sts/types.rb
CHANGED
|
@@ -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
|
|
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
|
@@ -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'] =
|
|
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.
|
|
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
|