@cdk8s/awscdk-resolver 0.0.45 → 0.0.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/.jsii +3 -3
  2. package/lib/resolve.js +1 -1
  3. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/DescribeAccountLimitsPaginator.js +2 -23
  4. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/DescribeStackEventsPaginator.js +2 -23
  5. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/DescribeStackResourceDriftsPaginator.js +2 -24
  6. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/DescribeStacksPaginator.js +2 -23
  7. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/ListChangeSetsPaginator.js +2 -23
  8. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/ListExportsPaginator.js +2 -23
  9. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/ListImportsPaginator.js +2 -23
  10. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/ListStackInstancesPaginator.js +2 -24
  11. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/ListStackResourcesPaginator.js +2 -23
  12. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/ListStackSetOperationResultsPaginator.js +2 -24
  13. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/ListStackSetOperationsPaginator.js +2 -24
  14. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/ListStackSetsPaginator.js +2 -24
  15. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/ListStacksPaginator.js +2 -23
  16. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/ListTypeRegistrationsPaginator.js +2 -24
  17. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/ListTypeVersionsPaginator.js +2 -24
  18. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/ListTypesPaginator.js +2 -24
  19. package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/DescribeAccountLimitsPaginator.js +2 -22
  20. package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/DescribeStackEventsPaginator.js +2 -22
  21. package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/DescribeStackResourceDriftsPaginator.js +2 -23
  22. package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/DescribeStacksPaginator.js +2 -22
  23. package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/ListChangeSetsPaginator.js +2 -22
  24. package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/ListExportsPaginator.js +2 -22
  25. package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/ListImportsPaginator.js +2 -22
  26. package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/ListStackInstancesPaginator.js +2 -23
  27. package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/ListStackResourcesPaginator.js +2 -22
  28. package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/ListStackSetOperationResultsPaginator.js +2 -23
  29. package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/ListStackSetOperationsPaginator.js +2 -23
  30. package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/ListStackSetsPaginator.js +2 -23
  31. package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/ListStacksPaginator.js +2 -22
  32. package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/ListTypeRegistrationsPaginator.js +2 -23
  33. package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/ListTypeVersionsPaginator.js +2 -23
  34. package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/ListTypesPaginator.js +2 -23
  35. package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/DescribeAccountLimitsPaginator.d.ts +1 -1
  36. package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/DescribeStackEventsPaginator.d.ts +1 -1
  37. package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/DescribeStackResourceDriftsPaginator.d.ts +1 -1
  38. package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/DescribeStacksPaginator.d.ts +1 -1
  39. package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/ListChangeSetsPaginator.d.ts +1 -1
  40. package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/ListExportsPaginator.d.ts +1 -1
  41. package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/ListImportsPaginator.d.ts +1 -1
  42. package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/ListStackInstancesPaginator.d.ts +1 -1
  43. package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/ListStackResourcesPaginator.d.ts +1 -1
  44. package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/ListStackSetOperationResultsPaginator.d.ts +1 -1
  45. package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/ListStackSetOperationsPaginator.d.ts +1 -1
  46. package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/ListStackSetsPaginator.d.ts +1 -1
  47. package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/ListStacksPaginator.d.ts +1 -1
  48. package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/ListTypeRegistrationsPaginator.d.ts +1 -1
  49. package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/ListTypeVersionsPaginator.d.ts +1 -1
  50. package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/ListTypesPaginator.d.ts +1 -1
  51. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/DescribeAccountLimitsPaginator.d.ts +3 -3
  52. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/DescribeStackEventsPaginator.d.ts +3 -3
  53. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/DescribeStackResourceDriftsPaginator.d.ts +3 -3
  54. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/DescribeStacksPaginator.d.ts +3 -3
  55. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/ListChangeSetsPaginator.d.ts +3 -3
  56. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/ListExportsPaginator.d.ts +3 -3
  57. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/ListImportsPaginator.d.ts +3 -3
  58. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/ListStackInstancesPaginator.d.ts +3 -3
  59. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/ListStackResourcesPaginator.d.ts +3 -3
  60. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/ListStackSetOperationResultsPaginator.d.ts +3 -3
  61. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/ListStackSetOperationsPaginator.d.ts +3 -3
  62. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/ListStackSetsPaginator.d.ts +3 -3
  63. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/ListStacksPaginator.d.ts +3 -3
  64. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/ListTypeRegistrationsPaginator.d.ts +3 -3
  65. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/ListTypeVersionsPaginator.d.ts +3 -3
  66. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/ListTypesPaginator.d.ts +3 -3
  67. package/node_modules/@aws-sdk/client-cloudformation/package.json +6 -5
  68. package/node_modules/@aws-sdk/client-sso/dist-cjs/pagination/ListAccountRolesPaginator.js +2 -24
  69. package/node_modules/@aws-sdk/client-sso/dist-cjs/pagination/ListAccountsPaginator.js +2 -24
  70. package/node_modules/@aws-sdk/client-sso/dist-es/pagination/ListAccountRolesPaginator.js +2 -23
  71. package/node_modules/@aws-sdk/client-sso/dist-es/pagination/ListAccountsPaginator.js +2 -23
  72. package/node_modules/@aws-sdk/client-sso/dist-types/pagination/ListAccountRolesPaginator.d.ts +1 -1
  73. package/node_modules/@aws-sdk/client-sso/dist-types/pagination/ListAccountsPaginator.d.ts +1 -1
  74. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/pagination/ListAccountRolesPaginator.d.ts +3 -3
  75. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/pagination/ListAccountsPaginator.d.ts +3 -3
  76. package/node_modules/@aws-sdk/client-sso/package.json +3 -3
  77. package/node_modules/@aws-sdk/client-sts/package.json +4 -4
  78. package/node_modules/@aws-sdk/credential-provider-ini/package.json +2 -2
  79. package/node_modules/@aws-sdk/credential-provider-node/package.json +3 -3
  80. package/node_modules/@aws-sdk/credential-provider-sso/package.json +3 -3
  81. package/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
  82. package/node_modules/@aws-sdk/token-providers/package.json +3 -3
  83. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json +3 -0
  84. package/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json +3 -0
  85. package/node_modules/@aws-sdk/util-endpoints/package.json +1 -1
  86. package/node_modules/@smithy/core/package.json +3 -3
  87. package/node_modules/@smithy/middleware-retry/package.json +2 -2
  88. package/node_modules/@smithy/smithy-client/dist-cjs/command.js +108 -0
  89. package/node_modules/@smithy/smithy-client/dist-es/command.js +108 -0
  90. package/node_modules/@smithy/smithy-client/dist-types/command.d.ts +104 -1
  91. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/command.d.ts +104 -1
  92. package/node_modules/@smithy/smithy-client/package.json +3 -1
  93. package/node_modules/@smithy/util-defaults-mode-browser/package.json +2 -2
  94. package/node_modules/@smithy/util-defaults-mode-node/package.json +2 -2
  95. package/package.json +3 -3
