@aws-sdk/client-glacier 3.1076.0 → 3.1078.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 (119) hide show
  1. package/dist-cjs/index.js +44 -335
  2. package/dist-es/commandBuilder.js +6 -0
  3. package/dist-es/commands/AbortMultipartUploadCommand.js +2 -14
  4. package/dist-es/commands/AbortVaultLockCommand.js +2 -14
  5. package/dist-es/commands/AddTagsToVaultCommand.js +2 -14
  6. package/dist-es/commands/CompleteMultipartUploadCommand.js +2 -14
  7. package/dist-es/commands/CompleteVaultLockCommand.js +2 -14
  8. package/dist-es/commands/CreateVaultCommand.js +2 -14
  9. package/dist-es/commands/DeleteArchiveCommand.js +2 -14
  10. package/dist-es/commands/DeleteVaultAccessPolicyCommand.js +2 -14
  11. package/dist-es/commands/DeleteVaultCommand.js +2 -14
  12. package/dist-es/commands/DeleteVaultNotificationsCommand.js +2 -14
  13. package/dist-es/commands/DescribeJobCommand.js +2 -14
  14. package/dist-es/commands/DescribeVaultCommand.js +2 -14
  15. package/dist-es/commands/GetDataRetrievalPolicyCommand.js +2 -14
  16. package/dist-es/commands/GetJobOutputCommand.js +2 -14
  17. package/dist-es/commands/GetVaultAccessPolicyCommand.js +2 -14
  18. package/dist-es/commands/GetVaultLockCommand.js +2 -14
  19. package/dist-es/commands/GetVaultNotificationsCommand.js +2 -14
  20. package/dist-es/commands/InitiateJobCommand.js +2 -14
  21. package/dist-es/commands/InitiateMultipartUploadCommand.js +2 -14
  22. package/dist-es/commands/InitiateVaultLockCommand.js +2 -14
  23. package/dist-es/commands/ListJobsCommand.js +2 -14
  24. package/dist-es/commands/ListMultipartUploadsCommand.js +2 -14
  25. package/dist-es/commands/ListPartsCommand.js +2 -14
  26. package/dist-es/commands/ListProvisionedCapacityCommand.js +2 -14
  27. package/dist-es/commands/ListTagsForVaultCommand.js +2 -14
  28. package/dist-es/commands/ListVaultsCommand.js +2 -14
  29. package/dist-es/commands/PurchaseProvisionedCapacityCommand.js +2 -14
  30. package/dist-es/commands/RemoveTagsFromVaultCommand.js +2 -14
  31. package/dist-es/commands/SetDataRetrievalPolicyCommand.js +2 -14
  32. package/dist-es/commands/SetVaultAccessPolicyCommand.js +2 -14
  33. package/dist-es/commands/SetVaultNotificationsCommand.js +2 -14
  34. package/dist-es/commands/UploadArchiveCommand.js +2 -14
  35. package/dist-es/commands/UploadMultipartPartCommand.js +2 -14
  36. package/dist-es/index.js +1 -0
  37. package/dist-es/runtimeConfig.browser.js +0 -2
  38. package/dist-es/runtimeConfig.js +1 -2
  39. package/dist-es/runtimeConfig.native.js +0 -2
  40. package/dist-es/runtimeConfig.shared.js +2 -0
  41. package/dist-types/commandBuilder.d.ts +18 -0
  42. package/dist-types/commands/AbortMultipartUploadCommand.d.ts +3 -8
  43. package/dist-types/commands/AbortVaultLockCommand.d.ts +3 -8
  44. package/dist-types/commands/AddTagsToVaultCommand.d.ts +3 -8
  45. package/dist-types/commands/CompleteMultipartUploadCommand.d.ts +3 -8
  46. package/dist-types/commands/CompleteVaultLockCommand.d.ts +3 -8
  47. package/dist-types/commands/CreateVaultCommand.d.ts +3 -8
  48. package/dist-types/commands/DeleteArchiveCommand.d.ts +3 -8
  49. package/dist-types/commands/DeleteVaultAccessPolicyCommand.d.ts +3 -8
  50. package/dist-types/commands/DeleteVaultCommand.d.ts +3 -8
  51. package/dist-types/commands/DeleteVaultNotificationsCommand.d.ts +3 -8
  52. package/dist-types/commands/DescribeJobCommand.d.ts +3 -8
  53. package/dist-types/commands/DescribeVaultCommand.d.ts +3 -8
  54. package/dist-types/commands/GetDataRetrievalPolicyCommand.d.ts +3 -8
  55. package/dist-types/commands/GetJobOutputCommand.d.ts +3 -8
  56. package/dist-types/commands/GetVaultAccessPolicyCommand.d.ts +3 -8
  57. package/dist-types/commands/GetVaultLockCommand.d.ts +3 -8
  58. package/dist-types/commands/GetVaultNotificationsCommand.d.ts +3 -8
  59. package/dist-types/commands/InitiateJobCommand.d.ts +3 -8
  60. package/dist-types/commands/InitiateMultipartUploadCommand.d.ts +3 -8
  61. package/dist-types/commands/InitiateVaultLockCommand.d.ts +3 -8
  62. package/dist-types/commands/ListJobsCommand.d.ts +3 -8
  63. package/dist-types/commands/ListMultipartUploadsCommand.d.ts +3 -8
  64. package/dist-types/commands/ListPartsCommand.d.ts +3 -8
  65. package/dist-types/commands/ListProvisionedCapacityCommand.d.ts +3 -8
  66. package/dist-types/commands/ListTagsForVaultCommand.d.ts +3 -8
  67. package/dist-types/commands/ListVaultsCommand.d.ts +3 -8
  68. package/dist-types/commands/PurchaseProvisionedCapacityCommand.d.ts +3 -8
  69. package/dist-types/commands/RemoveTagsFromVaultCommand.d.ts +3 -8
  70. package/dist-types/commands/SetDataRetrievalPolicyCommand.d.ts +3 -8
  71. package/dist-types/commands/SetVaultAccessPolicyCommand.d.ts +3 -8
  72. package/dist-types/commands/SetVaultNotificationsCommand.d.ts +3 -8
  73. package/dist-types/commands/UploadArchiveCommand.d.ts +3 -8
  74. package/dist-types/commands/UploadMultipartPartCommand.d.ts +3 -8
  75. package/dist-types/index.d.ts +1 -0
  76. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  77. package/dist-types/runtimeConfig.d.ts +1 -1
  78. package/dist-types/runtimeConfig.native.d.ts +1 -1
  79. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  80. package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
  81. package/dist-types/ts3.4/commands/AbortMultipartUploadCommand.d.ts +7 -16
  82. package/dist-types/ts3.4/commands/AbortVaultLockCommand.d.ts +7 -16
  83. package/dist-types/ts3.4/commands/AddTagsToVaultCommand.d.ts +7 -16
  84. package/dist-types/ts3.4/commands/CompleteMultipartUploadCommand.d.ts +7 -16
  85. package/dist-types/ts3.4/commands/CompleteVaultLockCommand.d.ts +7 -16
  86. package/dist-types/ts3.4/commands/CreateVaultCommand.d.ts +7 -16
  87. package/dist-types/ts3.4/commands/DeleteArchiveCommand.d.ts +7 -16
  88. package/dist-types/ts3.4/commands/DeleteVaultAccessPolicyCommand.d.ts +7 -16
  89. package/dist-types/ts3.4/commands/DeleteVaultCommand.d.ts +7 -16
  90. package/dist-types/ts3.4/commands/DeleteVaultNotificationsCommand.d.ts +7 -16
  91. package/dist-types/ts3.4/commands/DescribeJobCommand.d.ts +7 -16
  92. package/dist-types/ts3.4/commands/DescribeVaultCommand.d.ts +7 -16
  93. package/dist-types/ts3.4/commands/GetDataRetrievalPolicyCommand.d.ts +7 -16
  94. package/dist-types/ts3.4/commands/GetJobOutputCommand.d.ts +7 -16
  95. package/dist-types/ts3.4/commands/GetVaultAccessPolicyCommand.d.ts +7 -16
  96. package/dist-types/ts3.4/commands/GetVaultLockCommand.d.ts +7 -16
  97. package/dist-types/ts3.4/commands/GetVaultNotificationsCommand.d.ts +7 -16
  98. package/dist-types/ts3.4/commands/InitiateJobCommand.d.ts +7 -16
  99. package/dist-types/ts3.4/commands/InitiateMultipartUploadCommand.d.ts +7 -16
  100. package/dist-types/ts3.4/commands/InitiateVaultLockCommand.d.ts +7 -16
  101. package/dist-types/ts3.4/commands/ListJobsCommand.d.ts +7 -16
  102. package/dist-types/ts3.4/commands/ListMultipartUploadsCommand.d.ts +7 -16
  103. package/dist-types/ts3.4/commands/ListPartsCommand.d.ts +7 -16
  104. package/dist-types/ts3.4/commands/ListProvisionedCapacityCommand.d.ts +7 -16
  105. package/dist-types/ts3.4/commands/ListTagsForVaultCommand.d.ts +7 -16
  106. package/dist-types/ts3.4/commands/ListVaultsCommand.d.ts +7 -16
  107. package/dist-types/ts3.4/commands/PurchaseProvisionedCapacityCommand.d.ts +7 -16
  108. package/dist-types/ts3.4/commands/RemoveTagsFromVaultCommand.d.ts +7 -16
  109. package/dist-types/ts3.4/commands/SetDataRetrievalPolicyCommand.d.ts +7 -16
  110. package/dist-types/ts3.4/commands/SetVaultAccessPolicyCommand.d.ts +7 -16
  111. package/dist-types/ts3.4/commands/SetVaultNotificationsCommand.d.ts +7 -16
  112. package/dist-types/ts3.4/commands/UploadArchiveCommand.d.ts +7 -16
  113. package/dist-types/ts3.4/commands/UploadMultipartPartCommand.d.ts +7 -16
  114. package/dist-types/ts3.4/index.d.ts +1 -0
  115. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  116. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  117. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  118. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  119. package/package.json +11 -13
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { DeleteVault$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteVaultCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Glacier", "DeleteVault", {})
13
- .n("GlacierClient", "DeleteVaultCommand")
14
- .sc(DeleteVault$)
15
- .build() {
3
+ export class DeleteVaultCommand extends command(_ep0, _mw0, "DeleteVault", DeleteVault$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { DeleteVaultNotifications$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteVaultNotificationsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Glacier", "DeleteVaultNotifications", {})
13
- .n("GlacierClient", "DeleteVaultNotificationsCommand")
14
- .sc(DeleteVaultNotifications$)
15
- .build() {
3
+ export class DeleteVaultNotificationsCommand extends command(_ep0, _mw0, "DeleteVaultNotifications", DeleteVaultNotifications$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { DescribeJob$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DescribeJobCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Glacier", "DescribeJob", {})
13
- .n("GlacierClient", "DescribeJobCommand")
14
- .sc(DescribeJob$)
15
- .build() {
3
+ export class DescribeJobCommand extends command(_ep0, _mw0, "DescribeJob", DescribeJob$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { DescribeVault$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DescribeVaultCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Glacier", "DescribeVault", {})
13
- .n("GlacierClient", "DescribeVaultCommand")
14
- .sc(DescribeVault$)
15
- .build() {
3
+ export class DescribeVaultCommand extends command(_ep0, _mw0, "DescribeVault", DescribeVault$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetDataRetrievalPolicy$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetDataRetrievalPolicyCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Glacier", "GetDataRetrievalPolicy", {})
13
- .n("GlacierClient", "GetDataRetrievalPolicyCommand")
14
- .sc(GetDataRetrievalPolicy$)
15
- .build() {
3
+ export class GetDataRetrievalPolicyCommand extends command(_ep0, _mw0, "GetDataRetrievalPolicy", GetDataRetrievalPolicy$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetJobOutput$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetJobOutputCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Glacier", "GetJobOutput", {})
13
- .n("GlacierClient", "GetJobOutputCommand")
14
- .sc(GetJobOutput$)
15
- .build() {
3
+ export class GetJobOutputCommand extends command(_ep0, _mw0, "GetJobOutput", GetJobOutput$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetVaultAccessPolicy$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetVaultAccessPolicyCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Glacier", "GetVaultAccessPolicy", {})
13
- .n("GlacierClient", "GetVaultAccessPolicyCommand")
14
- .sc(GetVaultAccessPolicy$)
15
- .build() {
3
+ export class GetVaultAccessPolicyCommand extends command(_ep0, _mw0, "GetVaultAccessPolicy", GetVaultAccessPolicy$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetVaultLock$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetVaultLockCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Glacier", "GetVaultLock", {})
13
- .n("GlacierClient", "GetVaultLockCommand")
14
- .sc(GetVaultLock$)
15
- .build() {
3
+ export class GetVaultLockCommand extends command(_ep0, _mw0, "GetVaultLock", GetVaultLock$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetVaultNotifications$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetVaultNotificationsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Glacier", "GetVaultNotifications", {})
13
- .n("GlacierClient", "GetVaultNotificationsCommand")
14
- .sc(GetVaultNotifications$)
15
- .build() {
3
+ export class GetVaultNotificationsCommand extends command(_ep0, _mw0, "GetVaultNotifications", GetVaultNotifications$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { InitiateJob$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class InitiateJobCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Glacier", "InitiateJob", {})
13
- .n("GlacierClient", "InitiateJobCommand")
14
- .sc(InitiateJob$)
15
- .build() {
3
+ export class InitiateJobCommand extends command(_ep0, _mw0, "InitiateJob", InitiateJob$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { InitiateMultipartUpload$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class InitiateMultipartUploadCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Glacier", "InitiateMultipartUpload", {})
13
- .n("GlacierClient", "InitiateMultipartUploadCommand")
14
- .sc(InitiateMultipartUpload$)
15
- .build() {
3
+ export class InitiateMultipartUploadCommand extends command(_ep0, _mw0, "InitiateMultipartUpload", InitiateMultipartUpload$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { InitiateVaultLock$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class InitiateVaultLockCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Glacier", "InitiateVaultLock", {})
13
- .n("GlacierClient", "InitiateVaultLockCommand")
14
- .sc(InitiateVaultLock$)
15
- .build() {
3
+ export class InitiateVaultLockCommand extends command(_ep0, _mw0, "InitiateVaultLock", InitiateVaultLock$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListJobs$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListJobsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Glacier", "ListJobs", {})
13
- .n("GlacierClient", "ListJobsCommand")
14
- .sc(ListJobs$)
15
- .build() {
3
+ export class ListJobsCommand extends command(_ep0, _mw0, "ListJobs", ListJobs$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListMultipartUploads$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListMultipartUploadsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Glacier", "ListMultipartUploads", {})
13
- .n("GlacierClient", "ListMultipartUploadsCommand")
14
- .sc(ListMultipartUploads$)
15
- .build() {
3
+ export class ListMultipartUploadsCommand extends command(_ep0, _mw0, "ListMultipartUploads", ListMultipartUploads$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListParts$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListPartsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Glacier", "ListParts", {})
13
- .n("GlacierClient", "ListPartsCommand")
14
- .sc(ListParts$)
15
- .build() {
3
+ export class ListPartsCommand extends command(_ep0, _mw0, "ListParts", ListParts$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListProvisionedCapacity$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListProvisionedCapacityCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Glacier", "ListProvisionedCapacity", {})
13
- .n("GlacierClient", "ListProvisionedCapacityCommand")
14
- .sc(ListProvisionedCapacity$)
15
- .build() {
3
+ export class ListProvisionedCapacityCommand extends command(_ep0, _mw0, "ListProvisionedCapacity", ListProvisionedCapacity$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListTagsForVault$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListTagsForVaultCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Glacier", "ListTagsForVault", {})
13
- .n("GlacierClient", "ListTagsForVaultCommand")
14
- .sc(ListTagsForVault$)
15
- .build() {
3
+ export class ListTagsForVaultCommand extends command(_ep0, _mw0, "ListTagsForVault", ListTagsForVault$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListVaults$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListVaultsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Glacier", "ListVaults", {})
13
- .n("GlacierClient", "ListVaultsCommand")
14
- .sc(ListVaults$)
15
- .build() {
3
+ export class ListVaultsCommand extends command(_ep0, _mw0, "ListVaults", ListVaults$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { PurchaseProvisionedCapacity$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class PurchaseProvisionedCapacityCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Glacier", "PurchaseProvisionedCapacity", {})
13
- .n("GlacierClient", "PurchaseProvisionedCapacityCommand")
14
- .sc(PurchaseProvisionedCapacity$)
15
- .build() {
3
+ export class PurchaseProvisionedCapacityCommand extends command(_ep0, _mw0, "PurchaseProvisionedCapacity", PurchaseProvisionedCapacity$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { RemoveTagsFromVault$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class RemoveTagsFromVaultCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Glacier", "RemoveTagsFromVault", {})
13
- .n("GlacierClient", "RemoveTagsFromVaultCommand")
14
- .sc(RemoveTagsFromVault$)
15
- .build() {
3
+ export class RemoveTagsFromVaultCommand extends command(_ep0, _mw0, "RemoveTagsFromVault", RemoveTagsFromVault$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { SetDataRetrievalPolicy$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class SetDataRetrievalPolicyCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Glacier", "SetDataRetrievalPolicy", {})
13
- .n("GlacierClient", "SetDataRetrievalPolicyCommand")
14
- .sc(SetDataRetrievalPolicy$)
15
- .build() {
3
+ export class SetDataRetrievalPolicyCommand extends command(_ep0, _mw0, "SetDataRetrievalPolicy", SetDataRetrievalPolicy$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { SetVaultAccessPolicy$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class SetVaultAccessPolicyCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Glacier", "SetVaultAccessPolicy", {})
13
- .n("GlacierClient", "SetVaultAccessPolicyCommand")
14
- .sc(SetVaultAccessPolicy$)
15
- .build() {
3
+ export class SetVaultAccessPolicyCommand extends command(_ep0, _mw0, "SetVaultAccessPolicy", SetVaultAccessPolicy$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { SetVaultNotifications$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class SetVaultNotificationsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Glacier", "SetVaultNotifications", {})
13
- .n("GlacierClient", "SetVaultNotificationsCommand")
14
- .sc(SetVaultNotifications$)
15
- .build() {
3
+ export class SetVaultNotificationsCommand extends command(_ep0, _mw0, "SetVaultNotifications", SetVaultNotifications$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { UploadArchive$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UploadArchiveCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Glacier", "UploadArchive", {})
13
- .n("GlacierClient", "UploadArchiveCommand")
14
- .sc(UploadArchive$)
15
- .build() {
3
+ export class UploadArchiveCommand extends command(_ep0, _mw0, "UploadArchive", UploadArchive$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { UploadMultipartPart$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UploadMultipartPartCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Glacier", "UploadMultipartPart", {})
13
- .n("GlacierClient", "UploadMultipartPartCommand")
14
- .sc(UploadMultipartPart$)
15
- .build() {
3
+ export class UploadMultipartPartCommand extends command(_ep0, _mw0, "UploadMultipartPart", UploadMultipartPart$) {
16
4
  }
package/dist-es/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./GlacierClient";
2
2
  export * from "./Glacier";
3
3
  export * from "./commands";
4
+ export { Command as $Command } from "@smithy/core/client";
4
5
  export * from "./schemas/schemas_0";
5
6
  export * from "./pagination";
6
7
  export * from "./waiters";
@@ -1,5 +1,4 @@
1
1
  import packageInfo from "../package.json";
2
- import { Sha256 } from "@aws-crypto/sha256-browser";
3
2
  import { bodyChecksumGenerator } from "@aws-sdk/body-checksum-browser";
4
3
  import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
5
4
  import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
@@ -25,7 +24,6 @@ export const getRuntimeConfig = (config) => {
25
24
  region: config?.region ?? invalidProvider("Region is missing"),
26
25
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
27
26
  retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
28
- sha256: config?.sha256 ?? Sha256,
29
27
  streamCollector: config?.streamCollector ?? streamCollector,
30
28
  useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
31
29
  useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
@@ -6,7 +6,7 @@ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credentia
6
6
  import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
7
7
  import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
8
8
  import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
9
- import { calculateBodyLength, Hash } from "@smithy/core/serde";
9
+ import { calculateBodyLength } from "@smithy/core/serde";
10
10
  import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
11
11
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
12
12
  export const getRuntimeConfig = (config) => {
@@ -37,7 +37,6 @@ export const getRuntimeConfig = (config) => {
37
37
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
38
38
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
39
39
  }, config),
40
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
41
40
  streamCollector: config?.streamCollector ?? streamCollector,
42
41
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
43
42
  useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -1,4 +1,3 @@
1
- import { Sha256 } from "@aws-crypto/sha256-js";
2
1
  import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
3
2
  export const getRuntimeConfig = (config) => {
4
3
  const browserDefaults = getBrowserRuntimeConfig(config);
@@ -6,6 +5,5 @@ export const getRuntimeConfig = (config) => {
6
5
  ...browserDefaults,
7
6
  ...config,
8
7
  runtime: "react-native",
9
- sha256: config?.sha256 ?? Sha256,
10
8
  };
11
9
  };
@@ -1,5 +1,6 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
2
2
  import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
3
+ import { Sha256 } from "@smithy/core/checksum";
3
4
  import { NoOpLogger } from "@smithy/core/client";
4
5
  import { parseUrl } from "@smithy/core/protocols";
5
6
  import { fromBase64, fromUtf8, sdkStreamMixin, toBase64, toUtf8 } from "@smithy/core/serde";
@@ -33,6 +34,7 @@ export const getRuntimeConfig = (config) => {
33
34
  },
34
35
  sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin,
35
36
  serviceId: config?.serviceId ?? "Glacier",
37
+ sha256: config?.sha256 ?? Sha256,
36
38
  urlParser: config?.urlParser ?? parseUrl,
37
39
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
38
40
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -0,0 +1,18 @@
1
+ import type { EndpointParameterInstructions } from "@smithy/types";
2
+ import type { GlacierClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "./GlacierClient";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const command: <I extends ServiceInputTypes, O extends ServiceOutputTypes>(added: EndpointParameterInstructions, plugins: (CommandCtor: any, clientStack: any, config: any, options: any) => import("@smithy/types").Pluggable<any, any>[], op: string, $: import("@smithy/types").StaticOperationSchema, smithyContext?: Record<string, unknown>) => {
7
+ new (input: I): import("@smithy/core/client").CommandImpl<I, O, GlacierClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
8
+ new (...[input]: import("@smithy/types").OptionalParameter<I>): import("@smithy/core/client").CommandImpl<I, O, GlacierClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
9
+ getEndpointParameterInstructions(): EndpointParameterInstructions;
10
+ };
11
+ /**
12
+ * @internal
13
+ */
14
+ export declare const _ep0: EndpointParameterInstructions;
15
+ /**
16
+ * @internal
17
+ */
18
+ export declare const _mw0: (Command: any, cs: any, config: any, o: any) => never[];
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { GlacierClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GlacierClient";
4
2
  import type { AbortMultipartUploadInput } from "../models/models_0";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface AbortMultipartUploadCommandInput extends AbortMultipartUploadIn
22
19
  export interface AbortMultipartUploadCommandOutput extends __MetadataBearer {
23
20
  }
24
21
  declare const AbortMultipartUploadCommand_base: {
25
- new (input: AbortMultipartUploadCommandInput): import("@smithy/core/client").CommandImpl<AbortMultipartUploadCommandInput, AbortMultipartUploadCommandOutput, GlacierClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: AbortMultipartUploadCommandInput): import("@smithy/core/client").CommandImpl<AbortMultipartUploadCommandInput, AbortMultipartUploadCommandOutput, GlacierClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: AbortMultipartUploadCommandInput): import("@smithy/core/client").CommandImpl<AbortMultipartUploadCommandInput, AbortMultipartUploadCommandOutput, import("..").GlacierClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: AbortMultipartUploadCommandInput): import("@smithy/core/client").CommandImpl<AbortMultipartUploadCommandInput, AbortMultipartUploadCommandOutput, import("..").GlacierClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>This operation aborts a multipart upload identified by the upload ID.</p>