Skip to content

Data Source: awsIamGroup

This data source can be used to fetch information about a specific IAM group. By using this data source, you can reference IAM group 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.dataAwsIamGroup.DataAwsIamGroup(this, "example", {
  groupName: "an_example_group_name",
});

Argument Reference

  • groupName - (Required) Friendly IAM group name to match.

Attributes Reference

  • arn - Group ARN.
  • groupId - Stable and unique string identifying the group.
  • path - Path to the group.
  • users - List of objects containing group member information. See below.

users

  • arn - User ARN.
  • path - Path to the IAM user.
  • userId - Stable and unique string identifying the IAM user.
  • userName - Name of the IAM user.