@aws-sdk/client-snowball 3.186.0 → 3.188.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 (43) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist-es/Snowball.js +102 -109
  3. package/dist-es/SnowballClient.js +22 -28
  4. package/dist-es/commands/CancelClusterCommand.js +21 -28
  5. package/dist-es/commands/CancelJobCommand.js +21 -28
  6. package/dist-es/commands/CreateAddressCommand.js +21 -28
  7. package/dist-es/commands/CreateClusterCommand.js +21 -28
  8. package/dist-es/commands/CreateJobCommand.js +21 -28
  9. package/dist-es/commands/CreateLongTermPricingCommand.js +21 -28
  10. package/dist-es/commands/CreateReturnShippingLabelCommand.js +21 -28
  11. package/dist-es/commands/DescribeAddressCommand.js +21 -28
  12. package/dist-es/commands/DescribeAddressesCommand.js +21 -28
  13. package/dist-es/commands/DescribeClusterCommand.js +21 -28
  14. package/dist-es/commands/DescribeJobCommand.js +21 -28
  15. package/dist-es/commands/DescribeReturnShippingLabelCommand.js +21 -28
  16. package/dist-es/commands/GetJobManifestCommand.js +21 -28
  17. package/dist-es/commands/GetJobUnlockCodeCommand.js +21 -28
  18. package/dist-es/commands/GetSnowballUsageCommand.js +21 -28
  19. package/dist-es/commands/GetSoftwareUpdatesCommand.js +21 -28
  20. package/dist-es/commands/ListClusterJobsCommand.js +21 -28
  21. package/dist-es/commands/ListClustersCommand.js +21 -28
  22. package/dist-es/commands/ListCompatibleImagesCommand.js +21 -28
  23. package/dist-es/commands/ListJobsCommand.js +21 -28
  24. package/dist-es/commands/ListLongTermPricingCommand.js +21 -28
  25. package/dist-es/commands/UpdateClusterCommand.js +21 -28
  26. package/dist-es/commands/UpdateJobCommand.js +21 -28
  27. package/dist-es/commands/UpdateJobShipmentStateCommand.js +21 -28
  28. package/dist-es/commands/UpdateLongTermPricingCommand.js +21 -28
  29. package/dist-es/endpoints.js +8 -8
  30. package/dist-es/models/SnowballServiceException.js +5 -10
  31. package/dist-es/models/models_0.js +365 -212
  32. package/dist-es/pagination/DescribeAddressesPaginator.js +25 -68
  33. package/dist-es/pagination/ListClusterJobsPaginator.js +25 -68
  34. package/dist-es/pagination/ListClustersPaginator.js +25 -68
  35. package/dist-es/pagination/ListCompatibleImagesPaginator.js +25 -68
  36. package/dist-es/pagination/ListJobsPaginator.js +25 -68
  37. package/dist-es/pagination/ListLongTermPricingPaginator.js +25 -68
  38. package/dist-es/protocols/Aws_json1_1.js +1699 -2088
  39. package/dist-es/runtimeConfig.browser.js +26 -12
  40. package/dist-es/runtimeConfig.js +30 -12
  41. package/dist-es/runtimeConfig.native.js +8 -5
  42. package/dist-es/runtimeConfig.shared.js +8 -11
  43. package/package.json +33 -33
