Returns details about the IAM user or role whose credentials are used to call the operation

sts_whoami()

Value

list with UserId, Account and Arn

See also