import * as pulumi from "@pulumi/pulumi"; /** * Use this data source to access information about an existing EventGrid Topic * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = azure.eventgrid.getTopic({ * name: "my-eventgrid-topic", * resourceGroupName: "example-resources", * }); * ``` * * ## API Providers * * * This data source uses the following Azure API Providers: * * * `Microsoft.EventGrid` - 2025-02-15 */ export declare function getTopic(args: GetTopicArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getTopic. */ export interface GetTopicArgs { /** * The name of the EventGrid Topic resource. */ name: string; /** * The name of the resource group in which the EventGrid Topic exists. */ resourceGroupName: string; } /** * A collection of values returned by getTopic. */ export interface GetTopicResult { /** * The Endpoint associated with the EventGrid Topic. */ readonly endpoint: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly location: string; readonly name: string; /** * The Primary Shared Access Key associated with the EventGrid Topic. */ readonly primaryAccessKey: string; readonly resourceGroupName: string; /** * The Secondary Shared Access Key associated with the EventGrid Topic. */ readonly secondaryAccessKey: string; readonly tags: { [key: string]: string; }; } /** * Use this data source to access information about an existing EventGrid Topic * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = azure.eventgrid.getTopic({ * name: "my-eventgrid-topic", * resourceGroupName: "example-resources", * }); * ``` * * ## API Providers * * * This data source uses the following Azure API Providers: * * * `Microsoft.EventGrid` - 2025-02-15 */ export declare function getTopicOutput(args: GetTopicOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getTopic. */ export interface GetTopicOutputArgs { /** * The name of the EventGrid Topic resource. */ name: pulumi.Input; /** * The name of the resource group in which the EventGrid Topic exists. */ resourceGroupName: pulumi.Input; }