@@ -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 { DescribeReturnShippingLabelRequestFilterSensitiveLog, DescribeReturnShippingLabelResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DescribeReturnShippingLabelCommand, serializeAws_json1_1DescribeReturnShippingLabelCommand, } from "../protocols/Aws_json1_1";
6
- var DescribeReturnShippingLabelCommand = (function (_super) {
7
- __extends(DescribeReturnShippingLabelCommand, _super);
8
- function DescribeReturnShippingLabelCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeReturnShippingLabelCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeReturnShippingLabelCommand.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 = "SnowballClient";
18
- var commandName = "DescribeReturnShippingLabelCommand";
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 = "SnowballClient";
15
+ const commandName = "DescribeReturnShippingLabelCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeReturnShippingLabelRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeReturnShippingLabelResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeReturnShippingLabelCommand.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_json1_1DescribeReturnShippingLabelCommand(input, context);
33
- };
34
- DescribeReturnShippingLabelCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DescribeReturnShippingLabelCommand(output, context);
36
- };
37
- return DescribeReturnShippingLabelCommand;
38
- }($Command));
39
- export { DescribeReturnShippingLabelCommand };
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 { GetJobManifestRequestFilterSensitiveLog, GetJobManifestResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1GetJobManifestCommand, serializeAws_json1_1GetJobManifestCommand, } from "../protocols/Aws_json1_1";
6
- var GetJobManifestCommand = (function (_super) {
7
- __extends(GetJobManifestCommand, _super);
8
- function GetJobManifestCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetJobManifestCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetJobManifestCommand.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 = "SnowballClient";
18
- var commandName = "GetJobManifestCommand";
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 = "SnowballClient";
15
+ const commandName = "GetJobManifestCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetJobManifestRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetJobManifestResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetJobManifestCommand.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_json1_1GetJobManifestCommand(input, context);
33
- };
34
- GetJobManifestCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1GetJobManifestCommand(output, context);
36
- };
37
- return GetJobManifestCommand;
38
- }($Command));
39
- export { GetJobManifestCommand };
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 { GetJobUnlockCodeRequestFilterSensitiveLog, GetJobUnlockCodeResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1GetJobUnlockCodeCommand, serializeAws_json1_1GetJobUnlockCodeCommand, } from "../protocols/Aws_json1_1";
6
- var GetJobUnlockCodeCommand = (function (_super) {
7
- __extends(GetJobUnlockCodeCommand, _super);
8
- function GetJobUnlockCodeCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetJobUnlockCodeCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetJobUnlockCodeCommand.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 = "SnowballClient";
18
- var commandName = "GetJobUnlockCodeCommand";
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 = "SnowballClient";
15
+ const commandName = "GetJobUnlockCodeCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetJobUnlockCodeRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetJobUnlockCodeResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetJobUnlockCodeCommand.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_json1_1GetJobUnlockCodeCommand(input, context);
33
- };
34
- GetJobUnlockCodeCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1GetJobUnlockCodeCommand(output, context);
36
- };
37
- return GetJobUnlockCodeCommand;
38
- }($Command));
39
- export { GetJobUnlockCodeCommand };
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 { GetSnowballUsageRequestFilterSensitiveLog, GetSnowballUsageResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1GetSnowballUsageCommand, serializeAws_json1_1GetSnowballUsageCommand, } from "../protocols/Aws_json1_1";
6
- var GetSnowballUsageCommand = (function (_super) {
7
- __extends(GetSnowballUsageCommand, _super);
8
- function GetSnowballUsageCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetSnowballUsageCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetSnowballUsageCommand.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 = "SnowballClient";
18
- var commandName = "GetSnowballUsageCommand";
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 = "SnowballClient";
15
+ const commandName = "GetSnowballUsageCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetSnowballUsageRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetSnowballUsageResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetSnowballUsageCommand.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_json1_1GetSnowballUsageCommand(input, context);
33
- };
34
- GetSnowballUsageCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1GetSnowballUsageCommand(output, context);
36
- };
37
- return GetSnowballUsageCommand;
38
- }($Command));
39
- export { GetSnowballUsageCommand };
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 { GetSoftwareUpdatesRequestFilterSensitiveLog, GetSoftwareUpdatesResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1GetSoftwareUpdatesCommand, serializeAws_json1_1GetSoftwareUpdatesCommand, } from "../protocols/Aws_json1_1";
6
- var GetSoftwareUpdatesCommand = (function (_super) {
7
- __extends(GetSoftwareUpdatesCommand, _super);
8
- function GetSoftwareUpdatesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetSoftwareUpdatesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetSoftwareUpdatesCommand.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 = "SnowballClient";
18
- var commandName = "GetSoftwareUpdatesCommand";
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 = "SnowballClient";
15
+ const commandName = "GetSoftwareUpdatesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetSoftwareUpdatesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetSoftwareUpdatesResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetSoftwareUpdatesCommand.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_json1_1GetSoftwareUpdatesCommand(input, context);
33
- };
34
- GetSoftwareUpdatesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1GetSoftwareUpdatesCommand(output, context);
36
- };
37
- return GetSoftwareUpdatesCommand;
38
- }($Command));
39
- export { GetSoftwareUpdatesCommand };
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 { ListClusterJobsRequestFilterSensitiveLog, ListClusterJobsResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListClusterJobsCommand, serializeAws_json1_1ListClusterJobsCommand, } from "../protocols/Aws_json1_1";
6
- var ListClusterJobsCommand = (function (_super) {
7
- __extends(ListClusterJobsCommand, _super);
8
- function ListClusterJobsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListClusterJobsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListClusterJobsCommand.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 = "SnowballClient";
18
- var commandName = "ListClusterJobsCommand";
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 = "SnowballClient";
15
+ const commandName = "ListClusterJobsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListClusterJobsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListClusterJobsResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListClusterJobsCommand.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_json1_1ListClusterJobsCommand(input, context);
33
- };
34
- ListClusterJobsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListClusterJobsCommand(output, context);
36
- };
37
- return ListClusterJobsCommand;
38
- }($Command));
39
- export { ListClusterJobsCommand };
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 { ListClustersRequestFilterSensitiveLog, ListClustersResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListClustersCommand, serializeAws_json1_1ListClustersCommand, } from "../protocols/Aws_json1_1";
6
- var ListClustersCommand = (function (_super) {
7
- __extends(ListClustersCommand, _super);
8
- function ListClustersCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListClustersCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListClustersCommand.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 = "SnowballClient";
18
- var commandName = "ListClustersCommand";
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 = "SnowballClient";
15
+ const commandName = "ListClustersCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListClustersRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListClustersResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListClustersCommand.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_json1_1ListClustersCommand(input, context);
33
- };
34
- ListClustersCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListClustersCommand(output, context);
36
- };
37
- return ListClustersCommand;
38
- }($Command));
39
- export { ListClustersCommand };
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 { ListCompatibleImagesRequestFilterSensitiveLog, ListCompatibleImagesResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListCompatibleImagesCommand, serializeAws_json1_1ListCompatibleImagesCommand, } from "../protocols/Aws_json1_1";
6
- var ListCompatibleImagesCommand = (function (_super) {
7
- __extends(ListCompatibleImagesCommand, _super);
8
- function ListCompatibleImagesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListCompatibleImagesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListCompatibleImagesCommand.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 = "SnowballClient";
18
- var commandName = "ListCompatibleImagesCommand";
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 = "SnowballClient";
15
+ const commandName = "ListCompatibleImagesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListCompatibleImagesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListCompatibleImagesResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListCompatibleImagesCommand.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_json1_1ListCompatibleImagesCommand(input, context);
33
- };
34
- ListCompatibleImagesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListCompatibleImagesCommand(output, context);
36
- };
37
- return ListCompatibleImagesCommand;
38
- }($Command));
39
- export { ListCompatibleImagesCommand };
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 { ListJobsRequestFilterSensitiveLog, ListJobsResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListJobsCommand, serializeAws_json1_1ListJobsCommand } from "../protocols/Aws_json1_1";
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 = "SnowballClient";
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 = "SnowballClient";
15
+ const commandName = "ListJobsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListJobsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListJobsResultFilterSensitiveLog,
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_json1_1ListJobsCommand(input, context);
33
- };
34
- ListJobsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListJobsCommand(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 { ListLongTermPricingRequestFilterSensitiveLog, ListLongTermPricingResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListLongTermPricingCommand, serializeAws_json1_1ListLongTermPricingCommand, } from "../protocols/Aws_json1_1";
6
- var ListLongTermPricingCommand = (function (_super) {
7
- __extends(ListLongTermPricingCommand, _super);
8
- function ListLongTermPricingCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListLongTermPricingCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListLongTermPricingCommand.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 = "SnowballClient";
18
- var commandName = "ListLongTermPricingCommand";
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 = "SnowballClient";
15
+ const commandName = "ListLongTermPricingCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListLongTermPricingRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListLongTermPricingResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListLongTermPricingCommand.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_json1_1ListLongTermPricingCommand(input, context);
33
- };
34
- ListLongTermPricingCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListLongTermPricingCommand(output, context);
36
- };
37
- return ListLongTermPricingCommand;
38
- }($Command));
39
- export { ListLongTermPricingCommand };
31
+ }
32
+ }