Method: Aws::STS::Client#get_caller_identity
- Defined in:
- lib/aws-sdk-sts/client.rb
#get_caller_identity(params = {}) ⇒ Types::GetCallerIdentityResponse
Returns details about the IAM user or role whose credentials are used to call the operation.
<note markdown=“1”> No permissions are required to perform this operation. If an administrator attaches a policy to your identity that explicitly denies access to the ‘sts:GetCallerIdentity` action, you can still perform this operation. Permissions are not required because the same information is returned when access is denied. To view an example response, see [I Am Not Authorized to Perform: iam:DeleteVirtualMFADevice] in the *IAM User Guide*.
</note>
2095 2096 2097 2098 |
# File 'lib/aws-sdk-sts/client.rb', line 2095 def get_caller_identity(params = {}, = {}) req = build_request(:get_caller_identity, params) req.send_request() end |