A contact that will receive notifications from Google Cloud.
To get more information about Contact, see:
data "google_project" "project" {
}
resource "google_essential_contacts_contact" "contact" {
parent = data.google_project.project.id
email = "foo@bar.com"
language_tag = "en-GB"
notification_category_subscriptions = ["ALL"]
}
The following arguments are supported:
email
-
(Required)
The email address to send notifications to. This does not need to be a Google account.
notification_category_subscriptions
-
(Required)
The categories of notifications that the contact will receive communications for.
language_tag
-
(Required)
The preferred language for notifications, as a ISO 639-1 language code. See Supported languages for a list of supported languages.
parent
-
(Required)
The resource to save this contact for. Format: organizations/{organization_id}, folders/{folder_id} or projects/{project_id}
In addition to the arguments listed above, the following computed attributes are exported:
id
- an identifier for the resource with format {{name}}
name
-
The identifier for the contact. Format: {resourceType}/{resource_id}/contacts/{contact_id}
This resource provides the following Timeouts configuration options:
create
- Default is 20 minutes.update
- Default is 20 minutes.delete
- Default is 20 minutes.Contact can be imported using any of these accepted formats:
{{name}}
In Terraform v1.5.0 and later, use an import
block to import Contact using one of the formats above. For example:
import {
id = "{{name}}"
to = google_essential_contacts_contact.default
}
When using the terraform import
command, Contact can be imported using one of the formats above. For example:
$ terraform import google_essential_contacts_contact.default {{name}}