Creates an instance of EventGridPublisherClient which sends events using the Event Grid Schema.
Example usage:
import { EventGridPublisherClient, AzureKeyCredential } from "@azure/eventgrid";
const client = new EventGridPublisherClient(
"<service endpoint>",
"EventGrid",
new AzureKeyCredential("<api key>")
);
The URL to the Event Grid endpoint, e.g. https://eg-topic.westus2-1.eventgrid.azure.net/api/events.
The schema that the Event Grid endpoint is configured to accept. One of "EventGrid", "CloudEvent", or "Custom".
Used to authenticate requests to the service.
Used to configure the Event Grid Client.
The version of the Even Grid service.
The URL to the Event Grid endpoint.
Sends events to a topic.
The events to send. The events should be in the schema used when constructing the client.
Options to control the underlying operation.
Generated using TypeDoc
Client class for publishing events to the Event Grid Service.