caller_identity#
Exec module for caller identity.
- async idem_aws.exec.aws.sts.caller_identity.get(hub, ctx) Dict[str, Any] [source]#
Returns details about the IAM user whose credentials are used to call the operation.
- Returns:
Return the identity details such as UserId, Account, and ARN about the IAM user
- Return type:
Dict[str, Any]
Examples
Call from the CLI:
$ idem exec aws.sts.caller_identity.get
Call from code:
async def my_func(hub, ctx): await hub.exec.aws.sts.caller_identity.get(ctx)
Using in a state:
my_unmanaged_resource: exec.run: - path: aws.sts.caller_identity.get