Skip to content

Commit fbfeebe

Browse files
author
Steven Yuan
authored
Add clientName and commandName to HandlerExecutionContext (#931)
1 parent aa52d8d commit fbfeebe

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

.changeset/calm-cows-fix.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@smithy/types": patch
3+
---
4+
5+
Add `clientName` and `commandName` to `HandlerExecutionContext`

packages/types/src/middleware.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,16 @@ export interface HandlerExecutionContext {
499499
*/
500500
logger?: Logger;
501501

502+
/**
503+
* Name of the service the operation is being sent to.
504+
*/
505+
clientName?: string;
506+
507+
/**
508+
* Name of the operation being executed.
509+
*/
510+
commandName?: string;
511+
502512
/**
503513
* Additional user agent that inferred by middleware. It can be used to save
504514
* the internal user agent sections without overriding the `customUserAgent`

0 commit comments

Comments
 (0)