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",
});
}
}
Inherited Members
Namespace: Pulumi.Azure.SecurityCenter
Assembly: Pulumi.Azure.dll
Syntax
public class Contact : CustomResource
Constructors
View SourceContact(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 SourceAlertNotifications
Whether to send security alerts notifications to the security contact.
Declaration
public Output<bool> AlertNotifications { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Boolean> |
AlertsToAdmins
Whether to send security alerts notifications to subscription admins.
Declaration
public Output<bool> AlertsToAdmins { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Boolean> |
The email of the Security Center Contact.
Declaration
public Output<string> Email { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Phone
The phone number of the Security Center Contact.
Declaration
public Output<string> Phone { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(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 |