ArmEventGridModelFactory.EventGridTopicData Method

Definition

Initializes a new instance of EventGridTopicData.

public static Azure.ResourceManager.EventGrid.EventGridTopicData EventGridTopicData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, System.Collections.Generic.IDictionary<string,string> tags = default, Azure.Core.AzureLocation location = default, Azure.ResourceManager.EventGrid.Models.EventGridSku? skuName = default, Azure.ResourceManager.Models.ManagedServiceIdentity identity = default, Azure.ResourceManager.EventGrid.Models.ResourceKind? kind = default, Azure.ResourceManager.Resources.Models.ExtendedLocation extendedLocation = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.EventGrid.EventGridPrivateEndpointConnectionData> privateEndpointConnections = default, Azure.ResourceManager.EventGrid.Models.EventGridTopicProvisioningState? provisioningState = default, Uri endpoint = default, Azure.ResourceManager.EventGrid.Models.PartnerTopicEventTypeInfo eventTypeInfo = default, Azure.ResourceManager.EventGrid.Models.TlsVersion? minimumTlsVersionAllowed = default, Azure.ResourceManager.EventGrid.Models.EventGridInputSchema? inputSchema = default, Azure.ResourceManager.EventGrid.Models.EventGridInputSchemaMapping inputSchemaMapping = default, string metricResourceId = default, Azure.ResourceManager.EventGrid.Models.EventGridPublicNetworkAccess? publicNetworkAccess = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.EventGrid.Models.EventGridInboundIPRule> inboundIPRules = default, bool? isLocalAuthDisabled = default, Azure.ResourceManager.EventGrid.Models.DataResidencyBoundary? dataResidencyBoundary = default);
static member EventGridTopicData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * System.Collections.Generic.IDictionary<string, string> * Azure.Core.AzureLocation * Nullable<Azure.ResourceManager.EventGrid.Models.EventGridSku> * Azure.ResourceManager.Models.ManagedServiceIdentity * Nullable<Azure.ResourceManager.EventGrid.Models.ResourceKind> * Azure.ResourceManager.Resources.Models.ExtendedLocation * seq<Azure.ResourceManager.EventGrid.EventGridPrivateEndpointConnectionData> * Nullable<Azure.ResourceManager.EventGrid.Models.EventGridTopicProvisioningState> * Uri * Azure.ResourceManager.EventGrid.Models.PartnerTopicEventTypeInfo * Nullable<Azure.ResourceManager.EventGrid.Models.TlsVersion> * Nullable<Azure.ResourceManager.EventGrid.Models.EventGridInputSchema> * Azure.ResourceManager.EventGrid.Models.EventGridInputSchemaMapping * string * Nullable<Azure.ResourceManager.EventGrid.Models.EventGridPublicNetworkAccess> * seq<Azure.ResourceManager.EventGrid.Models.EventGridInboundIPRule> * Nullable<bool> * Nullable<Azure.ResourceManager.EventGrid.Models.DataResidencyBoundary> -> Azure.ResourceManager.EventGrid.EventGridTopicData
Public Shared Function EventGridTopicData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional location As AzureLocation = Nothing, Optional skuName As Nullable(Of EventGridSku) = Nothing, Optional identity As ManagedServiceIdentity = Nothing, Optional kind As Nullable(Of ResourceKind) = Nothing, Optional extendedLocation As ExtendedLocation = Nothing, Optional privateEndpointConnections As IEnumerable(Of EventGridPrivateEndpointConnectionData) = Nothing, Optional provisioningState As Nullable(Of EventGridTopicProvisioningState) = Nothing, Optional endpoint As Uri = Nothing, Optional eventTypeInfo As PartnerTopicEventTypeInfo = Nothing, Optional minimumTlsVersionAllowed As Nullable(Of TlsVersion) = Nothing, Optional inputSchema As Nullable(Of EventGridInputSchema) = Nothing, Optional inputSchemaMapping As EventGridInputSchemaMapping = Nothing, Optional metricResourceId As String = Nothing, Optional publicNetworkAccess As Nullable(Of EventGridPublicNetworkAccess) = Nothing, Optional inboundIPRules As IEnumerable(Of EventGridInboundIPRule) = Nothing, Optional isLocalAuthDisabled As Nullable(Of Boolean) = Nothing, Optional dataResidencyBoundary As Nullable(Of DataResidencyBoundary) = Nothing) As EventGridTopicData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

tags
IDictionary<String,String>

The tags.

location
AzureLocation

The location.

skuName
Nullable<EventGridSku>

The Sku pricing tier for the topic.

identity
ManagedServiceIdentity

Identity information for the resource.

kind
Nullable<ResourceKind>

Kind of the resource.

extendedLocation
ExtendedLocation

Extended location of the resource.

privateEndpointConnections
IEnumerable<EventGridPrivateEndpointConnectionData>

List of private endpoint connections.

provisioningState
Nullable<EventGridTopicProvisioningState>

Provisioning state of the topic.

endpoint
Uri

Endpoint for the topic.

eventTypeInfo
PartnerTopicEventTypeInfo

Event Type Information for the user topic. This information is provided by the publisher and can be used by the subscriber to view different types of events that are published.

minimumTlsVersionAllowed
Nullable<TlsVersion>

Minimum TLS version of the publisher allowed to publish to this topic.

inputSchema
Nullable<EventGridInputSchema>

This determines the format that Event Grid should expect for incoming events published to the topic.

inputSchemaMapping
EventGridInputSchemaMapping

This enables publishing using custom event schemas. An InputSchemaMapping can be specified to map various properties of a source schema to various required properties of the EventGridEvent schema. Please note EventGridInputSchemaMapping 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 EventGridJsonInputSchemaMapping.

metricResourceId
String

Metric resource id for the topic.

publicNetworkAccess
Nullable<EventGridPublicNetworkAccess>

This determines if traffic is allowed over public network. By default it is enabled. You can further restrict to specific IPs by configuring <seealso cref="P:Microsoft.Azure.Events.ResourceProvider.Common.Contracts.TopicProperties.InboundIpRules" />

inboundIPRules
IEnumerable<EventGridInboundIPRule>

This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if PublicNetworkAccess is enabled.

isLocalAuthDisabled
Nullable<Boolean>

This boolean is used to enable or disable local auth. Default value is false. When the property is set to true, only AAD token will be used to authenticate if user is allowed to publish to the topic.

dataResidencyBoundary
Nullable<DataResidencyBoundary>

Data Residency Boundary of the resource.

Returns

A new EventGridTopicData instance for mocking.

Applies to