@aws-sdk/client-greengrassv2 3.180.0 → 3.183.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist-cjs/protocols/Aws_restJson1.js +35 -29
  3. package/dist-es/GreengrassV2.js +118 -125
  4. package/dist-es/GreengrassV2Client.js +22 -28
  5. package/dist-es/commands/AssociateServiceRoleToAccountCommand.js +21 -28
  6. package/dist-es/commands/BatchAssociateClientDeviceWithCoreDeviceCommand.js +21 -28
  7. package/dist-es/commands/BatchDisassociateClientDeviceFromCoreDeviceCommand.js +21 -28
  8. package/dist-es/commands/CancelDeploymentCommand.js +21 -28
  9. package/dist-es/commands/CreateComponentVersionCommand.js +21 -28
  10. package/dist-es/commands/CreateDeploymentCommand.js +21 -28
  11. package/dist-es/commands/DeleteComponentCommand.js +22 -29
  12. package/dist-es/commands/DeleteCoreDeviceCommand.js +22 -29
  13. package/dist-es/commands/DeleteDeploymentCommand.js +22 -29
  14. package/dist-es/commands/DescribeComponentCommand.js +21 -28
  15. package/dist-es/commands/DisassociateServiceRoleFromAccountCommand.js +21 -28
  16. package/dist-es/commands/GetComponentCommand.js +21 -28
  17. package/dist-es/commands/GetComponentVersionArtifactCommand.js +21 -28
  18. package/dist-es/commands/GetConnectivityInfoCommand.js +21 -28
  19. package/dist-es/commands/GetCoreDeviceCommand.js +21 -28
  20. package/dist-es/commands/GetDeploymentCommand.js +21 -28
  21. package/dist-es/commands/GetServiceRoleForAccountCommand.js +21 -28
  22. package/dist-es/commands/ListClientDevicesAssociatedWithCoreDeviceCommand.js +21 -28
  23. package/dist-es/commands/ListComponentVersionsCommand.js +21 -28
  24. package/dist-es/commands/ListComponentsCommand.js +21 -28
  25. package/dist-es/commands/ListCoreDevicesCommand.js +21 -28
  26. package/dist-es/commands/ListDeploymentsCommand.js +21 -28
  27. package/dist-es/commands/ListEffectiveDeploymentsCommand.js +21 -28
  28. package/dist-es/commands/ListInstalledComponentsCommand.js +21 -28
  29. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  30. package/dist-es/commands/ResolveComponentCandidatesCommand.js +21 -28
  31. package/dist-es/commands/TagResourceCommand.js +21 -28
  32. package/dist-es/commands/UntagResourceCommand.js +21 -28
  33. package/dist-es/commands/UpdateConnectivityInfoCommand.js +21 -28
  34. package/dist-es/endpoints.js +8 -8
  35. package/dist-es/models/GreengrassV2ServiceException.js +5 -10
  36. package/dist-es/models/models_0.js +387 -198
  37. package/dist-es/pagination/ListClientDevicesAssociatedWithCoreDevicePaginator.js +25 -68
  38. package/dist-es/pagination/ListComponentVersionsPaginator.js +25 -68
  39. package/dist-es/pagination/ListComponentsPaginator.js +25 -68
  40. package/dist-es/pagination/ListCoreDevicesPaginator.js +25 -68
  41. package/dist-es/pagination/ListDeploymentsPaginator.js +25 -68
  42. package/dist-es/pagination/ListEffectiveDeploymentsPaginator.js +25 -68
  43. package/dist-es/pagination/ListInstalledComponentsPaginator.js +25 -68
  44. package/dist-es/protocols/Aws_restJson1.js +2480 -3279
  45. package/dist-es/runtimeConfig.browser.js +26 -12
  46. package/dist-es/runtimeConfig.js +30 -12
  47. package/dist-es/runtimeConfig.native.js +8 -5
  48. package/dist-es/runtimeConfig.shared.js +8 -11
  49. 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 { ListCoreDevicesRequestFilterSensitiveLog, ListCoreDevicesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListCoreDevicesCommand, serializeAws_restJson1ListCoreDevicesCommand, } from "../protocols/Aws_restJson1";