@@ -1,6 +1,114 @@
1
1
  import { constructStack } from "@smithy/middleware-stack";
2
+ import { SMITHY_CONTEXT_KEY } from "@smithy/types";
2
3
  export class Command {
3
4
  constructor() {
4
5
  this.middlewareStack = constructStack();
5
6
  }
7
+ static classBuilder() {
8
+ return new ClassBuilder();
9
+ }
10
+ resolveMiddlewareWithContext(clientStack, configuration, options, { middlewareFn, clientName, commandName, inputFilterSensitiveLog, outputFilterSensitiveLog, smithyContext, additionalContext, CommandCtor, }) {
11
+ for (const mw of middlewareFn.bind(this)(CommandCtor, clientStack, configuration, options)) {
12
+ this.middlewareStack.use(mw);
13
+ }
14
+ const stack = clientStack.concat(this.middlewareStack);
15
+ const { logger } = configuration;
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
20
+ inputFilterSensitiveLog,
21
+ outputFilterSensitiveLog,
22
+ [SMITHY_CONTEXT_KEY]: {
23
+ ...smithyContext,
24
+ },
25
+ ...additionalContext,
26
+ };
27
+ const { requestHandler } = configuration;
28
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
29
+ }
30
+ }
31
+ class ClassBuilder {
32
+ constructor() {
33
+ this._init = () => { };
34
+ this._ep = {};
35
+ this._middlewareFn = () => [];
36
+ this._commandName = "";
37
+ this._clientName = "";
38
+ this._additionalContext = {};
39
+ this._smithyContext = {};
40
+ this._inputFilterSensitiveLog = (_) => _;
41
+ this._outputFilterSensitiveLog = (_) => _;
42
+ this._serializer = null;
43
+ this._deserializer = null;
44
+ }
45
+ init(cb) {
46
+ this._init = cb;
47
+ }
48
+ ep(endpointParameterInstructions) {
49
+ this._ep = endpointParameterInstructions;
50
+ return this;
51
+ }
52
+ m(middlewareSupplier) {
53
+ this._middlewareFn = middlewareSupplier;
54
+ return this;
55
+ }
56
+ s(service, operation, smithyContext = {}) {
57
+ this._smithyContext = {
58
+ service,
59
+ operation,
60
+ ...smithyContext,
61
+ };
62
+ return this;
63
+ }
64
+ c(additionalContext = {}) {
65
+ this._additionalContext = additionalContext;
66
+ return this;
67
+ }
68
+ n(clientName, commandName) {
69
+ this._clientName = clientName;
70
+ this._commandName = commandName;
71
+ return this;
72
+ }
73
+ f(inputFilter = (_) => _, outputFilter = (_) => _) {
74
+ this._inputFilterSensitiveLog = inputFilter;
75
+ this._outputFilterSensitiveLog = outputFilter;
76
+ return this;
77
+ }
78
+ ser(serializer) {
79
+ this._serializer = serializer;
80
+ return this;
81
+ }
82
+ de(deserializer) {
83
+ this._deserializer = deserializer;
84
+ return this;
85
+ }
86
+ build() {
87
+ const closure = this;
88
+ let CommandRef;
89
+ return (CommandRef = class extends Command {
90
+ static getEndpointParameterInstructions() {
91
+ return closure._ep;
92
+ }
93
+ constructor(input) {
94
+ super();
95
+ this.input = input;
96
+ this.serialize = closure._serializer;
97
+ this.deserialize = closure._deserializer;
98
+ closure._init(this);
99
+ }
100
+ resolveMiddleware(stack, configuration, options) {
101
+ return this.resolveMiddlewareWithContext(stack, configuration, options, {
102
+ CommandCtor: CommandRef,
103
+ middlewareFn: closure._middlewareFn,
104
+ clientName: closure._clientName,
105
+ commandName: closure._commandName,
106
+ inputFilterSensitiveLog: closure._inputFilterSensitiveLog,
107
+ outputFilterSensitiveLog: closure._outputFilterSensitiveLog,
108
+ smithyContext: closure._smithyContext,
109
+ additionalContext: closure._additionalContext,
110
+ });
111
+ }
112
+ });
113
+ }
6
114
  }
