Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Essentials Contacts resource #8426

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .changelog/4469.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:new-resource
`google_essential_contacts_contact`
```
5 changes: 5 additions & 0 deletions website/docs/r/cloud_identity_group.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ description: |-
A Cloud Identity resource representing a Group.


To get more information about Group, see:

* [API documentation](https://cloud.google.com/identity/docs/reference/rest/v1beta1/groups)
* How-to Guides
* [Official Documentation](https://cloud.google.com/identity/docs/how-to/setup)

~> **Warning:** If you are using User ADCs (Application Default Credentials) with this resource,
you must specify a `billing_project` and set `user_project_override` to true
Expand Down
5 changes: 5 additions & 0 deletions website/docs/r/cloud_identity_group_membership.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ description: |-
A Membership defines a relationship between a Group and an entity belonging to that Group, referred to as a "member".


To get more information about GroupMembership, see:

* [API documentation](https://cloud.google.com/identity/docs/reference/rest/v1/groups.memberships)
* How-to Guides
* [Official Documentation](https://cloud.google.com/identity/docs/how-to/memberships-google-groups)

~> **Warning:** If you are using User ADCs (Application Default Credentials) with this resource,
you must specify a `billing_project` and set `user_project_override` to true
Expand Down
116 changes: 116 additions & 0 deletions website/docs/r/essential_contacts_contact.html.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
---
# ----------------------------------------------------------------------------
#
# *** AUTO GENERATED CODE *** AUTO GENERATED CODE ***
#
# ----------------------------------------------------------------------------
#
# This file is automatically generated by Magic Modules and manual
# changes will be clobbered when the file is regenerated.
#
# Please read more about how to change this file in
# .github/CONTRIBUTING.md.
#
# ----------------------------------------------------------------------------
subcategory: "Essential Contacts"
layout: "google"
page_title: "Google: google_essential_contacts_contact"
sidebar_current: "docs-google-essential-contacts-contact"
description: |-
A contact that will receive notifications from Google Cloud.
---

# google\_essential\_contacts\_contact

A contact that will receive notifications from Google Cloud.

~> **Warning:** This resource is in beta, and should be used with the terraform-provider-google-beta provider.
See [Provider Versions](https://terraform.io/docs/providers/google/guides/provider_versions.html) for more details on beta resources.

To get more information about Contact, see:

* [API documentation](https://cloud.google.com/resource-manager/docs/reference/essentialcontacts/rest/v1beta1/projects.contacts)
* How-to Guides
* [Official Documentation](https://cloud.google.com/resource-manager/docs/managing-notification-contacts)

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

<div class = "oics-button" style="float: right; margin: 0 0 -15px">
<a href="https://console.cloud.google.com/cloudshell/open?cloudshell_git_repo=https%3A%2F%2Fgithub.com%2Fterraform-google-modules%2Fdocs-examples.git&cloudshell_working_dir=essential_contact&cloudshell_image=gcr.io%2Fgraphite-cloud-shell-images%2Fterraform%3Alatest&open_in_editor=main.tf&cloudshell_print=.%2Fmotd&cloudshell_tutorial=.%2Ftutorial.md" target="_blank">
<img alt="Open in Cloud Shell" src="//gstatic.com/cloudssh/images/open-btn.svg" style="max-height: 44px; margin: 32px auto; max-width: 100%;">
</a>
</div>
## Example Usage - Essential Contact


```hcl
data "google_project" "project" {
provider = google-beta
}

resource "google_essential_contacts_contact" "contact" {
provider = google-beta
parent = data.google_project.project.id
email = "[email protected]"
language_tag = "en-GB"
notification_category_subscriptions = ["ALL"]
}
```

## 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.

* `notification_category_subscriptions` -
(Required)
The categories of notifications that the contact will receive communications for.

* `parent` -
(Required)
The resource to save this contact for. Format: organizations/{organization_id}, folders/{folder_id} or projects/{project_id}


- - -


* `language_tag` -
(Optional)
The preferred language for notifications, as a ISO 639-1 language code. See Supported languages for a list of supported languages.


## 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](/docs/configuration/resources.html#timeouts) configuration options:

- `create` - Default is 4 minutes.
- `update` - Default is 4 minutes.
- `delete` - Default is 4 minutes.

## Import


Contact can be imported using any of these accepted formats:

```
$ terraform import google_essential_contacts_contact.default {{name}}
```
16 changes: 16 additions & 0 deletions website/google.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2181,6 +2181,22 @@
</ul>
</li>

<li>
<a href="#">Essential Contacts</a>
<ul class="nav">
<li>
<a href="#">Resources</a>
<ul class="nav nav-auto-expand">

<li>
<a href="/docs/providers/google/r/essential_contacts_contact.html">google_essential_contacts_contact</a>
</li>

</ul>
</li>
</ul>
</li>

<li>
<a href="#">Filestore</a>
<ul class="nav">
Expand Down