EventGridModelFactory.PolicyInsightsPolicyStateCreatedEventData Method

Definition

Initializes a new instance of PolicyInsightsPolicyStateCreatedEventData.

public static Azure.Messaging.EventGrid.SystemEvents.PolicyInsightsPolicyStateCreatedEventData PolicyInsightsPolicyStateCreatedEventData (DateTimeOffset? timestamp = default, string policyAssignmentId = default, string policyDefinitionId = default, string policyDefinitionReferenceId = default, string complianceState = default, string subscriptionId = default, string complianceReasonCode = default);
static member PolicyInsightsPolicyStateCreatedEventData : Nullable<DateTimeOffset> * string * string * string * string * string * string -> Azure.Messaging.EventGrid.SystemEvents.PolicyInsightsPolicyStateCreatedEventData
Public Shared Function PolicyInsightsPolicyStateCreatedEventData (Optional timestamp As Nullable(Of DateTimeOffset) = Nothing, Optional policyAssignmentId As String = Nothing, Optional policyDefinitionId As String = Nothing, Optional policyDefinitionReferenceId As String = Nothing, Optional complianceState As String = Nothing, Optional subscriptionId As String = Nothing, Optional complianceReasonCode As String = Nothing) As PolicyInsightsPolicyStateCreatedEventData

Parameters

timestamp
Nullable<DateTimeOffset>

The time that the resource was scanned by Azure Policy in the Universal ISO 8601 DateTime format yyyy-MM-ddTHH:mm:ss.fffffffZ.

policyAssignmentId
String

The resource ID of the policy assignment.

policyDefinitionId
String

The resource ID of the policy definition.

policyDefinitionReferenceId
String

The reference ID for the policy definition inside the initiative definition, if the policy assignment is for an initiative. May be empty.

complianceState
String

The compliance state of the resource with respect to the policy assignment.

subscriptionId
String

The subscription ID of the resource.

complianceReasonCode
String

The compliance reason code. May be empty.

Returns

A new PolicyInsightsPolicyStateCreatedEventData instance for mocking.

Applies to