ContactArgs

data class ContactArgs(val alertNotifications: Output<Boolean>? = null, val alertsToAdmins: Output<Boolean>? = null, val email: Output<String>? = null, val name: Output<String>? = null, val phone: Output<String>? = null) : ConvertibleToJava<ContactArgs>

Manages the subscription's Security Center Contact.

NOTE: Owner access permission is required.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.securitycenter.Contact("example", {
name: "contact",
email: "contact@example.com",
phone: "+1-555-555-5555",
alertNotifications: true,
alertsToAdmins: true,
});
import pulumi
import pulumi_azure as azure
example = azure.securitycenter.Contact("example",
name="contact",
email="contact@example.com",
phone="+1-555-555-5555",
alert_notifications=True,
alerts_to_admins=True)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = new Azure.SecurityCenter.Contact("example", new()
{
Name = "contact",
Email = "contact@example.com",
Phone = "+1-555-555-5555",
AlertNotifications = true,
AlertsToAdmins = true,
});
});
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/securitycenter"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := securitycenter.NewContact(ctx, "example", &securitycenter.ContactArgs{
Name: pulumi.String("contact"),
Email: pulumi.String("contact@example.com"),
Phone: pulumi.String("+1-555-555-5555"),
AlertNotifications: pulumi.Bool(true),
AlertsToAdmins: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.securitycenter.Contact;
import com.pulumi.azure.securitycenter.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) {
var example = new Contact("example", ContactArgs.builder()
.name("contact")
.email("contact@example.com")
.phone("+1-555-555-5555")
.alertNotifications(true)
.alertsToAdmins(true)
.build());
}
}
resources:
example:
type: azure:securitycenter:Contact
properties:
name: contact
email: contact@example.com
phone: +1-555-555-5555
alertNotifications: true
alertsToAdmins: true

Import

Security Center Contacts can be imported using the resource id, e.g.

$ pulumi import azure:securitycenter/contact:Contact example /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Security/securityContacts/default1

Constructors

Link copied to clipboard
constructor(alertNotifications: Output<Boolean>? = null, alertsToAdmins: Output<Boolean>? = null, email: Output<String>? = null, name: Output<String>? = null, phone: Output<String>? = null)

Properties

Link copied to clipboard
val alertNotifications: Output<Boolean>? = null

Whether to send security alerts notifications to the security contact.

Link copied to clipboard
val alertsToAdmins: Output<Boolean>? = null

Whether to send security alerts notifications to subscription admins.

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

The email of the Security Center Contact.

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

The name of the Security Center Contact. Changing this forces a new Security Center Contact to be created.

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

The phone number of the Security Center Contact.

Functions

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