diff --git a/.changeset/calm-cows-fix.md b/.changeset/calm-cows-fix.md new file mode 100644 index 00000000000..48924e7f743 --- /dev/null +++ b/.changeset/calm-cows-fix.md @@ -0,0 +1,5 @@ +--- +"@smithy/types": patch +--- + +Add `clientName` and `commandName` to `HandlerExecutionContext` diff --git a/packages/types/src/middleware.ts b/packages/types/src/middleware.ts index 833bdd0ca18..feedff23833 100644 --- a/packages/types/src/middleware.ts +++ b/packages/types/src/middleware.ts @@ -494,6 +494,16 @@ export interface HandlerExecutionContext { */ logger?: Logger; + /** + * Name of the service the operation is being sent to. + */ + clientName?: string; + + /** + * Name of the operation being executed. + */ + commandName?: string; + /** * Additional user agent that inferred by middleware. It can be used to save * the internal user agent sections without overriding the `customUserAgent`