Contact

class Contact : KotlinCustomResource

Manages the subscription's Security Center Contact.

NOTE: Owner access permission is required.

Example Usage

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()
.alertNotifications(true)
.alertsToAdmins(true)
.email("contact@example.com")
.phone("+1-555-555-5555")
.build());
}
}

Import

The contact 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

Properties

Link copied to clipboard

Whether to send security alerts notifications to the security contact.

Link copied to clipboard
val alertsToAdmins: Output<Boolean>

Whether to send security alerts notifications to subscription admins.

Link copied to clipboard
val email: Output<String>

The email of the Security Center Contact.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

The name of the Security Center Contact. Defaults to default1.

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

The phone number of the Security Center Contact.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val urn: Output<String>