@cdklabs/cdk-ecs-codedeploy 0.0.410 → 0.0.412

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 (135) hide show
  1. package/.jsii +3 -3
  2. package/lib/api-canary/index.js +1 -1
  3. package/lib/ecs-appspec/index.js +1 -1
  4. package/lib/ecs-deployment/index.js +1 -1
  5. package/lib/ecs-patterns/application-load-balanced-codedeployed-fargate-service.js +1 -1
  6. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/runtimeConfig.js +4 -1
  7. package/node_modules/@aws-sdk/client-codedeploy/dist-es/runtimeConfig.js +4 -1
  8. package/node_modules/@aws-sdk/client-codedeploy/package.json +2 -2
  9. package/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.js +4 -1
  10. package/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.js +4 -1
  11. package/node_modules/@aws-sdk/client-sso/package.json +1 -1
  12. package/node_modules/@aws-sdk/credential-provider-ini/package.json +4 -4
  13. package/node_modules/@aws-sdk/credential-provider-node/package.json +4 -4
  14. package/node_modules/@aws-sdk/credential-provider-sso/package.json +3 -3
  15. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +2 -2
  16. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/runtimeConfig.js +4 -1
  17. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.js +4 -1
  18. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.js +4 -1
  19. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.js +4 -1
  20. package/node_modules/@aws-sdk/nested-clients/package.json +1 -1
  21. package/node_modules/@aws-sdk/token-providers/package.json +2 -2
  22. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +209 -0
  23. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +667 -2
  24. package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +771 -0
  25. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +108 -53
  26. package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +136 -0
  27. package/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js +74 -0
  28. package/node_modules/@smithy/core/dist-es/submodules/cbor/index.js +3 -1
  29. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +183 -0
  30. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +164 -0
  31. package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +68 -0
  32. package/node_modules/@smithy/core/dist-es/submodules/protocols/index.js +7 -0
  33. package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/FromStringShapeDeserializer.js +64 -0
  34. package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeDeserializer.js +38 -0
  35. package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeSerializer.js +30 -0
  36. package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/ToStringShapeSerializer.js +87 -0
  37. package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/determineTimestampFormat.js +20 -0
  38. package/node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js +49 -0
  39. package/node_modules/@smithy/core/dist-es/submodules/schema/deref.js +6 -0
  40. package/node_modules/@smithy/core/dist-es/submodules/schema/index.js +12 -0
  41. package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/getSchemaSerdePlugin.js +23 -0
  42. package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schema-middleware-types.js +1 -0
  43. package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaDeserializationMiddleware.js +60 -0
  44. package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaSerializationMiddleware.js +16 -0
  45. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/ErrorSchema.js +17 -0
  46. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/ListSchema.js +15 -0
  47. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/MapSchema.js +16 -0
  48. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +291 -0
  49. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/OperationSchema.js +16 -0
  50. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/Schema.js +6 -0
  51. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/SimpleSchema.js +15 -0
  52. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/StructureSchema.js +22 -0
  53. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/sentinels.js +16 -0
  54. package/node_modules/@smithy/core/dist-es/submodules/serde/copyDocumentWithTransform.js +53 -0
  55. package/node_modules/@smithy/core/dist-es/submodules/serde/index.js +4 -3
  56. package/node_modules/@smithy/core/dist-types/submodules/cbor/CborCodec.d.ts +29 -0
  57. package/node_modules/@smithy/core/dist-types/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +22 -0
  58. package/node_modules/@smithy/core/dist-types/submodules/cbor/index.d.ts +3 -1
  59. package/node_modules/@smithy/core/dist-types/submodules/protocols/HttpBindingProtocol.d.ts +15 -0
  60. package/node_modules/@smithy/core/dist-types/submodules/protocols/HttpProtocol.d.ts +29 -0
  61. package/node_modules/@smithy/core/dist-types/submodules/protocols/RpcProtocol.d.ts +11 -0
  62. package/node_modules/@smithy/core/dist-types/submodules/protocols/index.d.ts +7 -0
  63. package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/FromStringShapeDeserializer.d.ts +14 -0
  64. package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/HttpInterceptingShapeDeserializer.d.ts +18 -0
  65. package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/HttpInterceptingShapeSerializer.d.ts +20 -0
  66. package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/ToStringShapeSerializer.d.ts +15 -0
  67. package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/determineTimestampFormat.d.ts +9 -0
  68. package/node_modules/@smithy/core/dist-types/submodules/schema/TypeRegistry.d.ts +55 -0
  69. package/node_modules/@smithy/core/dist-types/submodules/schema/deref.d.ts +6 -0
  70. package/node_modules/@smithy/core/dist-types/submodules/schema/index.d.ts +12 -0
  71. package/node_modules/@smithy/core/dist-types/submodules/schema/middleware/getSchemaSerdePlugin.d.ts +14 -0
  72. package/node_modules/@smithy/core/dist-types/submodules/schema/middleware/schema-middleware-types.d.ts +8 -0
  73. package/node_modules/@smithy/core/dist-types/submodules/schema/middleware/schemaDeserializationMiddleware.d.ts +9 -0
  74. package/node_modules/@smithy/core/dist-types/submodules/schema/middleware/schemaSerializationMiddleware.d.ts +6 -0
  75. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/ErrorSchema.d.ts +38 -0
  76. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/ListSchema.d.ts +20 -0
  77. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/MapSchema.d.ts +25 -0
  78. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/NormalizedSchema.d.ts +122 -0
  79. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/OperationSchema.d.ts +20 -0
  80. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/Schema.d.ts +11 -0
  81. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/SimpleSchema.d.ts +20 -0
  82. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/StructureSchema.d.ts +21 -0
  83. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/sentinels.d.ts +21 -0
  84. package/node_modules/@smithy/core/dist-types/submodules/serde/copyDocumentWithTransform.d.ts +5 -0
  85. package/node_modules/@smithy/core/dist-types/submodules/serde/index.d.ts +4 -3
  86. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/CborCodec.d.ts +29 -0
  87. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +22 -0
  88. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/index.d.ts +3 -1
  89. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/HttpBindingProtocol.d.ts +15 -0
  90. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/HttpProtocol.d.ts +29 -0
  91. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/RpcProtocol.d.ts +11 -0
  92. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/index.d.ts +7 -0
  93. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/FromStringShapeDeserializer.d.ts +14 -0
  94. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/HttpInterceptingShapeDeserializer.d.ts +18 -0
  95. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/HttpInterceptingShapeSerializer.d.ts +20 -0
  96. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/ToStringShapeSerializer.d.ts +15 -0
  97. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/determineTimestampFormat.d.ts +9 -0
  98. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/TypeRegistry.d.ts +55 -0
  99. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/deref.d.ts +6 -0
  100. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/index.d.ts +12 -0
  101. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/middleware/getSchemaSerdePlugin.d.ts +14 -0
  102. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/middleware/schema-middleware-types.d.ts +11 -0
  103. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/middleware/schemaDeserializationMiddleware.d.ts +9 -0
  104. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/middleware/schemaSerializationMiddleware.d.ts +6 -0
  105. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/ErrorSchema.d.ts +38 -0
  106. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/ListSchema.d.ts +20 -0
  107. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/MapSchema.d.ts +25 -0
  108. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts +125 -0
  109. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/OperationSchema.d.ts +20 -0
  110. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/Schema.d.ts +11 -0
  111. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/SimpleSchema.d.ts +20 -0
  112. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/StructureSchema.d.ts +24 -0
  113. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/sentinels.d.ts +21 -0
  114. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/copyDocumentWithTransform.d.ts +5 -0
  115. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.d.ts +4 -3
  116. package/node_modules/@smithy/core/package.json +13 -3
  117. package/node_modules/@smithy/core/schema.d.ts +7 -0
  118. package/node_modules/@smithy/core/schema.js +6 -0
  119. package/node_modules/@smithy/middleware-endpoint/package.json +3 -3
  120. package/node_modules/@smithy/middleware-retry/package.json +2 -2
  121. package/node_modules/@smithy/middleware-serde/dist-types/deserializerMiddleware.d.ts +1 -0
  122. package/node_modules/@smithy/middleware-serde/dist-types/serdePlugin.d.ts +7 -1
  123. package/node_modules/@smithy/middleware-serde/dist-types/serializerMiddleware.d.ts +1 -0
  124. package/node_modules/@smithy/middleware-serde/dist-types/ts3.4/deserializerMiddleware.d.ts +1 -0
  125. package/node_modules/@smithy/middleware-serde/dist-types/ts3.4/serdePlugin.d.ts +7 -1
  126. package/node_modules/@smithy/middleware-serde/dist-types/ts3.4/serializerMiddleware.d.ts +1 -0
  127. package/node_modules/@smithy/middleware-serde/package.json +1 -1
  128. package/node_modules/@smithy/smithy-client/dist-cjs/index.js +10 -0
  129. package/node_modules/@smithy/smithy-client/dist-es/command.js +6 -0
  130. package/node_modules/@smithy/smithy-client/dist-types/command.d.ts +7 -1
  131. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/command.d.ts +7 -1
  132. package/node_modules/@smithy/smithy-client/package.json +3 -3
  133. package/node_modules/@smithy/util-defaults-mode-browser/package.json +2 -2
  134. package/node_modules/@smithy/util-defaults-mode-node/package.json +2 -2
  135. package/package.json +4 -4
