Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce "connection" property #178

Merged
merged 1 commit into from
Oct 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion types/eventGrid.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export interface EventGridFunctionOptions extends EventGridTriggerOptions, Parti
export interface EventGridTriggerOptions {}
export type EventGridTrigger = FunctionTrigger & EventGridTriggerOptions;

export interface EventGridOutputOptions {
export interface EventGridOutputKeyOptions {
/**
* An app setting (or environment variable) that contains the URI for the custom topic
*/
Expand All @@ -29,6 +29,14 @@ export interface EventGridOutputOptions {
*/
topicKeySetting: string;
}
export interface EventGridOutputConnectionOptions {
/**
* The value of the common prefix for the app setting that contains the `topicEndpointUri`.
* When setting the `connection` property, the `topicEndpointUri` and `topicKeySetting` properties should NOT be set.
*/
connection: string;
}
export type EventGridOutputOptions = EventGridOutputKeyOptions | EventGridOutputConnectionOptions;
export type EventGridOutput = FunctionOutput & EventGridOutputOptions;

/**
Expand Down