@aws-sdk/client-glacier 3.927.0 → 3.929.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 (57) hide show
  1. package/dist-cjs/index.js +1532 -1313
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/GlacierClient.js +2 -0
  4. package/dist-es/commands/AbortMultipartUploadCommand.js +3 -9
  5. package/dist-es/commands/AbortVaultLockCommand.js +3 -9
  6. package/dist-es/commands/AddTagsToVaultCommand.js +3 -9
  7. package/dist-es/commands/CompleteMultipartUploadCommand.js +3 -9
  8. package/dist-es/commands/CompleteVaultLockCommand.js +3 -9
  9. package/dist-es/commands/CreateVaultCommand.js +3 -9
  10. package/dist-es/commands/DeleteArchiveCommand.js +3 -9
  11. package/dist-es/commands/DeleteVaultAccessPolicyCommand.js +3 -9
  12. package/dist-es/commands/DeleteVaultCommand.js +3 -9
  13. package/dist-es/commands/DeleteVaultNotificationsCommand.js +3 -9
  14. package/dist-es/commands/DescribeJobCommand.js +3 -9
  15. package/dist-es/commands/DescribeVaultCommand.js +3 -9
  16. package/dist-es/commands/GetDataRetrievalPolicyCommand.js +3 -9
  17. package/dist-es/commands/GetJobOutputCommand.js +3 -10
  18. package/dist-es/commands/GetVaultAccessPolicyCommand.js +3 -9
  19. package/dist-es/commands/GetVaultLockCommand.js +3 -9
  20. package/dist-es/commands/GetVaultNotificationsCommand.js +3 -9
  21. package/dist-es/commands/InitiateJobCommand.js +3 -9
  22. package/dist-es/commands/InitiateMultipartUploadCommand.js +3 -9
  23. package/dist-es/commands/InitiateVaultLockCommand.js +3 -9
  24. package/dist-es/commands/ListJobsCommand.js +3 -9
  25. package/dist-es/commands/ListMultipartUploadsCommand.js +3 -9
  26. package/dist-es/commands/ListPartsCommand.js +3 -9
  27. package/dist-es/commands/ListProvisionedCapacityCommand.js +3 -9
  28. package/dist-es/commands/ListTagsForVaultCommand.js +3 -9
  29. package/dist-es/commands/ListVaultsCommand.js +3 -9
  30. package/dist-es/commands/PurchaseProvisionedCapacityCommand.js +3 -9
  31. package/dist-es/commands/RemoveTagsFromVaultCommand.js +3 -9
  32. package/dist-es/commands/SetDataRetrievalPolicyCommand.js +3 -9
  33. package/dist-es/commands/SetVaultAccessPolicyCommand.js +3 -9
  34. package/dist-es/commands/SetVaultNotificationsCommand.js +3 -9
  35. package/dist-es/commands/UploadArchiveCommand.js +3 -10
  36. package/dist-es/commands/UploadMultipartPartCommand.js +3 -10
  37. package/dist-es/models/models_0.js +0 -9
  38. package/dist-es/runtimeConfig.shared.js +2 -0
  39. package/dist-es/schemas/schemas_0.js +1467 -0
  40. package/dist-types/GlacierClient.d.ts +10 -1
  41. package/dist-types/models/models_0.d.ts +0 -12
  42. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  43. package/dist-types/runtimeConfig.d.ts +1 -0
  44. package/dist-types/runtimeConfig.native.d.ts +1 -0
  45. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  46. package/dist-types/schemas/schemas_0.d.ts +130 -0
  47. package/dist-types/ts3.4/GlacierClient.d.ts +4 -0
  48. package/dist-types/ts3.4/models/models_0.d.ts +0 -9
  49. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  50. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  51. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  52. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  53. package/dist-types/ts3.4/schemas/schemas_0.d.ts +136 -0
  54. package/package.json +5 -5
  55. package/dist-es/protocols/Aws_restJson1.js +0 -1070
  56. package/dist-types/protocols/Aws_restJson1.d.ts +0 -299
  57. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -404
@@ -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_ListPartsCommand, se_ListPartsCommand } from "../protocols/Aws_restJson1";
4
+ import { ListParts } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListPartsCommand 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("Glacier", "ListParts", {})
17
13
  .n("GlacierClient", "ListPartsCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListPartsCommand)
20
- .de(de_ListPartsCommand)
14
+ .sc(ListParts)
21
15
  .build() {
22
16
  }
@@ -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_ListProvisionedCapacityCommand, se_ListProvisionedCapacityCommand } from "../protocols/Aws_restJson1";
4
+ import { ListProvisionedCapacity } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListProvisionedCapacityCommand 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("Glacier", "ListProvisionedCapacity", {})
17
13
  .n("GlacierClient", "ListProvisionedCapacityCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListProvisionedCapacityCommand)
20
- .de(de_ListProvisionedCapacityCommand)
14
+ .sc(ListProvisionedCapacity)
21
15
  .build() {
22
16
  }
@@ -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_ListTagsForVaultCommand, se_ListTagsForVaultCommand } from "../protocols/Aws_restJson1";
4
+ import { ListTagsForVault } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListTagsForVaultCommand 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("Glacier", "ListTagsForVault", {})
17
13
  .n("GlacierClient", "ListTagsForVaultCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListTagsForVaultCommand)
20
- .de(de_ListTagsForVaultCommand)
14
+ .sc(ListTagsForVault)
21
15
  .build() {
22
16
  }
@@ -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_ListVaultsCommand, se_ListVaultsCommand } from "../protocols/Aws_restJson1";
4
+ import { ListVaults } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListVaultsCommand 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("Glacier", "ListVaults", {})
17
13
  .n("GlacierClient", "ListVaultsCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListVaultsCommand)
20
- .de(de_ListVaultsCommand)
14
+ .sc(ListVaults)
21
15
  .build() {
22
16
  }
@@ -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_PurchaseProvisionedCapacityCommand, se_PurchaseProvisionedCapacityCommand, } from "../protocols/Aws_restJson1";
4
+ import { PurchaseProvisionedCapacity } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class PurchaseProvisionedCapacityCommand 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("Glacier", "PurchaseProvisionedCapacity", {})
17
13
  .n("GlacierClient", "PurchaseProvisionedCapacityCommand")