6
- var ListCoreDevicesCommand = (function (_super) {
7
- __extends(ListCoreDevicesCommand, _super);
8
- function ListCoreDevicesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListCoreDevicesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListCoreDevicesCommand.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 = "ListCoreDevicesCommand";
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 = "ListCoreDevicesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListCoreDevicesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListCoreDevicesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListCoreDevicesCommand.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_restJson1ListCoreDevicesCommand(input, context);
33
- };
34
- ListCoreDevicesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListCoreDevicesCommand(output, context);
36
- };
37
- return ListCoreDevicesCommand;
38
- }($Command));
39
- export { ListCoreDevicesCommand };
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 { ListDeploymentsRequestFilterSensitiveLog, ListDeploymentsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListDeploymentsCommand, serializeAws_restJson1ListDeploymentsCommand, } from "../protocols/Aws_restJson1";
6
- var ListDeploymentsCommand = (function (_super) {
7
- __extends(ListDeploymentsCommand, _super);
8
- function ListDeploymentsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListDeploymentsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListDeploymentsCommand.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 = "ListDeploymentsCommand";
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 = "ListDeploymentsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListDeploymentsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListDeploymentsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListDeploymentsCommand.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_restJson1ListDeploymentsCommand(input, context);
33
- };
34
- ListDeploymentsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListDeploymentsCommand(output, context);
36
- };
37
- return ListDeploymentsCommand;
38
- }($Command));
39
- export { ListDeploymentsCommand };
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 { ListEffectiveDeploymentsRequestFilterSensitiveLog, ListEffectiveDeploymentsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListEffectiveDeploymentsCommand, serializeAws_restJson1ListEffectiveDeploymentsCommand, } from "../protocols/Aws_restJson1";
6
- var ListEffectiveDeploymentsCommand = (function (_super) {
7
- __extends(ListEffectiveDeploymentsCommand, _super);
8
- function ListEffectiveDeploymentsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListEffectiveDeploymentsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListEffectiveDeploymentsCommand.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 = "ListEffectiveDeploymentsCommand";
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 = "ListEffectiveDeploymentsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListEffectiveDeploymentsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListEffectiveDeploymentsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListEffectiveDeploymentsCommand.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_restJson1ListEffectiveDeploymentsCommand(input, context);
33
- };
34
- ListEffectiveDeploymentsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListEffectiveDeploymentsCommand(output, context);
36
- };
37
- return ListEffectiveDeploymentsCommand;
38
- }($Command));
39
- export { ListEffectiveDeploymentsCommand };
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 { ListInstalledComponentsRequestFilterSensitiveLog, ListInstalledComponentsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListInstalledComponentsCommand, serializeAws_restJson1ListInstalledComponentsCommand, } from "../protocols/Aws_restJson1";
6
- var ListInstalledComponentsCommand = (function (_super) {
7
- __extends(ListInstalledComponentsCommand, _super);
8
- function ListInstalledComponentsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListInstalledComponentsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListInstalledComponentsCommand.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 = "ListInstalledComponentsCommand";
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 = "ListInstalledComponentsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListInstalledComponentsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListInstalledComponentsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListInstalledComponentsCommand.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_restJson1ListInstalledComponentsCommand(input, context);
33
- };
34
- ListInstalledComponentsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListInstalledComponentsCommand(output, context);
36
- };
37
- return ListInstalledComponentsCommand;
38
- }($Command));
39
- export { ListInstalledComponentsCommand };
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 { ListTagsForResourceRequestFilterSensitiveLog, ListTagsForResourceResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListTagsForResourceCommand, serializeAws_restJson1ListTagsForResourceCommand, } from "../protocols/Aws_restJson1";
6
- var ListTagsForResourceCommand = (function (_super) {
7
- __extends(ListTagsForResourceCommand, _super);
8
- function ListTagsForResourceCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListTagsForResourceCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListTagsForResourceCommand.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 = "ListTagsForResourceCommand";
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 = "ListTagsForResourceCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListTagsForResourceRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListTagsForResourceResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListTagsForResourceCommand.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_restJson1ListTagsForResourceCommand(input, context);
33
- };
34
- ListTagsForResourceCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListTagsForResourceCommand(output, context);
36
- };
37
- return ListTagsForResourceCommand;
38
- }($Command));
39
- export { ListTagsForResourceCommand };
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 { ResolveComponentCandidatesRequestFilterSensitiveLog, ResolveComponentCandidatesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ResolveComponentCandidatesCommand, serializeAws_restJson1ResolveComponentCandidatesCommand, } from "../protocols/Aws_restJson1";
6
- var ResolveComponentCandidatesCommand = (function (_super) {
7
- __extends(ResolveComponentCandidatesCommand, _super);
8
- function ResolveComponentCandidatesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ResolveComponentCandidatesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ResolveComponentCandidatesCommand.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 = "ResolveComponentCandidatesCommand";
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 = "ResolveComponentCandidatesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ResolveComponentCandidatesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ResolveComponentCandidatesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ResolveComponentCandidatesCommand.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_restJson1ResolveComponentCandidatesCommand(input, context);
33
- };
34
- ResolveComponentCandidatesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ResolveComponentCandidatesCommand(output, context);
36
- };
37
- return ResolveComponentCandidatesCommand;
38
- }($Command));
39
- export { ResolveComponentCandidatesCommand };
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 { TagResourceRequestFilterSensitiveLog, TagResourceResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1TagResourceCommand, serializeAws_restJson1TagResourceCommand, } from "../protocols/Aws_restJson1";
6
- var TagResourceCommand = (function (_super) {
7
- __extends(TagResourceCommand, _super);
8
- function TagResourceCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class TagResourceCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- TagResourceCommand.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 = "TagResourceCommand";
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 = "TagResourceCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: TagResourceRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: TagResourceResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- TagResourceCommand.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_restJson1TagResourceCommand(input, context);
33
- };
34
- TagResourceCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1TagResourceCommand(output, context);
36
- };
37
- return TagResourceCommand;
38
- }($Command));
39
- export { TagResourceCommand };
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 { UntagResourceRequestFilterSensitiveLog, UntagResourceResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1UntagResourceCommand, serializeAws_restJson1UntagResourceCommand, } from "../protocols/Aws_restJson1";
6
- var UntagResourceCommand = (function (_super) {
7
- __extends(UntagResourceCommand, _super);
8
- function UntagResourceCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UntagResourceCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UntagResourceCommand.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 = "UntagResourceCommand";
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 = "UntagResourceCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UntagResourceRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: UntagResourceResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UntagResourceCommand.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_restJson1UntagResourceCommand(input, context);
33
- };
34
- UntagResourceCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1UntagResourceCommand(output, context);
36
- };
37
- return UntagResourceCommand;
38
- }($Command));
39
- export { UntagResourceCommand };
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 { UpdateConnectivityInfoRequestFilterSensitiveLog, UpdateConnectivityInfoResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1UpdateConnectivityInfoCommand, serializeAws_restJson1UpdateConnectivityInfoCommand, } from "../protocols/Aws_restJson1";
6
- var UpdateConnectivityInfoCommand = (function (_super) {
7
- __extends(UpdateConnectivityInfoCommand, _super);
8
- function UpdateConnectivityInfoCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UpdateConnectivityInfoCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UpdateConnectivityInfoCommand.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 = "UpdateConnectivityInfoCommand";
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 = "UpdateConnectivityInfoCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UpdateConnectivityInfoRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: UpdateConnectivityInfoResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UpdateConnectivityInfoCommand.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_restJson1UpdateConnectivityInfoCommand(input, context);
33
- };
34
- UpdateConnectivityInfoCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1UpdateConnectivityInfoCommand(output, context);
36
- };
37
- return UpdateConnectivityInfoCommand;
38
- }($Command));
39
- export { UpdateConnectivityInfoCommand };
31
+ }
32
+ }
@@ -1,6 +1,5 @@
1
- import { __assign, __awaiter, __generator } from "tslib";
2
1
  import { getRegionInfo } from "@aws-sdk/config-resolver";
