@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
package/dist-cjs/index.js CHANGED
@@ -1,8 +1,9 @@
1
1
  const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
2
2
  const { getGlacierPlugin } = require("@aws-sdk/middleware-sdk-glacier");
3
3
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
4
- const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createWaiter, checkExceptions, WaiterState, createAggregatedClient } = require("@smithy/core/client");
5
- exports.$Command = Command;
4
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createWaiter, checkExceptions, WaiterState, createAggregatedClient } = require("@smithy/core/client");
5
+ const { Command: $Command } = require("@smithy/core/client");
6
+ exports.$Command = $Command;
6
7
  exports.__Client = Client;
7
8
  const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
8
9
  const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
@@ -12,9 +13,10 @@ const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
12
13
  const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
13
14
  const { bodyChecksumGenerator } = require("@aws-sdk/body-checksum-node");
14
15
  const { defaultProvider } = require("@aws-sdk/credential-provider-node");
15
- const { toUtf8, fromUtf8, sdkStreamMixin, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
16
+ const { toUtf8, fromUtf8, sdkStreamMixin, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
16
17
  const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
17
18
  const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
19
+ const { Sha256 } = require("@smithy/core/checksum");
18
20
 
19
21
  const defaultGlacierHttpAuthSchemeParametersProvider = async (config, context, input) => {
20
22
  return {
@@ -69,7 +71,7 @@ const commonParams = {
69
71
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
70
72
  };
71
73
 
72
- var version = "3.1075.0";
74
+ var version = "3.1077.0";
73
75
  var packageInfo = {
74
76
  version: version};
75
77
 
@@ -1117,6 +1119,7 @@ const getRuntimeConfig$1 = (config) => {
1117
1119
  },
1118
1120
  sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin,
1119
1121
  serviceId: config?.serviceId ?? "Glacier",
1122
+ sha256: config?.sha256 ?? Sha256,
1120
1123
  urlParser: config?.urlParser ?? parseUrl,
1121
1124
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
1122
1125
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -1151,7 +1154,6 @@ const getRuntimeConfig = (config) => {
1151
1154
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
1152
1155
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
1153
1156
  }, config),
1154
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
1155
1157
  streamCollector: config?.streamCollector ?? streamCollector,
1156
1158
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
1157
1159
  useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -1240,400 +1242,107 @@ class GlacierClient extends Client {
1240
1242
  }
1241
1243
  }
1242
1244
 
1243
- class AbortMultipartUploadCommand extends Command
1244
- .classBuilder()
1245
- .ep(commonParams)
1246
- .m(function (Command, cs, config, o) {
1247
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1248
- })
1249
- .s("Glacier", "AbortMultipartUpload", {})
1250
- .n("GlacierClient", "AbortMultipartUploadCommand")
1251
- .sc(AbortMultipartUpload$)
1252
- .build() {
1245
+ const command = makeBuilder(commonParams, "Glacier", "GlacierClient", getEndpointPlugin);
1246
+ const _ep0 = {};
1247
+ const _mw0 = (Command, cs, config, o) => [];
1248
+
1249
+ class AbortMultipartUploadCommand extends command(_ep0, _mw0, "AbortMultipartUpload", AbortMultipartUpload$) {
1253
1250
  }
1254
1251
 
1255
- class AbortVaultLockCommand extends Command
1256
- .classBuilder()
1257
- .ep(commonParams)
1258
- .m(function (Command, cs, config, o) {
1259
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1260
- })
1261
- .s("Glacier", "AbortVaultLock", {})
1262
- .n("GlacierClient", "AbortVaultLockCommand")
1263
- .sc(AbortVaultLock$)
1264
- .build() {
1252
+ class AbortVaultLockCommand extends command(_ep0, _mw0, "AbortVaultLock", AbortVaultLock$) {
1265
1253
  }
1266
1254
 
1267
- class AddTagsToVaultCommand extends Command
1268
- .classBuilder()
1269
- .ep(commonParams)
1270
- .m(function (Command, cs, config, o) {
1271
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1272
- })
1273
- .s("Glacier", "AddTagsToVault", {})
1274
- .n("GlacierClient", "AddTagsToVaultCommand")
1275
- .sc(AddTagsToVault$)
1276
- .build() {
1255
+ class AddTagsToVaultCommand extends command(_ep0, _mw0, "AddTagsToVault", AddTagsToVault$) {
1277
1256
  }
1278
1257
 
1279
- class CompleteMultipartUploadCommand extends Command
1280
- .classBuilder()
1281
- .ep(commonParams)
1282
- .m(function (Command, cs, config, o) {
1283
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1284
- })
1285
- .s("Glacier", "CompleteMultipartUpload", {})
1286
- .n("GlacierClient", "CompleteMultipartUploadCommand")
1287
- .sc(CompleteMultipartUpload$)
1288
- .build() {
1258
+ class CompleteMultipartUploadCommand extends command(_ep0, _mw0, "CompleteMultipartUpload", CompleteMultipartUpload$) {
1289
1259
  }
1290
1260
 
1291
- class CompleteVaultLockCommand extends Command
1292
- .classBuilder()
1293
- .ep(commonParams)
1294
- .m(function (Command, cs, config, o) {
1295
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1296
- })
1297
- .s("Glacier", "CompleteVaultLock", {})
1298
- .n("GlacierClient", "CompleteVaultLockCommand")
1299
- .sc(CompleteVaultLock$)
1300
- .build() {
1261
+ class CompleteVaultLockCommand extends command(_ep0, _mw0, "CompleteVaultLock", CompleteVaultLock$) {
1301
1262
  }
1302
1263
 
1303
- class CreateVaultCommand extends Command
1304
- .classBuilder()
1305
- .ep(commonParams)
1306
- .m(function (Command, cs, config, o) {
1307
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1308
- })
1309
- .s("Glacier", "CreateVault", {})
1310
- .n("GlacierClient", "CreateVaultCommand")
1311
- .sc(CreateVault$)
1312
- .build() {
1264
+ class CreateVaultCommand extends command(_ep0, _mw0, "CreateVault", CreateVault$) {
1313
1265
  }
1314
1266
 
1315
- class DeleteArchiveCommand extends Command
1316
- .classBuilder()
1317
- .ep(commonParams)
1318
- .m(function (Command, cs, config, o) {
1319
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1320
- })
1321
- .s("Glacier", "DeleteArchive", {})
1322
- .n("GlacierClient", "DeleteArchiveCommand")
1323
- .sc(DeleteArchive$)
1324
- .build() {
1267
+ class DeleteArchiveCommand extends command(_ep0, _mw0, "DeleteArchive", DeleteArchive$) {
1325
1268
  }
1326
1269
 
1327
- class DeleteVaultAccessPolicyCommand extends Command
1328
- .classBuilder()
1329
- .ep(commonParams)
1330
- .m(function (Command, cs, config, o) {
1331
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1332
- })
1333
- .s("Glacier", "DeleteVaultAccessPolicy", {})
1334
- .n("GlacierClient", "DeleteVaultAccessPolicyCommand")
1335
- .sc(DeleteVaultAccessPolicy$)
1336
- .build() {
1270
+ class DeleteVaultAccessPolicyCommand extends command(_ep0, _mw0, "DeleteVaultAccessPolicy", DeleteVaultAccessPolicy$) {
1337
1271
  }
1338
1272
 
1339
- class DeleteVaultCommand extends Command
1340
- .classBuilder()
1341
- .ep(commonParams)
1342
- .m(function (Command, cs, config, o) {
1343
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1344
- })
1345
- .s("Glacier", "DeleteVault", {})
1346
- .n("GlacierClient", "DeleteVaultCommand")
1347
- .sc(DeleteVault$)
1348
- .build() {
1273
+ class DeleteVaultCommand extends command(_ep0, _mw0, "DeleteVault", DeleteVault$) {
1349
1274
  }
1350
1275
 
1351
- class DeleteVaultNotificationsCommand extends Command
1352
- .classBuilder()
1353
- .ep(commonParams)
1354
- .m(function (Command, cs, config, o) {
1355
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1356
- })
1357
- .s("Glacier", "DeleteVaultNotifications", {})
1358
- .n("GlacierClient", "DeleteVaultNotificationsCommand")
1359
- .sc(DeleteVaultNotifications$)
1360
- .build() {
1276
+ class DeleteVaultNotificationsCommand extends command(_ep0, _mw0, "DeleteVaultNotifications", DeleteVaultNotifications$) {
1361
1277
  }
1362
1278
 
1363
- class DescribeJobCommand extends Command
1364
- .classBuilder()
1365
- .ep(commonParams)
1366
- .m(function (Command, cs, config, o) {
1367
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1368
- })
1369
- .s("Glacier", "DescribeJob", {})
1370
- .n("GlacierClient", "DescribeJobCommand")
1371
- .sc(DescribeJob$)
1372
- .build() {
1279
+ class DescribeJobCommand extends command(_ep0, _mw0, "DescribeJob", DescribeJob$) {
1373
1280
  }
1374
1281
 
1375
- class DescribeVaultCommand extends Command
1376
- .classBuilder()
1377
- .ep(commonParams)
1378
- .m(function (Command, cs, config, o) {
1379
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1380
- })
1381
- .s("Glacier", "DescribeVault", {})
1382
- .n("GlacierClient", "DescribeVaultCommand")
1383
- .sc(DescribeVault$)
1384
- .build() {
1282
+ class DescribeVaultCommand extends command(_ep0, _mw0, "DescribeVault", DescribeVault$) {
1385
1283
  }
1386
1284
 
1387
- class GetDataRetrievalPolicyCommand extends Command
1388
- .classBuilder()
1389
- .ep(commonParams)
1390
- .m(function (Command, cs, config, o) {
1391
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1392
- })
1393
- .s("Glacier", "GetDataRetrievalPolicy", {})
1394
- .n("GlacierClient", "GetDataRetrievalPolicyCommand")
1395
- .sc(GetDataRetrievalPolicy$)
1396
- .build() {
1285
+ class GetDataRetrievalPolicyCommand extends command(_ep0, _mw0, "GetDataRetrievalPolicy", GetDataRetrievalPolicy$) {
1397
1286
  }
1398
1287
 
1399
- class GetJobOutputCommand extends Command
1400
- .classBuilder()
1401
- .ep(commonParams)
1402
- .m(function (Command, cs, config, o) {
1403
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1404
- })
1405
- .s("Glacier", "GetJobOutput", {})
1406
- .n("GlacierClient", "GetJobOutputCommand")
1407
- .sc(GetJobOutput$)
1408
- .build() {
1288
+ class GetJobOutputCommand extends command(_ep0, _mw0, "GetJobOutput", GetJobOutput$) {
1409
1289
  }
1410
1290
 
1411
- class GetVaultAccessPolicyCommand extends Command
1412
- .classBuilder()
1413
- .ep(commonParams)
1414
- .m(function (Command, cs, config, o) {
1415
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1416
- })
1417
- .s("Glacier", "GetVaultAccessPolicy", {})
1418
- .n("GlacierClient", "GetVaultAccessPolicyCommand")
1419
- .sc(GetVaultAccessPolicy$)
1420
- .build() {
1291
+ class GetVaultAccessPolicyCommand extends command(_ep0, _mw0, "GetVaultAccessPolicy", GetVaultAccessPolicy$) {
1421
1292
  }
1422
1293
 
1423
- class GetVaultLockCommand extends Command
1424
- .classBuilder()
1425
- .ep(commonParams)
1426
- .m(function (Command, cs, config, o) {
1427
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1428
- })
1429
- .s("Glacier", "GetVaultLock", {})
1430
- .n("GlacierClient", "GetVaultLockCommand")
1431
- .sc(GetVaultLock$)
1432
- .build() {
1294
+ class GetVaultLockCommand extends command(_ep0, _mw0, "GetVaultLock", GetVaultLock$) {
1433
1295
  }
1434
1296
 
1435
- class GetVaultNotificationsCommand extends Command
1436
- .classBuilder()
1437
- .ep(commonParams)
1438
- .m(function (Command, cs, config, o) {
1439
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1440
- })
1441
- .s("Glacier", "GetVaultNotifications", {})
1442
- .n("GlacierClient", "GetVaultNotificationsCommand")
1443
- .sc(GetVaultNotifications$)
1444
- .build() {
1297
+ class GetVaultNotificationsCommand extends command(_ep0, _mw0, "GetVaultNotifications", GetVaultNotifications$) {
1445
1298
  }
1446
1299
 
1447
- class InitiateJobCommand extends Command
1448
- .classBuilder()
1449
- .ep(commonParams)
1450
- .m(function (Command, cs, config, o) {
1451
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1452
- })
1453
- .s("Glacier", "InitiateJob", {})
1454
- .n("GlacierClient", "InitiateJobCommand")
1455
- .sc(InitiateJob$)
1456
- .build() {
1300
+ class InitiateJobCommand extends command(_ep0, _mw0, "InitiateJob", InitiateJob$) {
1457
1301
  }
1458
1302
 
1459
- class InitiateMultipartUploadCommand extends Command
1460
- .classBuilder()
1461
- .ep(commonParams)
1462
- .m(function (Command, cs, config, o) {
1463
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1464
- })
1465
- .s("Glacier", "InitiateMultipartUpload", {})
1466
- .n("GlacierClient", "InitiateMultipartUploadCommand")
1467
- .sc(InitiateMultipartUpload$)
1468
- .build() {
1303
+ class InitiateMultipartUploadCommand extends command(_ep0, _mw0, "InitiateMultipartUpload", InitiateMultipartUpload$) {
1469
1304
  }
1470
1305
 
1471
- class InitiateVaultLockCommand extends Command
1472
- .classBuilder()
1473
- .ep(commonParams)
1474
- .m(function (Command, cs, config, o) {
1475
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1476
- })
1477
- .s("Glacier", "InitiateVaultLock", {})
1478
- .n("GlacierClient", "InitiateVaultLockCommand")
1479
- .sc(InitiateVaultLock$)
1480
- .build() {
1306
+ class InitiateVaultLockCommand extends command(_ep0, _mw0, "InitiateVaultLock", InitiateVaultLock$) {
1481
1307
  }
1482
1308
 
1483
- class ListJobsCommand extends Command
1484
- .classBuilder()
1485
- .ep(commonParams)
1486
- .m(function (Command, cs, config, o) {
1487
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1488
- })
1489
- .s("Glacier", "ListJobs", {})
1490
- .n("GlacierClient", "ListJobsCommand")
1491
- .sc(ListJobs$)
1492
- .build() {
1309
+ class ListJobsCommand extends command(_ep0, _mw0, "ListJobs", ListJobs$) {
1493
1310
  }
1494
1311
 
1495
- class ListMultipartUploadsCommand extends Command
1496
- .classBuilder()
1497
- .ep(commonParams)
1498
- .m(function (Command, cs, config, o) {
1499
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1500
- })
1501
- .s("Glacier", "ListMultipartUploads", {})
1502
- .n("GlacierClient", "ListMultipartUploadsCommand")
1503
- .sc(ListMultipartUploads$)
1504
- .build() {
1312
+ class ListMultipartUploadsCommand extends command(_ep0, _mw0, "ListMultipartUploads", ListMultipartUploads$) {
1505
1313
  }
1506
1314
 
1507
- class ListPartsCommand extends Command
1508
- .classBuilder()
1509
- .ep(commonParams)
1510
- .m(function (Command, cs, config, o) {
1511
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1512
- })
1513
- .s("Glacier", "ListParts", {})
1514
- .n("GlacierClient", "ListPartsCommand")
1515
- .sc(ListParts$)
1516
- .build() {
1315
+ class ListPartsCommand extends command(_ep0, _mw0, "ListParts", ListParts$) {
1517
1316
  }
1518
1317
 
1519
- class ListProvisionedCapacityCommand extends Command
1520
- .classBuilder()
1521
- .ep(commonParams)
1522
- .m(function (Command, cs, config, o) {
1523
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1524
- })
1525
- .s("Glacier", "ListProvisionedCapacity", {})
1526
- .n("GlacierClient", "ListProvisionedCapacityCommand")
1527
- .sc(ListProvisionedCapacity$)
1528
- .build() {
1318
+ class ListProvisionedCapacityCommand extends command(_ep0, _mw0, "ListProvisionedCapacity", ListProvisionedCapacity$) {
1529
1319
  }
1530
1320
 
1531
- class ListTagsForVaultCommand extends Command
1532
- .classBuilder()
1533
- .ep(commonParams)
1534
- .m(function (Command, cs, config, o) {
1535
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1536
- })
1537
- .s("Glacier", "ListTagsForVault", {})
1538
- .n("GlacierClient", "ListTagsForVaultCommand")
1539
- .sc(ListTagsForVault$)
1540
- .build() {
1321
+ class ListTagsForVaultCommand extends command(_ep0, _mw0, "ListTagsForVault", ListTagsForVault$) {
1541
1322
  }
1542
1323
 
1543
- class ListVaultsCommand extends Command
1544
- .classBuilder()
1545
- .ep(commonParams)
1546
- .m(function (Command, cs, config, o) {
1547
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1548
- })
1549
- .s("Glacier", "ListVaults", {})
1550
- .n("GlacierClient", "ListVaultsCommand")
1551
- .sc(ListVaults$)
1552
- .build() {
1324
+ class ListVaultsCommand extends command(_ep0, _mw0, "ListVaults", ListVaults$) {
1553
1325
  }
1554
1326
 
1555
- class PurchaseProvisionedCapacityCommand extends Command
1556
- .classBuilder()
1557
- .ep(commonParams)
1558
- .m(function (Command, cs, config, o) {
1559
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1560
- })
1561
- .s("Glacier", "PurchaseProvisionedCapacity", {})
1562
- .n("GlacierClient", "PurchaseProvisionedCapacityCommand")
1563
- .sc(PurchaseProvisionedCapacity$)
1564
- .build() {
1327
+ class PurchaseProvisionedCapacityCommand extends command(_ep0, _mw0, "PurchaseProvisionedCapacity", PurchaseProvisionedCapacity$) {
1565
1328
  }
1566
1329
 
1567
- class RemoveTagsFromVaultCommand extends Command
1568
- .classBuilder()
1569
- .ep(commonParams)
1570
- .m(function (Command, cs, config, o) {
1571
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1572
- })
1573
- .s("Glacier", "RemoveTagsFromVault", {})
1574
- .n("GlacierClient", "RemoveTagsFromVaultCommand")
1575
- .sc(RemoveTagsFromVault$)
1576
- .build() {
1330
+ class RemoveTagsFromVaultCommand extends command(_ep0, _mw0, "RemoveTagsFromVault", RemoveTagsFromVault$) {
1577
1331
  }
1578
1332
 
1579
- class SetDataRetrievalPolicyCommand extends Command
1580
- .classBuilder()
1581
- .ep(commonParams)
1582
- .m(function (Command, cs, config, o) {
1583
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1584
- })
1585
- .s("Glacier", "SetDataRetrievalPolicy", {})
1586
- .n("GlacierClient", "SetDataRetrievalPolicyCommand")
1587
- .sc(SetDataRetrievalPolicy$)
1588
- .build() {
1333
+ class SetDataRetrievalPolicyCommand extends command(_ep0, _mw0, "SetDataRetrievalPolicy", SetDataRetrievalPolicy$) {
1589
1334
  }
1590
1335
 
1591
- class SetVaultAccessPolicyCommand extends Command
1592
- .classBuilder()
1593
- .ep(commonParams)
1594
- .m(function (Command, cs, config, o) {
1595
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1596
- })
1597
- .s("Glacier", "SetVaultAccessPolicy", {})
1598
- .n("GlacierClient", "SetVaultAccessPolicyCommand")
1599
- .sc(SetVaultAccessPolicy$)
1600
- .build() {
1336
+ class SetVaultAccessPolicyCommand extends command(_ep0, _mw0, "SetVaultAccessPolicy", SetVaultAccessPolicy$) {
1601
1337
  }
1602
1338
 
1603
- class SetVaultNotificationsCommand extends Command
1604
- .classBuilder()
1605
- .ep(commonParams)
1606
- .m(function (Command, cs, config, o) {
1607
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1608
- })
1609
- .s("Glacier", "SetVaultNotifications", {})
1610
- .n("GlacierClient", "SetVaultNotificationsCommand")
1611
- .sc(SetVaultNotifications$)
1612
- .build() {
1339
+ class SetVaultNotificationsCommand extends command(_ep0, _mw0, "SetVaultNotifications", SetVaultNotifications$) {
1613
1340
  }
1614
1341
 
1615
- class UploadArchiveCommand extends Command
1616
- .classBuilder()
1617
- .ep(commonParams)
1618
- .m(function (Command, cs, config, o) {
1619
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1620
- })
1621
- .s("Glacier", "UploadArchive", {})
1622
- .n("GlacierClient", "UploadArchiveCommand")
1623
- .sc(UploadArchive$)
1624
- .build() {
1342
+ class UploadArchiveCommand extends command(_ep0, _mw0, "UploadArchive", UploadArchive$) {
1625
1343
  }
1626
1344
 
1627
- class UploadMultipartPartCommand extends Command
1628
- .classBuilder()
1629
- .ep(commonParams)
1630
- .m(function (Command, cs, config, o) {
1631
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1632
- })
1633
- .s("Glacier", "UploadMultipartPart", {})
1634
- .n("GlacierClient", "UploadMultipartPartCommand")
1635
- .sc(UploadMultipartPart$)
1636
- .build() {
1345
+ class UploadMultipartPartCommand extends command(_ep0, _mw0, "UploadMultipartPart", UploadMultipartPart$) {
1637
1346
  }
1638
1347
 
1639
1348
  const paginateListJobs = createPaginator(GlacierClient, ListJobsCommand, "marker", "Marker", "limit");
@@ -0,0 +1,6 @@
1
+ import { makeBuilder } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "./endpoint/EndpointParameters";
4
+ export const command = makeBuilder(commonParams, "Glacier", "GlacierClient", getEndpointPlugin);
5
+ export const _ep0 = {};
6
+ export const _mw0 = (Command, cs, config, o) => [];
@@ -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 { AbortMultipartUpload$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class AbortMultipartUploadCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Glacier", "AbortMultipartUpload", {})
13
- .n("GlacierClient", "AbortMultipartUploadCommand")
14
- .sc(AbortMultipartUpload$)
15
- .build() {
3
+ export class AbortMultipartUploadCommand extends command(_ep0, _mw0, "AbortMultipartUpload", AbortMultipartUpload$) {
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 { AbortVaultLock$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class AbortVaultLockCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Glacier", "AbortVaultLock", {})
13
- .n("GlacierClient", "AbortVaultLockCommand")
14
- .sc(AbortVaultLock$)
15
- .build() {
3
+ export class AbortVaultLockCommand extends command(_ep0, _mw0, "AbortVaultLock", AbortVaultLock$) {
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 { AddTagsToVault$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class AddTagsToVaultCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Glacier", "AddTagsToVault", {})
13
- .n("GlacierClient", "AddTagsToVaultCommand")
14
- .sc(AddTagsToVault$)
15
- .build() {
3
+ export class AddTagsToVaultCommand extends command(_ep0, _mw0, "AddTagsToVault", AddTagsToVault$) {
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 { CompleteMultipartUpload$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CompleteMultipartUploadCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Glacier", "CompleteMultipartUpload", {})
13
- .n("GlacierClient", "CompleteMultipartUploadCommand")
14
- .sc(CompleteMultipartUpload$)
15
- .build() {
3
+ export class CompleteMultipartUploadCommand extends command(_ep0, _mw0, "CompleteMultipartUpload", CompleteMultipartUpload$) {
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 { CompleteVaultLock$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CompleteVaultLockCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Glacier", "CompleteVaultLock", {})
13
- .n("GlacierClient", "CompleteVaultLockCommand")
14
- .sc(CompleteVaultLock$)
15
- .build() {
3
+ export class CompleteVaultLockCommand extends command(_ep0, _mw0, "CompleteVaultLock", CompleteVaultLock$) {
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 { CreateVault$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateVaultCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Glacier", "CreateVault", {})
13
- .n("GlacierClient", "CreateVaultCommand")
14
- .sc(CreateVault$)
15
- .build() {
3
+ export class CreateVaultCommand extends command(_ep0, _mw0, "CreateVault", CreateVault$) {
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 { DeleteArchive$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteArchiveCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Glacier", "DeleteArchive", {})
13
- .n("GlacierClient", "DeleteArchiveCommand")
14
- .sc(DeleteArchive$)
15
- .build() {
3
+ export class DeleteArchiveCommand extends command(_ep0, _mw0, "DeleteArchive", DeleteArchive$) {
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 { DeleteVaultAccessPolicy$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteVaultAccessPolicyCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Glacier", "DeleteVaultAccessPolicy", {})
13
- .n("GlacierClient", "DeleteVaultAccessPolicyCommand")
14
- .sc(DeleteVaultAccessPolicy$)
15
- .build() {
3
+ export class DeleteVaultAccessPolicyCommand extends command(_ep0, _mw0, "DeleteVaultAccessPolicy", DeleteVaultAccessPolicy$) {
16
4
  }