@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 { DeleteVaultNotificationsInputFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteVaultNotificationsCommand, serializeAws_restJson1DeleteVaultNotificationsCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteVaultNotificationsCommand = (function (_super) {
7
- __extends(DeleteVaultNotificationsCommand, _super);
8
- function DeleteVaultNotificationsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteVaultNotificationsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteVaultNotificationsCommand.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 = "DeleteVaultNotificationsCommand";
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 = "DeleteVaultNotificationsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteVaultNotificationsInputFilterSensitiveLog,
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
- DeleteVaultNotificationsCommand.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_restJson1DeleteVaultNotificationsCommand(input, context);
33
- };
34
- DeleteVaultNotificationsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteVaultNotificationsCommand(output, context);
36
- };
37
- return DeleteVaultNotificationsCommand;
38
- }($Command));
39
- export { DeleteVaultNotificationsCommand };
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 { DescribeJobInputFilterSensitiveLog, GlacierJobDescriptionFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DescribeJobCommand, serializeAws_restJson1DescribeJobCommand, } from "../protocols/Aws_restJson1";
6
- var DescribeJobCommand = (function (_super) {
7
- __extends(DescribeJobCommand, _super);
8
- function DescribeJobCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeJobCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeJobCommand.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 = "DescribeJobCommand";
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 = "DescribeJobCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeJobInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GlacierJobDescriptionFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeJobCommand.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_restJson1DescribeJobCommand(input, context);
33
- };
34
- DescribeJobCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DescribeJobCommand(output, context);
36
- };
37
- return DescribeJobCommand;
38
- }($Command));
39
- export { DescribeJobCommand };
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 { DescribeVaultInputFilterSensitiveLog, DescribeVaultOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DescribeVaultCommand, serializeAws_restJson1DescribeVaultCommand, } from "../protocols/Aws_restJson1";
6
- var DescribeVaultCommand = (function (_super) {
7
- __extends(DescribeVaultCommand, _super);
8
- function DescribeVaultCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeVaultCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeVaultCommand.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 = "DescribeVaultCommand";
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 = "DescribeVaultCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeVaultInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeVaultOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeVaultCommand.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_restJson1DescribeVaultCommand(input, context);
33
- };
34
- DescribeVaultCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DescribeVaultCommand(output, context);
36
- };
37
- return DescribeVaultCommand;
38
- }($Command));
39
- export { DescribeVaultCommand };
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 { GetDataRetrievalPolicyInputFilterSensitiveLog, GetDataRetrievalPolicyOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetDataRetrievalPolicyCommand, serializeAws_restJson1GetDataRetrievalPolicyCommand, } from "../protocols/Aws_restJson1";
6
- var GetDataRetrievalPolicyCommand = (function (_super) {
7
- __extends(GetDataRetrievalPolicyCommand, _super);
8
- function GetDataRetrievalPolicyCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetDataRetrievalPolicyCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetDataRetrievalPolicyCommand.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 = "GetDataRetrievalPolicyCommand";
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 = "GetDataRetrievalPolicyCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetDataRetrievalPolicyInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetDataRetrievalPolicyOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetDataRetrievalPolicyCommand.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_restJson1GetDataRetrievalPolicyCommand(input, context);
33
- };
34
- GetDataRetrievalPolicyCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetDataRetrievalPolicyCommand(output, context);
36
- };
37
- return GetDataRetrievalPolicyCommand;
38
- }($Command));
39
- export { GetDataRetrievalPolicyCommand };
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 { GetJobOutputInputFilterSensitiveLog, GetJobOutputOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetJobOutputCommand, serializeAws_restJson1GetJobOutputCommand, } from "../protocols/Aws_restJson1";
6
- var GetJobOutputCommand = (function (_super) {
7
- __extends(GetJobOutputCommand, _super);
8
- function GetJobOutputCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetJobOutputCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetJobOutputCommand.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 = "GetJobOutputCommand";
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 = "GetJobOutputCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetJobOutputInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetJobOutputOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetJobOutputCommand.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_restJson1GetJobOutputCommand(input, context);
33
- };
34
- GetJobOutputCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetJobOutputCommand(output, context);
36
- };
37
- return GetJobOutputCommand;
38
- }($Command));
39
- export { GetJobOutputCommand };
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 { GetVaultAccessPolicyInputFilterSensitiveLog, GetVaultAccessPolicyOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetVaultAccessPolicyCommand, serializeAws_restJson1GetVaultAccessPolicyCommand, } from "../protocols/Aws_restJson1";
6
- var GetVaultAccessPolicyCommand = (function (_super) {
7
- __extends(GetVaultAccessPolicyCommand, _super);
8
- function GetVaultAccessPolicyCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetVaultAccessPolicyCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetVaultAccessPolicyCommand.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 = "GetVaultAccessPolicyCommand";
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 = "GetVaultAccessPolicyCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetVaultAccessPolicyInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetVaultAccessPolicyOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetVaultAccessPolicyCommand.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_restJson1GetVaultAccessPolicyCommand(input, context);
33
- };
34
- GetVaultAccessPolicyCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetVaultAccessPolicyCommand(output, context);
36
- };
37
- return GetVaultAccessPolicyCommand;
38
- }($Command));
39
- export { GetVaultAccessPolicyCommand };
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 { GetVaultLockInputFilterSensitiveLog, GetVaultLockOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetVaultLockCommand, serializeAws_restJson1GetVaultLockCommand, } from "../protocols/Aws_restJson1";
6
- var GetVaultLockCommand = (function (_super) {
7
- __extends(GetVaultLockCommand, _super);
8
- function GetVaultLockCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetVaultLockCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetVaultLockCommand.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 = "GetVaultLockCommand";
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 = "GetVaultLockCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetVaultLockInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetVaultLockOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetVaultLockCommand.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_restJson1GetVaultLockCommand(input, context);
33
- };
34
- GetVaultLockCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetVaultLockCommand(output, context);
36
- };
37
- return GetVaultLockCommand;
38
- }($Command));
39
- export { GetVaultLockCommand };
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 { GetVaultNotificationsInputFilterSensitiveLog, GetVaultNotificationsOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetVaultNotificationsCommand, serializeAws_restJson1GetVaultNotificationsCommand, } from "../protocols/Aws_restJson1";
6
- var GetVaultNotificationsCommand = (function (_super) {
7
- __extends(GetVaultNotificationsCommand, _super);
8
- function GetVaultNotificationsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetVaultNotificationsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetVaultNotificationsCommand.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 = "GetVaultNotificationsCommand";
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 = "GetVaultNotificationsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetVaultNotificationsInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetVaultNotificationsOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetVaultNotificationsCommand.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_restJson1GetVaultNotificationsCommand(input, context);
33
- };
34
- GetVaultNotificationsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetVaultNotificationsCommand(output, context);
36
- };
37
- return GetVaultNotificationsCommand;
38
- }($Command));
39
- export { GetVaultNotificationsCommand };
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 { InitiateJobInputFilterSensitiveLog, InitiateJobOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1InitiateJobCommand, serializeAws_restJson1InitiateJobCommand, } from "../protocols/Aws_restJson1";
6
- var InitiateJobCommand = (function (_super) {
7
- __extends(InitiateJobCommand, _super);
8
- function InitiateJobCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class InitiateJobCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- InitiateJobCommand.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 = "InitiateJobCommand";
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 = "InitiateJobCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: InitiateJobInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: InitiateJobOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- InitiateJobCommand.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_restJson1InitiateJobCommand(input, context);
33
- };
34
- InitiateJobCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1InitiateJobCommand(output, context);
36
- };
37
- return InitiateJobCommand;
38
- }($Command));
39
- export { InitiateJobCommand };
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 { InitiateMultipartUploadInputFilterSensitiveLog, InitiateMultipartUploadOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1InitiateMultipartUploadCommand, serializeAws_restJson1InitiateMultipartUploadCommand, } from "../protocols/Aws_restJson1";
6
- var InitiateMultipartUploadCommand = (function (_super) {
7
- __extends(InitiateMultipartUploadCommand, _super);
8
- function InitiateMultipartUploadCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class InitiateMultipartUploadCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- InitiateMultipartUploadCommand.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 = "InitiateMultipartUploadCommand";
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 = "InitiateMultipartUploadCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: InitiateMultipartUploadInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: InitiateMultipartUploadOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- InitiateMultipartUploadCommand.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_restJson1InitiateMultipartUploadCommand(input, context);
33
- };
34
- InitiateMultipartUploadCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1InitiateMultipartUploadCommand(output, context);
36
- };
37
- return InitiateMultipartUploadCommand;
38
- }($Command));
39
- export { InitiateMultipartUploadCommand };
31
+ }
32
+ }