Module Values.GetDelegatedAccessTokenResponseSource

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.

Sourcetype getDelegatedAccessTokenResult = {
  1. credentials : Credentials.t option;
  2. 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.

    *)
  3. 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.

    *)
}
Sourceand responseMetaData = unit
Sourceand t = {
  1. getDelegatedAccessTokenResult : getDelegatedAccessTokenResult;
  2. responseMetaData : responseMetaData;
}
Sourcetype error = [
  1. | `ExpiredTradeInTokenException of ExpiredTradeInTokenException.t
  2. | `PackedPolicyTooLargeException of PackedPolicyTooLargeException.t
  3. | `RegionDisabledException of RegionDisabledException.t
  4. | `Unknown_operation_error of string * string option
]
Sourceval context_ : string
Sourceval make : ?credentials:??? -> ?packedPolicySize:??? -> ?assumedPrincipal:??? -> unit -> t
Sourceval 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 ]
Sourceval 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 ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval 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 ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t