forked from moneyforwardvietnam/terraform-datadog-monitor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
36 lines (27 loc) · 887 Bytes
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# https://registry.terraform.io/providers/DataDog/datadog/latest/docs/resources/child_organization
# https://github.com/hashicorp/cdktf-provider-datadog/blob/main/API.md
locals {
enabled = module.this.enabled
}
resource "datadog_organization_settings" "default" {
count = local.enabled ? 1 : 0
name = var.organization_name
settings {
saml {
# Free and Trial organizations cannot enable SAML
enabled = var.saml_enabled
}
saml_autocreate_users_domains {
domains = var.saml_autocreate_users_domains
enabled = var.saml_autocreate_users_enabled
}
saml_strict_mode {
enabled = var.saml_strict_mode_enabled
}
saml_idp_initiated_login {
enabled = var.saml_idp_initiated_login_enabled
}
private_widget_share = var.private_widget_share
saml_autocreate_access_role = var.saml_autocreate_access_role
}
}