ContactArgs

data class ContactArgs(val email: Output<String>? = null, val languageTag: Output<String>? = null, val notificationCategorySubscriptions: Output<List<String>>? = null, val parent: Output<String>? = null) : ConvertibleToJava<ContactArgs>

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

Example Usage

Essential Contact

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.organizations.OrganizationsFunctions;
import com.pulumi.gcp.organizations.inputs.GetProjectArgs;
import com.pulumi.gcp.essentialcontacts.Contact;
import com.pulumi.gcp.essentialcontacts.ContactArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var project = OrganizationsFunctions.getProject();
var contact = new Contact("contact", ContactArgs.builder()
.parent(project.applyValue(getProjectResult -> getProjectResult.id()))
.email("foo@bar.com")
.languageTag("en-GB")
.notificationCategorySubscriptions("ALL")
.build());
}
}

Import

Contact can be imported using any of these accepted formats:

$ pulumi import gcp:essentialcontacts/contact:Contact default {{name}}

Constructors

Link copied to clipboard
constructor(email: Output<String>? = null, languageTag: Output<String>? = null, notificationCategorySubscriptions: Output<List<String>>? = null, parent: Output<String>? = null)

Properties

Link copied to clipboard
val email: Output<String>? = null

The email address to send notifications to. This does not need to be a Google account.

Link copied to clipboard
val languageTag: Output<String>? = null

The preferred language for notifications, as a ISO 639-1 language code. See Supported languages for a list of supported languages.

Link copied to clipboard

The categories of notifications that the contact will receive communications for.

Link copied to clipboard
val parent: Output<String>? = null

The resource to save this contact for. Format: organizations/{organization_id}, folders/{folder_id} or projects/{project_id}

Functions

Link copied to clipboard
open override fun toJava(): ContactArgs