Skip to main content

delegated_access_tokens

Creates, updates, deletes, gets or lists a delegated_access_tokens resource.

Overview

Namedelegated_access_tokens
TypeResource
Idaws.sts.delegated_access_tokens

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
assumed_principalstringThe Amazon Resource Name (ARN) of the principal that was assumed when obtaining the delegated access token. This ARN identifies the IAM entity whose permissions are granted by the temporary credentials.
credentialsstringAmazon Web Services credentials for API authentication.
packed_policy_sizeintegerThe percentage of the maximum policy size that is used by the session policy. The policy size is calculated as the sum of all the session policies and permission boundaries attached to the session. If the packed size exceeds 100%, the request fails.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_delegated_access_tokenselectTradeInToken, regionExchanges a trade-in token for temporary Amazon Web Services credentials with the permissions associated with the assumed principal. This operation allows you to obtain credentials for a specific principal based on a trade-in token, enabling delegation of access to Amazon Web Services resources.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
TradeInTokenstringThe token to exchange for temporary Amazon Web Services credentials. This token must be valid and unexpired at the time of the request.
regionstringAWS region (default: us-east-1)

SELECT examples

Exchanges a trade-in token for temporary Amazon Web Services credentials with the permissions associated with the assumed principal. This operation allows you to obtain credentials for a specific principal based on a trade-in token, enabling delegation of access to Amazon Web Services resources.

SELECT
assumed_principal,
credentials,
packed_policy_size
FROM aws.sts.delegated_access_tokens
WHERE TradeInToken = '{{ TradeInToken }}' -- required
AND region = '{{ region }}' -- required
;