aws sts get-federation-token
Returns a set of temporary security credentials (consisting of an access key ID, a secret access key, and a security token) for a user. AWS CLI reference
6 options Its page in the AWS CLI reference
Options
--duration-secondsThe duration, in seconds, that the session should last.--minimum-session-token-sizeThe minimum size, in bytes, of the session token that STS issues for the request.--nameThe name of the federated user.--policy-arnsThe Amazon Resource Names (ARNs) of the IAM managed policies that you want to use as a managed session policy.--policyAn IAM policy in JSON format that you want to use as an inline session policy.--tagsA list of session tags.