Get Federation Token

GET {{aws_security_token_service_aws_sts_base_url}}/?DurationSeconds&Name&Policy&PolicyArns.member.N&Tags.member.N&Version=2011-06-15

Request Params

KeyDatatypeRequiredDescription
DurationSecondsnullThe duration, in seconds, that the session should last. Acceptable durations for federation sessions range from 900 seconds (15 minutes) to 129,600 seconds (36 hours), with 43,200 seconds (12 hours) as the default. Sessions obtained using AWS account root user credentials are restricted to a maximum of 3,600 seconds (one hour). If the specified duration is longer than one hour, the session obtained by using root user credentials defaults to one hour.
NamenullThe name of the federated user. The name is used as an identifier for the temporary security credentials (such as Bob). For example, you can reference the federated user name in a resource-based policy, such as in an Amazon S3 bucket policy.
PolicynullAn IAM policy in JSON format that you want to use as an inline session policy.
PolicyArns.member.NnullThe Amazon Resource Names (ARNs) of the IAM managed policies that you want to use as a managed session policy. The policies must exist in the same account as the IAM user that is requesting federated access.
Tags.member.NnullA list of session tags. Each session tag consists of a key name and an associated value. For more information about session tags, see Passing Session Tags in STS in the IAM User Guide.
VersionstringThe version of the API.