@@ -1,5 +1,11 @@
1
1
  import { DeserializeHandlerOptions, Endpoint, MetadataBearer, Pluggable, Provider, RequestSerializer, ResponseDeserializer, SerdeContext, SerdeFunctions, SerializeHandlerOptions, UrlParser } from "@smithy/types";
2
+ /**
3
+ * @deprecated will be replaced by schemaSerdePlugin from core/schema.
4
+ */
2
5
  export declare const deserializerMiddlewareOption: DeserializeHandlerOptions;
6
+ /**
7
+ * @deprecated will be replaced by schemaSerdePlugin from core/schema.
8
+ */
3
9
  export declare const serializerMiddlewareOption: SerializeHandlerOptions;
4
10
  /**
5
11
  * Modifies the EndpointBearer to make it compatible with Endpoints 2.0 change.
@@ -13,6 +19,6 @@ export type V1OrV2Endpoint = {
13
19
  };
14
20
  /**
15
21
  * @internal
16
- *
22
+ * @deprecated will be replaced by schemaSerdePlugin from core/schema.
17
23
  */
18
24
  export declare function getSerdePlugin<InputType extends object = any, CommandSerdeContext extends SerdeContext = any, OutputType extends MetadataBearer = any>(config: SerdeFunctions, serializer: RequestSerializer<any, CommandSerdeContext>, deserializer: ResponseDeserializer<OutputType, any, CommandSerdeContext>): Pluggable<InputType, OutputType>;
