datadog.ComplianceCustomFramework
Provides a Datadog Compliance Custom Framework resource, which is used to create and manage compliance custom frameworks.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as datadog from "@pulumi/datadog";
const framework = new datadog.ComplianceCustomFramework("framework", {
    name: "my-custom-framework-terraform-2",
    version: "2.0.0",
    handle: "my-custom-framework-terraform-2",
    requirements: [
        {
            name: "requirement2",
            controls: [
                {
                    name: "control2",
                    rulesIds: [
                        "def-000-h9o",
                        "def-000-b6i",
                        "def-000-yed",
                        "def-000-h5a",
                        "def-000-aw5",
                    ],
                },
                {
                    name: "control1",
                    rulesIds: [
                        "def-000-j9v",
                        "def-000-465",
                        "def-000-vq1",
                        "def-000-4hf",
                        "def-000-s2d",
                        "def-000-vnl",
                    ],
                },
            ],
        },
        {
            name: "requirement1",
            controls: [
                {
                    name: "control2",
                    rulesIds: [
                        "def-000-wuf",
                        "def-000-7og",
                    ],
                },
                {
                    name: "control5",
                    rulesIds: [
                        "def-000-mdt",
                        "def-000-zrx",
                        "def-000-z6k",
                    ],
                },
            ],
        },
    ],
});
import pulumi
import pulumi_datadog as datadog
framework = datadog.ComplianceCustomFramework("framework",
    name="my-custom-framework-terraform-2",
    version="2.0.0",
    handle="my-custom-framework-terraform-2",
    requirements=[
        {
            "name": "requirement2",
            "controls": [
                {
                    "name": "control2",
                    "rules_ids": [
                        "def-000-h9o",
                        "def-000-b6i",
                        "def-000-yed",
                        "def-000-h5a",
                        "def-000-aw5",
                    ],
                },
                {
                    "name": "control1",
                    "rules_ids": [
                        "def-000-j9v",
                        "def-000-465",
                        "def-000-vq1",
                        "def-000-4hf",
                        "def-000-s2d",
                        "def-000-vnl",
                    ],
                },
            ],
        },
        {
            "name": "requirement1",
            "controls": [
                {
                    "name": "control2",
                    "rules_ids": [
                        "def-000-wuf",
                        "def-000-7og",
                    ],
                },
                {
                    "name": "control5",
                    "rules_ids": [
                        "def-000-mdt",
                        "def-000-zrx",
                        "def-000-z6k",
                    ],
                },
            ],
        },
    ])
