Skip to content

Commit ac03605

Browse files
committed
changeexample to compliance custom framework
1 parent c3edec5 commit ac03605

File tree

5 files changed

+112
-91
lines changed

5 files changed

+112
-91
lines changed
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
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+
```

docs/resources/custom_framework.md

Lines changed: 0 additions & 80 deletions
This file was deleted.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
resource "datadog_compliance_custom_framework" "example" {
2+
version = "1"
3+
handle = "new-terraform-framework-handle"
4+
name = "new-terraform-framework"
5+
icon_url = "https://example.com/icon.png"
6+
description = "This is a test I created this resource through terraform"
7+
requirements {
8+
name = "requirement1"
9+
controls {
10+
name = "control1"
11+
rules_id = ["aaa-000-ccc", "bbb-000-ddd"]
12+
}
13+
controls {
14+
name = "control2"
15+
rules_id = ["aaa-000-lll"]
16+
}
17+
}
18+
requirements {
19+
name = "requirement2"
20+
controls {
21+
name = "control3"
22+
rules_id = ["aaa-000-zzz"]
23+
}
24+
}
25+
}

examples/resources/datadog_custom_framework/variables.tf

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)