Skip to content

Commit

Permalink
Introduce connection property (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
castrodd authored Oct 26, 2023
1 parent d73d866 commit cc818aa
Showing 1 changed file with 9 additions and 1 deletion.
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

0 comments on commit cc818aa

Please sign in to comment.