Data Source: awsIamUser
This data source can be used to fetch information about a specific IAM user. By using this data source, you can reference IAM user properties without having to hard code ARNs or unique IDs as input.
Example Usage
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.dataAwsIamUser.DataAwsIamUser(this, "example", {
userName: "an_example_user_name",
});
Argument Reference
userName
- (Required) Friendly IAM user name to match.
Attributes Reference
arn
- ARN assigned by AWS for this user.path
- Path in which this user was created.permissionsBoundary
- The ARN of the policy that is used to set the permissions boundary for the user.userId
- Unique ID assigned by AWS for this user.userName
- Name associated to this Usertags
- Map of key-value pairs associated with the user.