@aws-sdk/client-greengrassv2 3.41.0 → 3.46.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 (47) 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/endpoints.js +1 -0
  11. package/dist-cjs/models/models_0.js +89 -23
  12. package/dist-cjs/protocols/Aws_restJson1.js +435 -1
  13. package/dist-cjs/runtimeConfig.js +0 -2
  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/endpoints.js +1 -0
  22. package/dist-es/models/models_0.js +60 -16
  23. package/dist-es/protocols/Aws_restJson1.js +519 -0
  24. package/dist-es/runtimeConfig.js +0 -2
  25. package/dist-types/GreengrassV2.d.ts +59 -2
  26. package/dist-types/GreengrassV2Client.d.ts +7 -2
  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 +229 -65
  36. package/dist-types/protocols/Aws_restJson1.d.ts +15 -0
  37. package/dist-types/ts3.4/GreengrassV2.d.ts +25 -0
  38. package/dist-types/ts3.4/GreengrassV2Client.d.ts +7 -2
  39. package/dist-types/ts3.4/commands/AssociateServiceRoleToAccountCommand.d.ts +17 -0
  40. package/dist-types/ts3.4/commands/DisassociateServiceRoleFromAccountCommand.d.ts +17 -0
  41. package/dist-types/ts3.4/commands/GetConnectivityInfoCommand.d.ts +17 -0
  42. package/dist-types/ts3.4/commands/GetServiceRoleForAccountCommand.d.ts +17 -0
  43. package/dist-types/ts3.4/commands/UpdateConnectivityInfoCommand.d.ts +17 -0
  44. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  45. package/dist-types/ts3.4/models/models_0.d.ts +139 -40
  46. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +15 -0
  47. package/package.json +36 -43
@@ -1,4 +1,5 @@
1
1
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
+ import { AssociateServiceRoleToAccountCommandInput, AssociateServiceRoleToAccountCommandOutput } from "./commands/AssociateServiceRoleToAccountCommand";
2
3
  import { BatchAssociateClientDeviceWithCoreDeviceCommandInput, BatchAssociateClientDeviceWithCoreDeviceCommandOutput } from "./commands/BatchAssociateClientDeviceWithCoreDeviceCommand";
3
4
  import { BatchDisassociateClientDeviceFromCoreDeviceCommandInput, BatchDisassociateClientDeviceFromCoreDeviceCommandOutput } from "./commands/BatchDisassociateClientDeviceFromCoreDeviceCommand";
4
5
  import { CancelDeploymentCommandInput, CancelDeploymentCommandOutput } from "./commands/CancelDeploymentCommand";
@@ -7,10 +8,13 @@ import { CreateDeploymentCommandInput, CreateDeploymentCommandOutput } from "./c
7
8
  import { DeleteComponentCommandInput, DeleteComponentCommandOutput } from "./commands/DeleteComponentCommand";
8
9
  import { DeleteCoreDeviceCommandInput, DeleteCoreDeviceCommandOutput } from "./commands/DeleteCoreDeviceCommand";
9
10
  import { DescribeComponentCommandInput, DescribeComponentCommandOutput } from "./commands/DescribeComponentCommand";
11
+ import { DisassociateServiceRoleFromAccountCommandInput, DisassociateServiceRoleFromAccountCommandOutput } from "./commands/DisassociateServiceRoleFromAccountCommand";
10
12
  import { GetComponentCommandInput, GetComponentCommandOutput } from "./commands/GetComponentCommand";
11
13
  import { GetComponentVersionArtifactCommandInput, GetComponentVersionArtifactCommandOutput } from "./commands/GetComponentVersionArtifactCommand";
14
+ import { GetConnectivityInfoCommandInput, GetConnectivityInfoCommandOutput } from "./commands/GetConnectivityInfoCommand";
12
15
  import { GetCoreDeviceCommandInput, GetCoreDeviceCommandOutput } from "./commands/GetCoreDeviceCommand";
13
16
  import { GetDeploymentCommandInput, GetDeploymentCommandOutput } from "./commands/GetDeploymentCommand";
17
+ import { GetServiceRoleForAccountCommandInput, GetServiceRoleForAccountCommandOutput } from "./commands/GetServiceRoleForAccountCommand";
14
18
  import { ListClientDevicesAssociatedWithCoreDeviceCommandInput, ListClientDevicesAssociatedWithCoreDeviceCommandOutput } from "./commands/ListClientDevicesAssociatedWithCoreDeviceCommand";
15
19
  import { ListComponentsCommandInput, ListComponentsCommandOutput } from "./commands/ListComponentsCommand";
16
20
  import { ListComponentVersionsCommandInput, ListComponentVersionsCommandOutput } from "./commands/ListComponentVersionsCommand";
@@ -22,6 +26,7 @@ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } fro
22
26
  import { ResolveComponentCandidatesCommandInput, ResolveComponentCandidatesCommandOutput } from "./commands/ResolveComponentCandidatesCommand";
