Data Source: awsIamRole
This data source can be used to fetch information about a specific IAM role. By using this data source, you can reference IAM role properties without having to hard code ARNs 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.dataAwsIamRole.DataAwsIamRole(this, "example", {
name: "an_example_role_name",
});
Argument Reference
name
- (Required) Friendly IAM role name to match.
Attributes Reference
id
- Friendly IAM role name to match.arn
- ARN of the role.assumeRolePolicy
- Policy document associated with the role.createDate
- Creation date of the role in RFC 3339 format.description
- Description for the role.maxSessionDuration
- Maximum session duration.path
- Path to the role.permissionsBoundary
- The ARN of the policy that is used to set the permissions boundary for the role.uniqueId
- Stable and unique string identifying the role.tags
- Tags attached to the role.