Skip to content

Commit

Permalink
Add Smithy context to HandlerExecutionContext
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Yuan committed Sep 13, 2023
1 parent a6d5a23 commit c0c11b4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/light-goats-compare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@smithy/types": patch
---

Add Smithy context to `HandlerExecutionContext`
11 changes: 11 additions & 0 deletions packages/types/src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,11 @@ export interface MiddlewareStack<Input extends object, Output extends object> ex
): InitializeHandler<InputType, OutputType>;
}

/**
* @internal
*/
export const SMITHY = "SMITHY";

/**
* @public
*
Expand Down Expand Up @@ -526,6 +531,12 @@ export interface HandlerExecutionContext {
overrideOutputFilterSensitiveLog(...args: any[]): string | void;
}>;

/**
* @internal
* Context for Smithy properties
*/
[SMITHY]?: Record<string, unknown>;

[key: string]: any;
}

Expand Down

0 comments on commit c0c11b4

Please sign in to comment.