Data source
aws.sts.CallerIdentity
This is a data source (read-only). Use with the read keyword.
Example
let _ = read aws.sts.CallerIdentity {}
Attributes
account_id
- Type:
AwsAccountId (pattern: /^[0-9]{12}$/ (Full), len: 12..=12) - Read-only
The Amazon Web Services account ID number of the account that owns or contains the calling entity.
arn
- Type:
Arn (identity constraints: pattern: /^arn:(?:aws|aws-cn|aws-us-gov|aws-iso|aws-iso-b|aws-iso-e|aws-iso-f|aws-eusc):sts:.*$/ (Full), member constraints: pattern: /^[\u0009\u000A\u000D\u0020-\u007E\u0085\u00A0-\uD7FF\uE000-\uFFFD\u10000-\u10FFFF]+$/ (Full), len: 20..=2048) - Read-only
The Amazon Web Services ARN associated with the calling entity.
user_id
- Type:
String - Read-only
The unique identifier of the calling entity.