@@ -1,9 +1,112 @@
1
- import { Command as ICommand, Handler, MetadataBearer, MiddlewareStack as IMiddlewareStack } from "@smithy/types";
1
+ import type { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import type { Command as ICommand, Handler, HandlerExecutionContext, HttpRequest as IHttpRequest, HttpResponse as IHttpResponse, Logger, MetadataBearer, MiddlewareStack as IMiddlewareStack, Pluggable, RequestHandler, SerdeContext } from "@smithy/types";
2
3
  /**
3
4
  * @public
4
5
  */
5
6
  export declare abstract class Command<Input extends ClientInput, Output extends ClientOutput, ResolvedClientConfiguration, ClientInput extends object = any, ClientOutput extends MetadataBearer = any> implements ICommand<ClientInput, Input, ClientOutput, Output, ResolvedClientConfiguration> {
6
7
  abstract input: Input;
7
8
  readonly middlewareStack: IMiddlewareStack<Input, Output>;
9
+ /**
10
+ * Factory for Command ClassBuilder.
11
+ * @internal
12
+ */
13
+ static classBuilder<I extends SI, O extends SO, C extends {
14
+ logger: Logger;
15
+ requestHandler: RequestHandler<any, any, any>;
16
+ }, SI extends object = any, SO extends MetadataBearer = any>(): ClassBuilder<I, O, C, SI, SO>;
8
17
  abstract resolveMiddleware(stack: IMiddlewareStack<ClientInput, ClientOutput>, configuration: ResolvedClientConfiguration, options: any): Handler<Input, Output>;
18
+ /**
19
+ * @internal
20
+ */
21
+ resolveMiddlewareWithContext(clientStack: IMiddlewareStack<any, any>, configuration: {
22
+ logger: Logger;
23
+ requestHandler: RequestHandler<any, any, any>;
24
+ }, options: any, { middlewareFn, clientName, commandName, inputFilterSensitiveLog, outputFilterSensitiveLog, smithyContext, additionalContext, CommandCtor, }: ResolveMiddlewareContextArgs): import("@smithy/types").InitializeHandler<any, Output>;
9
25
  }
26
+ /**
27
+ * @internal
28
+ */
29
+ type ResolveMiddlewareContextArgs = {
30
+ middlewareFn: (CommandCtor: any, clientStack: any, config: any, options: any) => Pluggable<any, any>[];
31
+ clientName: string;
32
+ commandName: string;
33
+ smithyContext: Record<string, unknown>;
34
+ additionalContext: HandlerExecutionContext;
35
+ inputFilterSensitiveLog: (_: any) => any;
36
+ outputFilterSensitiveLog: (_: any) => any;
37
+ CommandCtor: any;
38
+ };
39
+ /**
40
+ * @internal
41
+ */
42
+ declare class ClassBuilder<I extends SI, O extends SO, C extends {
43
+ logger: Logger;
44
+ requestHandler: RequestHandler<any, any, any>;
45
+ }, SI extends object = any, SO extends MetadataBearer = any> {
46
+ private _init;
47
+ private _ep;
48
+ private _middlewareFn;
49
+ private _commandName;
50
+ private _clientName;
51
+ private _additionalContext;
52
+ private _smithyContext;
53
+ private _inputFilterSensitiveLog;
54
+ private _outputFilterSensitiveLog;
55
+ private _serializer;
56
+ private _deserializer;
57
+ /**
58
+ * Optional init callback.
59
+ */
60
+ init(cb: (_: Command<I, O, C, SI, SO>) => void): void;
61
+ /**
62
+ * Set the endpoint parameter instructions.
63
+ */
64
+ ep(endpointParameterInstructions: EndpointParameterInstructions): ClassBuilder<I, O, C, SI, SO>;
65
+ /**
66
+ * Add any number of middleware.
67
+ */
68
+ m(middlewareSupplier: (CommandCtor: any, clientStack: any, config: any, options: any) => Pluggable<any, any>[]): ClassBuilder<I, O, C, SI, SO>;
69
+ /**
70
+ * Set the initial handler execution context Smithy field.
71
+ */
72
+ s(service: string, operation: string, smithyContext?: Record<string, unknown>): ClassBuilder<I, O, C, SI, SO>;
73
+ /**
74
+ * Set the initial handler execution context.
75
+ */
76
+ c(additionalContext?: HandlerExecutionContext): ClassBuilder<I, O, C, SI, SO>;
77
+ /**
78
+ * Set constant string identifiers for the operation.
79
+ */
80
+ n(clientName: string, commandName: string): ClassBuilder<I, O, C, SI, SO>;
81
+ /**
82
+ * Set the input and output sensistive log filters.
83
+ */
84
+ f(inputFilter?: (_: any) => any, outputFilter?: (_: any) => any): ClassBuilder<I, O, C, SI, SO>;
85
+ /**
86
+ * Sets the serializer.
87
+ */
88
+ ser(serializer: (input: I, context?: SerdeContext | any) => Promise<IHttpRequest>): ClassBuilder<I, O, C, SI, SO>;
89
+ /**
90
+ * Sets the deserializer.
91
+ */
92
+ de(deserializer: (output: IHttpResponse, context?: SerdeContext | any) => Promise<O>): ClassBuilder<I, O, C, SI, SO>;
93
+ /**
94
+ * @returns a Command class with the classBuilder properties.
95
+ */
96
+ build(): {
97
+ new (input: I): CommandImpl<I, O, C, SI, SO>;
98
+ getEndpointParameterInstructions(): EndpointParameterInstructions;
99
+ };
100
+ }
101
+ /**
102
+ * A concrete implementation of ICommand with no abstract members.
103
+ * @public
104
+ */
105
+ export interface CommandImpl<I extends SI, O extends SO, C extends {
106
+ logger: Logger;
107
+ requestHandler: RequestHandler<any, any, any>;
108
+ }, SI extends object = any, SO extends MetadataBearer = any> extends Command<I, O, C, SI, SO> {
109
+ readonly input: I;
110
+ resolveMiddleware(stack: IMiddlewareStack<SI, SO>, configuration: C, options: any): Handler<I, O>;
111
+ }
112
+ export {};
@@ -1,9 +1,112 @@
1
- import { Command as ICommand, Handler, MetadataBearer, MiddlewareStack as IMiddlewareStack } from "@smithy/types";
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as ICommand, Handler, HandlerExecutionContext, HttpRequest as IHttpRequest, HttpResponse as IHttpResponse, Logger, MetadataBearer, MiddlewareStack as IMiddlewareStack, Pluggable, RequestHandler, SerdeContext } from "@smithy/types";
2
3
  /**
3
4
  * @public
4
5
  */
