UNPKG

@pulumi/azure-native

Version:

[![Slack](http://www.pulumi.com/images/docs/badges/slack.svg)](https://slack.pulumi.com) [![NPM version](https://badge.fury.io/js/%40pulumi%2Fazure-native.svg)](https://npmjs.com/package/@pulumi/azure-native) [![Python version](https://badge.fury.io/py/pu

128 lines (127 loc) 4.84 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Get properties of a topic. * * Uses Azure REST API version 2025-02-15. * * Other available API versions: 2022-06-15, 2023-06-01-preview, 2023-12-15-preview, 2024-06-01-preview, 2024-12-15-preview, 2025-04-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native eventgrid [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare function getTopic(args: GetTopicArgs, opts?: pulumi.InvokeOptions): Promise<GetTopicResult>; export interface GetTopicArgs { /** * The name of the resource group within the user's subscription. */ resourceGroupName: string; /** * Name of the topic. */ topicName: string; } /** * EventGrid Topic */ export interface GetTopicResult { /** * The Azure API version of the resource. */ readonly azureApiVersion: string; /** * Data Residency Boundary of the resource. */ readonly dataResidencyBoundary?: string; /** * 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. */ readonly disableLocalAuth?: boolean; /** * Endpoint for the topic. */ readonly endpoint: string; /** * 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. */ readonly eventTypeInfo?: outputs.eventgrid.EventTypeInfoResponse; /** * Fully qualified identifier of the resource. */ readonly id: string; /** * Identity information for the resource. */ readonly identity?: outputs.eventgrid.IdentityInfoResponse; /** * This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if PublicNetworkAccess is enabled. */ readonly inboundIpRules?: outputs.eventgrid.InboundIpRuleResponse[]; /** * This determines the format that Event Grid should expect for incoming events published to the topic. */ readonly inputSchema?: string; /** * 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. */ readonly inputSchemaMapping?: outputs.eventgrid.JsonInputSchemaMappingResponse; /** * Location of the resource. */ readonly location: string; /** * Metric resource id for the topic. */ readonly metricResourceId: string; /** * Minimum TLS version of the publisher allowed to publish to this topic */ readonly minimumTlsVersionAllowed?: string; /** * Name of the resource. */ readonly name: string; /** * List of private endpoint connections. */ readonly privateEndpointConnections: outputs.eventgrid.PrivateEndpointConnectionResponse[]; /** * Provisioning state of the topic. */ readonly provisioningState: 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" /> */ readonly publicNetworkAccess?: string; /** * The system metadata relating to the Event Grid resource. */ readonly systemData: outputs.eventgrid.SystemDataResponse; /** * Tags of the resource. */ readonly tags?: { [key: string]: string; }; /** * Type of the resource. */ readonly type: string; } /** * Get properties of a topic. * * Uses Azure REST API version 2025-02-15. * * Other available API versions: 2022-06-15, 2023-06-01-preview, 2023-12-15-preview, 2024-06-01-preview, 2024-12-15-preview, 2025-04-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native eventgrid [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare function getTopicOutput(args: GetTopicOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetTopicResult>; export interface GetTopicOutputArgs { /** * The name of the resource group within the user's subscription. */ resourceGroupName: pulumi.Input<string>; /** * Name of the topic. */ topicName: pulumi.Input<string>; }