3
- var regionHash = {
2
+ const regionHash = {
4
3
  "dataplane-us-gov-east-1": {
5
4
  variants: [
6
5
  {
@@ -42,7 +41,7 @@ var regionHash = {
42
41
  signingRegion: "us-gov-west-1",
43
42
  },
44
43
  };
45
- var partitionHash = {
44
+ const partitionHash = {
46
45
  aws: {
47
46
  regions: [
48
47
  "af-south-1",
@@ -168,8 +167,9 @@ var partitionHash = {
168
167
  ],
169
168
  },
170
169
  };
171
- export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
172
- return __generator(this, function (_a) {
173
- return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "greengrass", regionHash: regionHash, partitionHash: partitionHash }))];
174
- });
175
- }); };
170
+ export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
171
+ ...options,
172
+ signingService: "greengrass",
173
+ regionHash,
174
+ partitionHash,
175
+ });
@@ -1,12 +1,7 @@
1
- import { __extends } from "tslib";
2
1
  import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
3
- var GreengrassV2ServiceException = (function (_super) {
4
- __extends(GreengrassV2ServiceException, _super);
5
- function GreengrassV2ServiceException(options) {
6
- var _this = _super.call(this, options) || this;
7
- Object.setPrototypeOf(_this, GreengrassV2ServiceException.prototype);
8
- return _this;
2
+ export class GreengrassV2ServiceException extends __ServiceException {
3
+ constructor(options) {
4
+ super(options);
5
+ Object.setPrototypeOf(this, GreengrassV2ServiceException.prototype);
9
6
  }
10
- return GreengrassV2ServiceException;
11
- }(__ServiceException));
12
- export { GreengrassV2ServiceException };
7
+ }