23
27
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
24
28
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
29
+ import { UpdateConnectivityInfoCommandInput, UpdateConnectivityInfoCommandOutput } from "./commands/UpdateConnectivityInfoCommand";
25
30
  import { GreengrassV2Client } from "./GreengrassV2Client";
26
31
  /**
27
32
  * <p>IoT Greengrass brings local compute, messaging, data management, sync, and ML inference capabilities
@@ -38,7 +43,17 @@ import { GreengrassV2Client } from "./GreengrassV2Client";
38
43
  */
39
44
  export declare class GreengrassV2 extends GreengrassV2Client {
40
45
  /**
41
- * <p>Associate a list of client devices with a core device. Use this API operation to specify
46
+ * <p>Associates a Greengrass service role with IoT Greengrass for your Amazon Web Services account in this Amazon Web Services Region. IoT Greengrass
47
+ * uses this role to verify the identity of client devices and manage core device connectivity
48
+ * information. The role must include the <a href="https://console.aws.amazon.com/iam/home#/policies/arn:awsiam::aws:policy/service-role/AWSGreengrassResourceAccessRolePolicy">AWSGreengrassResourceAccessRolePolicy</a> managed policy or a custom policy that
49
+ * defines equivalent permissions for the IoT Greengrass features that you use. For more information, see
50
+ * <a href="https://docs.aws.amazon.com/greengrass/v2/developerguide/greengrass-service-role.html">Greengrass service role</a> in the <i>IoT Greengrass Version 2 Developer Guide</i>.</p>
51
+ */
52
+ associateServiceRoleToAccount(args: AssociateServiceRoleToAccountCommandInput, options?: __HttpHandlerOptions): Promise<AssociateServiceRoleToAccountCommandOutput>;
53
+ associateServiceRoleToAccount(args: AssociateServiceRoleToAccountCommandInput, cb: (err: any, data?: AssociateServiceRoleToAccountCommandOutput) => void): void;
54
+ associateServiceRoleToAccount(args: AssociateServiceRoleToAccountCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AssociateServiceRoleToAccountCommandOutput) => void): void;
55
+ /**
56
+ * <p>Associates a list of client devices with a core device. Use this API operation to specify
42
57
  * which client devices can discover a core device through cloud discovery. With cloud discovery,
43
58
  * client devices connect to IoT Greengrass to retrieve associated core devices' connectivity information
44
59
  * and certificates. For more information, see <a href="https://docs.aws.amazon.com/greengrass/v2/developerguide/configure-cloud-discovery.html">Configure cloud
@@ -56,7 +71,7 @@ export declare class GreengrassV2 extends GreengrassV2Client {
56
71
  batchAssociateClientDeviceWithCoreDevice(args: BatchAssociateClientDeviceWithCoreDeviceCommandInput, cb: (err: any, data?: BatchAssociateClientDeviceWithCoreDeviceCommandOutput) => void): void;
57
72
  batchAssociateClientDeviceWithCoreDevice(args: BatchAssociateClientDeviceWithCoreDeviceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchAssociateClientDeviceWithCoreDeviceCommandOutput) => void): void;
58
73
  /**
59
- * <p>Disassociate a list of client devices from a core device. After you disassociate a client
74
+ * <p>Disassociates a list of client devices from a core device. After you disassociate a client
60
75
  * device from a core device, the client device won't be able to use cloud discovery to retrieve
61
76
  * the core device's connectivity information and certificates.</p>
62
77
  */
@@ -176,6 +191,15 @@ export declare class GreengrassV2 extends GreengrassV2Client {
176
191
  describeComponent(args: DescribeComponentCommandInput, options?: __HttpHandlerOptions): Promise<DescribeComponentCommandOutput>;
177
192
  describeComponent(args: DescribeComponentCommandInput, cb: (err: any, data?: DescribeComponentCommandOutput) => void): void;
178
193
  describeComponent(args: DescribeComponentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeComponentCommandOutput) => void): void;
