@aws-sdk/client-greengrassv2 3.45.0 → 3.47.2

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 (53) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/README.md +7 -7
  3. package/dist-cjs/GreengrassV2.js +75 -0
  4. package/dist-cjs/commands/AssociateServiceRoleToAccountCommand.js +36 -0
  5. package/dist-cjs/commands/DisassociateServiceRoleFromAccountCommand.js +36 -0
  6. package/dist-cjs/commands/GetConnectivityInfoCommand.js +36 -0
  7. package/dist-cjs/commands/GetServiceRoleForAccountCommand.js +36 -0
  8. package/dist-cjs/commands/UpdateConnectivityInfoCommand.js +36 -0
  9. package/dist-cjs/commands/index.js +5 -0
  10. package/dist-cjs/models/models_0.js +75 -57
  11. package/dist-cjs/protocols/Aws_restJson1.js +435 -1
  12. package/dist-cjs/runtimeConfig.browser.js +7 -2
  13. package/dist-cjs/runtimeConfig.js +9 -3
  14. package/dist-es/GreengrassV2.js +75 -0
  15. package/dist-es/commands/AssociateServiceRoleToAccountCommand.js +39 -0
  16. package/dist-es/commands/DisassociateServiceRoleFromAccountCommand.js +39 -0
  17. package/dist-es/commands/GetConnectivityInfoCommand.js +39 -0
  18. package/dist-es/commands/GetServiceRoleForAccountCommand.js +39 -0
  19. package/dist-es/commands/UpdateConnectivityInfoCommand.js +39 -0
  20. package/dist-es/commands/index.js +5 -0
  21. package/dist-es/models/models_0.js +52 -40
  22. package/dist-es/protocols/Aws_restJson1.js +519 -0
  23. package/dist-es/runtimeConfig.browser.js +12 -3
  24. package/dist-es/runtimeConfig.js +13 -6
  25. package/dist-types/GreengrassV2.d.ts +59 -2
  26. package/dist-types/GreengrassV2Client.d.ts +12 -3
  27. package/dist-types/commands/AssociateServiceRoleToAccountCommand.d.ts +39 -0
  28. package/dist-types/commands/BatchAssociateClientDeviceWithCoreDeviceCommand.d.ts +1 -1
  29. package/dist-types/commands/BatchDisassociateClientDeviceFromCoreDeviceCommand.d.ts +1 -1
  30. package/dist-types/commands/DisassociateServiceRoleFromAccountCommand.d.ts +38 -0
  31. package/dist-types/commands/GetConnectivityInfoCommand.d.ts +41 -0
  32. package/dist-types/commands/GetServiceRoleForAccountCommand.d.ts +38 -0
  33. package/dist-types/commands/UpdateConnectivityInfoCommand.d.ts +41 -0
  34. package/dist-types/commands/index.d.ts +5 -0
  35. package/dist-types/models/models_0.d.ts +215 -99
  36. package/dist-types/protocols/Aws_restJson1.d.ts +15 -0
  37. package/dist-types/runtimeConfig.browser.d.ts +3 -2
  38. package/dist-types/runtimeConfig.d.ts +4 -3
  39. package/dist-types/runtimeConfig.native.d.ts +1 -0
  40. package/dist-types/ts3.4/GreengrassV2.d.ts +25 -0
  41. package/dist-types/ts3.4/GreengrassV2Client.d.ts +10 -3
  42. package/dist-types/ts3.4/commands/AssociateServiceRoleToAccountCommand.d.ts +17 -0
  43. package/dist-types/ts3.4/commands/DisassociateServiceRoleFromAccountCommand.d.ts +17 -0
  44. package/dist-types/ts3.4/commands/GetConnectivityInfoCommand.d.ts +17 -0
  45. package/dist-types/ts3.4/commands/GetServiceRoleForAccountCommand.d.ts +17 -0
  46. package/dist-types/ts3.4/commands/UpdateConnectivityInfoCommand.d.ts +17 -0
  47. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  48. package/dist-types/ts3.4/models/models_0.d.ts +129 -62
  49. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +15 -0
  50. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
  51. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
  52. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
  53. package/package.json +39 -46
