ArmEventGridModelFactory.EventGridSubscriptionData Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of EventGridSubscriptionData.
public static Azure.ResourceManager.EventGrid.EventGridSubscriptionData EventGridSubscriptionData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, string topic = default, Azure.ResourceManager.EventGrid.Models.EventSubscriptionProvisioningState? provisioningState = default, Azure.ResourceManager.EventGrid.Models.EventSubscriptionDestination destination = default, Azure.ResourceManager.EventGrid.Models.DeliveryWithResourceIdentity deliveryWithResourceIdentity = default, Azure.ResourceManager.EventGrid.Models.EventSubscriptionFilter filter = default, System.Collections.Generic.IEnumerable<string> labels = default, DateTimeOffset? expireOn = default, Azure.ResourceManager.EventGrid.Models.EventDeliverySchema? eventDeliverySchema = default, Azure.ResourceManager.EventGrid.Models.EventSubscriptionRetryPolicy retryPolicy = default, Azure.ResourceManager.EventGrid.Models.DeadLetterDestination deadLetterDestination = default, Azure.ResourceManager.EventGrid.Models.DeadLetterWithResourceIdentity deadLetterWithResourceIdentity = default);
static member EventGridSubscriptionData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * string * Nullable<Azure.ResourceManager.EventGrid.Models.EventSubscriptionProvisioningState> * Azure.ResourceManager.EventGrid.Models.EventSubscriptionDestination * Azure.ResourceManager.EventGrid.Models.DeliveryWithResourceIdentity * Azure.ResourceManager.EventGrid.Models.EventSubscriptionFilter * seq<string> * Nullable<DateTimeOffset> * Nullable<Azure.ResourceManager.EventGrid.Models.EventDeliverySchema> * Azure.ResourceManager.EventGrid.Models.EventSubscriptionRetryPolicy * Azure.ResourceManager.EventGrid.Models.DeadLetterDestination * Azure.ResourceManager.EventGrid.Models.DeadLetterWithResourceIdentity -> Azure.ResourceManager.EventGrid.EventGridSubscriptionData
Public Shared Function EventGridSubscriptionData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional topic As String = Nothing, Optional provisioningState As Nullable(Of EventSubscriptionProvisioningState) = Nothing, Optional destination As EventSubscriptionDestination = Nothing, Optional deliveryWithResourceIdentity As DeliveryWithResourceIdentity = Nothing, Optional filter As EventSubscriptionFilter = Nothing, Optional labels As IEnumerable(Of String) = Nothing, Optional expireOn As Nullable(Of DateTimeOffset) = Nothing, Optional eventDeliverySchema As Nullable(Of EventDeliverySchema) = Nothing, Optional retryPolicy As EventSubscriptionRetryPolicy = Nothing, Optional deadLetterDestination As DeadLetterDestination = Nothing, Optional deadLetterWithResourceIdentity As DeadLetterWithResourceIdentity = Nothing) As EventGridSubscriptionData
Parameters
The id.
- name
- String
The name.
- resourceType
- ResourceType
The resourceType.
- systemData
- SystemData
The systemData.
- topic
- String
Name of the topic of the event subscription.
- provisioningState
- Nullable<EventSubscriptionProvisioningState>
Provisioning state of the event subscription.
- destination
- EventSubscriptionDestination
Information about the destination where events have to be delivered for the event subscription. Uses Azure Event Grid's identity to acquire the authentication tokens being used during delivery / dead-lettering. Please note EventSubscriptionDestination is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include AzureFunctionEventSubscriptionDestination, EventHubEventSubscriptionDestination, HybridConnectionEventSubscriptionDestination, MonitorAlertEventSubscriptionDestination, NamespaceTopicEventSubscriptionDestination, PartnerEventSubscriptionDestination, ServiceBusQueueEventSubscriptionDestination, ServiceBusTopicEventSubscriptionDestination, StorageQueueEventSubscriptionDestination and WebHookEventSubscriptionDestination.
- deliveryWithResourceIdentity
- DeliveryWithResourceIdentity
Information about the destination where events have to be delivered for the event subscription. Uses the managed identity setup on the parent resource (namely, topic or domain) to acquire the authentication tokens being used during delivery / dead-lettering.
- filter
- EventSubscriptionFilter
Information about the filter for the event subscription.
- labels
- IEnumerable<String>
List of user defined labels.
- expireOn
- Nullable<DateTimeOffset>
Expiration time of the event subscription.
- eventDeliverySchema
- Nullable<EventDeliverySchema>
The event delivery schema for the event subscription.
- retryPolicy
- EventSubscriptionRetryPolicy
The retry policy for events. This can be used to configure maximum number of delivery attempts and time to live for events.
- deadLetterDestination
- DeadLetterDestination
The dead letter destination of the event subscription. Any event that cannot be delivered to its' destination is sent to the dead letter destination. Uses Azure Event Grid's identity to acquire the authentication tokens being used during delivery / dead-lettering. Please note DeadLetterDestination is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include StorageBlobDeadLetterDestination.
- deadLetterWithResourceIdentity
- DeadLetterWithResourceIdentity
The dead letter destination of the event subscription. Any event that cannot be delivered to its' destination is sent to the dead letter destination. Uses the managed identity setup on the parent resource (namely, topic or domain) to acquire the authentication tokens being used during delivery / dead-lettering.
Returns
A new EventGridSubscriptionData instance for mocking.
Applies to
Azure SDK for .NET