194
+ /**
195
+ * <p>Disassociates the Greengrass service role from IoT Greengrass for your Amazon Web Services account in this Amazon Web Services Region.
196
+ * Without a service role, IoT Greengrass can't verify the identity of client devices or manage core device
197
+ * connectivity information. For more information, see <a href="https://docs.aws.amazon.com/greengrass/v2/developerguide/greengrass-service-role.html">Greengrass service role</a> in
198
+ * the <i>IoT Greengrass Version 2 Developer Guide</i>.</p>
199
+ */
200
+ disassociateServiceRoleFromAccount(args: DisassociateServiceRoleFromAccountCommandInput, options?: __HttpHandlerOptions): Promise<DisassociateServiceRoleFromAccountCommandOutput>;
201
+ disassociateServiceRoleFromAccount(args: DisassociateServiceRoleFromAccountCommandInput, cb: (err: any, data?: DisassociateServiceRoleFromAccountCommandOutput) => void): void;
202
+ disassociateServiceRoleFromAccount(args: DisassociateServiceRoleFromAccountCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisassociateServiceRoleFromAccountCommandOutput) => void): void;
179
203
  /**
180
204
  * <p>Gets the recipe for a version of a component. Core devices can call this operation to
181
205
  * identify the artifacts and requirements to install a component.</p>
@@ -190,6 +214,18 @@ export declare class GreengrassV2 extends GreengrassV2Client {
190
214
  getComponentVersionArtifact(args: GetComponentVersionArtifactCommandInput, options?: __HttpHandlerOptions): Promise<GetComponentVersionArtifactCommandOutput>;
191
215
  getComponentVersionArtifact(args: GetComponentVersionArtifactCommandInput, cb: (err: any, data?: GetComponentVersionArtifactCommandOutput) => void): void;
192
216
  getComponentVersionArtifact(args: GetComponentVersionArtifactCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetComponentVersionArtifactCommandOutput) => void): void;
217
+ /**
218
+ * <p>Retrieves connectivity information for a Greengrass core device.</p>
219
+ * <p>Connectivity information includes endpoints and ports where client devices
220
+ * can connect to an MQTT broker on the core device. When a client device
221
+ * calls the <a href="https://docs.aws.amazon.com/greengrass/v2/developerguide/greengrass-discover-api.html">Greengrass discovery API</a>,
222
+ * IoT Greengrass returns connectivity information for all of the core devices where the client device can
223
+ * connect. For more information, see <a href="https://docs.aws.amazon.com/greengrass/v2/developerguide/connect-client-devices.html">Connect client devices to
224
+ * core devices</a> in the <i>IoT Greengrass Version 2 Developer Guide</i>.</p>
225
+ */
226
+ getConnectivityInfo(args: GetConnectivityInfoCommandInput, options?: __HttpHandlerOptions): Promise<GetConnectivityInfoCommandOutput>;
227
+ getConnectivityInfo(args: GetConnectivityInfoCommandInput, cb: (err: any, data?: GetConnectivityInfoCommandOutput) => void): void;
228
+ getConnectivityInfo(args: GetConnectivityInfoCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetConnectivityInfoCommandOutput) => void): void;
193
229
  /**
194
230
  * <p>Retrieves metadata for a Greengrass core device.</p>
195
231
  */
@@ -202,6 +238,15 @@ export declare class GreengrassV2 extends GreengrassV2Client {
202
238
  getDeployment(args: GetDeploymentCommandInput, options?: __HttpHandlerOptions): Promise<GetDeploymentCommandOutput>;
203
239
  getDeployment(args: GetDeploymentCommandInput, cb: (err: any, data?: GetDeploymentCommandOutput) => void): void;
204
240
  getDeployment(args: GetDeploymentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDeploymentCommandOutput) => void): void;
241
+ /**
242
+ * <p>Gets the service role associated with IoT Greengrass for your Amazon Web Services account in this Amazon Web Services Region.
243
+ * IoT Greengrass uses this role to verify the identity of client devices and manage core device
244
+ * connectivity information. For more information, see <a href="https://docs.aws.amazon.com/greengrass/v2/developerguide/greengrass-service-role.html">Greengrass service role</a> in
245
+ * the <i>IoT Greengrass Version 2 Developer Guide</i>.</p>
246
+ */
247
+ getServiceRoleForAccount(args: GetServiceRoleForAccountCommandInput, options?: __HttpHandlerOptions): Promise<GetServiceRoleForAccountCommandOutput>;
248
+ getServiceRoleForAccount(args: GetServiceRoleForAccountCommandInput, cb: (err: any, data?: GetServiceRoleForAccountCommandOutput) => void): void;
249
+ getServiceRoleForAccount(args: GetServiceRoleForAccountCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetServiceRoleForAccountCommandOutput) => void): void;
205
250
  /**
206
251
  * <p>Retrieves a paginated list of client devices that are associated with a core
207
252
  * device.</p>
@@ -286,4 +331,16 @@ export declare class GreengrassV2 extends GreengrassV2Client {
286
331
  untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
287
332
  untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
288
333
  untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
334
+ /**
335
+ * <p>Updates connectivity information for a Greengrass core device.</p>
336
+ * <p>Connectivity information includes endpoints and ports where client devices
337
+ * can connect to an MQTT broker on the core device. When a client device
338
+ * calls the <a href="https://docs.aws.amazon.com/greengrass/v2/developerguide/greengrass-discover-api.html">Greengrass discovery API</a>,
339
+ * IoT Greengrass returns connectivity information for all of the core devices where the client device can
340
+ * connect. For more information, see <a href="https://docs.aws.amazon.com/greengrass/v2/developerguide/connect-client-devices.html">Connect client devices to
341
+ * core devices</a> in the <i>IoT Greengrass Version 2 Developer Guide</i>.</p>
342
+ */
343
+ updateConnectivityInfo(args: UpdateConnectivityInfoCommandInput, options?: __HttpHandlerOptions): Promise<UpdateConnectivityInfoCommandOutput>;
344
+ updateConnectivityInfo(args: UpdateConnectivityInfoCommandInput, cb: (err: any, data?: UpdateConnectivityInfoCommandOutput) => void): void;
345
+ updateConnectivityInfo(args: UpdateConnectivityInfoCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateConnectivityInfoCommandOutput) => void): void;
289
346
  }
