@aws-sdk/client-greengrassv2 3.181.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 (48) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist-es/GreengrassV2.js +118 -125
  3. package/dist-es/GreengrassV2Client.js +22 -28
  4. package/dist-es/commands/AssociateServiceRoleToAccountCommand.js +21 -28
  5. package/dist-es/commands/BatchAssociateClientDeviceWithCoreDeviceCommand.js +21 -28
  6. package/dist-es/commands/BatchDisassociateClientDeviceFromCoreDeviceCommand.js +21 -28
  7. package/dist-es/commands/CancelDeploymentCommand.js +21 -28
  8. package/dist-es/commands/CreateComponentVersionCommand.js +21 -28
  9. package/dist-es/commands/CreateDeploymentCommand.js +21 -28
  10. package/dist-es/commands/DeleteComponentCommand.js +22 -29
  11. package/dist-es/commands/DeleteCoreDeviceCommand.js +22 -29
  12. package/dist-es/commands/DeleteDeploymentCommand.js +22 -29
  13. package/dist-es/commands/DescribeComponentCommand.js +21 -28
  14. package/dist-es/commands/DisassociateServiceRoleFromAccountCommand.js +21 -28
  15. package/dist-es/commands/GetComponentCommand.js +21 -28
  16. package/dist-es/commands/GetComponentVersionArtifactCommand.js +21 -28
  17. package/dist-es/commands/GetConnectivityInfoCommand.js +21 -28
  18. package/dist-es/commands/GetCoreDeviceCommand.js +21 -28
  19. package/dist-es/commands/GetDeploymentCommand.js +21 -28
  20. package/dist-es/commands/GetServiceRoleForAccountCommand.js +21 -28
  21. package/dist-es/commands/ListClientDevicesAssociatedWithCoreDeviceCommand.js +21 -28
  22. package/dist-es/commands/ListComponentVersionsCommand.js +21 -28
  23. package/dist-es/commands/ListComponentsCommand.js +21 -28
  24. package/dist-es/commands/ListCoreDevicesCommand.js +21 -28
  25. package/dist-es/commands/ListDeploymentsCommand.js +21 -28
  26. package/dist-es/commands/ListEffectiveDeploymentsCommand.js +21 -28
  27. package/dist-es/commands/ListInstalledComponentsCommand.js +21 -28
  28. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  29. package/dist-es/commands/ResolveComponentCandidatesCommand.js +21 -28
  30. package/dist-es/commands/TagResourceCommand.js +21 -28
  31. package/dist-es/commands/UntagResourceCommand.js +21 -28
  32. package/dist-es/commands/UpdateConnectivityInfoCommand.js +21 -28
  33. package/dist-es/endpoints.js +8 -8
  34. package/dist-es/models/GreengrassV2ServiceException.js +5 -10
  35. package/dist-es/models/models_0.js +387 -198
  36. package/dist-es/pagination/ListClientDevicesAssociatedWithCoreDevicePaginator.js +25 -68
  37. package/dist-es/pagination/ListComponentVersionsPaginator.js +25 -68
  38. package/dist-es/pagination/ListComponentsPaginator.js +25 -68
  39. package/dist-es/pagination/ListCoreDevicesPaginator.js +25 -68
  40. package/dist-es/pagination/ListDeploymentsPaginator.js +25 -68
  41. package/dist-es/pagination/ListEffectiveDeploymentsPaginator.js +25 -68
  42. package/dist-es/pagination/ListInstalledComponentsPaginator.js +25 -68
  43. package/dist-es/protocols/Aws_restJson1.js +2480 -3292
  44. package/dist-es/runtimeConfig.browser.js +26 -12
  45. package/dist-es/runtimeConfig.js +30 -12
  46. package/dist-es/runtimeConfig.native.js +8 -5
  47. package/dist-es/runtimeConfig.shared.js +8 -11
  48. 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 { DisassociateServiceRoleFromAccountRequestFilterSensitiveLog, DisassociateServiceRoleFromAccountResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DisassociateServiceRoleFromAccountCommand, serializeAws_restJson1DisassociateServiceRoleFromAccountCommand, } from "../protocols/Aws_restJson1";
