Creates an instance of EventGridPublisherClient.
Example usage:
import { EventGridPublisherClient, AzureKeyCredential } from "@azure/eventgrid";
const client = new EventGridPublisherClient(
"<service endpoint>",
new AzureKeyCredential("<api key>")
);
The URL to the EventGrid endpoint, e.g. https://eg-topic.westus2-1.eventgrid.azure.net/api/events
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.
Publishes events in the Cloud Events 1.0 schema. The topic must be configured to expect events in the Cloud Events 1.0 schema.
Publishes events written using a custom schema. The topic must be configured to expect events in a custom schema.
Publishes events in the Event Grid scheama. The topic must be configured to expect events in the Event Grid schema.
Generated using TypeDoc
Client class for publishing events to the Event Grid Service.