Contact
A contact that will receive notifications from Google Cloud. To get more information about Contact, see:
How-to Guides
Warning: If you are using User ADCs (Application Default Credentials) with this resource, you must specify a
billing_project
and setuser_project_override
to true in the provider configuration. Otherwise the Essential Contacts API will return a 403 error. Your account must have theserviceusage.services.use
permission on thebilling_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());
}
}
Content copied to clipboard
Import
Contact can be imported using any of these accepted formats:
$ pulumi import gcp:essentialcontacts/contact:Contact default {{name}}
Content copied to clipboard
Properties
Link copied to clipboard
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
Link copied to clipboard
Link copied to clipboard