@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 { CancelJobRequestFilterSensitiveLog, CancelJobResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1CancelJobCommand, serializeAws_json1_1CancelJobCommand } from "../protocols/Aws_json1_1";
6
- var CancelJobCommand = (function (_super) {
7
- __extends(CancelJobCommand, _super);
8
- function CancelJobCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CancelJobCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CancelJobCommand.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 = "CancelJobCommand";
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 = "CancelJobCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CancelJobRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CancelJobResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CancelJobCommand.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_1CancelJobCommand(input, context);
33
- };
34
- CancelJobCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1CancelJobCommand(output, context);
36
- };
37
- return CancelJobCommand;
38
- }($Command));
39
- export { CancelJobCommand };
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 { CreateAddressRequestFilterSensitiveLog, CreateAddressResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1CreateAddressCommand, serializeAws_json1_1CreateAddressCommand, } from "../protocols/Aws_json1_1";
6
- var CreateAddressCommand = (function (_super) {
7
- __extends(CreateAddressCommand, _super);
8
- function CreateAddressCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateAddressCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateAddressCommand.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 = "CreateAddressCommand";
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 = "CreateAddressCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateAddressRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateAddressResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateAddressCommand.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_1CreateAddressCommand(input, context);
33
- };
34
- CreateAddressCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1CreateAddressCommand(output, context);
36
- };
37
- return CreateAddressCommand;
38
- }($Command));
39
- export { CreateAddressCommand };
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 { CreateClusterRequestFilterSensitiveLog, CreateClusterResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1CreateClusterCommand, serializeAws_json1_1CreateClusterCommand, } from "../protocols/Aws_json1_1";
6
- var CreateClusterCommand = (function (_super) {
7
- __extends(CreateClusterCommand, _super);
8
- function CreateClusterCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateClusterCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateClusterCommand.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 = "CreateClusterCommand";
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 = "CreateClusterCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateClusterRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateClusterResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateClusterCommand.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_1CreateClusterCommand(input, context);
33
- };
34
- CreateClusterCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1CreateClusterCommand(output, context);
36
- };
37
- return CreateClusterCommand;
38
- }($Command));
39
- export { CreateClusterCommand };
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 { CreateJobRequestFilterSensitiveLog, CreateJobResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1CreateJobCommand, serializeAws_json1_1CreateJobCommand } from "../protocols/Aws_json1_1";
6
- var CreateJobCommand = (function (_super) {
7
- __extends(CreateJobCommand, _super);
8
- function CreateJobCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateJobCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateJobCommand.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 = "CreateJobCommand";
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 = "CreateJobCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateJobRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateJobResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateJobCommand.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_1CreateJobCommand(input, context);
33
- };
34
- CreateJobCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1CreateJobCommand(output, context);
36
- };
37
- return CreateJobCommand;
38
- }($Command));
39
- export { CreateJobCommand };
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 { CreateLongTermPricingRequestFilterSensitiveLog, CreateLongTermPricingResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1CreateLongTermPricingCommand, serializeAws_json1_1CreateLongTermPricingCommand, } from "../protocols/Aws_json1_1";
6
- var CreateLongTermPricingCommand = (function (_super) {
7
- __extends(CreateLongTermPricingCommand, _super);
8
- function CreateLongTermPricingCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateLongTermPricingCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateLongTermPricingCommand.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 = "CreateLongTermPricingCommand";
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 = "CreateLongTermPricingCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateLongTermPricingRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateLongTermPricingResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateLongTermPricingCommand.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_1CreateLongTermPricingCommand(input, context);
33
- };
34
- CreateLongTermPricingCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1CreateLongTermPricingCommand(output, context);
36
- };
37
- return CreateLongTermPricingCommand;
38
- }($Command));
39
- export { CreateLongTermPricingCommand };
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 { CreateReturnShippingLabelRequestFilterSensitiveLog, CreateReturnShippingLabelResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1CreateReturnShippingLabelCommand, serializeAws_json1_1CreateReturnShippingLabelCommand, } from "../protocols/Aws_json1_1";
6
- var CreateReturnShippingLabelCommand = (function (_super) {
7
- __extends(CreateReturnShippingLabelCommand, _super);
8
- function CreateReturnShippingLabelCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateReturnShippingLabelCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateReturnShippingLabelCommand.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 = "CreateReturnShippingLabelCommand";
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 = "CreateReturnShippingLabelCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateReturnShippingLabelRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateReturnShippingLabelResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateReturnShippingLabelCommand.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_1CreateReturnShippingLabelCommand(input, context);
33
- };
34
- CreateReturnShippingLabelCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1CreateReturnShippingLabelCommand(output, context);
36
- };
37
- return CreateReturnShippingLabelCommand;
38
- }($Command));
39
- export { CreateReturnShippingLabelCommand };
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 { DescribeAddressRequestFilterSensitiveLog, DescribeAddressResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DescribeAddressCommand, serializeAws_json1_1DescribeAddressCommand, } from "../protocols/Aws_json1_1";
6
- var DescribeAddressCommand = (function (_super) {
7
- __extends(DescribeAddressCommand, _super);
8
- function DescribeAddressCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeAddressCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeAddressCommand.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 = "DescribeAddressCommand";
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 = "DescribeAddressCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeAddressRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeAddressResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeAddressCommand.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_1DescribeAddressCommand(input, context);
33
- };
34
- DescribeAddressCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DescribeAddressCommand(output, context);
36
- };
37
- return DescribeAddressCommand;
38
- }($Command));
39
- export { DescribeAddressCommand };
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 { DescribeAddressesRequestFilterSensitiveLog, DescribeAddressesResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DescribeAddressesCommand, serializeAws_json1_1DescribeAddressesCommand, } from "../protocols/Aws_json1_1";
6
- var DescribeAddressesCommand = (function (_super) {
7
- __extends(DescribeAddressesCommand, _super);
8
- function DescribeAddressesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeAddressesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeAddressesCommand.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 = "DescribeAddressesCommand";
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 = "DescribeAddressesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeAddressesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeAddressesResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeAddressesCommand.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_1DescribeAddressesCommand(input, context);
33
- };
34
- DescribeAddressesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DescribeAddressesCommand(output, context);
36
- };
37
- return DescribeAddressesCommand;
38
- }($Command));
39
- export { DescribeAddressesCommand };
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 { DescribeClusterRequestFilterSensitiveLog, DescribeClusterResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DescribeClusterCommand, serializeAws_json1_1DescribeClusterCommand, } from "../protocols/Aws_json1_1";
6
- var DescribeClusterCommand = (function (_super) {
7
- __extends(DescribeClusterCommand, _super);
8
- function DescribeClusterCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeClusterCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeClusterCommand.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 = "DescribeClusterCommand";
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 = "DescribeClusterCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeClusterRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeClusterResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeClusterCommand.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_1DescribeClusterCommand(input, context);
33
- };
34
- DescribeClusterCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DescribeClusterCommand(output, context);
36
- };
37
- return DescribeClusterCommand;
38
- }($Command));
39
- export { DescribeClusterCommand };
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 { DescribeJobRequestFilterSensitiveLog, DescribeJobResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DescribeJobCommand, serializeAws_json1_1DescribeJobCommand, } from "../protocols/Aws_json1_1";
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 = "SnowballClient";
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 = "SnowballClient";
15
+ const commandName = "DescribeJobCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeJobRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeJobResultFilterSensitiveLog,
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_json1_1DescribeJobCommand(input, context);
33
- };
34
- DescribeJobCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DescribeJobCommand(output, context);
36
- };
37
- return DescribeJobCommand;
38
- }($Command));
39
- export { DescribeJobCommand };
31
+ }
32
+ }