@@ -1,5 +1,6 @@
1
1
  import { RequestSerializer, SerdeContext, SerdeFunctions, SerializeMiddleware } from "@smithy/types";
2
2
  /**
3
3
  * @internal
4
+ * @deprecated will be replaced by schemaSerdePlugin from core/schema.
4
5
  */
5
6
  export declare const serializerMiddleware: <Input extends object = any, Output extends object = any, CommandSerdeContext extends SerdeContext = any>(options: SerdeFunctions, serializer: RequestSerializer<any, CommandSerdeContext>) => SerializeMiddleware<Input, Output>;
@@ -1,5 +1,6 @@
1
1
  import { DeserializeMiddleware, ResponseDeserializer, SerdeContext, SerdeFunctions } from "@smithy/types";
2
2
  /**
3
3
  * @internal
4
+ * @deprecated will be replaced by schemaSerdePlugin from core/schema.
4
5
  */
5
6
  export declare const deserializerMiddleware: <Input extends object = any, Output extends object = any, CommandSerdeContext extends SerdeContext = any>(options: SerdeFunctions, deserializer: ResponseDeserializer<any, any, CommandSerdeContext>) => DeserializeMiddleware<Input, Output>;
@@ -1,5 +1,11 @@
1
1
  import { DeserializeHandlerOptions, Endpoint, MetadataBearer, Pluggable, Provider, RequestSerializer, ResponseDeserializer, SerdeContext, SerdeFunctions, SerializeHandlerOptions, UrlParser } from "@smithy/types";
