datadog_restriction_policy (Resource)

Provides a Datadog RestrictionPolicy resource. This can be used to create and manage Datadog restriction policies.

Example Usage

# Create new restriction_policy resource


resource "datadog_restriction_policy" "foo" {
  resource_id = "security-rule:abc-def-ghi"
  bindings {
    principals = ["role:00000000-0000-1111-0000-000000000000"]
    relation   = "editor"
  }
  bindings {
    principals = ["org:10000000-0000-1111-0000-000000000000"]
    relation   = "viewer"
  }
}

Schema

Required

Note: Dashboards support is in private beta. Reach out to your Datadog contact or support to enable this.

Optional

Read-Only

Nested Schema for bindings

Required:

Import

Import is supported using the following syntax:

terraform import datadog_restriction_policy.new_list ""