@@ -41,6 +41,11 @@ import {
41
41
DeleteCoreDeviceCommandInput ,
42
42
DeleteCoreDeviceCommandOutput ,
43
43
} from "./commands/DeleteCoreDeviceCommand" ;
44
+ import {
45
+ DeleteDeploymentCommand ,
46
+ DeleteDeploymentCommandInput ,
47
+ DeleteDeploymentCommandOutput ,
48
+ } from "./commands/DeleteDeploymentCommand" ;
44
49
import {
45
50
DescribeComponentCommand ,
46
51
DescribeComponentCommandInput ,
@@ -344,17 +349,29 @@ export class GreengrassV2 extends GreengrassV2Client {
344
349
* </p>
345
350
* </li>
346
351
* <li>
352
+ * <p>Python 3.9 – <code>python3.9</code>
353
+ * </p>
354
+ * </li>
355
+ * <li>
347
356
* <p>Java 8 – <code>java8</code>
348
357
* </p>
349
358
* </li>
350
359
* <li>
360
+ * <p>Java 11 – <code>java11</code>
361
+ * </p>
362
+ * </li>
363
+ * <li>
351
364
* <p>Node.js 10 – <code>nodejs10.x</code>
352
365
* </p>
353
366
* </li>
354
367
* <li>
355
368
* <p>Node.js 12 – <code>nodejs12.x</code>
356
369
* </p>
357
370
* </li>
371
+ * <li>
372
+ * <p>Node.js 14 – <code>nodejs14.x</code>
373
+ * </p>
374
+ * </li>
358
375
* </ul>
359
376
* <p>To create a component from a Lambda function, specify <code>lambdaFunction</code>
360
377
* when you call this operation.</p>
@@ -508,6 +525,42 @@ export class GreengrassV2 extends GreengrassV2Client {
508
525
}
509
526
}
510
527
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
+
511
564
/**
512
565
* <p>Retrieves metadata for a version of a component.</p>
513
566
*/
@@ -606,7 +659,7 @@ export class GreengrassV2 extends GreengrassV2Client {
606
659
}
607
660
608
661
/**
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
610
663
* operation to identify the URL that they can use to download an artifact to install.</p>
611
664
*/
612
665
public getComponentVersionArtifact (
@@ -678,6 +731,29 @@ export class GreengrassV2 extends GreengrassV2Client {
678
731
679
732
/**
680
733
* <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>
681
757
*/
682
758
public getCoreDevice (
683
759
args : GetCoreDeviceCommandInput ,
@@ -877,6 +953,29 @@ export class GreengrassV2 extends GreengrassV2Client {
877
953
878
954
/**
879
955
* <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>
880
979
*/
881
980
public listCoreDevices (
882
981
args : ListCoreDevicesCommandInput ,
@@ -973,7 +1072,32 @@ export class GreengrassV2 extends GreengrassV2Client {
973
1072
}
974
1073
975
1074
/**
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>
977
1101
*/
978
1102
public listInstalledComponents (
979
1103
args : ListInstalledComponentsCommandInput ,
0 commit comments