@aws-sdk/client-glacier 3.180.0 → 3.183.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 (52) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist-cjs/protocols/Aws_restJson1.js +39 -33
  3. package/dist-es/Glacier.js +134 -141
  4. package/dist-es/GlacierClient.js +23 -29
  5. package/dist-es/commands/AbortMultipartUploadCommand.js +22 -29
  6. package/dist-es/commands/AbortVaultLockCommand.js +22 -29
  7. package/dist-es/commands/AddTagsToVaultCommand.js +22 -29
  8. package/dist-es/commands/CompleteMultipartUploadCommand.js +21 -28
  9. package/dist-es/commands/CompleteVaultLockCommand.js +22 -29
  10. package/dist-es/commands/CreateVaultCommand.js +21 -28
  11. package/dist-es/commands/DeleteArchiveCommand.js +22 -29
  12. package/dist-es/commands/DeleteVaultAccessPolicyCommand.js +22 -29
  13. package/dist-es/commands/DeleteVaultCommand.js +22 -29
  14. package/dist-es/commands/DeleteVaultNotificationsCommand.js +22 -29
  15. package/dist-es/commands/DescribeJobCommand.js +21 -28
  16. package/dist-es/commands/DescribeVaultCommand.js +21 -28
  17. package/dist-es/commands/GetDataRetrievalPolicyCommand.js +21 -28
  18. package/dist-es/commands/GetJobOutputCommand.js +21 -28
  19. package/dist-es/commands/GetVaultAccessPolicyCommand.js +21 -28
  20. package/dist-es/commands/GetVaultLockCommand.js +21 -28
  21. package/dist-es/commands/GetVaultNotificationsCommand.js +21 -28
  22. package/dist-es/commands/InitiateJobCommand.js +21 -28
  23. package/dist-es/commands/InitiateMultipartUploadCommand.js +21 -28
  24. package/dist-es/commands/InitiateVaultLockCommand.js +21 -28
  25. package/dist-es/commands/ListJobsCommand.js +21 -28
  26. package/dist-es/commands/ListMultipartUploadsCommand.js +21 -28
  27. package/dist-es/commands/ListPartsCommand.js +21 -28
  28. package/dist-es/commands/ListProvisionedCapacityCommand.js +21 -28
  29. package/dist-es/commands/ListTagsForVaultCommand.js +21 -28
  30. package/dist-es/commands/ListVaultsCommand.js +21 -28
  31. package/dist-es/commands/PurchaseProvisionedCapacityCommand.js +21 -28
  32. package/dist-es/commands/RemoveTagsFromVaultCommand.js +22 -29
  33. package/dist-es/commands/SetDataRetrievalPolicyCommand.js +22 -29
  34. package/dist-es/commands/SetVaultAccessPolicyCommand.js +22 -29
  35. package/dist-es/commands/SetVaultNotificationsCommand.js +22 -29
  36. package/dist-es/commands/UploadArchiveCommand.js +21 -28
  37. package/dist-es/commands/UploadMultipartPartCommand.js +21 -28
  38. package/dist-es/endpoints.js +8 -8
  39. package/dist-es/models/GlacierServiceException.js +5 -10
  40. package/dist-es/models/models_0.js +326 -179
  41. package/dist-es/pagination/ListJobsPaginator.js +25 -68
  42. package/dist-es/pagination/ListMultipartUploadsPaginator.js +25 -68
  43. package/dist-es/pagination/ListPartsPaginator.js +25 -68
  44. package/dist-es/pagination/ListVaultsPaginator.js +25 -68
  45. package/dist-es/protocols/Aws_restJson1.js +2457 -3388
  46. package/dist-es/runtimeConfig.browser.js +27 -12
  47. package/dist-es/runtimeConfig.js +31 -12
  48. package/dist-es/runtimeConfig.native.js +8 -5
  49. package/dist-es/runtimeConfig.shared.js +8 -11
  50. package/dist-es/waiters/waitForVaultExists.js +23 -42
  51. package/dist-es/waiters/waitForVaultNotExists.js +23 -42
  52. package/package.json +37 -37
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { InitiateVaultLockInputFilterSensitiveLog, InitiateVaultLockOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1InitiateVaultLockCommand, serializeAws_restJson1InitiateVaultLockCommand, } from "../protocols/Aws_restJson1";
6
- var InitiateVaultLockCommand = (function (_super) {
7
- __extends(InitiateVaultLockCommand, _super);
8
- function InitiateVaultLockCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class InitiateVaultLockCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- InitiateVaultLockCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "GlacierClient";
18
- var commandName = "InitiateVaultLockCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "GlacierClient";
15
+ const commandName = "InitiateVaultLockCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: InitiateVaultLockInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: InitiateVaultLockOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- InitiateVaultLockCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1InitiateVaultLockCommand(input, context);
33
- };
34
- InitiateVaultLockCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1InitiateVaultLockCommand(output, context);
36
- };
37
- return InitiateVaultLockCommand;
38
- }($Command));
39
- export { InitiateVaultLockCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListJobsInputFilterSensitiveLog, ListJobsOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListJobsCommand, serializeAws_restJson1ListJobsCommand, } from "../protocols/Aws_restJson1";
6
- var ListJobsCommand = (function (_super) {
7
- __extends(ListJobsCommand, _super);
8
- function ListJobsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListJobsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListJobsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "GlacierClient";
18
- var commandName = "ListJobsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "GlacierClient";
15
+ const commandName = "ListJobsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListJobsInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListJobsOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListJobsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1ListJobsCommand(input, context);
33
- };
34
- ListJobsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListJobsCommand(output, context);
36
- };
37
- return ListJobsCommand;
38
- }($Command));
39
- export { ListJobsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListMultipartUploadsInputFilterSensitiveLog, ListMultipartUploadsOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListMultipartUploadsCommand, serializeAws_restJson1ListMultipartUploadsCommand, } from "../protocols/Aws_restJson1";
6
- var ListMultipartUploadsCommand = (function (_super) {
7
- __extends(ListMultipartUploadsCommand, _super);
8
- function ListMultipartUploadsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListMultipartUploadsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListMultipartUploadsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "GlacierClient";
18
- var commandName = "ListMultipartUploadsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "GlacierClient";
15
+ const commandName = "ListMultipartUploadsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListMultipartUploadsInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListMultipartUploadsOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListMultipartUploadsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1ListMultipartUploadsCommand(input, context);
33
- };
34
- ListMultipartUploadsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListMultipartUploadsCommand(output, context);
36
- };
37
- return ListMultipartUploadsCommand;
38
- }($Command));
39
- export { ListMultipartUploadsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListPartsInputFilterSensitiveLog, ListPartsOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListPartsCommand, serializeAws_restJson1ListPartsCommand, } from "../protocols/Aws_restJson1";
6
- var ListPartsCommand = (function (_super) {
7
- __extends(ListPartsCommand, _super);
8
- function ListPartsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListPartsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListPartsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "GlacierClient";
18
- var commandName = "ListPartsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "GlacierClient";
15
+ const commandName = "ListPartsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListPartsInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListPartsOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListPartsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1ListPartsCommand(input, context);
33
- };
34
- ListPartsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListPartsCommand(output, context);
36
- };
37
- return ListPartsCommand;
38
- }($Command));
39
- export { ListPartsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListProvisionedCapacityInputFilterSensitiveLog, ListProvisionedCapacityOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListProvisionedCapacityCommand, serializeAws_restJson1ListProvisionedCapacityCommand, } from "../protocols/Aws_restJson1";
6
- var ListProvisionedCapacityCommand = (function (_super) {
7
- __extends(ListProvisionedCapacityCommand, _super);
8
- function ListProvisionedCapacityCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListProvisionedCapacityCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListProvisionedCapacityCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "GlacierClient";
18
- var commandName = "ListProvisionedCapacityCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "GlacierClient";
15
+ const commandName = "ListProvisionedCapacityCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListProvisionedCapacityInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListProvisionedCapacityOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListProvisionedCapacityCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1ListProvisionedCapacityCommand(input, context);
33
- };
34
- ListProvisionedCapacityCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListProvisionedCapacityCommand(output, context);
36
- };
37
- return ListProvisionedCapacityCommand;
38
- }($Command));
39
- export { ListProvisionedCapacityCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListTagsForVaultInputFilterSensitiveLog, ListTagsForVaultOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListTagsForVaultCommand, serializeAws_restJson1ListTagsForVaultCommand, } from "../protocols/Aws_restJson1";
6
- var ListTagsForVaultCommand = (function (_super) {
7
- __extends(ListTagsForVaultCommand, _super);
8
- function ListTagsForVaultCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListTagsForVaultCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListTagsForVaultCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "GlacierClient";
18
- var commandName = "ListTagsForVaultCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "GlacierClient";
15
+ const commandName = "ListTagsForVaultCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListTagsForVaultInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListTagsForVaultOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListTagsForVaultCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1ListTagsForVaultCommand(input, context);
33
- };
34
- ListTagsForVaultCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListTagsForVaultCommand(output, context);
36
- };
37
- return ListTagsForVaultCommand;
38
- }($Command));
39
- export { ListTagsForVaultCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListVaultsInputFilterSensitiveLog, ListVaultsOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListVaultsCommand, serializeAws_restJson1ListVaultsCommand, } from "../protocols/Aws_restJson1";
6
- var ListVaultsCommand = (function (_super) {
7
- __extends(ListVaultsCommand, _super);
8
- function ListVaultsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListVaultsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListVaultsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "GlacierClient";
18
- var commandName = "ListVaultsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "GlacierClient";
15
+ const commandName = "ListVaultsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListVaultsInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListVaultsOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListVaultsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1ListVaultsCommand(input, context);
33
- };
34
- ListVaultsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListVaultsCommand(output, context);
36
- };
37
- return ListVaultsCommand;
38
- }($Command));
39
- export { ListVaultsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { PurchaseProvisionedCapacityInputFilterSensitiveLog, PurchaseProvisionedCapacityOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1PurchaseProvisionedCapacityCommand, serializeAws_restJson1PurchaseProvisionedCapacityCommand, } from "../protocols/Aws_restJson1";
6
- var PurchaseProvisionedCapacityCommand = (function (_super) {
7
- __extends(PurchaseProvisionedCapacityCommand, _super);
8
- function PurchaseProvisionedCapacityCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class PurchaseProvisionedCapacityCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- PurchaseProvisionedCapacityCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "GlacierClient";
18
- var commandName = "PurchaseProvisionedCapacityCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "GlacierClient";
15
+ const commandName = "PurchaseProvisionedCapacityCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: PurchaseProvisionedCapacityInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: PurchaseProvisionedCapacityOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- PurchaseProvisionedCapacityCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1PurchaseProvisionedCapacityCommand(input, context);
33
- };
34
- PurchaseProvisionedCapacityCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1PurchaseProvisionedCapacityCommand(output, context);
36
- };
37
- return PurchaseProvisionedCapacityCommand;
38
- }($Command));
39
- export { PurchaseProvisionedCapacityCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { RemoveTagsFromVaultInputFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_restJson1RemoveTagsFromVaultCommand, serializeAws_restJson1RemoveTagsFromVaultCommand, } from "../protocols/Aws_restJson1";
6
- var RemoveTagsFromVaultCommand = (function (_super) {
7
- __extends(RemoveTagsFromVaultCommand, _super);
8
- function RemoveTagsFromVaultCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class RemoveTagsFromVaultCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- RemoveTagsFromVaultCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "GlacierClient";
18
- var commandName = "RemoveTagsFromVaultCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "GlacierClient";
15
+ const commandName = "RemoveTagsFromVaultCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: RemoveTagsFromVaultInputFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- RemoveTagsFromVaultCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1RemoveTagsFromVaultCommand(input, context);
33
- };
34
- RemoveTagsFromVaultCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1RemoveTagsFromVaultCommand(output, context);
36
- };
37
- return RemoveTagsFromVaultCommand;
38
- }($Command));
39
- export { RemoveTagsFromVaultCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { SetDataRetrievalPolicyInputFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_restJson1SetDataRetrievalPolicyCommand, serializeAws_restJson1SetDataRetrievalPolicyCommand, } from "../protocols/Aws_restJson1";
6
- var SetDataRetrievalPolicyCommand = (function (_super) {
7
- __extends(SetDataRetrievalPolicyCommand, _super);
8
- function SetDataRetrievalPolicyCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class SetDataRetrievalPolicyCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- SetDataRetrievalPolicyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "GlacierClient";
18
- var commandName = "SetDataRetrievalPolicyCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "GlacierClient";
15
+ const commandName = "SetDataRetrievalPolicyCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: SetDataRetrievalPolicyInputFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- SetDataRetrievalPolicyCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1SetDataRetrievalPolicyCommand(input, context);
33
- };
34
- SetDataRetrievalPolicyCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1SetDataRetrievalPolicyCommand(output, context);
36
- };
37
- return SetDataRetrievalPolicyCommand;
38
- }($Command));
39
- export { SetDataRetrievalPolicyCommand };
31
+ }
32
+ }