2
+ /**
3
+ * @deprecated will be replaced by schemaSerdePlugin from core/schema.
4
+ */
2
5
  export declare const deserializerMiddlewareOption: DeserializeHandlerOptions;
6
+ /**
7
+ * @deprecated will be replaced by schemaSerdePlugin from core/schema.
8
+ */
3
9
  export declare const serializerMiddlewareOption: SerializeHandlerOptions;
4
10
  /**
5
11
  * Modifies the EndpointBearer to make it compatible with Endpoints 2.0 change.
@@ -13,6 +19,6 @@ export type V1OrV2Endpoint = {
13
19
  };
14
20
  /**
15
21
  * @internal
16
- *
22
+ * @deprecated will be replaced by schemaSerdePlugin from core/schema.
17
23
  */
18
24
  export declare function getSerdePlugin<InputType extends object = any, CommandSerdeContext extends SerdeContext = any, OutputType extends MetadataBearer = any>(config: SerdeFunctions, serializer: RequestSerializer<any, CommandSerdeContext>, deserializer: ResponseDeserializer<OutputType, any, CommandSerdeContext>): Pluggable<InputType, OutputType>;
@@ -1,5 +1,6 @@
1
1
  import { RequestSerializer, SerdeContext, SerdeFunctions, SerializeMiddleware } from "@smithy/types";
2
2
  /**
3
3
  * @internal
4
+ * @deprecated will be replaced by schemaSerdePlugin from core/schema.
4
5
  */
5
6
  export declare const serializerMiddleware: <Input extends object = any, Output extends object = any, CommandSerdeContext extends SerdeContext = any>(options: SerdeFunctions, serializer: RequestSerializer<any, CommandSerdeContext>) => SerializeMiddleware<Input, Output>;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/middleware-serde",
3
- "version": "4.0.6",
3
+ "version": "4.0.7",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline middleware-serde",
@@ -243,6 +243,14 @@ var ClassBuilder = class {
243
243
  this._deserializer = deserializer;
244
244
  return this;
245
245
  }
246
+ /**
247
+ * Sets input/output schema for the operation.
248
+ */
249
+ sc(operation) {
250
+ this._operationSchema = operation;
251
+ this._smithyContext.operationSchema = operation;
252
+ return this;
253
+ }
246
254
  /**
247
255
  * @returns a Command class with the classBuilder properties.
248
256
  */
@@ -267,6 +275,7 @@ var ClassBuilder = class {
267
275
  this.deserialize = closure._deserializer;
268
276
  this.input = input ?? {};
269
277
  closure._init(this);
278
+ this.schema = closure._operationSchema;
270
279
  }