@@ -6,6 +6,7 @@ import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middlewa
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
7
  import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
8
  import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
+ import { AssociateServiceRoleToAccountCommandInput, AssociateServiceRoleToAccountCommandOutput } from "./commands/AssociateServiceRoleToAccountCommand";
9
10
  import { BatchAssociateClientDeviceWithCoreDeviceCommandInput, BatchAssociateClientDeviceWithCoreDeviceCommandOutput } from "./commands/BatchAssociateClientDeviceWithCoreDeviceCommand";
10
11
  import { BatchDisassociateClientDeviceFromCoreDeviceCommandInput, BatchDisassociateClientDeviceFromCoreDeviceCommandOutput } from "./commands/BatchDisassociateClientDeviceFromCoreDeviceCommand";
11
12
  import { CancelDeploymentCommandInput, CancelDeploymentCommandOutput } from "./commands/CancelDeploymentCommand";
@@ -14,10 +15,13 @@ import { CreateDeploymentCommandInput, CreateDeploymentCommandOutput } from "./c
14
15
  import { DeleteComponentCommandInput, DeleteComponentCommandOutput } from "./commands/DeleteComponentCommand";
15
16
  import { DeleteCoreDeviceCommandInput, DeleteCoreDeviceCommandOutput } from "./commands/DeleteCoreDeviceCommand";
16
17
  import { DescribeComponentCommandInput, DescribeComponentCommandOutput } from "./commands/DescribeComponentCommand";
18
+ import { DisassociateServiceRoleFromAccountCommandInput, DisassociateServiceRoleFromAccountCommandOutput } from "./commands/DisassociateServiceRoleFromAccountCommand";
17
19
  import { GetComponentCommandInput, GetComponentCommandOutput } from "./commands/GetComponentCommand";
18
20
  import { GetComponentVersionArtifactCommandInput, GetComponentVersionArtifactCommandOutput } from "./commands/GetComponentVersionArtifactCommand";
21
+ import { GetConnectivityInfoCommandInput, GetConnectivityInfoCommandOutput } from "./commands/GetConnectivityInfoCommand";
19
22
  import { GetCoreDeviceCommandInput, GetCoreDeviceCommandOutput } from "./commands/GetCoreDeviceCommand";
20
23
  import { GetDeploymentCommandInput, GetDeploymentCommandOutput } from "./commands/GetDeploymentCommand";
24
+ import { GetServiceRoleForAccountCommandInput, GetServiceRoleForAccountCommandOutput } from "./commands/GetServiceRoleForAccountCommand";
21
25
  import { ListClientDevicesAssociatedWithCoreDeviceCommandInput, ListClientDevicesAssociatedWithCoreDeviceCommandOutput } from "./commands/ListClientDevicesAssociatedWithCoreDeviceCommand";
22
26
  import { ListComponentsCommandInput, ListComponentsCommandOutput } from "./commands/ListComponentsCommand";
23
27
  import { ListComponentVersionsCommandInput, ListComponentVersionsCommandOutput } from "./commands/ListComponentVersionsCommand";
@@ -29,8 +33,9 @@ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } fro
29
33
  import { ResolveComponentCandidatesCommandInput, ResolveComponentCandidatesCommandOutput } from "./commands/ResolveComponentCandidatesCommand";
