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

References

https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/sts.html#STS.Client.get_caller_identity

See also