import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Use this data source to access information about an existing EventGrid Domain * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = azure.eventgrid.getDomain({ * name: "my-eventgrid-domain", * resourceGroupName: "example-resources", * }); * export const eventgridDomainMappingTopic = example.then(example => example.inputMappingFields?.[0]?.topic); * ``` * * ## API Providers * * * This data source uses the following Azure API Providers: * * * `Microsoft.EventGrid` - 2025-02-15 */ export declare function getDomain(args: GetDomainArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getDomain. */ export interface GetDomainArgs { /** * The name of the EventGrid Domain resource. */ name: string; /** * The name of the resource group in which the EventGrid Domain exists. */ resourceGroupName: string; } /** * A collection of values returned by getDomain. */ export interface GetDomainResult { /** * The Endpoint associated with the EventGrid Domain. */ readonly endpoint: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * An `identity` block as documented below. */ readonly identities: outputs.eventgrid.GetDomainIdentity[]; /** * One or more `inboundIpRule` blocks as defined below. */ readonly inboundIpRules: outputs.eventgrid.GetDomainInboundIpRule[]; /** * A `inputMappingDefaultValues` block as defined below. */ readonly inputMappingDefaultValues: outputs.eventgrid.GetDomainInputMappingDefaultValue[]; /** * A `inputMappingFields` block as defined below. */ readonly inputMappingFields: outputs.eventgrid.GetDomainInputMappingField[]; /** * The schema in which incoming events will be published to this domain. Possible values are `CloudEventSchemaV1_0`, `CustomEventSchema`, or `EventGridSchema`. */ readonly inputSchema: string; /** * The Azure Region in which this EventGrid Domain exists. */ readonly location: string; readonly name: string; /** * The primary access key associated with the EventGrid Domain. */ readonly primaryAccessKey: string; /** * Whether or not public network access is allowed for this server. */ readonly publicNetworkAccessEnabled: boolean; readonly resourceGroupName: string; /** * The secondary access key associated with the EventGrid Domain. */ readonly secondaryAccessKey: string; /** * A mapping of tags assigned to the EventGrid Domain. */ readonly tags: { [key: string]: string; }; } /** * Use this data source to access information about an existing EventGrid Domain * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = azure.eventgrid.getDomain({ * name: "my-eventgrid-domain", * resourceGroupName: "example-resources", * }); * export const eventgridDomainMappingTopic = example.then(example => example.inputMappingFields?.[0]?.topic); * ``` * * ## API Providers * * * This data source uses the following Azure API Providers: * * * `Microsoft.EventGrid` - 2025-02-15 */ export declare function getDomainOutput(args: GetDomainOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getDomain. */ export interface GetDomainOutputArgs { /** * The name of the EventGrid Domain resource. */ name: pulumi.Input; /** * The name of the resource group in which the EventGrid Domain exists. */ resourceGroupName: pulumi.Input; }