sts_get_caller_identity: Returns details about the IAM identity whose credentials are...

Description Usage Request syntax Examples

View source: R/sts_operations.R

Description

Returns details about the IAM identity whose credentials are used to call the API.

Usage

1

Request syntax

1
svc$get_caller_identity()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
# This example shows a request and response made with the credentials for
# a user named Alice in the AWS account 123456789012.
svc$get_caller_identity()

# This example shows a request and response made with temporary
# credentials created by AssumeRole. The name of the assumed role is
# my-role-name, and the RoleSessionName is set to my-role-session-name.
svc$get_caller_identity()

# This example shows a request and response made with temporary
# credentials created by using GetFederationToken. The Name parameter is
# set to my-federated-user-name.
svc$get_caller_identity()

paws.security.identity documentation built on Oct. 30, 2019, 11:26 a.m.