oci_identity_domains_notification_setting

This resource provides the Notification Setting resource in Oracle Cloud Infrastructure Identity Domains service.

Replace Notification Settings

Example Usage

resource "oci_identity_domains_notification_setting" "test_notification_setting" {
	#Required
	event_settings {
		#Required
		event_id = "admin.user.create.success"

		#Optional
		enabled = var.notification_setting_event_settings_enabled
	}
	from_email_address {
		#Required
		validate = var.notification_setting_from_email_address_validate
		value = var.notification_setting_from_email_address_value

		#Optional
		display_name = var.notification_setting_from_email_address_display_name
	}
	idcs_endpoint = data.oci_identity_domain.test_domain.url
	notification_enabled = var.notification_setting_notification_enabled
	notification_setting_id = oci_identity_domains_notification_setting.test_notification_setting.id
	schemas = ["urn:ietf:params:scim:schemas:oracle:idcs:NotificationSettings"]

	#Optional
	attribute_sets = ["all"]
	attributes = ""
	authorization = var.notification_setting_authorization
	external_id = "externalId"
	id = var.notification_setting_id
	ocid = var.notification_setting_ocid
	resource_type_schema_version = var.notification_setting_resource_type_schema_version
	send_notification_to_old_and_new_primary_emails_when_admin_changes_primary_email = var.notification_setting_send_notification_to_old_and_new_primary_emails_when_admin_changes_primary_email
	send_notifications_to_secondary_email = var.notification_setting_send_notifications_to_secondary_email
	tags {
		#Required
		key = var.notification_setting_tags_key
		value = var.notification_setting_tags_value
	}
	test_mode_enabled = var.notification_setting_test_mode_enabled
	test_recipients = var.notification_setting_test_recipients
}

Argument Reference

The following arguments are supported:

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain operations: * create - (Defaults to 20 minutes), when creating the Notification Setting * update - (Defaults to 20 minutes), when updating the Notification Setting * delete - (Defaults to 20 minutes), when destroying the Notification Setting

Import

NotificationSettings can be imported using the id, e.g.

$ terraform import oci_identity_domains_notification_setting.test_notification_setting "idcsEndpoint/{idcsEndpoint}/notificationSettings/{notificationSettingId}"