Share via


Topic Constructors

Definition

Overloads

Topic()

Initializes a new instance of the Topic class.

Topic(String, String, String, String, IDictionary<String,String>, IList<PrivateEndpointConnection>, String, String, String, InputSchemaMapping, String, String, IList<InboundIpRule>, Nullable<Boolean>, String, IdentityInfo, SystemData)

Initializes a new instance of the Topic class.

Topic()

Initializes a new instance of the Topic class.

public Topic ();
Public Sub New ()

Applies to

Topic(String, String, String, String, IDictionary<String,String>, IList<PrivateEndpointConnection>, String, String, String, InputSchemaMapping, String, String, IList<InboundIpRule>, Nullable<Boolean>, String, IdentityInfo, SystemData)

Initializes a new instance of the Topic class.

public Topic (string location, string id = default, string name = default, string type = default, System.Collections.Generic.IDictionary<string,string> tags = default, System.Collections.Generic.IList<Microsoft.Azure.Management.EventGrid.Models.PrivateEndpointConnection> privateEndpointConnections = default, string provisioningState = default, string endpoint = default, string inputSchema = default, Microsoft.Azure.Management.EventGrid.Models.InputSchemaMapping inputSchemaMapping = default, string metricResourceId = default, string publicNetworkAccess = default, System.Collections.Generic.IList<Microsoft.Azure.Management.EventGrid.Models.InboundIpRule> inboundIpRules = default, bool? disableLocalAuth = default, string dataResidencyBoundary = default, Microsoft.Azure.Management.EventGrid.Models.IdentityInfo identity = default, Microsoft.Azure.Management.EventGrid.Models.SystemData systemData = default);
new Microsoft.Azure.Management.EventGrid.Models.Topic : string * string * string * string * System.Collections.Generic.IDictionary<string, string> * System.Collections.Generic.IList<Microsoft.Azure.Management.EventGrid.Models.PrivateEndpointConnection> * string * string * string * Microsoft.Azure.Management.EventGrid.Models.InputSchemaMapping * string * string * System.Collections.Generic.IList<Microsoft.Azure.Management.EventGrid.Models.InboundIpRule> * Nullable<bool> * string * Microsoft.Azure.Management.EventGrid.Models.IdentityInfo * Microsoft.Azure.Management.EventGrid.Models.SystemData -> Microsoft.Azure.Management.EventGrid.Models.Topic
Public Sub New (location As String, Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional privateEndpointConnections As IList(Of PrivateEndpointConnection) = Nothing, Optional provisioningState As String = Nothing, Optional endpoint As String = Nothing, Optional inputSchema As String = Nothing, Optional inputSchemaMapping As InputSchemaMapping = Nothing, Optional metricResourceId As String = Nothing, Optional publicNetworkAccess As String = Nothing, Optional inboundIpRules As IList(Of InboundIpRule) = Nothing, Optional disableLocalAuth As Nullable(Of Boolean) = Nothing, Optional dataResidencyBoundary As String = Nothing, Optional identity As IdentityInfo = Nothing, Optional systemData As SystemData = Nothing)

Parameters

location
String

Location of the resource.

id
String

Fully qualified identifier of the resource.

name
String

Name of the resource.

type
String

Type of the resource.

tags
IDictionary<String,String>

Tags of the resource.

privateEndpointConnections
IList<PrivateEndpointConnection>
provisioningState
String

Provisioning state of the topic. Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Canceled', 'Failed'

endpoint
String

Endpoint for the topic.

inputSchema
String

This determines the format that Event Grid should expect for incoming events published to the topic. Possible values include: 'EventGridSchema', 'CustomEventSchema', 'CloudEventSchemaV1_0'

inputSchemaMapping
InputSchemaMapping

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.

metricResourceId
String

Metric resource id for the topic.

publicNetworkAccess
String

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" />. Possible values include: 'Enabled', 'Disabled'

inboundIpRules
IList<InboundIpRule>

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

disableLocalAuth
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
String

Data Residency Boundary of the resource. Possible values include: 'WithinGeopair', 'WithinRegion'

identity
IdentityInfo

Identity information for the resource.

systemData
SystemData

The system metadata relating to Topic resource.

Applies to