package/CHANGELOG.md CHANGED
@@ -3,6 +3,51 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [3.47.2](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.1...v3.47.2) (2022-01-21)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-greengrassv2
9
+
10
+
11
+
12
+
13
+
14
+ ## [3.47.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.0-release-test-1...v3.47.1) (2022-01-20)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/client-greengrassv2
17
+
18
+
19
+
20
+
21
+
22
+ # [3.47.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
23
+
24
+
25
+ ### Features
26
+
27
+ * **clients:** update clients to use default values inferred from defaults mode ([#3192](https://github.com/aws/aws-sdk-js-v3/issues/3192)) ([9152e21](https://github.com/aws/aws-sdk-js-v3/commit/9152e210c6ec29f34bb070eaf2874039022e6ab7))
28
+
29
+
30
+
31
+
32
+
33
+ # [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
34
+
35
+
36
+ ### Bug Fixes
37
+
38
+ * **clients:** update clean:dist script to delete dist-* folder ([#3155](https://github.com/aws/aws-sdk-js-v3/issues/3155)) ([cdb1709](https://github.com/aws/aws-sdk-js-v3/commit/cdb17090f82d1fc8755811c82cbed5976ec7e60b))
39
+
40
+
41
+ ### Features
42
+
43
+ * **clients:** extend typedoc.json from root ([#3136](https://github.com/aws/aws-sdk-js-v3/issues/3136)) ([f6a3ef5](https://github.com/aws/aws-sdk-js-v3/commit/f6a3ef541ae2d92872d09d8cab6727911287ebb2))
44
+ * **clients:** update clients as of 2021/01/07 ([#3163](https://github.com/aws/aws-sdk-js-v3/issues/3163)) ([6648b07](https://github.com/aws/aws-sdk-js-v3/commit/6648b07ea97691d2fed55eab49831646543b648b))
45
+ * end support for Node.js 10.x ([#3122](https://github.com/aws/aws-sdk-js-v3/issues/3122)) ([7acf18a](https://github.com/aws/aws-sdk-js-v3/commit/7acf18abd3fb1cc461f809110cdb0d7968c2070e))
46
+
47
+
48
+
49
+
50
+
6
51
  # [3.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
7
52
 
8
53
 
package/README.md CHANGED
@@ -34,16 +34,16 @@ using your favorite package manager:
34
34
 
35
35
  The AWS SDK is modulized by clients and commands.
36
36
  To send a request, you only need to import the `GreengrassV2Client` and
37
- the commands you need, for example `BatchAssociateClientDeviceWithCoreDeviceCommand`:
37
+ the commands you need, for example `AssociateServiceRoleToAccountCommand`:
38
38
 
39
39
  ```js
40
40
  // ES5 example
41
- const { GreengrassV2Client, BatchAssociateClientDeviceWithCoreDeviceCommand } = require("@aws-sdk/client-greengrassv2");
41
+ const { GreengrassV2Client, AssociateServiceRoleToAccountCommand } = require("@aws-sdk/client-greengrassv2");
42
42
  ```
43
43
 
44
44
  ```ts
45
45
  // ES6+ example
46
- import { GreengrassV2Client, BatchAssociateClientDeviceWithCoreDeviceCommand } from "@aws-sdk/client-greengrassv2";
46
+ import { GreengrassV2Client, AssociateServiceRoleToAccountCommand } from "@aws-sdk/client-greengrassv2";
47
47
  ```
48
48
 
49
49
  ### Usage
@@ -62,7 +62,7 @@ const client = new GreengrassV2Client({ region: "REGION" });
62
62
  const params = {
63
63
  /** input parameters */
64
64
  };
65
- const command = new BatchAssociateClientDeviceWithCoreDeviceCommand(params);
65
+ const command = new AssociateServiceRoleToAccountCommand(params);
66
66
  ```
67
67
 
68
68
  #### Async/await
@@ -141,7 +141,7 @@ const client = new AWS.GreengrassV2({ region: "REGION" });
141
141
 
142
142
  // async/await.
143
143
  try {
144
- const data = await client.batchAssociateClientDeviceWithCoreDevice(params);
144
+ const data = await client.associateServiceRoleToAccount(params);
145
145
  // process data.
146
146
  } catch (error) {
147
147
  // error handling.
@@ -149,7 +149,7 @@ try {
149
149
 
150
150
  // Promises.
151
151
  client
152
- .batchAssociateClientDeviceWithCoreDevice(params)
152
+ .associateServiceRoleToAccount(params)
153
153
  .then((data) => {
154
154
  // process data.
155
155
  })
@@ -158,7 +158,7 @@ client
158
158
  });
159
159
 
160
160
  // callbacks.
161
- client.batchAssociateClientDeviceWithCoreDevice(params, (err, data) => {
161
+ client.associateServiceRoleToAccount(params, (err, data) => {
162
162
  // proccess err and data.
163
163
  });
164
164
  ```
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GreengrassV2 = void 0;
4
+ const AssociateServiceRoleToAccountCommand_1 = require("./commands/AssociateServiceRoleToAccountCommand");
4
5
  const BatchAssociateClientDeviceWithCoreDeviceCommand_1 = require("./commands/BatchAssociateClientDeviceWithCoreDeviceCommand");
5
6
  const BatchDisassociateClientDeviceFromCoreDeviceCommand_1 = require("./commands/BatchDisassociateClientDeviceFromCoreDeviceCommand");
6
7
  const CancelDeploymentCommand_1 = require("./commands/CancelDeploymentCommand");
@@ -9,10 +10,13 @@ const CreateDeploymentCommand_1 = require("./commands/CreateDeploymentCommand");
9
10
  const DeleteComponentCommand_1 = require("./commands/DeleteComponentCommand");
10
11
  const DeleteCoreDeviceCommand_1 = require("./commands/DeleteCoreDeviceCommand");
11
12
  const DescribeComponentCommand_1 = require("./commands/DescribeComponentCommand");
13
+ const DisassociateServiceRoleFromAccountCommand_1 = require("./commands/DisassociateServiceRoleFromAccountCommand");
12
14
  const GetComponentCommand_1 = require("./commands/GetComponentCommand");
13
15
  const GetComponentVersionArtifactCommand_1 = require("./commands/GetComponentVersionArtifactCommand");
16
+ const GetConnectivityInfoCommand_1 = require("./commands/GetConnectivityInfoCommand");
14
17
  const GetCoreDeviceCommand_1 = require("./commands/GetCoreDeviceCommand");
15
18
  const GetDeploymentCommand_1 = require("./commands/GetDeploymentCommand");
19
+ const GetServiceRoleForAccountCommand_1 = require("./commands/GetServiceRoleForAccountCommand");
16
20
  const ListClientDevicesAssociatedWithCoreDeviceCommand_1 = require("./commands/ListClientDevicesAssociatedWithCoreDeviceCommand");
17
21
  const ListComponentsCommand_1 = require("./commands/ListComponentsCommand");
18
22
  const ListComponentVersionsCommand_1 = require("./commands/ListComponentVersionsCommand");
@@ -24,8 +28,23 @@ const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceComm
24
28
  const ResolveComponentCandidatesCommand_1 = require("./commands/ResolveComponentCandidatesCommand");
25
29
  const TagResourceCommand_1 = require("./commands/TagResourceCommand");
26
30
  const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
31
+ const UpdateConnectivityInfoCommand_1 = require("./commands/UpdateConnectivityInfoCommand");
27
32
  const GreengrassV2Client_1 = require("./GreengrassV2Client");
28
33
  class GreengrassV2 extends GreengrassV2Client_1.GreengrassV2Client {
34
+ associateServiceRoleToAccount(args, optionsOrCb, cb) {
35
+ const command = new AssociateServiceRoleToAccountCommand_1.AssociateServiceRoleToAccountCommand(args);
36
+ if (typeof optionsOrCb === "function") {
37
+ this.send(command, optionsOrCb);
38
+ }
39
+ else if (typeof cb === "function") {
40
+ if (typeof optionsOrCb !== "object")
41
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
42
+ this.send(command, optionsOrCb || {}, cb);
43
+ }
44
+ else {
45
+ return this.send(command, optionsOrCb);
46
+ }
47
+ }
29
48
  batchAssociateClientDeviceWithCoreDevice(args, optionsOrCb, cb) {
30
49
  const command = new BatchAssociateClientDeviceWithCoreDeviceCommand_1.BatchAssociateClientDeviceWithCoreDeviceCommand(args);
31
50
  if (typeof optionsOrCb === "function") {
@@ -138,6 +157,20 @@ class GreengrassV2 extends GreengrassV2Client_1.GreengrassV2Client {
138
157
  return this.send(command, optionsOrCb);
139
158
  }
140
159
  }
160
+ disassociateServiceRoleFromAccount(args, optionsOrCb, cb) {
161
+ const command = new DisassociateServiceRoleFromAccountCommand_1.DisassociateServiceRoleFromAccountCommand(args);
162
+ if (typeof optionsOrCb === "function") {
163
+ this.send(command, optionsOrCb);
164
+ }
165
+ else if (typeof cb === "function") {
166
+ if (typeof optionsOrCb !== "object")
167
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
168
+ this.send(command, optionsOrCb || {}, cb);
169
+ }
170
+ else {
171
+ return this.send(command, optionsOrCb);
172
+ }
173
+ }
141
174
  getComponent(args, optionsOrCb, cb) {
142
175
  const command = new GetComponentCommand_1.GetComponentCommand(args);
143
176
  if (typeof optionsOrCb === "function") {
@@ -166,6 +199,20 @@ class GreengrassV2 extends GreengrassV2Client_1.GreengrassV2Client {
166
199
  return this.send(command, optionsOrCb);
167
200
  }
168
201
  }
202
+ getConnectivityInfo(args, optionsOrCb, cb) {
203
+ const command = new GetConnectivityInfoCommand_1.GetConnectivityInfoCommand(args);
204
+ if (typeof optionsOrCb === "function") {
205
+ this.send(command, optionsOrCb);
206
+ }
207
+ else if (typeof cb === "function") {
208
+ if (typeof optionsOrCb !== "object")
209
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
210
+ this.send(command, optionsOrCb || {}, cb);
211
+ }
212
+ else {
213
+ return this.send(command, optionsOrCb);
214
+ }
215
+ }
169
216
  getCoreDevice(args, optionsOrCb, cb) {
170
217
  const command = new GetCoreDeviceCommand_1.GetCoreDeviceCommand(args);
171
218
  if (typeof optionsOrCb === "function") {
@@ -194,6 +241,20 @@ class GreengrassV2 extends GreengrassV2Client_1.GreengrassV2Client {
194
241
  return this.send(command, optionsOrCb);
195
242
  }
196
243
  }
244
+ getServiceRoleForAccount(args, optionsOrCb, cb) {
245
+ const command = new GetServiceRoleForAccountCommand_1.GetServiceRoleForAccountCommand(args);
246
+ if (typeof optionsOrCb === "function") {
247
+ this.send(command, optionsOrCb);
248
+ }
249
+ else if (typeof cb === "function") {
250
+ if (typeof optionsOrCb !== "object")
251
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
252
+ this.send(command, optionsOrCb || {}, cb);
253
+ }
254
+ else {
255
+ return this.send(command, optionsOrCb);
256
+ }
257
+ }
197
258
  listClientDevicesAssociatedWithCoreDevice(args, optionsOrCb, cb) {
198
259
  const command = new ListClientDevicesAssociatedWithCoreDeviceCommand_1.ListClientDevicesAssociatedWithCoreDeviceCommand(args);
199
260
  if (typeof optionsOrCb === "function") {
@@ -348,5 +409,19 @@ class GreengrassV2 extends GreengrassV2Client_1.GreengrassV2Client {
348
409
  return this.send(command, optionsOrCb);
349
410
  }
350
411
  }
412
+ updateConnectivityInfo(args, optionsOrCb, cb) {
413
+ const command = new UpdateConnectivityInfoCommand_1.UpdateConnectivityInfoCommand(args);
414
+ if (typeof optionsOrCb === "function") {
415
+ this.send(command, optionsOrCb);
416
+ }
417
+ else if (typeof cb === "function") {
418
+ if (typeof optionsOrCb !== "object")
419
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
420
+ this.send(command, optionsOrCb || {}, cb);
421
+ }
422
+ else {
423
+ return this.send(command, optionsOrCb);
424
+ }
425
+ }
351
426
  }
352
427
  exports.GreengrassV2 = GreengrassV2;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AssociateServiceRoleToAccountCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class AssociateServiceRoleToAccountCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "GreengrassV2Client";
18
+ const commandName = "AssociateServiceRoleToAccountCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.AssociateServiceRoleToAccountRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.AssociateServiceRoleToAccountResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_restJson1_1.serializeAws_restJson1AssociateServiceRoleToAccountCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restJson1_1.deserializeAws_restJson1AssociateServiceRoleToAccountCommand(output, context);
34
+ }
35
+ }
36
+ exports.AssociateServiceRoleToAccountCommand = AssociateServiceRoleToAccountCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DisassociateServiceRoleFromAccountCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class DisassociateServiceRoleFromAccountCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "GreengrassV2Client";
18
+ const commandName = "DisassociateServiceRoleFromAccountCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.DisassociateServiceRoleFromAccountRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.DisassociateServiceRoleFromAccountResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_restJson1_1.serializeAws_restJson1DisassociateServiceRoleFromAccountCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restJson1_1.deserializeAws_restJson1DisassociateServiceRoleFromAccountCommand(output, context);
34
+ }
35
+ }
36
+ exports.DisassociateServiceRoleFromAccountCommand = DisassociateServiceRoleFromAccountCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetConnectivityInfoCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class GetConnectivityInfoCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "GreengrassV2Client";
18
+ const commandName = "GetConnectivityInfoCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.GetConnectivityInfoRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.GetConnectivityInfoResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_restJson1_1.serializeAws_restJson1GetConnectivityInfoCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restJson1_1.deserializeAws_restJson1GetConnectivityInfoCommand(output, context);
34
+ }
35
+ }
36
+ exports.GetConnectivityInfoCommand = GetConnectivityInfoCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetServiceRoleForAccountCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class GetServiceRoleForAccountCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "GreengrassV2Client";
18
+ const commandName = "GetServiceRoleForAccountCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.GetServiceRoleForAccountRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.GetServiceRoleForAccountResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_restJson1_1.serializeAws_restJson1GetServiceRoleForAccountCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restJson1_1.deserializeAws_restJson1GetServiceRoleForAccountCommand(output, context);
34
+ }
35
+ }
36
+ exports.GetServiceRoleForAccountCommand = GetServiceRoleForAccountCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateConnectivityInfoCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class UpdateConnectivityInfoCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "GreengrassV2Client";
18
+ const commandName = "UpdateConnectivityInfoCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.UpdateConnectivityInfoRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.UpdateConnectivityInfoResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_restJson1_1.serializeAws_restJson1UpdateConnectivityInfoCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restJson1_1.deserializeAws_restJson1UpdateConnectivityInfoCommand(output, context);
34
+ }
35
+ }
36
+ exports.UpdateConnectivityInfoCommand = UpdateConnectivityInfoCommand;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./AssociateServiceRoleToAccountCommand"), exports);
4
5
  tslib_1.__exportStar(require("./BatchAssociateClientDeviceWithCoreDeviceCommand"), exports);
5
6
  tslib_1.__exportStar(require("./BatchDisassociateClientDeviceFromCoreDeviceCommand"), exports);
6
7
  tslib_1.__exportStar(require("./CancelDeploymentCommand"), exports);
@@ -9,10 +10,13 @@ tslib_1.__exportStar(require("./CreateDeploymentCommand"), exports);
9
10
  tslib_1.__exportStar(require("./DeleteComponentCommand"), exports);
10
11
  tslib_1.__exportStar(require("./DeleteCoreDeviceCommand"), exports);
11
12
  tslib_1.__exportStar(require("./DescribeComponentCommand"), exports);
13
+ tslib_1.__exportStar(require("./DisassociateServiceRoleFromAccountCommand"), exports);
12
14
  tslib_1.__exportStar(require("./GetComponentCommand"), exports);
13
15
  tslib_1.__exportStar(require("./GetComponentVersionArtifactCommand"), exports);
16
+ tslib_1.__exportStar(require("./GetConnectivityInfoCommand"), exports);
14
17
  tslib_1.__exportStar(require("./GetCoreDeviceCommand"), exports);
15
18
  tslib_1.__exportStar(require("./GetDeploymentCommand"), exports);
19
+ tslib_1.__exportStar(require("./GetServiceRoleForAccountCommand"), exports);
16
20
  tslib_1.__exportStar(require("./ListClientDevicesAssociatedWithCoreDeviceCommand"), exports);
17
21
  tslib_1.__exportStar(require("./ListComponentVersionsCommand"), exports);
18
22
  tslib_1.__exportStar(require("./ListComponentsCommand"), exports);
@@ -24,3 +28,4 @@ tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
24
28
  tslib_1.__exportStar(require("./ResolveComponentCandidatesCommand"), exports);
25
29
  tslib_1.__exportStar(require("./TagResourceCommand"), exports);
26
30
  tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
31
+ tslib_1.__exportStar(require("./UpdateConnectivityInfoCommand"), exports);