271
280
  static {
272
281
  __name(this, "CommandRef");
@@ -697,6 +706,7 @@ __reExport(src_exports, require("@smithy/core/serde"), module.exports);
697
706
  _json,
698
707
  LazyJsonString,
699
708
  NumericValue,
709
+ copyDocumentWithTransform,
700
710
  dateToUtcString,
701
711
  expectBoolean,
702
712
  expectByte,
@@ -84,6 +84,11 @@ class ClassBuilder {
84
84
  this._deserializer = deserializer;
85
85
  return this;
86
86
  }
87
+ sc(operation) {
88
+ this._operationSchema = operation;
89
+ this._smithyContext.operationSchema = operation;
90
+ return this;
91
+ }
87
92
  build() {
88
93
  const closure = this;
89
94
  let CommandRef;
@@ -97,6 +102,7 @@ class ClassBuilder {
97
102
  this.deserialize = closure._deserializer;
98
103
  this.input = input ?? {};
99
104
  closure._init(this);
105
+ this.schema = closure._operationSchema;
100
106
  }
101
107
  resolveMiddleware(stack, configuration, options) {
102
108
  return this.resolveMiddlewareWithContext(stack, configuration, options, {
@@ -1,11 +1,12 @@
1
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, OptionalParameter, Pluggable, RequestHandler, SerdeContext } from "@smithy/types";
2
+ import type { Command as ICommand, Handler, HandlerExecutionContext, HttpRequest as IHttpRequest, HttpResponse as IHttpResponse, Logger, MetadataBearer, MiddlewareStack as IMiddlewareStack, OperationSchema, OptionalParameter, Pluggable, RequestHandler, SerdeContext } from "@smithy/types";
3
3
  /**
4
4
  * @public
5
5
  */
6
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> {
7
7
  abstract input: Input;
8
8
  readonly middlewareStack: IMiddlewareStack<Input, Output>;
9
+ readonly schema?: OperationSchema;
9
10
  /**
10
11
  * Factory for Command ClassBuilder.
11
12
  * @internal
@@ -54,6 +55,7 @@ declare class ClassBuilder<I extends SI, O extends SO, C extends {
54
55
  private _outputFilterSensitiveLog;
55
56
  private _serializer;
56
57
  private _deserializer;
58
+ private _operationSchema?;
57
59
  /**
58
60
  * Optional init callback.
59
61
  */
@@ -90,6 +92,10 @@ declare class ClassBuilder<I extends SI, O extends SO, C extends {
90
92
  * Sets the deserializer.
91
93
  */
92
94
  de(deserializer: (output: IHttpResponse, context?: SerdeContext | any) => Promise<O>): ClassBuilder<I, O, C, SI, SO>;
95
+ /**
96
+ * Sets input/output schema for the operation.
97
+ */
98
+ sc(operation: OperationSchema): ClassBuilder<I, O, C, SI, SO>;
93
99
  /**
94
100
  * @returns a Command class with the classBuilder properties.
95
101
  */
@@ -1,11 +1,12 @@
1
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, OptionalParameter, Pluggable, RequestHandler, SerdeContext } from "@smithy/types";
2
+ import { Command as ICommand, Handler, HandlerExecutionContext, HttpRequest as IHttpRequest, HttpResponse as IHttpResponse, Logger, MetadataBearer, MiddlewareStack as IMiddlewareStack, OperationSchema, OptionalParameter, Pluggable, RequestHandler, SerdeContext } from "@smithy/types";
3
3
  /**
4
4
  * @public
5
5
  */
6
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> {
7
7
  abstract input: Input;
8
8
  readonly middlewareStack: IMiddlewareStack<Input, Output>;
9
+ readonly schema?: OperationSchema;
9
10
  /**
10
11
  * Factory for Command ClassBuilder.
11
12
  * @internal
@@ -54,6 +55,7 @@ declare class ClassBuilder<I extends SI, O extends SO, C extends {
54
55
  private _outputFilterSensitiveLog;
55
56
  private _serializer;
56
57
  private _deserializer;
58
+ private _operationSchema?;
57
59
  /**
58
60
  * Optional init callback.
59
61
  */
@@ -90,6 +92,10 @@ declare class ClassBuilder<I extends SI, O extends SO, C extends {
90
92
  * Sets the deserializer.
91
93
  */
92
94
  de(deserializer: (output: IHttpResponse, context?: SerdeContext | any) => Promise<O>): ClassBuilder<I, O, C, SI, SO>;
95
+ /**
96
+ * Sets input/output schema for the operation.
97
+ */
98
+ sc(operation: OperationSchema): ClassBuilder<I, O, C, SI, SO>;
93
99
  /**
94
100
  * @returns a Command class with the classBuilder properties.
95
101
  */
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/smithy-client",
3
- "version": "4.3.0",
3
+ "version": "4.4.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": "node ../../scripts/inline smithy-client",
@@ -24,8 +24,8 @@
24
24
  },
25
25
  "license": "Apache-2.0",
26
26
  "dependencies": {
27
- "@smithy/core": "^3.4.0",
28
- "@smithy/middleware-endpoint": "^4.1.7",
27
+ "@smithy/core": "^3.5.0",
28
+ "@smithy/middleware-endpoint": "^4.1.8",
29
29
  "@smithy/middleware-stack": "^4.0.3",
30
30
  "@smithy/protocol-http": "^5.1.1",
31
31
  "@smithy/types": "^4.3.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-defaults-mode-browser",
3
- "version": "4.0.15",
3
+ "version": "4.0.16",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline util-defaults-mode-browser",
@@ -24,7 +24,7 @@
24
24
  "license": "Apache-2.0",
25
25
  "dependencies": {
26
26
  "@smithy/property-provider": "^4.0.3",
27
- "@smithy/smithy-client": "^4.3.0",
27
+ "@smithy/smithy-client": "^4.4.0",
28
28
  "@smithy/types": "^4.3.0",
29
29
  "bowser": "^2.11.0",
30
30
  "tslib": "^2.6.2"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-defaults-mode-node",
3
- "version": "4.0.15",
3
+ "version": "4.0.16",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline util-defaults-mode-node",
@@ -27,7 +27,7 @@
27
27
  "@smithy/credential-provider-imds": "^4.0.5",
28
28
  "@smithy/node-config-provider": "^4.1.2",
29
29
  "@smithy/property-provider": "^4.0.3",
30
- "@smithy/smithy-client": "^4.3.0",
30
+ "@smithy/smithy-client": "^4.4.0",
31
31
  "@smithy/types": "^4.3.0",
32
32
  "tslib": "^2.6.2"
33
33
  },
package/package.json CHANGED
@@ -83,11 +83,11 @@
83
83
  "aws-cdk-lib": "2.139.0",
84
84
  "aws-sdk-client-mock": "^4.1.0",
85
85
  "aws-sdk-client-mock-jest": "^4.1.0",
86
- "cdk-nag": "^2.35.104",
86
+ "cdk-nag": "^2.36.0",
87
87
  "cdklabs-projen-project-types": "^0.1.204",
88
88
  "commit-and-tag-version": "^12",
89
89
  "constructs": "10.0.5",
90
- "esbuild": "^0.25.4",
90
+ "esbuild": "^0.25.5",
91
91
  "eslint": "^8",
92
92
  "eslint-import-resolver-typescript": "^3.10.1",
93
93
  "eslint-plugin-import": "^2.31.0",
@@ -109,7 +109,7 @@
109
109
  "constructs": "^10.0.5"
110
110
  },
111
111
  "dependencies": {
112
- "@aws-sdk/client-codedeploy": "^3.816.0",
112
+ "@aws-sdk/client-codedeploy": "^3.817.0",
113
113
  "jmespath": "^0.16.0"
114
114
  },
115
115
  "bundledDependencies": [
@@ -127,7 +127,7 @@
127
127
  "publishConfig": {
128
128
  "access": "public"
129
129
  },
130
- "version": "0.0.410",
130
+ "version": "0.0.412",
131
131
  "jest": {
132
132
  "coverageProvider": "v8",
133
133
  "testMatch": [