Skip to content

Data Source: awsAuditmanagerControl

Terraform data source for managing an AWS Audit Manager Control.

Example Usage

Basic 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.dataAwsAuditmanagerControl.DataAwsAuditmanagerControl(this, "example", {
  name: "1. Risk Management",
  type: "Standard",
});

With Framework Resource

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
const dataAwsAuditmanagerControlExample =
  new aws.dataAwsAuditmanagerControl.DataAwsAuditmanagerControl(
    this,
    "example",
    {
      name: "1. Risk Management",
      type: "Standard",
    }
  );
const dataAwsAuditmanagerControlExample2 =
  new aws.dataAwsAuditmanagerControl.DataAwsAuditmanagerControl(
    this,
    "example2",
    {
      name: "2. Personnel",
      type: "Standard",
    }
  );
const awsAuditmanagerFrameworkExample =
  new aws.auditmanagerFramework.AuditmanagerFramework(this, "example_2", {
    controlSets: [
      {
        controls: [
          {
            id: dataAwsAuditmanagerControlExample.id,
          },
        ],
        name: "example",
      },
      {
        controls: [
          {
            id: dataAwsAuditmanagerControlExample2.id,
          },
        ],
        name: "example2",
      },
    ],
    name: "example",
  });
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
awsAuditmanagerFrameworkExample.overrideLogicalId("example");

Argument Reference

The following arguments are required:

  • name - (Required) Name of the control.
  • type - (Required) Type of control. Valid values are custom and standard.

Attributes Reference

See the awsAuditmanagerControl resource for details on the returned attributes - they are identical.