@aws-sdk/client-ebs 3.928.0 → 3.930.0

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 (30) hide show
  1. package/dist-cjs/index.js +519 -465
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/EBSClient.js +2 -0
  4. package/dist-es/commands/CompleteSnapshotCommand.js +3 -9
  5. package/dist-es/commands/GetSnapshotBlockCommand.js +3 -10
  6. package/dist-es/commands/ListChangedBlocksCommand.js +3 -10
  7. package/dist-es/commands/ListSnapshotBlocksCommand.js +3 -10
  8. package/dist-es/commands/PutSnapshotBlockCommand.js +3 -10
  9. package/dist-es/commands/StartSnapshotCommand.js +3 -10
  10. package/dist-es/models/models_0.js +0 -28
  11. package/dist-es/runtimeConfig.shared.js +2 -0
  12. package/dist-es/schemas/schemas_0.js +498 -0
  13. package/dist-types/EBSClient.d.ts +10 -1
  14. package/dist-types/models/models_0.d.ts +0 -28
  15. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  16. package/dist-types/runtimeConfig.d.ts +1 -0
  17. package/dist-types/runtimeConfig.native.d.ts +1 -0
  18. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  19. package/dist-types/schemas/schemas_0.d.ts +37 -0
  20. package/dist-types/ts3.4/EBSClient.d.ts +4 -0
  21. package/dist-types/ts3.4/models/models_0.d.ts +0 -19
  22. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  23. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  24. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  25. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  26. package/dist-types/ts3.4/schemas/schemas_0.d.ts +43 -0
  27. package/package.json +34 -35
  28. package/dist-es/protocols/Aws_restJson1.js +0 -382
  29. package/dist-types/protocols/Aws_restJson1.d.ts +0 -56
  30. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -80
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const core_1 = require("@aws-sdk/core");
5
+ const protocols_1 = require("@aws-sdk/core/protocols");
5
6
  const smithy_client_1 = require("@smithy/smithy-client");
6
7
  const url_parser_1 = require("@smithy/url-parser");
7
8
  const util_base64_1 = require("@smithy/util-base64");
@@ -26,6 +27,7 @@ const getRuntimeConfig = (config) => {
26
27
  },
27
28
  ],
28
29
  logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
30
+ protocol: config?.protocol ?? new protocols_1.AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.ebs" }),
29
31
  sdkStreamMixin: config?.sdkStreamMixin ?? util_stream_1.sdkStreamMixin,
30
32
  serviceId: config?.serviceId ?? "EBS",
31
33
  urlParser: config?.urlParser ?? url_parser_1.parseUrl,
@@ -4,6 +4,7 @@ import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detec
4
4
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
5
5
  import { resolveRegionConfig } from "@smithy/config-resolver";
6
6
  import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
7
+ import { getSchemaSerdePlugin } from "@smithy/core/schema";
7
8
  import { getContentLengthPlugin } from "@smithy/middleware-content-length";
8
9
  import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
9
10
  import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
@@ -28,6 +29,7 @@ export class EBSClient extends __Client {
28
29
  const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
29
30
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
30
31
  this.config = _config_8;
32
+ this.middlewareStack.use(getSchemaSerdePlugin(this.config));
31
33
  this.middlewareStack.use(getUserAgentPlugin(this.config));
32
34
  this.middlewareStack.use(getRetryPlugin(this.config));
33
35
  this.middlewareStack.use(getContentLengthPlugin(this.config));
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_CompleteSnapshotCommand, se_CompleteSnapshotCommand } from "../protocols/Aws_restJson1";
4
+ import { CompleteSnapshot } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class CompleteSnapshotCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("Ebs", "CompleteSnapshot", {})
17
13
  .n("EBSClient", "CompleteSnapshotCommand")
18
- .f(void 0, void 0)
19
- .ser(se_CompleteSnapshotCommand)
20
- .de(de_CompleteSnapshotCommand)
14
+ .sc(CompleteSnapshot)
21
15
  .build() {
22
16
  }
