Values.GetDelegatedAccessTokenResponseSourceExchanges 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.
type getDelegatedAccessTokenResult = {credentials : Credentials.t option;packedPolicySize : NonNegativeIntegerType.t option;The 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.
*)assumedPrincipal : ArnType.t option;The 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.
*)}and t = {getDelegatedAccessTokenResult : getDelegatedAccessTokenResult;responseMetaData : responseMetaData;}type error = [ | `ExpiredTradeInTokenException of ExpiredTradeInTokenException.t| `PackedPolicyTooLargeException of PackedPolicyTooLargeException.t| `RegionDisabledException of RegionDisabledException.t| `Unknown_operation_error of string * string option ]val error_of_json :
string ->
Yojson.Safe.t ->
[> `ExpiredTradeInTokenException of ExpiredTradeInTokenException.t
| `PackedPolicyTooLargeException of PackedPolicyTooLargeException.t
| `RegionDisabledException of RegionDisabledException.t
| `Unknown_operation_error of string * string option ]val error_of_xml :
string ->
Awso.Xml.t ->
[> `ExpiredTradeInTokenException of ExpiredTradeInTokenException.t
| `PackedPolicyTooLargeException of PackedPolicyTooLargeException.t
| `RegionDisabledException of RegionDisabledException.t
| `Unknown_operation_error of string * string option ]val to_value :
t ->
[> `Structure of
(string
* [> `Structure of
(string
* [> `Integer of NonNegativeIntegerType.t
| `String of ArnType.t
| `Structure of
(string
* [> `String of AccessKeyIdType.t
| `Timestamp of DateType.t ])
list ])
list ])
list ]