Skip to main content

governance_control_notification_settings

Creates, updates, deletes, gets or lists a governance_control_notification_settings resource.

Overview

Namegovernance_control_notification_settings
TypeResource
Iddatadog.organization.governance_control_notification_settings

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe detection type the notification settings apply to. (example: unused_api_keys)
attributesobjectThe attributes of a governance control's notification settings.
typestringControl notification settings resource type. (control_notification_settings) (example: control_notification_settings)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_governance_control_notification_settingsselectdetection_typeRetrieve the notification settings for the governance control with the given detection type,<br />including, for each supported event type, whether notifications are enabled and which<br />destinations receive them.
update_governance_control_notification_settingsreplacedetection_type, dataReplace the notification settings for the governance control with the given detection type,<br />setting, for each supported event type, whether notifications are enabled and which<br />destinations receive them.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
detection_typestringThe detection type that identifies the control; for example, unused_api_keys. (example: unused_api_keys)
sitestringThe Datadog site (region) for your organization, for example datadoghq.com, us3.datadoghq.com, us5.datadoghq.com, ap1.datadoghq.com, ap2.datadoghq.com, datadoghq.eu, ddog-gov.com. Resolved from the DD_SITE environment variable when set. Optional: defaults to datadoghq.com, or the value of the DD_SITE environment variable when set; a WHERE value overrides both.

SELECT examples

Retrieve the notification settings for the governance control with the given detection type,<br />including, for each supported event type, whether notifications are enabled and which<br />destinations receive them.

SELECT
id,
attributes,
type
FROM datadog.organization.governance_control_notification_settings
WHERE detection_type = '{{ detection_type }}' -- required
;

REPLACE examples

Replace the notification settings for the governance control with the given detection type,<br />setting, for each supported event type, whether notifications are enabled and which<br />destinations receive them.

REPLACE datadog.organization.governance_control_notification_settings
SET
data = '{{ data }}'
WHERE
detection_type = '{{ detection_type }}' --required
AND data = '{{ data }}' --required
RETURNING
data;