Skip to content

googleEssentialContactsContact

A contact that will receive notifications from Google Cloud.

To get more information about Contact, see:

\~> Warning: If you are using User ADCs (Application Default Credentials) with this resource, you must specify a billingProject and set userProjectOverride to true in the provider configuration. Otherwise the Essential Contacts API will return a 403 error. Your account must have the serviceusageServicesUse permission on the billingProject you defined.

Example Usage - Essential Contact

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as google from "./.gen/providers/google";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: google.
For a more precise conversion please use the --provider flag in convert.*/
const dataGoogleProjectProject = new google.dataGoogleProject.DataGoogleProject(
  this,
  "project",
  {}
);
new google.essentialContactsContact.EssentialContactsContact(this, "contact", {
  email: "foo@bar.com",
  language_tag: "en-GB",
  notification_category_subscriptions: ["ALL"],
  parent: dataGoogleProjectProject.id,
});

Argument Reference

The following arguments are supported:

  • email - (Required) The email address to send notifications to. This does not need to be a Google account.

  • notificationCategorySubscriptions - (Required) The categories of notifications that the contact will receive communications for.

  • languageTag - (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}


Attributes Reference

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}

Timeouts

This resource provides the following Timeouts configuration options:

  • create - Default is 20 minutes.
  • update - Default is 20 minutes.
  • delete - Default is 20 minutes.

Import

Contact can be imported using any of these accepted formats:

$ terraform import google_essential_contacts_contact.default {{name}}