ArmSecurityCenterModelFactory.SecurityContactPropertiesNotificationsByRole Method

Definition

public static Azure.ResourceManager.SecurityCenter.Models.SecurityContactPropertiesNotificationsByRole SecurityContactPropertiesNotificationsByRole(Azure.ResourceManager.SecurityCenter.Models.SecurityAlertNotificationByRoleState? state = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.SecurityCenter.Models.SecurityAlertReceivingRole> roles = default);
static member SecurityContactPropertiesNotificationsByRole : Nullable<Azure.ResourceManager.SecurityCenter.Models.SecurityAlertNotificationByRoleState> * seq<Azure.ResourceManager.SecurityCenter.Models.SecurityAlertReceivingRole> -> Azure.ResourceManager.SecurityCenter.Models.SecurityContactPropertiesNotificationsByRole
Public Shared Function SecurityContactPropertiesNotificationsByRole (Optional state As Nullable(Of SecurityAlertNotificationByRoleState) = Nothing, Optional roles As IEnumerable(Of SecurityAlertReceivingRole) = Nothing) As SecurityContactPropertiesNotificationsByRole

Parameters

state
Nullable<SecurityAlertNotificationByRoleState>

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

roles
IEnumerable<SecurityAlertReceivingRole>

Defines which RBAC roles will get email notifications from Microsoft Defender for Cloud. List of allowed RBAC roles:.

Returns

A new SecurityContactPropertiesNotificationsByRole instance for mocking.

Applies to