Skip to content

Data Source: awsCloudcontrolapiResource

Provides details for a Cloud Control API Resource. The reading of these resources is proxied through Cloud Control API handlers to the backend service.

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.dataAwsCloudcontrolapiResource.DataAwsCloudcontrolapiResource(
  this,
  "example",
  {
    identifier: "example",
    typeName: "AWS::ECS::Cluster",
  }
);

Argument Reference

The following arguments are required:

  • identifier - (Required) Identifier of the CloudFormation resource type. For example, vpc12345678.
  • typeName - (Required) CloudFormation resource type name. For example, aws::ec2::vpc.

The following arguments are optional:

  • roleArn - (Optional) ARN of the IAM Role to assume for operations.
  • typeVersionId - (Optional) Identifier of the CloudFormation resource type version.

Attributes Reference

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

  • properties - JSON string matching the CloudFormation resource type schema with current configuration. Underlying attributes can be referenced via the jsondecode() function, for example, jsondecode(dataAwsCloudcontrolapiResourceExampleProperties)["example"].