Skip to content

Data Source: awsRamResourceShare

awsRamResourceShare Retrieve information about a RAM Resource Share.

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.dataAwsRamResourceShare.DataAwsRamResourceShare(this, "example", {
  name: "example",
  resourceOwner: "SELF",
});

Search by filters

/*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.dataAwsRamResourceShare.DataAwsRamResourceShare(this, "tag_filter", {
  filter: [
    {
      name: "NameOfTag",
      values: ["exampleNameTagValue"],
    },
  ],
  name: "MyResourceName",
  resourceOwner: "SELF",
});

Argument Reference

The following Arguments are supported

  • name - (Required) Name of the resource share to retrieve.

  • resourceOwner (Required) Owner of the resource share. Valid values are self or otherAccounts.

  • resourceShareStatus (Optional) Specifies that you want to retrieve details of only those resource shares that have this status. Valid values are pending, active, failed, deleting, and deleted.

  • filter - (Optional) Filter used to scope the list e.g., by tags. See [related docs] (https://docs.aws.amazon.com/ram/latest/APIReference/API_TagFilter.html).

    • name - (Required) Name of the tag key to filter on.
    • values - (Required) Value of the tag key.

Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • arn - ARN of the resource share.
  • id - ARN of the resource share.
  • status - Status of the RAM share.
  • owningAccountId - ID of the AWS account that owns the resource share.
  • tags - Tags attached to the RAM share