Skip to content

Commit cc818aa

Browse files
authored
Introduce connection property (#178)
1 parent d73d866 commit cc818aa

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

types/eventGrid.d.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export interface EventGridFunctionOptions extends EventGridTriggerOptions, Parti
1818
export interface EventGridTriggerOptions {}
1919
export type EventGridTrigger = FunctionTrigger & EventGridTriggerOptions;
2020

21-
export interface EventGridOutputOptions {
21+
export interface EventGridOutputKeyOptions {
2222
/**
2323
* An app setting (or environment variable) that contains the URI for the custom topic
2424
*/
@@ -29,6 +29,14 @@ export interface EventGridOutputOptions {
2929
*/
3030
topicKeySetting: string;
3131
}
32+
export interface EventGridOutputConnectionOptions {
33+
/**
34+
* The value of the common prefix for the app setting that contains the `topicEndpointUri`.
35+
* When setting the `connection` property, the `topicEndpointUri` and `topicKeySetting` properties should NOT be set.
36+
*/
37+
connection: string;
38+
}
39+
export type EventGridOutputOptions = EventGridOutputKeyOptions | EventGridOutputConnectionOptions;
3240
export type EventGridOutput = FunctionOutput & EventGridOutputOptions;
3341

3442
/**

0 commit comments

Comments
 (0)