6
- var DisassociateServiceRoleFromAccountCommand = (function (_super) {
7
- __extends(DisassociateServiceRoleFromAccountCommand, _super);
8
- function DisassociateServiceRoleFromAccountCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DisassociateServiceRoleFromAccountCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DisassociateServiceRoleFromAccountCommand.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 = "GreengrassV2Client";
18
- var commandName = "DisassociateServiceRoleFromAccountCommand";
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 = "GreengrassV2Client";
15
+ const commandName = "DisassociateServiceRoleFromAccountCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DisassociateServiceRoleFromAccountRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DisassociateServiceRoleFromAccountResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DisassociateServiceRoleFromAccountCommand.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_restJson1DisassociateServiceRoleFromAccountCommand(input, context);
33
- };
34
- DisassociateServiceRoleFromAccountCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DisassociateServiceRoleFromAccountCommand(output, context);
36
- };
37
- return DisassociateServiceRoleFromAccountCommand;
38
- }($Command));
39
- export { DisassociateServiceRoleFromAccountCommand };
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 { GetComponentRequestFilterSensitiveLog, GetComponentResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetComponentCommand, serializeAws_restJson1GetComponentCommand, } from "../protocols/Aws_restJson1";
6
- var GetComponentCommand = (function (_super) {
7
- __extends(GetComponentCommand, _super);
8
- function GetComponentCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetComponentCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetComponentCommand.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 = "GreengrassV2Client";
18
- var commandName = "GetComponentCommand";
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 = "GreengrassV2Client";
15
+ const commandName = "GetComponentCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetComponentRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetComponentResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetComponentCommand.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_restJson1GetComponentCommand(input, context);
33
- };
34
- GetComponentCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetComponentCommand(output, context);
36
- };
37
- return GetComponentCommand;
38
- }($Command));
39
- export { GetComponentCommand };
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 { GetComponentVersionArtifactRequestFilterSensitiveLog, GetComponentVersionArtifactResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetComponentVersionArtifactCommand, serializeAws_restJson1GetComponentVersionArtifactCommand, } from "../protocols/Aws_restJson1";
6
- var GetComponentVersionArtifactCommand = (function (_super) {
7
- __extends(GetComponentVersionArtifactCommand, _super);
8
- function GetComponentVersionArtifactCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetComponentVersionArtifactCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetComponentVersionArtifactCommand.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 = "GreengrassV2Client";
18
- var commandName = "GetComponentVersionArtifactCommand";
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 = "GreengrassV2Client";
15
+ const commandName = "GetComponentVersionArtifactCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetComponentVersionArtifactRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetComponentVersionArtifactResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetComponentVersionArtifactCommand.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_restJson1GetComponentVersionArtifactCommand(input, context);
33
- };
34
- GetComponentVersionArtifactCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetComponentVersionArtifactCommand(output, context);
36
- };
37
- return GetComponentVersionArtifactCommand;
38
- }($Command));
39
- export { GetComponentVersionArtifactCommand };
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 { GetConnectivityInfoRequestFilterSensitiveLog, GetConnectivityInfoResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetConnectivityInfoCommand, serializeAws_restJson1GetConnectivityInfoCommand, } from "../protocols/Aws_restJson1";
6
- var GetConnectivityInfoCommand = (function (_super) {
7
- __extends(GetConnectivityInfoCommand, _super);
8
- function GetConnectivityInfoCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetConnectivityInfoCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetConnectivityInfoCommand.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 = "GreengrassV2Client";
18
- var commandName = "GetConnectivityInfoCommand";
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 = "GreengrassV2Client";
15
+ const commandName = "GetConnectivityInfoCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetConnectivityInfoRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetConnectivityInfoResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetConnectivityInfoCommand.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_restJson1GetConnectivityInfoCommand(input, context);
33
- };
34
- GetConnectivityInfoCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetConnectivityInfoCommand(output, context);
36
- };
37
- return GetConnectivityInfoCommand;
38
- }($Command));
39
- export { GetConnectivityInfoCommand };
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 { GetCoreDeviceRequestFilterSensitiveLog, GetCoreDeviceResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetCoreDeviceCommand, serializeAws_restJson1GetCoreDeviceCommand, } from "../protocols/Aws_restJson1";
6
- var GetCoreDeviceCommand = (function (_super) {
7
- __extends(GetCoreDeviceCommand, _super);
8
- function GetCoreDeviceCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetCoreDeviceCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetCoreDeviceCommand.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 = "GreengrassV2Client";
18
- var commandName = "GetCoreDeviceCommand";
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 = "GreengrassV2Client";
15
+ const commandName = "GetCoreDeviceCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetCoreDeviceRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetCoreDeviceResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetCoreDeviceCommand.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_restJson1GetCoreDeviceCommand(input, context);
33
- };
34
- GetCoreDeviceCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetCoreDeviceCommand(output, context);
36
- };
37
- return GetCoreDeviceCommand;
38
- }($Command));
39
- export { GetCoreDeviceCommand };
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 { GetDeploymentRequestFilterSensitiveLog, GetDeploymentResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetDeploymentCommand, serializeAws_restJson1GetDeploymentCommand, } from "../protocols/Aws_restJson1";
6
- var GetDeploymentCommand = (function (_super) {
7
- __extends(GetDeploymentCommand, _super);
8
- function GetDeploymentCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetDeploymentCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetDeploymentCommand.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 = "GreengrassV2Client";
18
- var commandName = "GetDeploymentCommand";
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 = "GreengrassV2Client";
15
+ const commandName = "GetDeploymentCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetDeploymentRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetDeploymentResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetDeploymentCommand.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_restJson1GetDeploymentCommand(input, context);
33
- };
34
- GetDeploymentCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetDeploymentCommand(output, context);
36
- };
37
- return GetDeploymentCommand;
38
- }($Command));
39
- export { GetDeploymentCommand };
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 { GetServiceRoleForAccountRequestFilterSensitiveLog, GetServiceRoleForAccountResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetServiceRoleForAccountCommand, serializeAws_restJson1GetServiceRoleForAccountCommand, } from "../protocols/Aws_restJson1";
6
- var GetServiceRoleForAccountCommand = (function (_super) {
7
- __extends(GetServiceRoleForAccountCommand, _super);
8
- function GetServiceRoleForAccountCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetServiceRoleForAccountCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetServiceRoleForAccountCommand.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 = "GreengrassV2Client";
18
- var commandName = "GetServiceRoleForAccountCommand";
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 = "GreengrassV2Client";
15
+ const commandName = "GetServiceRoleForAccountCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetServiceRoleForAccountRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetServiceRoleForAccountResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetServiceRoleForAccountCommand.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_restJson1GetServiceRoleForAccountCommand(input, context);
33
- };
34
- GetServiceRoleForAccountCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetServiceRoleForAccountCommand(output, context);
36
- };
37
- return GetServiceRoleForAccountCommand;
38
- }($Command));
39
- export { GetServiceRoleForAccountCommand };
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 { ListClientDevicesAssociatedWithCoreDeviceRequestFilterSensitiveLog, ListClientDevicesAssociatedWithCoreDeviceResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListClientDevicesAssociatedWithCoreDeviceCommand, serializeAws_restJson1ListClientDevicesAssociatedWithCoreDeviceCommand, } from "../protocols/Aws_restJson1";
6
- var ListClientDevicesAssociatedWithCoreDeviceCommand = (function (_super) {
7
- __extends(ListClientDevicesAssociatedWithCoreDeviceCommand, _super);
8
- function ListClientDevicesAssociatedWithCoreDeviceCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListClientDevicesAssociatedWithCoreDeviceCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListClientDevicesAssociatedWithCoreDeviceCommand.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 = "GreengrassV2Client";
18
- var commandName = "ListClientDevicesAssociatedWithCoreDeviceCommand";
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 = "GreengrassV2Client";
15
+ const commandName = "ListClientDevicesAssociatedWithCoreDeviceCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListClientDevicesAssociatedWithCoreDeviceRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListClientDevicesAssociatedWithCoreDeviceResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListClientDevicesAssociatedWithCoreDeviceCommand.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_restJson1ListClientDevicesAssociatedWithCoreDeviceCommand(input, context);
33
- };
34
- ListClientDevicesAssociatedWithCoreDeviceCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListClientDevicesAssociatedWithCoreDeviceCommand(output, context);
36
- };
37
- return ListClientDevicesAssociatedWithCoreDeviceCommand;
38
- }($Command));
39
- export { ListClientDevicesAssociatedWithCoreDeviceCommand };
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 { ListComponentVersionsRequestFilterSensitiveLog, ListComponentVersionsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListComponentVersionsCommand, serializeAws_restJson1ListComponentVersionsCommand, } from "../protocols/Aws_restJson1";
6
- var ListComponentVersionsCommand = (function (_super) {
7
- __extends(ListComponentVersionsCommand, _super);
8
- function ListComponentVersionsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListComponentVersionsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListComponentVersionsCommand.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 = "GreengrassV2Client";
18
- var commandName = "ListComponentVersionsCommand";
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 = "GreengrassV2Client";
15
+ const commandName = "ListComponentVersionsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListComponentVersionsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListComponentVersionsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListComponentVersionsCommand.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_restJson1ListComponentVersionsCommand(input, context);
33
- };
34
- ListComponentVersionsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListComponentVersionsCommand(output, context);
36
- };
37
- return ListComponentVersionsCommand;
38
- }($Command));
39
- export { ListComponentVersionsCommand };
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 { ListComponentsRequestFilterSensitiveLog, ListComponentsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListComponentsCommand, serializeAws_restJson1ListComponentsCommand, } from "../protocols/Aws_restJson1";
6
- var ListComponentsCommand = (function (_super) {
7
- __extends(ListComponentsCommand, _super);
8
- function ListComponentsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListComponentsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListComponentsCommand.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 = "GreengrassV2Client";
18
- var commandName = "ListComponentsCommand";
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 = "GreengrassV2Client";
15
+ const commandName = "ListComponentsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListComponentsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListComponentsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListComponentsCommand.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_restJson1ListComponentsCommand(input, context);
33
- };
34
- ListComponentsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListComponentsCommand(output, context);
36
- };
37
- return ListComponentsCommand;
38
- }($Command));
39
- export { ListComponentsCommand };
31
+ }
32
+ }