5
6
  export declare abstract class Command<Input extends ClientInput, Output extends ClientOutput, ResolvedClientConfiguration, ClientInput extends object = any, ClientOutput extends MetadataBearer = any> implements ICommand<ClientInput, Input, ClientOutput, Output, ResolvedClientConfiguration> {
6
7
  abstract input: Input;
7
8
  readonly middlewareStack: IMiddlewareStack<Input, Output>;
9
+ /**
10
+ * Factory for Command ClassBuilder.
11
+ * @internal
12
+ */
13
+ static classBuilder<I extends SI, O extends SO, C extends {
14
+ logger: Logger;
15
+ requestHandler: RequestHandler<any, any, any>;
16
+ }, SI extends object = any, SO extends MetadataBearer = any>(): ClassBuilder<I, O, C, SI, SO>;
8
17
  abstract resolveMiddleware(stack: IMiddlewareStack<ClientInput, ClientOutput>, configuration: ResolvedClientConfiguration, options: any): Handler<Input, Output>;
18
+ /**
19
+ * @internal
20
+ */
21
+ resolveMiddlewareWithContext(clientStack: IMiddlewareStack<any, any>, configuration: {
22
+ logger: Logger;
23
+ requestHandler: RequestHandler<any, any, any>;
24
+ }, options: any, { middlewareFn, clientName, commandName, inputFilterSensitiveLog, outputFilterSensitiveLog, smithyContext, additionalContext, CommandCtor, }: ResolveMiddlewareContextArgs): import("@smithy/types").InitializeHandler<any, Output>;
9
25
  }