18
- .f(void 0, void 0)
19
- .ser(se_PurchaseProvisionedCapacityCommand)
20
- .de(de_PurchaseProvisionedCapacityCommand)
14
+ .sc(PurchaseProvisionedCapacity)
21
15
  .build() {
22
16
  }
@@ -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_RemoveTagsFromVaultCommand, se_RemoveTagsFromVaultCommand } from "../protocols/Aws_restJson1";
4
+ import { RemoveTagsFromVault } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class RemoveTagsFromVaultCommand 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("Glacier", "RemoveTagsFromVault", {})
17
13
  .n("GlacierClient", "RemoveTagsFromVaultCommand")
18
- .f(void 0, void 0)
19
- .ser(se_RemoveTagsFromVaultCommand)
20
- .de(de_RemoveTagsFromVaultCommand)
14
+ .sc(RemoveTagsFromVault)
21
15
  .build() {
22
16
  }
@@ -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_SetDataRetrievalPolicyCommand, se_SetDataRetrievalPolicyCommand } from "../protocols/Aws_restJson1";
4
+ import { SetDataRetrievalPolicy } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class SetDataRetrievalPolicyCommand 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("Glacier", "SetDataRetrievalPolicy", {})
17
13
  .n("GlacierClient", "SetDataRetrievalPolicyCommand")
18
- .f(void 0, void 0)
19
- .ser(se_SetDataRetrievalPolicyCommand)
20
- .de(de_SetDataRetrievalPolicyCommand)
14
+ .sc(SetDataRetrievalPolicy)
21
15
  .build() {
22
16
  }
@@ -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_SetVaultAccessPolicyCommand, se_SetVaultAccessPolicyCommand } from "../protocols/Aws_restJson1";
4
+ import { SetVaultAccessPolicy } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class SetVaultAccessPolicyCommand 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("Glacier", "SetVaultAccessPolicy", {})
17
13
  .n("GlacierClient", "SetVaultAccessPolicyCommand")
18
- .f(void 0, void 0)
19
- .ser(se_SetVaultAccessPolicyCommand)
20
- .de(de_SetVaultAccessPolicyCommand)
14
+ .sc(SetVaultAccessPolicy)
21
15
  .build() {
22
16
  }
@@ -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_SetVaultNotificationsCommand, se_SetVaultNotificationsCommand } from "../protocols/Aws_restJson1";
4
+ import { SetVaultNotifications } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class SetVaultNotificationsCommand 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("Glacier", "SetVaultNotifications", {})
17
13
  .n("GlacierClient", "SetVaultNotificationsCommand")
18
- .f(void 0, void 0)
19
- .ser(se_SetVaultNotificationsCommand)
20
- .de(de_SetVaultNotificationsCommand)
14
+ .sc(SetVaultNotifications)
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 { UploadArchiveInputFilterSensitiveLog } from "../models/models_0";
6
- import { de_UploadArchiveCommand, se_UploadArchiveCommand } from "../protocols/Aws_restJson1";
4
+ import { UploadArchive } from "../schemas/schemas_0";
7
5
  export { $Command };
8
6
  export class UploadArchiveCommand 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("Glacier", "UploadArchive", {})
18
13
  .n("GlacierClient", "UploadArchiveCommand")
19
- .f(UploadArchiveInputFilterSensitiveLog, void 0)
20
- .ser(se_UploadArchiveCommand)
21
- .de(de_UploadArchiveCommand)
14
+ .sc(UploadArchive)
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 { UploadMultipartPartInputFilterSensitiveLog, } from "../models/models_0";
6
- import { de_UploadMultipartPartCommand, se_UploadMultipartPartCommand } from "../protocols/Aws_restJson1";
4
+ import { UploadMultipartPart } from "../schemas/schemas_0";
7
5
  export { $Command };
8
6
  export class UploadMultipartPartCommand 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("Glacier", "UploadMultipartPart", {})
18
13
  .n("GlacierClient", "UploadMultipartPartCommand")
19
- .f(UploadMultipartPartInputFilterSensitiveLog, void 0)
20
- .ser(se_UploadMultipartPartCommand)
21
- .de(de_UploadMultipartPartCommand)
14
+ .sc(UploadMultipartPart)
22
15
  .build() {
23
16
  }
@@ -179,12 +179,3 @@ export class RequestTimeoutException extends __BaseException {
179
179
  this.code = opts.code;
180
180
  }
181
181
  }
182
- export const GetJobOutputOutputFilterSensitiveLog = (obj) => ({
183
- ...obj,
184
- });
185
- export const UploadArchiveInputFilterSensitiveLog = (obj) => ({
186
- ...obj,
187
- });
188
- export const UploadMultipartPartInputFilterSensitiveLog = (obj) => ({
189
- ...obj,
190
- });
@@ -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.glacier" }),
26
28
  sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin,
27
29
  serviceId: config?.serviceId ?? "Glacier",
28
30
  urlParser: config?.urlParser ?? parseUrl,