@@ -1,23 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { GetSnapshotBlockResponseFilterSensitiveLog, } from "../models/models_0";
6
- import { de_GetSnapshotBlockCommand, se_GetSnapshotBlockCommand } from "../protocols/Aws_restJson1";
4
+ import { GetSnapshotBlock } from "../schemas/schemas_0";
7
5
  export { $Command };
8
6
  export class GetSnapshotBlockCommand extends $Command
9
7
  .classBuilder()
10
8
  .ep(commonParams)
11
9
  .m(function (Command, cs, config, o) {
12
- return [
13
- getSerdePlugin(config, this.serialize, this.deserialize),
14
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
15
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
16
11
  })
17
12
  .s("Ebs", "GetSnapshotBlock", {})
18
13
  .n("EBSClient", "GetSnapshotBlockCommand")
19
- .f(void 0, GetSnapshotBlockResponseFilterSensitiveLog)
20
- .ser(se_GetSnapshotBlockCommand)
21
- .de(de_GetSnapshotBlockCommand)
14
+ .sc(GetSnapshotBlock)
22
15
  .build() {
23
16
  }
@@ -1,23 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { ListChangedBlocksResponseFilterSensitiveLog, } from "../models/models_0";
6
- import { de_ListChangedBlocksCommand, se_ListChangedBlocksCommand } from "../protocols/Aws_restJson1";
4
+ import { ListChangedBlocks } from "../schemas/schemas_0";
7
5
  export { $Command };
8
6
  export class ListChangedBlocksCommand extends $Command
9
7
  .classBuilder()
10
8
  .ep(commonParams)
11
9
  .m(function (Command, cs, config, o) {
12
- return [
13
- getSerdePlugin(config, this.serialize, this.deserialize),
14
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
15
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
16
11
  })
17
12
  .s("Ebs", "ListChangedBlocks", {})
18
13
  .n("EBSClient", "ListChangedBlocksCommand")
19
- .f(void 0, ListChangedBlocksResponseFilterSensitiveLog)
20
- .ser(se_ListChangedBlocksCommand)
21
- .de(de_ListChangedBlocksCommand)
14
+ .sc(ListChangedBlocks)
22
15
  .build() {
23
16
  }
@@ -1,23 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { ListSnapshotBlocksResponseFilterSensitiveLog, } from "../models/models_0";
6
- import { de_ListSnapshotBlocksCommand, se_ListSnapshotBlocksCommand } from "../protocols/Aws_restJson1";
4
+ import { ListSnapshotBlocks } from "../schemas/schemas_0";
7
5
  export { $Command };
8
6
  export class ListSnapshotBlocksCommand extends $Command
9
7
  .classBuilder()
10
8
  .ep(commonParams)
11
9
  .m(function (Command, cs, config, o) {
12
- return [
13
- getSerdePlugin(config, this.serialize, this.deserialize),
14
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
15
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
16
11
  })
17
12
  .s("Ebs", "ListSnapshotBlocks", {})
18
13
  .n("EBSClient", "ListSnapshotBlocksCommand")
19
- .f(void 0, ListSnapshotBlocksResponseFilterSensitiveLog)
20
- .ser(se_ListSnapshotBlocksCommand)
21
- .de(de_ListSnapshotBlocksCommand)
14
+ .sc(ListSnapshotBlocks)
22
15
  .build() {
23
16
  }
@@ -1,23 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { PutSnapshotBlockRequestFilterSensitiveLog, } from "../models/models_0";
6
- import { de_PutSnapshotBlockCommand, se_PutSnapshotBlockCommand } from "../protocols/Aws_restJson1";
4
+ import { PutSnapshotBlock } from "../schemas/schemas_0";
7
5
  export { $Command };
8
6
  export class PutSnapshotBlockCommand extends $Command
9
7
  .classBuilder()
10
8
  .ep(commonParams)
11
9
  .m(function (Command, cs, config, o) {
12
- return [
13
- getSerdePlugin(config, this.serialize, this.deserialize),
14
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
15
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
16
11
  })
17
12
  .s("Ebs", "PutSnapshotBlock", {})
18
13
  .n("EBSClient", "PutSnapshotBlockCommand")
19
- .f(PutSnapshotBlockRequestFilterSensitiveLog, void 0)
20
- .ser(se_PutSnapshotBlockCommand)
21
- .de(de_PutSnapshotBlockCommand)
14
+ .sc(PutSnapshotBlock)
22
15
  .build() {
23
16
  }
@@ -1,23 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { StartSnapshotRequestFilterSensitiveLog, StartSnapshotResponseFilterSensitiveLog, } from "../models/models_0";
6
- import { de_StartSnapshotCommand, se_StartSnapshotCommand } from "../protocols/Aws_restJson1";
4
+ import { StartSnapshot } from "../schemas/schemas_0";
7
5
  export { $Command };
8
6
  export class StartSnapshotCommand extends $Command
9
7
  .classBuilder()
10
8
  .ep(commonParams)
11
9
  .m(function (Command, cs, config, o) {
12
- return [
13
- getSerdePlugin(config, this.serialize, this.deserialize),
14
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
15
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
16
11
  })
17
12
  .s("Ebs", "StartSnapshot", {})
18
13
  .n("EBSClient", "StartSnapshotCommand")
19
- .f(StartSnapshotRequestFilterSensitiveLog, StartSnapshotResponseFilterSensitiveLog)
20
- .ser(se_StartSnapshotCommand)
21
- .de(de_StartSnapshotCommand)
14
+ .sc(StartSnapshot)
22
15
  .build() {
23
16
  }
@@ -1,4 +1,3 @@
1
- import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
1
  import { EBSServiceException as __BaseException } from "./EBSServiceException";
3
2
  export const AccessDeniedExceptionReason = {
4
3
  DEPENDENCY_ACCESS_DENIED: "DEPENDENCY_ACCESS_DENIED",
@@ -173,30 +172,3 @@ export const SSEType = {
173
172
  SSE_EBS: "sse-ebs",
174
173
  SSE_KMS: "sse-kms",
175
174
  };
176
- export const ChangedBlockFilterSensitiveLog = (obj) => ({
177
- ...obj,
178
- });
179
- export const GetSnapshotBlockResponseFilterSensitiveLog = (obj) => ({
180
- ...obj,
181
- ...(obj.BlockData && { BlockData: SENSITIVE_STRING }),
182
- });
183
- export const ListChangedBlocksResponseFilterSensitiveLog = (obj) => ({
184
- ...obj,
185
- ...(obj.ChangedBlocks && { ChangedBlocks: SENSITIVE_STRING }),
186
- });
187
- export const ListSnapshotBlocksResponseFilterSensitiveLog = (obj) => ({
188
- ...obj,
189
- ...(obj.Blocks && { Blocks: SENSITIVE_STRING }),
190
- });
191
- export const PutSnapshotBlockRequestFilterSensitiveLog = (obj) => ({
192
- ...obj,
193
- ...(obj.BlockData && { BlockData: SENSITIVE_STRING }),
194
- });
195
- export const StartSnapshotRequestFilterSensitiveLog = (obj) => ({
196
- ...obj,
197
- ...(obj.KmsKeyArn && { KmsKeyArn: SENSITIVE_STRING }),
198
- });
199
- export const StartSnapshotResponseFilterSensitiveLog = (obj) => ({
200
- ...obj,
201
- ...(obj.KmsKeyArn && { KmsKeyArn: SENSITIVE_STRING }),
202
- });
@@ -1,4 +1,5 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core";
2
+ import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
2
3
  import { NoOpLogger } from "@smithy/smithy-client";
3
4
  import { parseUrl } from "@smithy/url-parser";
4
5
  import { fromBase64, toBase64 } from "@smithy/util-base64";
@@ -23,6 +24,7 @@ export const getRuntimeConfig = (config) => {
23
24
  },
24
25
  ],
25
26
  logger: config?.logger ?? new NoOpLogger(),
27
+ protocol: config?.protocol ?? new AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.ebs" }),
26
28
  sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin,
27
29
  serviceId: config?.serviceId ?? "EBS",
28
30
  urlParser: config?.urlParser ?? parseUrl,