package main
import (
	"github.com/pulumi/pulumi-datadog/sdk/v4/go/datadog"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := datadog.NewComplianceCustomFramework(ctx, "framework", &datadog.ComplianceCustomFrameworkArgs{
			Name:    pulumi.String("my-custom-framework-terraform-2"),
			Version: pulumi.String("2.0.0"),
			Handle:  pulumi.String("my-custom-framework-terraform-2"),
			Requirements: datadog.ComplianceCustomFrameworkRequirementArray{
				&datadog.ComplianceCustomFrameworkRequirementArgs{
					Name: pulumi.String("requirement2"),
					Controls: datadog.ComplianceCustomFrameworkRequirementControlArray{
						&datadog.ComplianceCustomFrameworkRequirementControlArgs{
							Name: pulumi.String("control2"),
							RulesIds: pulumi.StringArray{
								pulumi.String("def-000-h9o"),
								pulumi.String("def-000-b6i"),
								pulumi.String("def-000-yed"),
								pulumi.String("def-000-h5a"),
								pulumi.String("def-000-aw5"),
							},
						},
						&datadog.ComplianceCustomFrameworkRequirementControlArgs{
							Name: pulumi.String("control1"),
							RulesIds: pulumi.StringArray{
								pulumi.String("def-000-j9v"),
								pulumi.String("def-000-465"),
								pulumi.String("def-000-vq1"),
								pulumi.String("def-000-4hf"),
								pulumi.String("def-000-s2d"),
								pulumi.String("def-000-vnl"),
							},
						},
					},
				},
				&datadog.ComplianceCustomFrameworkRequirementArgs{
					Name: pulumi.String("requirement1"),
					Controls: datadog.ComplianceCustomFrameworkRequirementControlArray{
						&datadog.ComplianceCustomFrameworkRequirementControlArgs{
							Name: pulumi.String("control2"),
							RulesIds: pulumi.StringArray{
								pulumi.String("def-000-wuf"),
								pulumi.String("def-000-7og"),
							},
						},
						&datadog.ComplianceCustomFrameworkRequirementControlArgs{
							Name: pulumi.String("control5"),
							RulesIds: pulumi.StringArray{
								pulumi.String("def-000-mdt"),
								pulumi.String("def-000-zrx"),
								pulumi.String("def-000-z6k"),
							},
						},
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Datadog = Pulumi.Datadog;
return await Deployment.RunAsync(() => 
{
    var framework = new Datadog.ComplianceCustomFramework("framework", new()
    {
        Name = "my-custom-framework-terraform-2",
        Version = "2.0.0",
        Handle = "my-custom-framework-terraform-2",
        Requirements = new[]
        {
            new Datadog.Inputs.ComplianceCustomFrameworkRequirementArgs
            {
                Name = "requirement2",
                Controls = new[]
                {
                    new Datadog.Inputs.ComplianceCustomFrameworkRequirementControlArgs
                    {
                        Name = "control2",
                        RulesIds = new[]
                        {
                            "def-000-h9o",
                            "def-000-b6i",
                            "def-000-yed",
                            "def-000-h5a",
                            "def-000-aw5",
                        },
                    },
                    new Datadog.Inputs.ComplianceCustomFrameworkRequirementControlArgs
                    {
                        Name = "control1",
                        RulesIds = new[]
                        {
                            "def-000-j9v",
                            "def-000-465",
                            "def-000-vq1",
                            "def-000-4hf",
                            "def-000-s2d",
                            "def-000-vnl",
                        },
                    },
                },
            },
            new Datadog.Inputs.ComplianceCustomFrameworkRequirementArgs
            {
                Name = "requirement1",
                Controls = new[]
                {
                    new Datadog.Inputs.ComplianceCustomFrameworkRequirementControlArgs
                    {
                        Name = "control2",
                        RulesIds = new[]
                        {
                            "def-000-wuf",
                            "def-000-7og",
                        },
                    },
                    new Datadog.Inputs.ComplianceCustomFrameworkRequirementControlArgs
                    {
                        Name = "control5",
                        RulesIds = new[]
                        {
                            "def-000-mdt",
                            "def-000-zrx",
                            "def-000-z6k",
                        },
                    },
                },
            },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.datadog.ComplianceCustomFramework;
import com.pulumi.datadog.ComplianceCustomFrameworkArgs;
import com.pulumi.datadog.inputs.ComplianceCustomFrameworkRequirementArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        var framework = new ComplianceCustomFramework("framework", ComplianceCustomFrameworkArgs.builder()
            .name("my-custom-framework-terraform-2")
            .version("2.0.0")
            .handle("my-custom-framework-terraform-2")
            .requirements(            
                ComplianceCustomFrameworkRequirementArgs.builder()
                    .name("requirement2")
                    .controls(                    
                        ComplianceCustomFrameworkRequirementControlArgs.builder()
                            .name("control2")
                            .rulesIds(                            
                                "def-000-h9o",
                                "def-000-b6i",
                                "def-000-yed",
                                "def-000-h5a",
                                "def-000-aw5")
                            .build(),
                        ComplianceCustomFrameworkRequirementControlArgs.builder()
                            .name("control1")
                            .rulesIds(                            
                                "def-000-j9v",
                                "def-000-465",
                                "def-000-vq1",
                                "def-000-4hf",
                                "def-000-s2d",
                                "def-000-vnl")
                            .build())
                    .build(),
                ComplianceCustomFrameworkRequirementArgs.builder()
                    .name("requirement1")
                    .controls(                    
                        ComplianceCustomFrameworkRequirementControlArgs.builder()
                            .name("control2")
                            .rulesIds(                            
                                "def-000-wuf",
                                "def-000-7og")
                            .build(),
                        ComplianceCustomFrameworkRequirementControlArgs.builder()
                            .name("control5")
                            .rulesIds(                            
                                "def-000-mdt",
                                "def-000-zrx",
                                "def-000-z6k")
                            .build())
                    .build())
            .build());
    }
}
resources:
  framework:
    type: datadog:ComplianceCustomFramework
    properties:
      name: my-custom-framework-terraform-2
      version: 2.0.0
      handle: my-custom-framework-terraform-2
      requirements:
        - name: requirement2
          controls:
            - name: control2
              rulesIds:
                - def-000-h9o
                - def-000-b6i
                - def-000-yed
                - def-000-h5a
                - def-000-aw5
            - name: control1
              rulesIds:
                - def-000-j9v
                - def-000-465
                - def-000-vq1
                - def-000-4hf
                - def-000-s2d
                - def-000-vnl
        - name: requirement1
          controls:
            - name: control2
              rulesIds:
                - def-000-wuf
                - def-000-7og
            - name: control5
              rulesIds:
                - def-000-mdt
                - def-000-zrx
                - def-000-z6k
Create ComplianceCustomFramework Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ComplianceCustomFramework(name: string, args: ComplianceCustomFrameworkArgs, opts?: CustomResourceOptions);@overload
def ComplianceCustomFramework(resource_name: str,
                              args: ComplianceCustomFrameworkArgs,
                              opts: Optional[ResourceOptions] = None)
@overload
def ComplianceCustomFramework(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              handle: Optional[str] = None,
                              name: Optional[str] = None,
                              version: Optional[str] = None,
                              icon_url: Optional[str] = None,
                              requirements: Optional[Sequence[ComplianceCustomFrameworkRequirementArgs]] = None)func NewComplianceCustomFramework(ctx *Context, name string, args ComplianceCustomFrameworkArgs, opts ...ResourceOption) (*ComplianceCustomFramework, error)public ComplianceCustomFramework(string name, ComplianceCustomFrameworkArgs args, CustomResourceOptions? opts = null)
public ComplianceCustomFramework(String name, ComplianceCustomFrameworkArgs args)
public ComplianceCustomFramework(String name, ComplianceCustomFrameworkArgs args, CustomResourceOptions options)
type: datadog:ComplianceCustomFramework
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ComplianceCustomFrameworkArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ComplianceCustomFrameworkArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ComplianceCustomFrameworkArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ComplianceCustomFrameworkArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ComplianceCustomFrameworkArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var complianceCustomFrameworkResource = new Datadog.ComplianceCustomFramework("complianceCustomFrameworkResource", new()
{
    Handle = "string",
    Name = "string",
    Version = "string",
    IconUrl = "string",
    Requirements = new[]
    {
        new Datadog.Inputs.ComplianceCustomFrameworkRequirementArgs
        {
            Name = "string",
            Controls = new[]
            {
                new Datadog.Inputs.ComplianceCustomFrameworkRequirementControlArgs
                {
                    Name = "string",
                    RulesIds = new[]
                    {
                        "string",
                    },
                },
            },
        },
    },
});
example, err := datadog.NewComplianceCustomFramework(ctx, "complianceCustomFrameworkResource", &datadog.ComplianceCustomFrameworkArgs{
	Handle:  pulumi.String("string"),
	Name:    pulumi.String("string"),
	Version: pulumi.String("string"),
	IconUrl: pulumi.String("string"),
	Requirements: datadog.ComplianceCustomFrameworkRequirementArray{
		&datadog.ComplianceCustomFrameworkRequirementArgs{
			Name: pulumi.String("string"),
			Controls: datadog.ComplianceCustomFrameworkRequirementControlArray{
				&datadog.ComplianceCustomFrameworkRequirementControlArgs{
					Name: pulumi.String("string"),
					RulesIds: pulumi.StringArray{
						pulumi.String("string"),
					},
				},
			},
		},
	},
})
var complianceCustomFrameworkResource = new ComplianceCustomFramework("complianceCustomFrameworkResource", ComplianceCustomFrameworkArgs.builder()
    .handle("string")
    .name("string")
    .version("string")
    .iconUrl("string")
    .requirements(ComplianceCustomFrameworkRequirementArgs.builder()
        .name("string")
        .controls(ComplianceCustomFrameworkRequirementControlArgs.builder()
            .name("string")
            .rulesIds("string")
            .build())
        .build())
    .build());
compliance_custom_framework_resource = datadog.ComplianceCustomFramework("complianceCustomFrameworkResource",
    handle="string",
    name="string",
    version="string",
    icon_url="string",
    requirements=[{
        "name": "string",
        "controls": [{
            "name": "string",
            "rules_ids": ["string"],
        }],
    }])
const complianceCustomFrameworkResource = new datadog.ComplianceCustomFramework("complianceCustomFrameworkResource", {
    handle: "string",
    name: "string",
    version: "string",
    iconUrl: "string",
    requirements: [{
        name: "string",
        controls: [{
            name: "string",
            rulesIds: ["string"],
        }],
    }],
});
type: datadog:ComplianceCustomFramework
properties:
    handle: string
    iconUrl: string
    name: string
    requirements:
        - controls:
            - name: string
              rulesIds:
                - string
          name: string
    version: string
ComplianceCustomFramework Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ComplianceCustomFramework resource accepts the following input properties:
- Handle string
- The framework handle. String length must be at least 1. This field is immutable.
- Name string
- The framework name. String length must be at least 1.
- Version string
- The framework version. String length must be at least 1. This field is immutable.
- IconUrl string
- The URL of the icon representing the framework
- Requirements
List<ComplianceCustom Framework Requirement> 
- The requirements of the framework. Length must be at least 1.
- Handle string
- The framework handle. String length must be at least 1. This field is immutable.
- Name string
- The framework name. String length must be at least 1.
- Version string
- The framework version. String length must be at least 1. This field is immutable.
- IconUrl string
- The URL of the icon representing the framework
- Requirements
[]ComplianceCustom Framework Requirement Args 
- The requirements of the framework. Length must be at least 1.
- handle String
- The framework handle. String length must be at least 1. This field is immutable.
- name String
- The framework name. String length must be at least 1.
- version String
- The framework version. String length must be at least 1. This field is immutable.
- iconUrl String
- The URL of the icon representing the framework
- requirements
List<ComplianceCustom Framework Requirement> 
- The requirements of the framework. Length must be at least 1.
- handle string
- The framework handle. String length must be at least 1. This field is immutable.
- name string
- The framework name. String length must be at least 1.
- version string
- The framework version. String length must be at least 1. This field is immutable.
- iconUrl string
- The URL of the icon representing the framework
- requirements
ComplianceCustom Framework Requirement[] 
- The requirements of the framework. Length must be at least 1.
- handle str
- The framework handle. String length must be at least 1. This field is immutable.
- name str
- The framework name. String length must be at least 1.
- version str
- The framework version. String length must be at least 1. This field is immutable.
- icon_url str
- The URL of the icon representing the framework
- requirements
Sequence[ComplianceCustom Framework Requirement Args] 
- The requirements of the framework. Length must be at least 1.
- handle String
- The framework handle. String length must be at least 1. This field is immutable.
- name String
- The framework name. String length must be at least 1.
- version String
- The framework version. String length must be at least 1. This field is immutable.
- iconUrl String
- The URL of the icon representing the framework
- requirements List<Property Map>
- The requirements of the framework. Length must be at least 1.
Outputs
All input properties are implicitly available as output properties. Additionally, the ComplianceCustomFramework resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing ComplianceCustomFramework Resource
Get an existing ComplianceCustomFramework resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ComplianceCustomFrameworkState, opts?: CustomResourceOptions): ComplianceCustomFramework@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        handle: Optional[str] = None,
        icon_url: Optional[str] = None,
        name: Optional[str] = None,
        requirements: Optional[Sequence[ComplianceCustomFrameworkRequirementArgs]] = None,
        version: Optional[str] = None) -> ComplianceCustomFrameworkfunc GetComplianceCustomFramework(ctx *Context, name string, id IDInput, state *ComplianceCustomFrameworkState, opts ...ResourceOption) (*ComplianceCustomFramework, error)public static ComplianceCustomFramework Get(string name, Input<string> id, ComplianceCustomFrameworkState? state, CustomResourceOptions? opts = null)public static ComplianceCustomFramework get(String name, Output<String> id, ComplianceCustomFrameworkState state, CustomResourceOptions options)resources:  _:    type: datadog:ComplianceCustomFramework    get:      id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Handle string
- The framework handle. String length must be at least 1. This field is immutable.
- IconUrl string
- The URL of the icon representing the framework
- Name string
- The framework name. String length must be at least 1.
- Requirements
List<ComplianceCustom Framework Requirement> 
- The requirements of the framework. Length must be at least 1.
- Version string
- The framework version. String length must be at least 1. This field is immutable.
- Handle string
- The framework handle. String length must be at least 1. This field is immutable.
- IconUrl string
- The URL of the icon representing the framework
- Name string
- The framework name. String length must be at least 1.
- Requirements
[]ComplianceCustom Framework Requirement Args 
- The requirements of the framework. Length must be at least 1.
- Version string
- The framework version. String length must be at least 1. This field is immutable.
- handle String
- The framework handle. String length must be at least 1. This field is immutable.
- iconUrl String
- The URL of the icon representing the framework
- name String
- The framework name. String length must be at least 1.
- requirements
List<ComplianceCustom Framework Requirement> 
- The requirements of the framework. Length must be at least 1.
- version String
- The framework version. String length must be at least 1. This field is immutable.
- handle string
- The framework handle. String length must be at least 1. This field is immutable.
- iconUrl string
- The URL of the icon representing the framework
- name string
- The framework name. String length must be at least 1.
- requirements
ComplianceCustom Framework Requirement[] 
- The requirements of the framework. Length must be at least 1.
- version string
- The framework version. String length must be at least 1. This field is immutable.
- handle str
- The framework handle. String length must be at least 1. This field is immutable.
- icon_url str
- The URL of the icon representing the framework
- name str
- The framework name. String length must be at least 1.
- requirements
Sequence[ComplianceCustom Framework Requirement Args] 
- The requirements of the framework. Length must be at least 1.
- version str
- The framework version. String length must be at least 1. This field is immutable.
- handle String
- The framework handle. String length must be at least 1. This field is immutable.
- iconUrl String
- The URL of the icon representing the framework
- name String
- The framework name. String length must be at least 1.
- requirements List<Property Map>
- The requirements of the framework. Length must be at least 1.
- version String
- The framework version. String length must be at least 1. This field is immutable.
Supporting Types
ComplianceCustomFrameworkRequirement, ComplianceCustomFrameworkRequirementArgs        
- Name string
- The name of the requirement. String length must be at least 1.
- Controls
List<ComplianceCustom Framework Requirement Control> 
- The controls of the requirement. Length must be at least 1.
- Name string
- The name of the requirement. String length must be at least 1.
- Controls
[]ComplianceCustom Framework Requirement Control 
- The controls of the requirement. Length must be at least 1.
- name String
- The name of the requirement. String length must be at least 1.
- controls
List<ComplianceCustom Framework Requirement Control> 
- The controls of the requirement. Length must be at least 1.
- name string
- The name of the requirement. String length must be at least 1.
- controls
ComplianceCustom Framework Requirement Control[] 
- The controls of the requirement. Length must be at least 1.
- name str
- The name of the requirement. String length must be at least 1.
- controls
Sequence[ComplianceCustom Framework Requirement Control] 
- The controls of the requirement. Length must be at least 1.
- name String
- The name of the requirement. String length must be at least 1.
- controls List<Property Map>
- The controls of the requirement. Length must be at least 1.
ComplianceCustomFrameworkRequirementControl, ComplianceCustomFrameworkRequirementControlArgs          
Package Details
- Repository
- Datadog pulumi/pulumi-datadog
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the datadogTerraform Provider.
