ArmSecurityCenterModelFactory.SecurityContactData Method

Definition

Initializes a new instance of SecurityContactData.

public static Azure.ResourceManager.SecurityCenter.SecurityContactData SecurityContactData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, string emails = default, string phone = default, Azure.ResourceManager.SecurityCenter.Models.SecurityContactPropertiesAlertNotifications alertNotifications = default, Azure.ResourceManager.SecurityCenter.Models.SecurityContactPropertiesNotificationsByRole notificationsByRole = default);
static member SecurityContactData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * string * string * Azure.ResourceManager.SecurityCenter.Models.SecurityContactPropertiesAlertNotifications * Azure.ResourceManager.SecurityCenter.Models.SecurityContactPropertiesNotificationsByRole -> Azure.ResourceManager.SecurityCenter.SecurityContactData
Public Shared Function SecurityContactData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional emails As String = Nothing, Optional phone As String = Nothing, Optional alertNotifications As SecurityContactPropertiesAlertNotifications = Nothing, Optional notificationsByRole As SecurityContactPropertiesNotificationsByRole = Nothing) As SecurityContactData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

emails
String

List of email addresses which will get notifications from Microsoft Defender for Cloud by the configurations defined in this security contact.

phone
String

The security contact's phone number.

alertNotifications
SecurityContactPropertiesAlertNotifications

Defines whether to send email notifications about new security alerts.

notificationsByRole
SecurityContactPropertiesNotificationsByRole

Defines whether to send email notifications from Microsoft Defender for Cloud to persons with specific RBAC roles on the subscription.

Returns

A new SecurityContactData instance for mocking.

Applies to