|
| 1 | +--- |
| 2 | +# generated by https://github.com/hashicorp/terraform-plugin-docs |
| 3 | +page_title: "datadog_compliance_custom_framework Resource - terraform-provider-datadog" |
| 4 | +subcategory: "" |
| 5 | +description: |- |
| 6 | + Provides a Datadog Compliance Custom Framework resource, which is used to create and manage compliance custom frameworks. |
| 7 | +--- |
| 8 | + |
| 9 | +# datadog_compliance_custom_framework (Resource) |
| 10 | + |
| 11 | +Provides a Datadog Compliance Custom Framework resource, which is used to create and manage compliance custom frameworks. |
| 12 | + |
| 13 | +## Example Usage |
| 14 | + |
| 15 | +```terraform |
| 16 | +resource "datadog_compliance_custom_framework" "example" { |
| 17 | + version = "1" |
| 18 | + handle = "new-terraform-framework-handle" |
| 19 | + name = "new-terraform-framework" |
| 20 | + icon_url = "https://example.com/icon.png" |
| 21 | + description = "This is a test I created this resource through terraform" |
| 22 | + requirements { |
| 23 | + name = "requirement1" |
| 24 | + controls { |
| 25 | + name = "control1" |
| 26 | + rules_id = ["aaa-000-ccc", "bbb-000-ddd"] |
| 27 | + } |
| 28 | + controls { |
| 29 | + name = "control2" |
| 30 | + rules_id = ["aaa-000-lll"] |
| 31 | + } |
| 32 | + } |
| 33 | + requirements { |
| 34 | + name = "requirement2" |
| 35 | + controls { |
| 36 | + name = "control3" |
| 37 | + rules_id = ["aaa-000-zzz"] |
| 38 | + } |
| 39 | + } |
| 40 | +} |
| 41 | +``` |
| 42 | + |
| 43 | +<!-- schema generated by tfplugindocs --> |
| 44 | +## Schema |
| 45 | + |
| 46 | +### Required |
| 47 | + |
| 48 | +- `handle` (String) The framework handle. String length must be at least 1. |
| 49 | +- `name` (String) The framework name. String length must be at least 1. |
| 50 | +- `version` (String) The framework version. String length must be at least 1. |
| 51 | + |
| 52 | +### Optional |
| 53 | + |
| 54 | +- `description` (String) The description of the framework. |
| 55 | +- `icon_url` (String) The URL of the icon representing the framework. |
| 56 | +- `requirements` (Block Set) The requirements of the framework. (see [below for nested schema](#nestedblock--requirements)) |
| 57 | + |
| 58 | +### Read-Only |
| 59 | + |
| 60 | +- `id` (String) The ID of the compliance custom framework resource. |
| 61 | + |
| 62 | +<a id="nestedblock--requirements"></a> |
| 63 | +### Nested Schema for `requirements` |
| 64 | + |
| 65 | +Required: |
| 66 | + |
| 67 | +- `name` (String) The name of the requirement. String length must be at least 1. |
| 68 | + |
| 69 | +Optional: |
| 70 | + |
| 71 | +- `controls` (Block Set) The controls of the requirement. (see [below for nested schema](#nestedblock--requirements--controls)) |
| 72 | + |
| 73 | +<a id="nestedblock--requirements--controls"></a> |
| 74 | +### Nested Schema for `requirements.controls` |
| 75 | + |
| 76 | +Required: |
| 77 | + |
| 78 | +- `name` (String) The name of the control. String length must be at least 1. |
| 79 | +- `rules_id` (Set of String) The list of rules IDs for the control. |
| 80 | + |
| 81 | +## Import |
| 82 | + |
| 83 | +Import is supported using the following syntax: |
| 84 | + |
| 85 | +```shell |
| 86 | +terraform import datadog_custom_framework.example3 "terraform-created-framework-handle-1.0.0" |
| 87 | +``` |
0 commit comments