Data Source: awsIamInstanceProfiles
This data source can be used to fetch information about all IAM instance profiles under a role. By using this data source, you can reference IAM instance profile 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.dataAwsIamInstanceProfiles.DataAwsIamInstanceProfiles(this, "example", {
roleName: "an_example_iam_role_name",
});
Argument Reference
roleName
- (Required) IAM role name.
Attributes Reference
arns
- Set of ARNs of instance profiles.names
- Set of IAM instance profile names.paths
- Set of IAM instance profile paths.