26
+ /**
27
+ * @internal
28
+ */
29
+ type ResolveMiddlewareContextArgs = {
30
+ middlewareFn: (CommandCtor: any, clientStack: any, config: any, options: any) => Pluggable<any, any>[];
31
+ clientName: string;
32
+ commandName: string;
33
+ smithyContext: Record<string, unknown>;
34
+ additionalContext: HandlerExecutionContext;
35
+ inputFilterSensitiveLog: (_: any) => any;
36
+ outputFilterSensitiveLog: (_: any) => any;
37
+ CommandCtor: any;
38
+ };
39
+ /**
40
+ * @internal
41
+ */
42
+ declare class ClassBuilder<I extends SI, O extends SO, C extends {
43
+ logger: Logger;
44
+ requestHandler: RequestHandler<any, any, any>;
45
+ }, SI extends object = any, SO extends MetadataBearer = any> {
46
+ private _init;
47
+ private _ep;
48
+ private _middlewareFn;
49
+ private _commandName;
50
+ private _clientName;
51
+ private _additionalContext;
52
+ private _smithyContext;
53
+ private _inputFilterSensitiveLog;
54
+ private _outputFilterSensitiveLog;
55
+ private _serializer;
56
+ private _deserializer;
57
+ /**
58
+ * Optional init callback.
59
+ */
60
+ init(cb: (_: Command<I, O, C, SI, SO>) => void): void;
61
+ /**
62
+ * Set the endpoint parameter instructions.
63
+ */
64
+ ep(endpointParameterInstructions: EndpointParameterInstructions): ClassBuilder<I, O, C, SI, SO>;
65
+ /**
66
+ * Add any number of middleware.
67
+ */
68
+ m(middlewareSupplier: (CommandCtor: any, clientStack: any, config: any, options: any) => Pluggable<any, any>[]): ClassBuilder<I, O, C, SI, SO>;
69
+ /**
70
+ * Set the initial handler execution context Smithy field.
71
+ */
72
+ s(service: string, operation: string, smithyContext?: Record<string, unknown>): ClassBuilder<I, O, C, SI, SO>;
73
+ /**
74
+ * Set the initial handler execution context.
75
+ */
76
+ c(additionalContext?: HandlerExecutionContext): ClassBuilder<I, O, C, SI, SO>;
77
+ /**
78
+ * Set constant string identifiers for the operation.
79
+ */
80
+ n(clientName: string, commandName: string): ClassBuilder<I, O, C, SI, SO>;
81
+ /**
82
+ * Set the input and output sensistive log filters.
83
+ */
84
+ f(inputFilter?: (_: any) => any, outputFilter?: (_: any) => any): ClassBuilder<I, O, C, SI, SO>;
85
+ /**
86
+ * Sets the serializer.
87
+ */
88
+ ser(serializer: (input: I, context?: SerdeContext | any) => Promise<IHttpRequest>): ClassBuilder<I, O, C, SI, SO>;
89
+ /**
90
+ * Sets the deserializer.
91
+ */
92
+ de(deserializer: (output: IHttpResponse, context?: SerdeContext | any) => Promise<O>): ClassBuilder<I, O, C, SI, SO>;
93
+ /**
94
+ * @returns a Command class with the classBuilder properties.
95
+ */
96
+ build(): {
97
+ new (input: I): CommandImpl<I, O, C, SI, SO>;
98
+ getEndpointParameterInstructions(): EndpointParameterInstructions;
99
+ };
100
+ }
101
+ /**
102
+ * A concrete implementation of ICommand with no abstract members.
103
+ * @public
104
+ */
105
+ export interface CommandImpl<I extends SI, O extends SO, C extends {
106
+ logger: Logger;
107
+ requestHandler: RequestHandler<any, any, any>;
108
+ }, SI extends object = any, SO extends MetadataBearer = any> extends Command<I, O, C, SI, SO> {
109
+ readonly input: I;
110
+ resolveMiddleware(stack: IMiddlewareStack<SI, SO>, configuration: C, options: any): Handler<I, O>;
111
+ }
112
+ export {};
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/smithy-client",
3
- "version": "2.1.18",
3
+ "version": "2.2.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "yarn g:tsc -p tsconfig.cjs.json",
@@ -23,7 +23,9 @@
23
23
  },
