Smaws_Client_STS.GetDelegatedAccessTokenExchanges 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.
val error_to_string :
[ Smaws_Lib.Protocols.AwsQuery.error
| `ExpiredTradeInTokenException of Types.expired_trade_in_token_exception
| `PackedPolicyTooLargeException of Types.packed_policy_too_large_exception
| `RegionDisabledException of Types.region_disabled_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.get_delegated_access_token_request ->
(Types.get_delegated_access_token_response,
[> Smaws_Lib.Protocols.AwsQuery.error
| `ExpiredTradeInTokenException of Types.expired_trade_in_token_exception
| `PackedPolicyTooLargeException of Types.packed_policy_too_large_exception
| `RegionDisabledException of Types.region_disabled_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.get_delegated_access_token_request ->
(Types.get_delegated_access_token_response Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsQuery.error
| `ExpiredTradeInTokenException of Types.expired_trade_in_token_exception
| `PackedPolicyTooLargeException of Types.packed_policy_too_large_exception
| `RegionDisabledException of Types.region_disabled_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result