Skip to content

azurermSecurityCenterContact

Manages the subscription's Security Center Contact.

\~> NOTE: Owner access permission is required.

Example Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as azurerm from "./.gen/providers/azurerm";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: azurerm.
For a more precise conversion please use the --provider flag in convert.*/
new azurerm.securityCenterContact.SecurityCenterContact(this, "example", {
  alert_notifications: true,
  alerts_to_admins: true,
  email: "contact@example.com",
  name: "contact",
  phone: "+1-555-555-5555",
});

Argument Reference

The following arguments are supported:

  • alertNotifications - (Required) Whether to send security alerts notifications to the security contact.

  • alertsToAdmins - (Required) Whether to send security alerts notifications to subscription admins.

  • email - (Required) The email of the Security Center Contact.

  • name - (Optional) The name of the Security Center Contact. Defaults to default1.

  • phone - (Optional) The phone number of the Security Center Contact.

Attributes Reference

The following attributes are exported:

  • id - The Security Center Contact ID.

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

  • create - (Defaults to 60 minutes) Used when creating the Security Center Contact.
  • update - (Defaults to 60 minutes) Used when updating the Security Center Contact.
  • read - (Defaults to 5 minutes) Used when retrieving the Security Center Contact.
  • delete - (Defaults to 60 minutes) Used when deleting the Security Center Contact.

Import

The contact can be imported using the resourceId, e.g.

terraform import azurerm_security_center_contact.example /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Security/securityContacts/default1