From 8ea87b47f9c38ed7116297d911891df9baa417f8 Mon Sep 17 00:00:00 2001 From: awstools Date: Mon, 16 Dec 2024 19:19:11 +0000 Subject: [PATCH] feat(client-greengrassv2): Add support for runtime in GetCoreDevice and ListCoreDevices APIs. --- .../src/commands/GetCoreDeviceCommand.ts | 1 + .../src/commands/ListCoreDevicesCommand.ts | 15 ++++- .../src/models/models_0.ts | 66 +++++++++++++++++++ .../src/protocols/Aws_restJson1.ts | 6 ++ .../sdk-codegen/aws-models/greengrassv2.json | 42 +++++++++++- 5 files changed, 126 insertions(+), 4 deletions(-) diff --git a/clients/client-greengrassv2/src/commands/GetCoreDeviceCommand.ts b/clients/client-greengrassv2/src/commands/GetCoreDeviceCommand.ts index 208d88e531b2..4758e22448bc 100644 --- a/clients/client-greengrassv2/src/commands/GetCoreDeviceCommand.ts +++ b/clients/client-greengrassv2/src/commands/GetCoreDeviceCommand.ts @@ -72,6 +72,7 @@ export interface GetCoreDeviceCommandOutput extends GetCoreDeviceResponse, __Met * // coreVersion: "STRING_VALUE", * // platform: "STRING_VALUE", * // architecture: "STRING_VALUE", + * // runtime: "STRING_VALUE", * // status: "HEALTHY" || "UNHEALTHY", * // lastStatusUpdateTimestamp: new Date("TIMESTAMP"), * // tags: { // TagMap diff --git a/clients/client-greengrassv2/src/commands/ListCoreDevicesCommand.ts b/clients/client-greengrassv2/src/commands/ListCoreDevicesCommand.ts index 7e9fd6fd8ea9..07d0471a6322 100644 --- a/clients/client-greengrassv2/src/commands/ListCoreDevicesCommand.ts +++ b/clients/client-greengrassv2/src/commands/ListCoreDevicesCommand.ts @@ -43,9 +43,14 @@ export interface ListCoreDevicesCommandOutput extends ListCoreDevicesResponse, _ *

When the core device receives a deployment from the Amazon Web Services Cloud

* *
  • - *

    When the status of any component on the core device becomes - * BROKEN - *

    + *

    For Greengrass nucleus 2.12.2 and earlier, the core device sends status updates when the + * status of any component on the core device becomes ERRORED or + * BROKEN.

    + *
  • + *
  • + *

    For Greengrass nucleus 2.12.3 and later, the core device sends status updates when the + * status of any component on the core device becomes ERRORED, + * BROKEN, RUNNING, or FINISHED.

    *
  • *
  • *

    At a regular interval that you can configure, which defaults to 24 hours

    @@ -67,6 +72,7 @@ export interface ListCoreDevicesCommandOutput extends ListCoreDevicesResponse, _ * status: "HEALTHY" || "UNHEALTHY", * maxResults: Number("int"), * nextToken: "STRING_VALUE", + * runtime: "STRING_VALUE", * }; * const command = new ListCoreDevicesCommand(input); * const response = await client.send(command); @@ -76,6 +82,9 @@ export interface ListCoreDevicesCommandOutput extends ListCoreDevicesResponse, _ * // coreDeviceThingName: "STRING_VALUE", * // status: "HEALTHY" || "UNHEALTHY", * // lastStatusUpdateTimestamp: new Date("TIMESTAMP"), + * // platform: "STRING_VALUE", + * // architecture: "STRING_VALUE", + * // runtime: "STRING_VALUE", * // }, * // ], * // nextToken: "STRING_VALUE", diff --git a/clients/client-greengrassv2/src/models/models_0.ts b/clients/client-greengrassv2/src/models/models_0.ts index 75a3bee60dc3..1fd682252d4f 100644 --- a/clients/client-greengrassv2/src/models/models_0.ts +++ b/clients/client-greengrassv2/src/models/models_0.ts @@ -935,6 +935,36 @@ export interface CoreDevice { * @public */ lastStatusUpdateTimestamp?: Date | undefined; + + /** + *

    The operating system platform that the core device runs.

    + * @public + */ + platform?: string | undefined; + + /** + *

    The computer architecture of the core device.

    + * @public + */ + architecture?: string | undefined; + + /** + *

    The runtime for the core device. The runtime can be:

    + * + * @public + */ + runtime?: string | undefined; } /** @@ -2423,6 +2453,24 @@ export interface GetCoreDeviceResponse { */ architecture?: string | undefined; + /** + *

    The runtime for the core device. The runtime can be:

    + * + * @public + */ + runtime?: string | undefined; + /** *

    The status of the core device. The core device status can be:

    *