-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
--- | ||
subcategory: "Audit Manager" | ||
layout: "aws" | ||
page_title: "AWS: aws_auditmanager_control" | ||
description: |- | ||
Terraform data source for managing an AWS Audit Manager Control. | ||
--- | ||
|
||
# Data Source: aws_auditmanager_control | ||
|
||
Terraform data source for managing an AWS Audit Manager Control. | ||
|
||
## Example Usage | ||
|
||
### Basic Usage | ||
|
||
```terraform | ||
data "aws_auditmanager_control" "example" { | ||
name = "1. Risk Management" | ||
type = "Standard" | ||
} | ||
``` | ||
|
||
### With Framework Resource | ||
|
||
```terraform | ||
data "aws_auditmanager_control" "example" { | ||
name = "1. Risk Management" | ||
type = "Standard" | ||
} | ||
data "aws_auditmanager_control" "example2" { | ||
name = "2. Personnel" | ||
type = "Standard" | ||
} | ||
resource "aws_auditmanager_framework" "example" { | ||
name = "example" | ||
control_sets { | ||
name = "example" | ||
controls { | ||
id = data.aws_auditmanager_control.example.id | ||
} | ||
} | ||
control_sets { | ||
name = "example2" | ||
controls { | ||
id = data.aws_auditmanager_control.example2.id | ||
} | ||
} | ||
} | ||
``` | ||
|
||
## 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 [`aws_auditmanager_control` resource](/docs/providers/aws/r/auditmanager_control.html) for details on the returned attributes - they are identical. |