30
34
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
31
35
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
32
- export declare type ServiceInputTypes = BatchAssociateClientDeviceWithCoreDeviceCommandInput | BatchDisassociateClientDeviceFromCoreDeviceCommandInput | CancelDeploymentCommandInput | CreateComponentVersionCommandInput | CreateDeploymentCommandInput | DeleteComponentCommandInput | DeleteCoreDeviceCommandInput | DescribeComponentCommandInput | GetComponentCommandInput | GetComponentVersionArtifactCommandInput | GetCoreDeviceCommandInput | GetDeploymentCommandInput | ListClientDevicesAssociatedWithCoreDeviceCommandInput | ListComponentVersionsCommandInput | ListComponentsCommandInput | ListCoreDevicesCommandInput | ListDeploymentsCommandInput | ListEffectiveDeploymentsCommandInput | ListInstalledComponentsCommandInput | ListTagsForResourceCommandInput | ResolveComponentCandidatesCommandInput | TagResourceCommandInput | UntagResourceCommandInput;
33
- export declare type ServiceOutputTypes = BatchAssociateClientDeviceWithCoreDeviceCommandOutput | BatchDisassociateClientDeviceFromCoreDeviceCommandOutput | CancelDeploymentCommandOutput | CreateComponentVersionCommandOutput | CreateDeploymentCommandOutput | DeleteComponentCommandOutput | DeleteCoreDeviceCommandOutput | DescribeComponentCommandOutput | GetComponentCommandOutput | GetComponentVersionArtifactCommandOutput | GetCoreDeviceCommandOutput | GetDeploymentCommandOutput | ListClientDevicesAssociatedWithCoreDeviceCommandOutput | ListComponentVersionsCommandOutput | ListComponentsCommandOutput | ListCoreDevicesCommandOutput | ListDeploymentsCommandOutput | ListEffectiveDeploymentsCommandOutput | ListInstalledComponentsCommandOutput | ListTagsForResourceCommandOutput | ResolveComponentCandidatesCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput;
36
+ import { UpdateConnectivityInfoCommandInput, UpdateConnectivityInfoCommandOutput } from "./commands/UpdateConnectivityInfoCommand";
37
+ export declare type ServiceInputTypes = AssociateServiceRoleToAccountCommandInput | BatchAssociateClientDeviceWithCoreDeviceCommandInput | BatchDisassociateClientDeviceFromCoreDeviceCommandInput | CancelDeploymentCommandInput | CreateComponentVersionCommandInput | CreateDeploymentCommandInput | DeleteComponentCommandInput | DeleteCoreDeviceCommandInput | DescribeComponentCommandInput | DisassociateServiceRoleFromAccountCommandInput | GetComponentCommandInput | GetComponentVersionArtifactCommandInput | GetConnectivityInfoCommandInput | GetCoreDeviceCommandInput | GetDeploymentCommandInput | GetServiceRoleForAccountCommandInput | ListClientDevicesAssociatedWithCoreDeviceCommandInput | ListComponentVersionsCommandInput | ListComponentsCommandInput | ListCoreDevicesCommandInput | ListDeploymentsCommandInput | ListEffectiveDeploymentsCommandInput | ListInstalledComponentsCommandInput | ListTagsForResourceCommandInput | ResolveComponentCandidatesCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateConnectivityInfoCommandInput;
38
+ export declare type ServiceOutputTypes = AssociateServiceRoleToAccountCommandOutput | BatchAssociateClientDeviceWithCoreDeviceCommandOutput | BatchDisassociateClientDeviceFromCoreDeviceCommandOutput | CancelDeploymentCommandOutput | CreateComponentVersionCommandOutput | CreateDeploymentCommandOutput | DeleteComponentCommandOutput | DeleteCoreDeviceCommandOutput | DescribeComponentCommandOutput | DisassociateServiceRoleFromAccountCommandOutput | GetComponentCommandOutput | GetComponentVersionArtifactCommandOutput | GetConnectivityInfoCommandOutput | GetCoreDeviceCommandOutput | GetDeploymentCommandOutput | GetServiceRoleForAccountCommandOutput | ListClientDevicesAssociatedWithCoreDeviceCommandOutput | ListComponentVersionsCommandOutput | ListComponentsCommandOutput | ListCoreDevicesCommandOutput | ListDeploymentsCommandOutput | ListEffectiveDeploymentsCommandOutput | ListInstalledComponentsCommandOutput | ListTagsForResourceCommandOutput | ResolveComponentCandidatesCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateConnectivityInfoCommandOutput;
34
39
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
35
40
  /**
36
41
  * The HTTP handler to use. Fetch in browser and Https in Nodejs.
@@ -0,0 +1,39 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { GreengrassV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GreengrassV2Client";
4
+ import { AssociateServiceRoleToAccountRequest, AssociateServiceRoleToAccountResponse } from "../models/models_0";
5
+ export interface AssociateServiceRoleToAccountCommandInput extends AssociateServiceRoleToAccountRequest {
6
+ }
7
+ export interface AssociateServiceRoleToAccountCommandOutput extends AssociateServiceRoleToAccountResponse, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>Associates a Greengrass service role with IoT Greengrass for your Amazon Web Services account in this Amazon Web Services Region. IoT Greengrass
11
+ * uses this role to verify the identity of client devices and manage core device connectivity
12
+ * information. The role must include the <a href="https://console.aws.amazon.com/iam/home#/policies/arn:awsiam::aws:policy/service-role/AWSGreengrassResourceAccessRolePolicy">AWSGreengrassResourceAccessRolePolicy</a> managed policy or a custom policy that
13
+ * defines equivalent permissions for the IoT Greengrass features that you use. For more information, see
14
+ * <a href="https://docs.aws.amazon.com/greengrass/v2/developerguide/greengrass-service-role.html">Greengrass service role</a> in the <i>IoT Greengrass Version 2 Developer Guide</i>.</p>
15
+ * @example
16
+ * Use a bare-bones client and the command you need to make an API call.
17
+ * ```javascript
18
+ * import { GreengrassV2Client, AssociateServiceRoleToAccountCommand } from "@aws-sdk/client-greengrassv2"; // ES Modules import
19
+ * // const { GreengrassV2Client, AssociateServiceRoleToAccountCommand } = require("@aws-sdk/client-greengrassv2"); // CommonJS import
20
+ * const client = new GreengrassV2Client(config);
21
+ * const command = new AssociateServiceRoleToAccountCommand(input);
22
+ * const response = await client.send(command);
23
+ * ```
24
+ *
25
+ * @see {@link AssociateServiceRoleToAccountCommandInput} for command's `input` shape.
26
+ * @see {@link AssociateServiceRoleToAccountCommandOutput} for command's `response` shape.
27
+ * @see {@link GreengrassV2ClientResolvedConfig | config} for GreengrassV2Client's `config` shape.
28
+ *
29
+ */
30
+ export declare class AssociateServiceRoleToAccountCommand extends $Command<AssociateServiceRoleToAccountCommandInput, AssociateServiceRoleToAccountCommandOutput, GreengrassV2ClientResolvedConfig> {
31
+ readonly input: AssociateServiceRoleToAccountCommandInput;
32
+ constructor(input: AssociateServiceRoleToAccountCommandInput);
33
+ /**
34
+ * @internal
35
+ */
36
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: GreengrassV2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<AssociateServiceRoleToAccountCommandInput, AssociateServiceRoleToAccountCommandOutput>;
37
+ private serialize;
38
+ private deserialize;
39
+ }
@@ -7,7 +7,7 @@ export interface BatchAssociateClientDeviceWithCoreDeviceCommandInput extends Ba
7
7
  export interface BatchAssociateClientDeviceWithCoreDeviceCommandOutput extends BatchAssociateClientDeviceWithCoreDeviceResponse, __MetadataBearer {
8
8
  }
