From cc818aa94795b276dd81a5e4c6536b6ec32f6401 Mon Sep 17 00:00:00 2001 From: Daniel Castro Date: Thu, 26 Oct 2023 10:59:33 -0700 Subject: [PATCH] Introduce connection property (#178) --- types/eventGrid.d.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/types/eventGrid.d.ts b/types/eventGrid.d.ts index bd3f642..039bc62 100644 --- a/types/eventGrid.d.ts +++ b/types/eventGrid.d.ts @@ -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 */ @@ -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; /**