Show / Hide Table of Contents

Class Contact

Manages the subscription's Security Center Contact.

NOTE: Owner access permission is required.

Example Usage

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
public MyStack()
{
    var example = new Azure.SecurityCenter.Contact("example", new Azure.SecurityCenter.ContactArgs
    {
        AlertNotifications = true,
        AlertsToAdmins = true,
        Email = "contact@example.com",
        Phone = "+1-555-555-5555",
    });
}

}
Inheritance
System.Object
Resource
CustomResource
Contact
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Azure.SecurityCenter
Assembly: Pulumi.Azure.dll
Syntax
public class Contact : CustomResource

Constructors

View Source

Contact(String, ContactArgs, CustomResourceOptions)

Create a Contact resource with the given unique name, arguments, and options.

Declaration
public Contact(string name, ContactArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

ContactArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

AlertNotifications

Whether to send security alerts notifications to the security contact.

Declaration
public Output<bool> AlertNotifications { get; }
Property Value
Type Description
Output<System.Boolean>
View Source

AlertsToAdmins

Whether to send security alerts notifications to subscription admins.

Declaration
public Output<bool> AlertsToAdmins { get; }
Property Value
Type Description
Output<System.Boolean>
View Source

Email

The email of the Security Center Contact.

Declaration
public Output<string> Email { get; }
Property Value
Type Description
Output<System.String>
View Source

Phone

The phone number of the Security Center Contact.

Declaration
public Output<string> Phone { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, ContactState, CustomResourceOptions)

Get an existing Contact resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static Contact Get(string name, Input<string> id, ContactState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

ContactState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
Contact
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.