9
9
  /**
10
- * <p>Associate a list of client devices with a core device. Use this API operation to specify
10
+ * <p>Associates a list of client devices with a core device. Use this API operation to specify
11
11
  * which client devices can discover a core device through cloud discovery. With cloud discovery,
12
12
  * client devices connect to IoT Greengrass to retrieve associated core devices' connectivity information
13
13
  * and certificates. For more information, see <a href="https://docs.aws.amazon.com/greengrass/v2/developerguide/configure-cloud-discovery.html">Configure cloud
@@ -7,7 +7,7 @@ export interface BatchDisassociateClientDeviceFromCoreDeviceCommandInput extends
7
7
  export interface BatchDisassociateClientDeviceFromCoreDeviceCommandOutput extends BatchDisassociateClientDeviceFromCoreDeviceResponse, __MetadataBearer {
8
8
  }
9
9
  /**
10
- * <p>Disassociate a list of client devices from a core device. After you disassociate a client
10
+ * <p>Disassociates a list of client devices from a core device. After you disassociate a client
11
11
  * device from a core device, the client device won't be able to use cloud discovery to retrieve
12
12
  * the core device's connectivity information and certificates.</p>
13
13
  * @example
@@ -0,0 +1,38 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { GreengrassV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GreengrassV2Client";
4
+ import { DisassociateServiceRoleFromAccountRequest, DisassociateServiceRoleFromAccountResponse } from "../models/models_0";
5
+ export interface DisassociateServiceRoleFromAccountCommandInput extends DisassociateServiceRoleFromAccountRequest {
6
+ }
7
+ export interface DisassociateServiceRoleFromAccountCommandOutput extends DisassociateServiceRoleFromAccountResponse, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>Disassociates the Greengrass service role from IoT Greengrass for your Amazon Web Services account in this Amazon Web Services Region.
11
+ * Without a service role, IoT Greengrass can't verify the identity of client devices or manage core device
12
+ * connectivity information. For more information, see <a href="https://docs.aws.amazon.com/greengrass/v2/developerguide/greengrass-service-role.html">Greengrass service role</a> in
13
+ * the <i>IoT Greengrass Version 2 Developer Guide</i>.</p>
14
+ * @example
15
+ * Use a bare-bones client and the command you need to make an API call.
16
+ * ```javascript
17
+ * import { GreengrassV2Client, DisassociateServiceRoleFromAccountCommand } from "@aws-sdk/client-greengrassv2"; // ES Modules import
18
+ * // const { GreengrassV2Client, DisassociateServiceRoleFromAccountCommand } = require("@aws-sdk/client-greengrassv2"); // CommonJS import
19
+ * const client = new GreengrassV2Client(config);
20
+ * const command = new DisassociateServiceRoleFromAccountCommand(input);
21
+ * const response = await client.send(command);
22
+ * ```
23
+ *
24
+ * @see {@link DisassociateServiceRoleFromAccountCommandInput} for command's `input` shape.
25
+ * @see {@link DisassociateServiceRoleFromAccountCommandOutput} for command's `response` shape.
26
+ * @see {@link GreengrassV2ClientResolvedConfig | config} for GreengrassV2Client's `config` shape.
27
+ *
28
+ */
29
+ export declare class DisassociateServiceRoleFromAccountCommand extends $Command<DisassociateServiceRoleFromAccountCommandInput, DisassociateServiceRoleFromAccountCommandOutput, GreengrassV2ClientResolvedConfig> {
30
+ readonly input: DisassociateServiceRoleFromAccountCommandInput;
31
+ constructor(input: DisassociateServiceRoleFromAccountCommandInput);
32
+ /**
33
+ * @internal
34
+ */
35
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: GreengrassV2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DisassociateServiceRoleFromAccountCommandInput, DisassociateServiceRoleFromAccountCommandOutput>;
36
+ private serialize;
37
+ private deserialize;
38
+ }
@@ -0,0 +1,41 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { GreengrassV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GreengrassV2Client";
4
+ import { GetConnectivityInfoRequest, GetConnectivityInfoResponse } from "../models/models_0";
5
+ export interface GetConnectivityInfoCommandInput extends GetConnectivityInfoRequest {
6
+ }
7
+ export interface GetConnectivityInfoCommandOutput extends GetConnectivityInfoResponse, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>Retrieves connectivity information for a Greengrass core device.</p>
11
+ * <p>Connectivity information includes endpoints and ports where client devices
12
+ * can connect to an MQTT broker on the core device. When a client device
13
+ * calls the <a href="https://docs.aws.amazon.com/greengrass/v2/developerguide/greengrass-discover-api.html">Greengrass discovery API</a>,
14
+ * IoT Greengrass returns connectivity information for all of the core devices where the client device can
15
+ * connect. For more information, see <a href="https://docs.aws.amazon.com/greengrass/v2/developerguide/connect-client-devices.html">Connect client devices to
16
+ * core devices</a> in the <i>IoT Greengrass Version 2 Developer Guide</i>.</p>
17
+ * @example
18
+ * Use a bare-bones client and the command you need to make an API call.
19
+ * ```javascript
20
+ * import { GreengrassV2Client, GetConnectivityInfoCommand } from "@aws-sdk/client-greengrassv2"; // ES Modules import
21
+ * // const { GreengrassV2Client, GetConnectivityInfoCommand } = require("@aws-sdk/client-greengrassv2"); // CommonJS import
22
+ * const client = new GreengrassV2Client(config);
23
+ * const command = new GetConnectivityInfoCommand(input);
24
+ * const response = await client.send(command);
25
+ * ```
26
+ *
27
+ * @see {@link GetConnectivityInfoCommandInput} for command's `input` shape.
28
+ * @see {@link GetConnectivityInfoCommandOutput} for command's `response` shape.
29
+ * @see {@link GreengrassV2ClientResolvedConfig | config} for GreengrassV2Client's `config` shape.
30
+ *
31
+ */
32
+ export declare class GetConnectivityInfoCommand extends $Command<GetConnectivityInfoCommandInput, GetConnectivityInfoCommandOutput, GreengrassV2ClientResolvedConfig> {
33
+ readonly input: GetConnectivityInfoCommandInput;
34
+ constructor(input: GetConnectivityInfoCommandInput);
35
+ /**
36
+ * @internal
37
+ */
38
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: GreengrassV2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetConnectivityInfoCommandInput, GetConnectivityInfoCommandOutput>;
39
+ private serialize;
40
+ private deserialize;
41
+ }
@@ -0,0 +1,38 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { GreengrassV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GreengrassV2Client";
4
+ import { GetServiceRoleForAccountRequest, GetServiceRoleForAccountResponse } from "../models/models_0";
5
+ export interface GetServiceRoleForAccountCommandInput extends GetServiceRoleForAccountRequest {
6
+ }
7
+ export interface GetServiceRoleForAccountCommandOutput extends GetServiceRoleForAccountResponse, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>Gets the service role associated with IoT Greengrass for your Amazon Web Services account in this Amazon Web Services Region.
11
+ * IoT Greengrass uses this role to verify the identity of client devices and manage core device
12
+ * connectivity information. For more information, see <a href="https://docs.aws.amazon.com/greengrass/v2/developerguide/greengrass-service-role.html">Greengrass service role</a> in
13
+ * the <i>IoT Greengrass Version 2 Developer Guide</i>.</p>
14
+ * @example
15
+ * Use a bare-bones client and the command you need to make an API call.
16
+ * ```javascript
17
+ * import { GreengrassV2Client, GetServiceRoleForAccountCommand } from "@aws-sdk/client-greengrassv2"; // ES Modules import
18
+ * // const { GreengrassV2Client, GetServiceRoleForAccountCommand } = require("@aws-sdk/client-greengrassv2"); // CommonJS import
19
+ * const client = new GreengrassV2Client(config);
20
+ * const command = new GetServiceRoleForAccountCommand(input);
21
+ * const response = await client.send(command);
22
+ * ```
23
+ *
24
+ * @see {@link GetServiceRoleForAccountCommandInput} for command's `input` shape.
25
+ * @see {@link GetServiceRoleForAccountCommandOutput} for command's `response` shape.
26
+ * @see {@link GreengrassV2ClientResolvedConfig | config} for GreengrassV2Client's `config` shape.
27
+ *
28
+ */
29
+ export declare class GetServiceRoleForAccountCommand extends $Command<GetServiceRoleForAccountCommandInput, GetServiceRoleForAccountCommandOutput, GreengrassV2ClientResolvedConfig> {
30
+ readonly input: GetServiceRoleForAccountCommandInput;
31
+ constructor(input: GetServiceRoleForAccountCommandInput);
32
+ /**
33
+ * @internal
34
+ */
35
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: GreengrassV2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetServiceRoleForAccountCommandInput, GetServiceRoleForAccountCommandOutput>;
36
+ private serialize;
37
+ private deserialize;
38
+ }
@@ -0,0 +1,41 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { GreengrassV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GreengrassV2Client";
4
+ import { UpdateConnectivityInfoRequest, UpdateConnectivityInfoResponse } from "../models/models_0";
5
+ export interface UpdateConnectivityInfoCommandInput extends UpdateConnectivityInfoRequest {
6
+ }
7
+ export interface UpdateConnectivityInfoCommandOutput extends UpdateConnectivityInfoResponse, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>Updates connectivity information for a Greengrass core device.</p>
11
+ * <p>Connectivity information includes endpoints and ports where client devices
12
+ * can connect to an MQTT broker on the core device. When a client device
13
+ * calls the <a href="https://docs.aws.amazon.com/greengrass/v2/developerguide/greengrass-discover-api.html">Greengrass discovery API</a>,
14
+ * IoT Greengrass returns connectivity information for all of the core devices where the client device can
15
+ * connect. For more information, see <a href="https://docs.aws.amazon.com/greengrass/v2/developerguide/connect-client-devices.html">Connect client devices to
16
+ * core devices</a> in the <i>IoT Greengrass Version 2 Developer Guide</i>.</p>
17
+ * @example
18
+ * Use a bare-bones client and the command you need to make an API call.
19
+ * ```javascript
20
+ * import { GreengrassV2Client, UpdateConnectivityInfoCommand } from "@aws-sdk/client-greengrassv2"; // ES Modules import
21
+ * // const { GreengrassV2Client, UpdateConnectivityInfoCommand } = require("@aws-sdk/client-greengrassv2"); // CommonJS import
22
+ * const client = new GreengrassV2Client(config);
23
+ * const command = new UpdateConnectivityInfoCommand(input);
24
+ * const response = await client.send(command);
25
+ * ```
26
+ *
27
+ * @see {@link UpdateConnectivityInfoCommandInput} for command's `input` shape.
28
+ * @see {@link UpdateConnectivityInfoCommandOutput} for command's `response` shape.
29
+ * @see {@link GreengrassV2ClientResolvedConfig | config} for GreengrassV2Client's `config` shape.
30
+ *
31
+ */
32
+ export declare class UpdateConnectivityInfoCommand extends $Command<UpdateConnectivityInfoCommandInput, UpdateConnectivityInfoCommandOutput, GreengrassV2ClientResolvedConfig> {
33
+ readonly input: UpdateConnectivityInfoCommandInput;
34
+ constructor(input: UpdateConnectivityInfoCommandInput);
35
+ /**
36
+ * @internal
37
+ */
38
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: GreengrassV2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateConnectivityInfoCommandInput, UpdateConnectivityInfoCommandOutput>;
39
+ private serialize;
40
+ private deserialize;
41
+ }
@@ -1,3 +1,4 @@
1
+ export * from "./AssociateServiceRoleToAccountCommand";
1
2
  export * from "./BatchAssociateClientDeviceWithCoreDeviceCommand";
2
3
  export * from "./BatchDisassociateClientDeviceFromCoreDeviceCommand";
3
4
  export * from "./CancelDeploymentCommand";
@@ -6,10 +7,13 @@ export * from "./CreateDeploymentCommand";
6
7
  export * from "./DeleteComponentCommand";
7
8
  export * from "./DeleteCoreDeviceCommand";
8
9
  export * from "./DescribeComponentCommand";
10
+ export * from "./DisassociateServiceRoleFromAccountCommand";
9
11
  export * from "./GetComponentCommand";
10
12
  export * from "./GetComponentVersionArtifactCommand";
13
+ export * from "./GetConnectivityInfoCommand";
11
14
  export * from "./GetCoreDeviceCommand";
12
15
  export * from "./GetDeploymentCommand";
16
+ export * from "./GetServiceRoleForAccountCommand";
13
17
  export * from "./ListClientDevicesAssociatedWithCoreDeviceCommand";
14
18
  export * from "./ListComponentVersionsCommand";
15
19
  export * from "./ListComponentsCommand";
@@ -21,3 +25,4 @@ export * from "./ListTagsForResourceCommand";
21
25
  export * from "./ResolveComponentCandidatesCommand";
22
26
  export * from "./TagResourceCommand";
23
27
  export * from "./UntagResourceCommand";
28
+ export * from "./UpdateConnectivityInfoCommand";