Set the AWS_SECURITY_TOKEN attribute of the Identity object for IAM with temporary credentials.
AWS_SECURITY_TOKEN
Identity