@@ -41,6 +41,11 @@ import {
4141 DeleteCoreDeviceCommandInput ,
4242 DeleteCoreDeviceCommandOutput ,
4343} from "./commands/DeleteCoreDeviceCommand" ;
44+ import {
45+ DeleteDeploymentCommand ,
46+ DeleteDeploymentCommandInput ,
47+ DeleteDeploymentCommandOutput ,
48+ } from "./commands/DeleteDeploymentCommand" ;
4449import {
4550 DescribeComponentCommand ,
4651 DescribeComponentCommandInput ,
@@ -344,17 +349,29 @@ export class GreengrassV2 extends GreengrassV2Client {
344349 * </p>
345350 * </li>
346351 * <li>
352+ * <p>Python 3.9 – <code>python3.9</code>
353+ * </p>
354+ * </li>
355+ * <li>
347356 * <p>Java 8 – <code>java8</code>
348357 * </p>
349358 * </li>
350359 * <li>
360+ * <p>Java 11 – <code>java11</code>
361+ * </p>
362+ * </li>
363+ * <li>
351364 * <p>Node.js 10 – <code>nodejs10.x</code>
352365 * </p>
353366 * </li>
354367 * <li>
355368 * <p>Node.js 12 – <code>nodejs12.x</code>
356369 * </p>
357370 * </li>
371+ * <li>
372+ * <p>Node.js 14 – <code>nodejs14.x</code>
373+ * </p>
374+ * </li>
358375 * </ul>
359376 * <p>To create a component from a Lambda function, specify <code>lambdaFunction</code>
360377 * when you call this operation.</p>
@@ -508,6 +525,42 @@ export class GreengrassV2 extends GreengrassV2Client {
508525 }
509526 }
510527
528+ /**
529+ * <p>Deletes a deployment. To delete an active deployment, you must first cancel it. For more
530+ * information, see <a href="https://docs.aws.amazon.com/iot/latest/apireference/API_CancelDeployment.html">CancelDeployment</a>.</p>
531+ * <p>Deleting a deployment doesn't affect core devices that run that deployment, because core
532+ * devices store the deployment's configuration on the device. Additionally, core devices can
533+ * roll back to a previous deployment that has been deleted.</p>
534+ */
535+ public deleteDeployment (
536+ args : DeleteDeploymentCommandInput ,
537+ options ?: __HttpHandlerOptions
538+ ) : Promise < DeleteDeploymentCommandOutput > ;
539+ public deleteDeployment (
540+ args : DeleteDeploymentCommandInput ,
541+ cb : ( err : any , data ?: DeleteDeploymentCommandOutput ) => void
542+ ) : void ;
543+ public deleteDeployment (
544+ args : DeleteDeploymentCommandInput ,
545+ options : __HttpHandlerOptions ,
546+ cb : ( err : any , data ?: DeleteDeploymentCommandOutput ) => void
547+ ) : void ;
548+ public deleteDeployment (
549+ args : DeleteDeploymentCommandInput ,
550+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: DeleteDeploymentCommandOutput ) => void ) ,
551+ cb ?: ( err : any , data ?: DeleteDeploymentCommandOutput ) => void
552+ ) : Promise < DeleteDeploymentCommandOutput > | void {
553+ const command = new DeleteDeploymentCommand ( args ) ;
554+ if ( typeof optionsOrCb === "function" ) {
555+ this . send ( command , optionsOrCb ) ;
556+ } else if ( typeof cb === "function" ) {
557+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
558+ this . send ( command , optionsOrCb || { } , cb ) ;
559+ } else {
560+ return this . send ( command , optionsOrCb ) ;
561+ }
562+ }
563+
511564 /**
512565 * <p>Retrieves metadata for a version of a component.</p>
513566 */
@@ -606,7 +659,7 @@ export class GreengrassV2 extends GreengrassV2Client {
606659 }
607660
608661 /**
609- * <p>Gets the pre-signed URL to download a public component artifact. Core devices call this
662+ * <p>Gets the pre-signed URL to download a public or a Lambda component artifact. Core devices call this
610663 * operation to identify the URL that they can use to download an artifact to install.</p>
611664 */
612665 public getComponentVersionArtifact (
@@ -678,6 +731,29 @@ export class GreengrassV2 extends GreengrassV2Client {
678731
679732 /**
680733 * <p>Retrieves metadata for a Greengrass core device.</p>
734+ * <note>
735+ * <p>IoT Greengrass relies on individual devices to send status updates to the Amazon Web Services Cloud. If the IoT Greengrass Core
736+ * software isn't running on the device, or if device isn't connected to the Amazon Web Services Cloud, then
737+ * the reported status of that device might not reflect its current status. The status timestamp
738+ * indicates when the device status was last updated.</p>
739+ * <p>Core devices send status updates at the following times:</p>
740+ * <ul>
741+ * <li>
742+ * <p>When the IoT Greengrass Core software starts</p>
743+ * </li>
744+ * <li>
745+ * <p>When the core device receives a deployment from the Amazon Web Services Cloud</p>
746+ * </li>
747+ * <li>
748+ * <p>When the status of any component on the core device becomes <code>BROKEN</code>
749+ * </p>
750+ * </li>
751+ * <li>
752+ * <p>At a <a href="https://docs.aws.amazon.com/greengrass/v2/developerguide/greengrass-nucleus-component.html#greengrass-nucleus-component-configuration-fss">regular interval
753+ * that you can configure</a>, which defaults to 24 hours</p>
754+ * </li>
755+ * </ul>
756+ * </note>
681757 */
682758 public getCoreDevice (
683759 args : GetCoreDeviceCommandInput ,
@@ -877,6 +953,29 @@ export class GreengrassV2 extends GreengrassV2Client {
877953
878954 /**
879955 * <p>Retrieves a paginated list of Greengrass core devices.</p>
956+ * <note>
957+ * <p>IoT Greengrass relies on individual devices to send status updates to the Amazon Web Services Cloud. If the IoT Greengrass Core
958+ * software isn't running on the device, or if device isn't connected to the Amazon Web Services Cloud, then
959+ * the reported status of that device might not reflect its current status. The status timestamp
960+ * indicates when the device status was last updated.</p>
961+ * <p>Core devices send status updates at the following times:</p>
962+ * <ul>
963+ * <li>
964+ * <p>When the IoT Greengrass Core software starts</p>
965+ * </li>
966+ * <li>
967+ * <p>When the core device receives a deployment from the Amazon Web Services Cloud</p>
968+ * </li>
969+ * <li>
970+ * <p>When the status of any component on the core device becomes <code>BROKEN</code>
971+ * </p>
972+ * </li>
973+ * <li>
974+ * <p>At a <a href="https://docs.aws.amazon.com/greengrass/v2/developerguide/greengrass-nucleus-component.html#greengrass-nucleus-component-configuration-fss">regular interval
975+ * that you can configure</a>, which defaults to 24 hours</p>
976+ * </li>
977+ * </ul>
978+ * </note>
880979 */
881980 public listCoreDevices (
882981 args : ListCoreDevicesCommandInput ,
@@ -973,7 +1072,32 @@ export class GreengrassV2 extends GreengrassV2Client {
9731072 }
9741073
9751074 /**
976- * <p>Retrieves a paginated list of the components that a Greengrass core device runs.</p>
1075+ * <p>Retrieves a paginated list of the components that a Greengrass core device runs.
1076+ * This list doesn't include components that are deployed from local deployments or
1077+ * components that are deployed as dependencies of other components.</p>
1078+ * <note>
1079+ * <p>IoT Greengrass relies on individual devices to send status updates to the Amazon Web Services Cloud. If the IoT Greengrass Core
1080+ * software isn't running on the device, or if device isn't connected to the Amazon Web Services Cloud, then
1081+ * the reported status of that device might not reflect its current status. The status timestamp
1082+ * indicates when the device status was last updated.</p>
1083+ * <p>Core devices send status updates at the following times:</p>
1084+ * <ul>
1085+ * <li>
1086+ * <p>When the IoT Greengrass Core software starts</p>
1087+ * </li>
1088+ * <li>
1089+ * <p>When the core device receives a deployment from the Amazon Web Services Cloud</p>
1090+ * </li>
1091+ * <li>
1092+ * <p>When the status of any component on the core device becomes <code>BROKEN</code>
1093+ * </p>
1094+ * </li>
1095+ * <li>
1096+ * <p>At a <a href="https://docs.aws.amazon.com/greengrass/v2/developerguide/greengrass-nucleus-component.html#greengrass-nucleus-component-configuration-fss">regular interval
1097+ * that you can configure</a>, which defaults to 24 hours</p>
1098+ * </li>
1099+ * </ul>
1100+ * </note>
9771101 */
9781102 public listInstalledComponents (
9791103 args : ListInstalledComponentsCommandInput ,
0 commit comments