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",
});
}
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/securitycenter"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err = securitycenter.NewContact(ctx, "example", &securitycenter.ContactArgs{
AlertNotifications: pulumi.Bool(true),
AlertsToAdmins: pulumi.Bool(true),
Email: pulumi.String("contact@example.com"),
Phone: pulumi.String("+1-555-555-5555"),
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_azure as azure
example = azure.securitycenter.Contact("example",
alert_notifications=True,
alerts_to_admins=True,
email="contact@example.com",
phone="+1-555-555-5555")import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.securitycenter.Contact("example", {
alertNotifications: true,
alertsToAdmins: true,
email: "contact@example.com",
phone: "+1-555-555-5555",
});Create a Contact Resource
new Contact(name: string, args: ContactArgs, opts?: CustomResourceOptions);def Contact(resource_name, opts=None, alert_notifications=None, alerts_to_admins=None, email=None, phone=None, __props__=None);func NewContact(ctx *Context, name string, args ContactArgs, opts ...ResourceOption) (*Contact, error)public Contact(string name, ContactArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args ContactArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ContactArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ContactArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Contact Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Contact resource accepts the following input properties:
- Alert
Notifications bool Whether to send security alerts notifications to the security contact.
- Alerts
To boolAdmins Whether to send security alerts notifications to subscription admins.
- Email string
The email of the Security Center Contact.
- Phone string
The phone number of the Security Center Contact.
- Alert
Notifications bool Whether to send security alerts notifications to the security contact.
- Alerts
To boolAdmins Whether to send security alerts notifications to subscription admins.
- Email string
The email of the Security Center Contact.
- Phone string
The phone number of the Security Center Contact.
- alert
Notifications boolean Whether to send security alerts notifications to the security contact.
- alerts
To booleanAdmins Whether to send security alerts notifications to subscription admins.
- email string
The email of the Security Center Contact.
- phone string
The phone number of the Security Center Contact.
- alert_
notifications bool Whether to send security alerts notifications to the security contact.
- alerts_
to_ booladmins Whether to send security alerts notifications to subscription admins.
- email str
The email of the Security Center Contact.
- phone str
The phone number of the Security Center Contact.
Outputs
All input properties are implicitly available as output properties. Additionally, the Contact resource produces the following output properties:
Look up an Existing Contact Resource
Get an existing Contact resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ContactState, opts?: CustomResourceOptions): Contactstatic get(resource_name, id, opts=None, alert_notifications=None, alerts_to_admins=None, email=None, phone=None, __props__=None);func GetContact(ctx *Context, name string, id IDInput, state *ContactState, opts ...ResourceOption) (*Contact, error)public static Contact Get(string name, Input<string> id, ContactState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Alert
Notifications bool Whether to send security alerts notifications to the security contact.
- Alerts
To boolAdmins Whether to send security alerts notifications to subscription admins.
- Email string
The email of the Security Center Contact.
- Phone string
The phone number of the Security Center Contact.
- Alert
Notifications bool Whether to send security alerts notifications to the security contact.
- Alerts
To boolAdmins Whether to send security alerts notifications to subscription admins.
- Email string
The email of the Security Center Contact.
- Phone string
The phone number of the Security Center Contact.
- alert
Notifications boolean Whether to send security alerts notifications to the security contact.
- alerts
To booleanAdmins Whether to send security alerts notifications to subscription admins.
- email string
The email of the Security Center Contact.
- phone string
The phone number of the Security Center Contact.
- alert_
notifications bool Whether to send security alerts notifications to the security contact.
- alerts_
to_ booladmins Whether to send security alerts notifications to subscription admins.
- email str
The email of the Security Center Contact.
- phone str
The phone number of the Security Center Contact.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.