24
24
  "license": "Apache-2.0",
25
25
  "dependencies": {
26
+ "@smithy/middleware-endpoint": "^2.2.3",
26
27
  "@smithy/middleware-stack": "^2.0.9",
28
+ "@smithy/protocol-http": "^3.0.11",
27
29
  "@smithy/types": "^2.7.0",
28
30
  "@smithy/util-stream": "^2.0.23",
29
31
  "tslib": "^2.5.0"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-defaults-mode-browser",
3
- "version": "2.0.22",
3
+ "version": "2.0.23",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "yarn g:tsc -p tsconfig.cjs.json",
@@ -23,7 +23,7 @@
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
25
  "@smithy/property-provider": "^2.0.16",
26
- "@smithy/smithy-client": "^2.1.18",
26
+ "@smithy/smithy-client": "^2.2.0",
27
27
  "@smithy/types": "^2.7.0",
28
28
  "bowser": "^2.11.0",
29
29
  "tslib": "^2.5.0"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-defaults-mode-node",
3
- "version": "2.0.29",
3
+ "version": "2.0.30",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "yarn g:tsc -p tsconfig.cjs.json",
@@ -26,7 +26,7 @@
26
26
  "@smithy/credential-provider-imds": "^2.1.4",
27
27
  "@smithy/node-config-provider": "^2.1.8",
28
28
  "@smithy/property-provider": "^2.0.16",
29
- "@smithy/smithy-client": "^2.1.18",
29
+ "@smithy/smithy-client": "^2.2.0",
30
30
  "@smithy/types": "^2.7.0",
31
31
  "tslib": "^2.5.0"
32
32
  },
package/package.json CHANGED
@@ -48,10 +48,10 @@
48
48
  "@types/node": "^16",
49
49
  "@typescript-eslint/eslint-plugin": "^6",
50
50
  "@typescript-eslint/parser": "^6",
51
- "aws-cdk": "^2.115.0",
51
+ "aws-cdk": "^2.116.1",
52
52
  "aws-cdk-lib": "2.109.0",
53
53
  "cdk8s": "2.68.4",
54
- "cdk8s-cli": "^2.198.15",
54
+ "cdk8s-cli": "^2.198.19",
55
55
  "constructs": "10.3.0",
56
56
  "eslint": "^8",
57
57
  "eslint-import-resolver-typescript": "^3.6.1",
@@ -92,7 +92,7 @@
92
92
  "publishConfig": {
93
93
  "access": "public"
94
94
  },
95
- "version": "0.0.45",
95
+ "version": "0.0.46",
96
96
  "jest": {
97
97
  "testMatch": [
98
98
  "<rootDir>/src/**/__tests__/**/*.ts?(x)",