@aws-sdk/client-lightsail 3.1159.0 → 3.1161.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.
package/dist-cjs/index.js CHANGED
@@ -69,7 +69,7 @@ const commonParams = {
69
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
70
70
  };
71
71
 
72
- var version = "3.1158.0";
72
+ var version = "3.1160.0";
73
73
  var packageInfo = {
74
74
  version: version};
75
75
 
@@ -784,8 +784,11 @@ const _IAU = "InstanceAttributeUpdates";
784
784
  const _IE = "InstanceEntry";
785
785
  const _IEL = "InstanceEntryList";
786
786
  const _IH = "InstanceHardware";
787
- const _IHS = "InstanceHealthSummary";
787
+ const _IHS = "InstanceHealthStatus";
788
+ const _IHSD = "InstanceHealthStatusDetail";
789
+ const _IHSDL = "InstanceHealthStatusDetailList";
788
790
  const _IHSL = "InstanceHealthSummaryList";
791
+ const _IHSn = "InstanceHealthSummary";
789
792
  const _IIE = "InvalidInputException";
790
793
  const _IKP = "ImportKeyPair";
791
794
  const _IKPR = "ImportKeyPairRequest";
@@ -1134,6 +1137,7 @@ const _de = "description";
1134
1137
  const _dep = "deployment";
1135
1138
  const _depl = "deployments";
1136
1139
  const _des = "destination";
1140
+ const _det = "details";
1137
1141
  const _di = "digest";
1138
1142
  const _dis = "distribution";
1139
1143
  const _disk = "disk";
@@ -1238,7 +1242,8 @@ const _iEs = "isEncrypted";
1238
1242
  const _iFAS = "isFromAutoSnapshot";
1239
1243
  const _iH = "instanceHealth";
1240
1244
  const _iHR = "instanceHealthReason";
1241
- const _iHS = "instanceHealthSummary";
1245
+ const _iHS = "includeHealthStatus";
1246
+ const _iHSn = "instanceHealthSummary";
1242
1247
  const _iI = "includeInactive";
1243
1248
  const _iL = "inspectionLevel";
1244
1249
  const _iM = "isModifiable";
@@ -1254,8 +1259,10 @@ const _iSD = "isSystemDisk";
1254
1259
  const _iSI = "instanceSnapshotInfo";
1255
1260
  const _iSIs = "isStaticIp";
1256
1261
  const _iSN = "instanceSnapshotName";
1262
+ const _iSm = "impairedSince";
1257
1263
  const _iSn = "instanceSnapshot";
1258
1264
  const _iSns = "instanceSnapshots";
1265
+ const _iSnst = "instanceStatus";
1259
1266
  const _iT = "instanceType";
1260
1267
  const _iTs = "isTerminal";
1261
1268
  const _iURC = "inUseResourceCount";
@@ -1459,6 +1466,7 @@ const _sPMIG = "storagePerMonthInGb";
1459
1466
  const _sR = "sourceRegion";
1460
1467
  const _sRDN = "sourceRelationalDatabaseName";
1461
1468
  const _sRN = "sourceResourceName";
1469
+ const _sS = "systemStatus";
1462
1470
  const _sSN = "sourceSnapshotName";
1463
1471
  const _sT = "startTime";
1464
1472
  const _sTOD = "snapshotTimeOfDay";
@@ -2817,8 +2825,8 @@ var GetInstancePortStatesResult$ = [3, n0, _GIPSRe,
2817
2825
  ];
2818
2826
  var GetInstanceRequest$ = [3, n0, _GIR,
2819
2827
  0,
2820
- [_iN],
2821
- [0], 1
2828
+ [_iN, _iHS],
2829
+ [0, 2], 1
2822
2830
  ];
2823
2831
  var GetInstanceResult$ = [3, n0, _GIRe,
2824
2832
  0,
@@ -2847,8 +2855,8 @@ var GetInstanceSnapshotsResult$ = [3, n0, _GISRetn,
2847
2855
  ];
2848
2856
  var GetInstancesRequest$ = [3, n0, _GIRet,
2849
2857
  0,
2850
- [_pT],
2851
- [0]
2858
+ [_pT, _iHS],
2859
+ [0, 2]
2852
2860
  ];
2853
2861
  var GetInstancesResult$ = [3, n0, _GIRetn,
2854
2862
  0,
@@ -3162,8 +3170,8 @@ var InputOrigin$ = [3, n0, _IO,
3162
3170
  ];
3163
3171
  var Instance$ = [3, n0, _I,
3164
3172
  0,
3165
- [_n, _a, _sC, _cA, _l, _rT, _ta, _bI, _bNl, _bIu, _aOd, _iSIs, _pIA, _pIAu, _iAp, _iAT, _h, _ne, _stat, _us, _sKN, _mO],
3166
- [0, 0, 0, 4, () => ResourceLocation$, 0, () => TagList, 0, 0, 0, () => AddOnList, 2, 0, 0, 64 | 0, 0, () => InstanceHardware$, () => InstanceNetworking$, () => InstanceState$, 0, 0, () => InstanceMetadataOptions$]
3173
+ [_n, _a, _sC, _cA, _l, _rT, _ta, _bI, _bNl, _bIu, _aOd, _iSIs, _pIA, _pIAu, _iAp, _iAT, _h, _ne, _stat, _us, _sKN, _mO, _iSnst, _sS],
3174
+ [0, 0, 0, 4, () => ResourceLocation$, 0, () => TagList, 0, 0, 0, () => AddOnList, 2, 0, 0, 64 | 0, 0, () => InstanceHardware$, () => InstanceNetworking$, () => InstanceState$, 0, 0, () => InstanceMetadataOptions$, () => InstanceHealthStatus$, () => InstanceHealthStatus$]
3167
3175
  ];
3168
3176
  var InstanceAccessDetails$ = [3, n0, _IAD,
3169
3177
  0,
@@ -3185,7 +3193,17 @@ var InstanceHardware$ = [3, n0, _IH,
3185
3193
  [_cC, _disks, _rSIG],
3186
3194
  [1, () => DiskList, 1]
3187
3195
  ];
3188
- var InstanceHealthSummary$ = [3, n0, _IHS,
3196
+ var InstanceHealthStatus$ = [3, n0, _IHS,
3197
+ 0,
3198
+ [_st, _det],
3199
+ [0, () => InstanceHealthStatusDetailList]
3200
+ ];
3201
+ var InstanceHealthStatusDetail$ = [3, n0, _IHSD,
3202
+ 0,
3203
+ [_n, _st, _iSm],
3204
+ [0, 0, 4]
3205
+ ];
3206
+ var InstanceHealthSummary$ = [3, n0, _IHSn,
3189
3207
  0,
3190
3208
  [_iN, _iH, _iHR],
3191
3209
  [0, 0, 0]
@@ -3247,7 +3265,7 @@ var LightsailDistribution$ = [3, n0, _LD,
3247
3265
  ];
3248
3266
  var LoadBalancer$ = [3, n0, _LB,
3249
3267
  0,
3250
- [_n, _a, _sC, _cA, _l, _rT, _ta, _dNn, _stat, _pro, _pPu, _hCP, _iP, _iHS, _tCS, _cOo, _iAT, _hRE, _tPN],
3268
+ [_n, _a, _sC, _cA, _l, _rT, _ta, _dNn, _stat, _pro, _pPu, _hCP, _iP, _iHSn, _tCS, _cOo, _iAT, _hRE, _tPN],
3251
3269
  [0, 0, 0, 4, () => ResourceLocation$, 0, () => TagList, 0, 0, 0, 64 | 1, 0, 1, () => InstanceHealthSummaryList, () => LoadBalancerTlsCertificateSummaryList, 128 | 0, 0, 2, 0]
3252
3270
  ];
3253
3271
  var LoadBalancerTlsCertificate$ = [3, n0, _LBTC,
@@ -3960,6 +3978,9 @@ var HostKeysList = [1, n0, _HKL,
3960
3978
  var InstanceEntryList = [1, n0, _IEL,
3961
3979
  0, () => InstanceEntry$
3962
3980
  ];
3981
+ var InstanceHealthStatusDetailList = [1, n0, _IHSDL,
3982
+ 0, () => InstanceHealthStatusDetail$
3983
+ ];
3963
3984
  var InstanceHealthSummaryList = [1, n0, _IHSL,
3964
3985
  0, () => InstanceHealthSummary$
3965
3986
  ];
@@ -5852,6 +5873,22 @@ const ExportSnapshotRecordSourceType = {
5852
5873
  DiskSnapshot: "DiskSnapshot",
5853
5874
  InstanceSnapshot: "InstanceSnapshot",
5854
5875
  };
5876
+ const InstanceHealthStatusDetailName = {
5877
+ REACHABILITY: "reachability",
5878
+ };
5879
+ const InstanceHealthStatusDetailValue = {
5880
+ FAILED: "failed",
5881
+ INITIALIZING: "initializing",
5882
+ INSUFFICIENT_DATA: "insufficient-data",
5883
+ PASSED: "passed",
5884
+ };
5885
+ const InstanceHealthStatusValue = {
5886
+ IMPAIRED: "impaired",
5887
+ INITIALIZING: "initializing",
5888
+ INSUFFICIENT_DATA: "insufficient-data",
5889
+ NOT_APPLICABLE: "not-applicable",
5890
+ OK: "ok",
5891
+ };
5855
5892
  const HttpEndpoint = {
5856
5893
  disabled: "disabled",
5857
5894
  enabled: "enabled",
@@ -6665,6 +6702,11 @@ exports.InstanceEntry$ = InstanceEntry$;
6665
6702
  exports.InstanceHardware$ = InstanceHardware$;
6666
6703
  exports.InstanceHealthReason = InstanceHealthReason;
6667
6704
  exports.InstanceHealthState = InstanceHealthState;
6705
+ exports.InstanceHealthStatus$ = InstanceHealthStatus$;
6706
+ exports.InstanceHealthStatusDetail$ = InstanceHealthStatusDetail$;
6707
+ exports.InstanceHealthStatusDetailName = InstanceHealthStatusDetailName;
6708
+ exports.InstanceHealthStatusDetailValue = InstanceHealthStatusDetailValue;
6709
+ exports.InstanceHealthStatusValue = InstanceHealthStatusValue;
6668
6710
  exports.InstanceHealthSummary$ = InstanceHealthSummary$;
6669
6711
  exports.InstanceMetadataOptions$ = InstanceMetadataOptions$;
6670
6712
  exports.InstanceMetadataState = InstanceMetadataState;
@@ -499,6 +499,22 @@ export const ExportSnapshotRecordSourceType = {
499
499
  DiskSnapshot: "DiskSnapshot",
500
500
  InstanceSnapshot: "InstanceSnapshot",
501
501
  };
502
+ export const InstanceHealthStatusDetailName = {
503
+ REACHABILITY: "reachability",
504
+ };
505
+ export const InstanceHealthStatusDetailValue = {
506
+ FAILED: "failed",
507
+ INITIALIZING: "initializing",
508
+ INSUFFICIENT_DATA: "insufficient-data",
509
+ PASSED: "passed",
510
+ };
511
+ export const InstanceHealthStatusValue = {
512
+ IMPAIRED: "impaired",
513
+ INITIALIZING: "initializing",
514
+ INSUFFICIENT_DATA: "insufficient-data",
515
+ NOT_APPLICABLE: "not-applicable",
516
+ OK: "ok",
517
+ };
502
518
  export const HttpEndpoint = {
503
519
  disabled: "disabled",
504
520
  enabled: "enabled",
@@ -490,8 +490,11 @@ const _IAU = "InstanceAttributeUpdates";
490
490
  const _IE = "InstanceEntry";
491
491
  const _IEL = "InstanceEntryList";
492
492
  const _IH = "InstanceHardware";
493
- const _IHS = "InstanceHealthSummary";
493
+ const _IHS = "InstanceHealthStatus";
494
+ const _IHSD = "InstanceHealthStatusDetail";
495
+ const _IHSDL = "InstanceHealthStatusDetailList";
494
496
  const _IHSL = "InstanceHealthSummaryList";
497
+ const _IHSn = "InstanceHealthSummary";
495
498
  const _IIE = "InvalidInputException";
496
499
  const _IKP = "ImportKeyPair";
497
500
  const _IKPR = "ImportKeyPairRequest";
@@ -840,6 +843,7 @@ const _de = "description";
840
843
  const _dep = "deployment";
841
844
  const _depl = "deployments";
842
845
  const _des = "destination";
846
+ const _det = "details";
843
847
  const _di = "digest";
844
848
  const _dis = "distribution";
845
849
  const _disk = "disk";
@@ -944,7 +948,8 @@ const _iEs = "isEncrypted";
944
948
  const _iFAS = "isFromAutoSnapshot";
945
949
  const _iH = "instanceHealth";
946
950
  const _iHR = "instanceHealthReason";
947
- const _iHS = "instanceHealthSummary";
951
+ const _iHS = "includeHealthStatus";
952
+ const _iHSn = "instanceHealthSummary";
948
953
  const _iI = "includeInactive";
949
954
  const _iL = "inspectionLevel";
950
955
  const _iM = "isModifiable";
@@ -960,8 +965,10 @@ const _iSD = "isSystemDisk";
960
965
  const _iSI = "instanceSnapshotInfo";
961
966
  const _iSIs = "isStaticIp";
962
967
  const _iSN = "instanceSnapshotName";
968
+ const _iSm = "impairedSince";
963
969
  const _iSn = "instanceSnapshot";
964
970
  const _iSns = "instanceSnapshots";
971
+ const _iSnst = "instanceStatus";
965
972
  const _iT = "instanceType";
966
973
  const _iTs = "isTerminal";
967
974
  const _iURC = "inUseResourceCount";
@@ -1165,6 +1172,7 @@ const _sPMIG = "storagePerMonthInGb";
1165
1172
  const _sR = "sourceRegion";
1166
1173
  const _sRDN = "sourceRelationalDatabaseName";
1167
1174
  const _sRN = "sourceResourceName";
1175
+ const _sS = "systemStatus";
1168
1176
  const _sSN = "sourceSnapshotName";
1169
1177
  const _sT = "startTime";
1170
1178
  const _sTOD = "snapshotTimeOfDay";
@@ -2526,8 +2534,8 @@ export var GetInstancePortStatesResult$ = [3, n0, _GIPSRe,
2526
2534
  ];
2527
2535
  export var GetInstanceRequest$ = [3, n0, _GIR,
2528
2536
  0,
2529
- [_iN],
2530
- [0], 1
2537
+ [_iN, _iHS],
2538
+ [0, 2], 1
2531
2539
  ];
2532
2540
  export var GetInstanceResult$ = [3, n0, _GIRe,
2533
2541
  0,
@@ -2556,8 +2564,8 @@ export var GetInstanceSnapshotsResult$ = [3, n0, _GISRetn,
2556
2564
  ];
2557
2565
  export var GetInstancesRequest$ = [3, n0, _GIRet,
2558
2566
  0,
2559
- [_pT],
2560
- [0]
2567
+ [_pT, _iHS],
2568
+ [0, 2]
2561
2569
  ];
2562
2570
  export var GetInstancesResult$ = [3, n0, _GIRetn,
2563
2571
  0,
@@ -2871,8 +2879,8 @@ export var InputOrigin$ = [3, n0, _IO,
2871
2879
  ];
2872
2880
  export var Instance$ = [3, n0, _I,
2873
2881
  0,
2874
- [_n, _a, _sC, _cA, _l, _rT, _ta, _bI, _bNl, _bIu, _aOd, _iSIs, _pIA, _pIAu, _iAp, _iAT, _h, _ne, _stat, _us, _sKN, _mO],
2875
- [0, 0, 0, 4, () => ResourceLocation$, 0, () => TagList, 0, 0, 0, () => AddOnList, 2, 0, 0, 64 | 0, 0, () => InstanceHardware$, () => InstanceNetworking$, () => InstanceState$, 0, 0, () => InstanceMetadataOptions$]
2882
+ [_n, _a, _sC, _cA, _l, _rT, _ta, _bI, _bNl, _bIu, _aOd, _iSIs, _pIA, _pIAu, _iAp, _iAT, _h, _ne, _stat, _us, _sKN, _mO, _iSnst, _sS],
2883
+ [0, 0, 0, 4, () => ResourceLocation$, 0, () => TagList, 0, 0, 0, () => AddOnList, 2, 0, 0, 64 | 0, 0, () => InstanceHardware$, () => InstanceNetworking$, () => InstanceState$, 0, 0, () => InstanceMetadataOptions$, () => InstanceHealthStatus$, () => InstanceHealthStatus$]
2876
2884
  ];
2877
2885
  export var InstanceAccessDetails$ = [3, n0, _IAD,
2878
2886
  0,
@@ -2894,7 +2902,17 @@ export var InstanceHardware$ = [3, n0, _IH,
2894
2902
  [_cC, _disks, _rSIG],
2895
2903
  [1, () => DiskList, 1]
2896
2904
  ];
2897
- export var InstanceHealthSummary$ = [3, n0, _IHS,
2905
+ export var InstanceHealthStatus$ = [3, n0, _IHS,
2906
+ 0,
2907
+ [_st, _det],
2908
+ [0, () => InstanceHealthStatusDetailList]
2909
+ ];
2910
+ export var InstanceHealthStatusDetail$ = [3, n0, _IHSD,
2911
+ 0,
2912
+ [_n, _st, _iSm],
2913
+ [0, 0, 4]
2914
+ ];
2915
+ export var InstanceHealthSummary$ = [3, n0, _IHSn,
2898
2916
  0,
2899
2917
  [_iN, _iH, _iHR],
2900
2918
  [0, 0, 0]
@@ -2956,7 +2974,7 @@ export var LightsailDistribution$ = [3, n0, _LD,
2956
2974
  ];
2957
2975
  export var LoadBalancer$ = [3, n0, _LB,
2958
2976
  0,
2959
- [_n, _a, _sC, _cA, _l, _rT, _ta, _dNn, _stat, _pro, _pPu, _hCP, _iP, _iHS, _tCS, _cOo, _iAT, _hRE, _tPN],
2977
+ [_n, _a, _sC, _cA, _l, _rT, _ta, _dNn, _stat, _pro, _pPu, _hCP, _iP, _iHSn, _tCS, _cOo, _iAT, _hRE, _tPN],
2960
2978
  [0, 0, 0, 4, () => ResourceLocation$, 0, () => TagList, 0, 0, 0, 64 | 1, 0, 1, () => InstanceHealthSummaryList, () => LoadBalancerTlsCertificateSummaryList, 128 | 0, 0, 2, 0]
2961
2979
  ];
2962
2980
  export var LoadBalancerTlsCertificate$ = [3, n0, _LBTC,
@@ -3682,6 +3700,9 @@ var HostKeysList = [1, n0, _HKL,
3682
3700
  var InstanceEntryList = [1, n0, _IEL,
3683
3701
  0, () => InstanceEntry$
3684
3702
  ];
3703
+ var InstanceHealthStatusDetailList = [1, n0, _IHSDL,
3704
+ 0, () => InstanceHealthStatusDetail$
3705
+ ];
3685
3706
  var InstanceHealthSummaryList = [1, n0, _IHSL,
3686
3707
  0, () => InstanceHealthSummary$
3687
3708
  ];
@@ -36,6 +36,7 @@ declare const GetInstanceCommand_base: {
36
36
  * const client = new LightsailClient(config);
37
37
  * const input = { // GetInstanceRequest
38
38
  * instanceName: "STRING_VALUE", // required
39
+ * includeHealthStatus: true || false,
39
40
  * };
40
41
  * const command = new GetInstanceCommand(input);
41
42
  * const response = await client.send(command);
@@ -157,6 +158,26 @@ declare const GetInstanceCommand_base: {
157
158
  * // httpPutResponseHopLimit: Number("int"),
158
159
  * // httpProtocolIpv6: "disabled" || "enabled",
159
160
  * // },
161
+ * // instanceStatus: { // InstanceHealthStatus
162
+ * // status: "ok" || "impaired" || "initializing" || "insufficient-data" || "not-applicable",
163
+ * // details: [ // InstanceHealthStatusDetailList
164
+ * // { // InstanceHealthStatusDetail
165
+ * // name: "reachability",
166
+ * // status: "passed" || "failed" || "insufficient-data" || "initializing",
167
+ * // impairedSince: new Date("TIMESTAMP"),
168
+ * // },
169
+ * // ],
170
+ * // },
171
+ * // systemStatus: {
172
+ * // status: "ok" || "impaired" || "initializing" || "insufficient-data" || "not-applicable",
173
+ * // details: [
174
+ * // {
175
+ * // name: "reachability",
176
+ * // status: "passed" || "failed" || "insufficient-data" || "initializing",
177
+ * // impairedSince: new Date("TIMESTAMP"),
178
+ * // },
179
+ * // ],
180
+ * // },
160
181
  * // },
161
182
  * // };
162
183
  *
@@ -1,5 +1,5 @@
1
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
- import type { GetInstanceSnapshotsRequest, GetInstanceSnapshotsResult } from "../models/models_0";
2
+ import type { GetInstanceSnapshotsRequest, GetInstanceSnapshotsResult } from "../models/models_1";
3
3
  /**
4
4
  * @public
5
5
  */
@@ -36,6 +36,7 @@ declare const GetInstancesCommand_base: {
36
36
  * const client = new LightsailClient(config);
37
37
  * const input = { // GetInstancesRequest
38
38
  * pageToken: "STRING_VALUE",
39
+ * includeHealthStatus: true || false,
39
40
  * };
40
41
  * const command = new GetInstancesCommand(input);
41
42
  * const response = await client.send(command);
@@ -158,6 +159,26 @@ declare const GetInstancesCommand_base: {
158
159
  * // httpPutResponseHopLimit: Number("int"),
159
160
  * // httpProtocolIpv6: "disabled" || "enabled",
160
161
  * // },
162
+ * // instanceStatus: { // InstanceHealthStatus
163
+ * // status: "ok" || "impaired" || "initializing" || "insufficient-data" || "not-applicable",
164
+ * // details: [ // InstanceHealthStatusDetailList
165
+ * // { // InstanceHealthStatusDetail
166
+ * // name: "reachability",
167
+ * // status: "passed" || "failed" || "insufficient-data" || "initializing",
168
+ * // impairedSince: new Date("TIMESTAMP"),
169
+ * // },
170
+ * // ],
171
+ * // },
172
+ * // systemStatus: {
173
+ * // status: "ok" || "impaired" || "initializing" || "insufficient-data" || "not-applicable",
174
+ * // details: [
175
+ * // {
176
+ * // name: "reachability",
177
+ * // status: "passed" || "failed" || "insufficient-data" || "initializing",
178
+ * // impairedSince: new Date("TIMESTAMP"),
179
+ * // },
180
+ * // ],
181
+ * // },
161
182
  * // },
162
183
  * // ],
163
184
  * // nextPageToken: "STRING_VALUE",
@@ -963,6 +963,46 @@ export declare const ExportSnapshotRecordSourceType: {
963
963
  * @public
964
964
  */
965
965
  export type ExportSnapshotRecordSourceType = (typeof ExportSnapshotRecordSourceType)[keyof typeof ExportSnapshotRecordSourceType];
966
+ /**
967
+ * @public
968
+ * @enum
969
+ */
970
+ export declare const InstanceHealthStatusDetailName: {
971
+ readonly REACHABILITY: "reachability";
972
+ };
973
+ /**
974
+ * @public
975
+ */
976
+ export type InstanceHealthStatusDetailName = (typeof InstanceHealthStatusDetailName)[keyof typeof InstanceHealthStatusDetailName];
977
+ /**
978
+ * @public
979
+ * @enum
980
+ */
981
+ export declare const InstanceHealthStatusDetailValue: {
982
+ readonly FAILED: "failed";
983
+ readonly INITIALIZING: "initializing";
984
+ readonly INSUFFICIENT_DATA: "insufficient-data";
985
+ readonly PASSED: "passed";
986
+ };
987
+ /**
988
+ * @public
989
+ */
990
+ export type InstanceHealthStatusDetailValue = (typeof InstanceHealthStatusDetailValue)[keyof typeof InstanceHealthStatusDetailValue];
991
+ /**
992
+ * @public
993
+ * @enum
994
+ */
995
+ export declare const InstanceHealthStatusValue: {
996
+ readonly IMPAIRED: "impaired";
997
+ readonly INITIALIZING: "initializing";
998
+ readonly INSUFFICIENT_DATA: "insufficient-data";
999
+ readonly NOT_APPLICABLE: "not-applicable";
1000
+ readonly OK: "ok";
1001
+ };
1002
+ /**
1003
+ * @public
1004
+ */
1005
+ export type InstanceHealthStatusValue = (typeof InstanceHealthStatusValue)[keyof typeof InstanceHealthStatusValue];
966
1006
  /**
967
1007
  * @public
968
1008
  * @enum
@@ -1,4 +1,4 @@
1
- import type { AccessDirection, AccessType, AccountLevelBpaSyncStatus, AddOnType, AlarmState, AppCategory, AutoMountStatus, AutoSnapshotStatus, BehaviorEnum, BlueprintType, BPAStatusMessage, BucketMetricName, CertificateDomainValidationStatus, CertificateStatus, CloudFormationStackRecordSourceType, ComparisonOperator, ContactMethodStatus, ContactProtocol, ContainerServiceDeploymentState, ContainerServiceMetricName, ContainerServicePowerName, ContainerServiceProtocol, ContainerServiceState, ContainerServiceStateDetailCode, Currency, DiskSnapshotState, DiskState, DistributionMetricName, DnsRecordCreationStateCode, ExportSnapshotRecordSourceType, ForwardValues, HeaderEnum, HttpEndpoint, HttpProtocolIpv6, HttpTokens, InstanceAccessProtocol, InstanceMetadataState, InstanceMetricName, InstancePlatform, InstanceSnapshotState, IpAddressType, MetricName, MetricStatistic, MetricUnit, NameServersUpdateStateCode, NetworkProtocol, OperationStatus, OperationType, OriginIpAddressTypeEnum, OriginProtocolPolicyEnum, PortAccessType, PortInfoSourceType, PortState, PricingUnit, R53HostedZoneDeletionStateCode, RecordState, RegionName, RenewalStatus, ResourceType, Status, StatusType, TreatMissingData, ViewerMinimumTlsProtocolVersionEnum, WafInspectionLevelEnum, WafPayloadTypeEnum } from "./enums";
1
+ import type { AccessDirection, AccessType, AccountLevelBpaSyncStatus, AddOnType, AlarmState, AppCategory, AutoMountStatus, AutoSnapshotStatus, BehaviorEnum, BlueprintType, BPAStatusMessage, BucketMetricName, CertificateDomainValidationStatus, CertificateStatus, CloudFormationStackRecordSourceType, ComparisonOperator, ContactMethodStatus, ContactProtocol, ContainerServiceDeploymentState, ContainerServiceMetricName, ContainerServicePowerName, ContainerServiceProtocol, ContainerServiceState, ContainerServiceStateDetailCode, Currency, DiskSnapshotState, DiskState, DistributionMetricName, DnsRecordCreationStateCode, ExportSnapshotRecordSourceType, ForwardValues, HeaderEnum, HttpEndpoint, HttpProtocolIpv6, HttpTokens, InstanceAccessProtocol, InstanceHealthStatusDetailName, InstanceHealthStatusDetailValue, InstanceHealthStatusValue, InstanceMetadataState, InstanceMetricName, InstancePlatform, InstanceSnapshotState, IpAddressType, MetricName, MetricStatistic, MetricUnit, NameServersUpdateStateCode, NetworkProtocol, OperationStatus, OperationType, OriginIpAddressTypeEnum, OriginProtocolPolicyEnum, PortAccessType, PortInfoSourceType, PortState, PricingUnit, R53HostedZoneDeletionStateCode, RecordState, RegionName, RenewalStatus, ResourceType, Status, StatusType, TreatMissingData, ViewerMinimumTlsProtocolVersionEnum, WafInspectionLevelEnum, WafPayloadTypeEnum } from "./enums";
2
2
  /**
3
3
  * <p>Describes the last time an access key was used.</p>
4
4
  * <note>
@@ -8523,6 +8523,15 @@ export interface GetInstanceRequest {
8523
8523
  * @public
8524
8524
  */
8525
8525
  instanceName: string | undefined;
8526
+ /**
8527
+ * <p>Specifies whether to include the instance health status checks in the response of your
8528
+ * request.</p>
8529
+ * <p>When set to <code>true</code>, the response includes the <code>instanceStatus</code> and
8530
+ * <code>systemStatus</code> of the instance. When omitted or set to <code>false</code>, the
8531
+ * response doesn't include them.</p>
8532
+ * @public
8533
+ */
8534
+ includeHealthStatus?: boolean | undefined;
8526
8535
  }
8527
8536
  /**
8528
8537
  * <p>Describes the hardware for the instance.</p>
@@ -8545,6 +8554,91 @@ export interface InstanceHardware {
8545
8554
  */
8546
8555
  ramSizeInGb?: number | undefined;
8547
8556
  }
8557
+ /**
8558
+ * <p>Describes the instance status.</p>
8559
+ * @public
8560
+ */
8561
+ export interface InstanceHealthStatusDetail {
8562
+ /**
8563
+ * <p>The type of instance status. The only possible value is
8564
+ * <code>reachability</code>.</p>
8565
+ * @public
8566
+ */
8567
+ name?: InstanceHealthStatusDetailName | undefined;
8568
+ /**
8569
+ * <p>The status.</p>
8570
+ * <p>The following values are possible:</p>
8571
+ * <ul>
8572
+ * <li>
8573
+ * <p>
8574
+ * <code>passed</code> - The check passed.</p>
8575
+ * </li>
8576
+ * <li>
8577
+ * <p>
8578
+ * <code>failed</code> - The check failed.</p>
8579
+ * </li>
8580
+ * <li>
8581
+ * <p>
8582
+ * <code>initializing</code> - The check is in progress.</p>
8583
+ * </li>
8584
+ * <li>
8585
+ * <p>
8586
+ * <code>insufficient-data</code> - There isn't enough data yet to determine the
8587
+ * result.</p>
8588
+ * </li>
8589
+ * </ul>
8590
+ * @public
8591
+ */
8592
+ status?: InstanceHealthStatusDetailValue | undefined;
8593
+ /**
8594
+ * <p>The time when a status check failed. For an instance that was launched and impaired,
8595
+ * this is the time when the instance was launched.</p>
8596
+ * @public
8597
+ */
8598
+ impairedSince?: Date | undefined;
8599
+ }
8600
+ /**
8601
+ * <p>Describes the status of an Amazon Lightsail instance.</p>
8602
+ * @public
8603
+ */
8604
+ export interface InstanceHealthStatus {
8605
+ /**
8606
+ * <p>The status.</p>
8607
+ * <p>The following values are possible:</p>
8608
+ * <ul>
8609
+ * <li>
8610
+ * <p>
8611
+ * <code>ok</code> - All checks are passing. The instance is reachable.</p>
8612
+ * </li>
8613
+ * <li>
8614
+ * <p>
8615
+ * <code>impaired</code> - One or more checks have failed.</p>
8616
+ * </li>
8617
+ * <li>
8618
+ * <p>
8619
+ * <code>initializing</code> - The instance was recently started, and the checks are in
8620
+ * progress.</p>
8621
+ * </li>
8622
+ * <li>
8623
+ * <p>
8624
+ * <code>insufficient-data</code> - There isn't enough data yet to determine the
8625
+ * result.</p>
8626
+ * </li>
8627
+ * <li>
8628
+ * <p>
8629
+ * <code>not-applicable</code> - The check doesn't apply because the instance isn't
8630
+ * running.</p>
8631
+ * </li>
8632
+ * </ul>
8633
+ * @public
8634
+ */
8635
+ status?: InstanceHealthStatusValue | undefined;
8636
+ /**
8637
+ * <p>The system instance health or instance health.</p>
8638
+ * @public
8639
+ */
8640
+ details?: InstanceHealthStatusDetail[] | undefined;
8641
+ }
8548
8642
  /**
8549
8643
  * <p>The metadata options for the instance.</p>
8550
8644
  * @public
@@ -8930,6 +9024,22 @@ export interface Instance {
8930
9024
  * @public
8931
9025
  */
8932
9026
  metadataOptions?: InstanceMetadataOptions | undefined;
9027
+ /**
9028
+ * <p>Reports impaired functionality that stems from issues internal to the instance, such as
9029
+ * impaired reachability.</p>
9030
+ * <p>This value is returned only when you set <code>includeHealthStatus</code> to
9031
+ * <code>true</code> in your request.</p>
9032
+ * @public
9033
+ */
9034
+ instanceStatus?: InstanceHealthStatus | undefined;
9035
+ /**
9036
+ * <p>Reports impaired functionality that stems from issues related to the systems that
9037
+ * support an instance, such as hardware failures and network connectivity problems.</p>
9038
+ * <p>This value is returned only when you set <code>includeHealthStatus</code> to
9039
+ * <code>true</code> in your request.</p>
9040
+ * @public
9041
+ */
9042
+ systemStatus?: InstanceHealthStatus | undefined;
8933
9043
  }
8934
9044
  /**
8935
9045
  * @public
@@ -9636,6 +9746,15 @@ export interface GetInstancesRequest {
9636
9746
  * @public
9637
9747
  */
9638
9748
  pageToken?: string | undefined;
9749
+ /**
9750
+ * <p>Specifies whether to include the instance health status checks of each instance in the
9751
+ * response of your request.</p>
9752
+ * <p>When set to <code>true</code>, the response includes the <code>instanceStatus</code> and
9753
+ * <code>systemStatus</code> of each instance. When omitted or set to <code>false</code>, the
9754
+ * response doesn't include them.</p>
9755
+ * @public
9756
+ */
9757
+ includeHealthStatus?: boolean | undefined;
9639
9758
  }
9640
9759
  /**
9641
9760
  * @public
@@ -9774,35 +9893,3 @@ export interface GetInstanceSnapshotResult {
9774
9893
  */
9775
9894
  instanceSnapshot?: InstanceSnapshot | undefined;
9776
9895
  }
9777
- /**
9778
- * @public
9779
- */
9780
- export interface GetInstanceSnapshotsRequest {
9781
- /**
9782
- * <p>The token to advance to the next page of results from your request.</p>
9783
- * <p>To get a page token, perform an initial <code>GetInstanceSnapshots</code> request. If your
9784
- * results are paginated, the response will return a next page token that you can specify as the
9785
- * page token in a subsequent request.</p>
9786
- * @public
9787
- */
9788
- pageToken?: string | undefined;
9789
- }
9790
- /**
9791
- * @public
9792
- */
9793
- export interface GetInstanceSnapshotsResult {
9794
- /**
9795
- * <p>An array of key-value pairs containing information about the results of your get instance
9796
- * snapshots request.</p>
9797
- * @public
9798
- */
9799
- instanceSnapshots?: InstanceSnapshot[] | undefined;
9800
- /**
9801
- * <p>The token to advance to the next page of results from your request.</p>
9802
- * <p>A next page token is not returned if there are no more results to display.</p>
9803
- * <p>To get the next page of results, perform another <code>GetInstanceSnapshots</code> request
9804
- * and specify the next page token using the <code>pageToken</code> parameter.</p>
9805
- * @public
9806
- */
9807
- nextPageToken?: string | undefined;
9808
- }
@@ -1,5 +1,37 @@
1
1
  import type { AlarmState, CertificateProvider, ComparisonOperator, ContactMethodVerificationProtocol, ContactProtocol, ContainerServicePowerName, HttpEndpoint, HttpProtocolIpv6, HttpTokens, InstanceHealthReason, InstanceHealthState, IpAddressType, LoadBalancerAttributeName, LoadBalancerMetricName, LoadBalancerProtocol, LoadBalancerState, LoadBalancerTlsCertificateDnsRecordCreationStateCode, LoadBalancerTlsCertificateDomainStatus, LoadBalancerTlsCertificateFailureReason, LoadBalancerTlsCertificateRenewalStatus, LoadBalancerTlsCertificateRevocationReason, LoadBalancerTlsCertificateStatus, MetricName, MetricStatistic, MetricUnit, PartnerStatus, ProfileType, RegionName, RelationalDatabaseEngine, RelationalDatabaseMetricName, RelationalDatabasePasswordVersion, ResourceBucketAccess, ResourceType, SetupStatus, TierName, TreatMissingData, ViewerMinimumTlsProtocolVersionEnum } from "./enums";
2
- import type { AccessRules, AvailabilityZone, Bucket, BucketAccessLogConfig, BucketCorsConfig, CacheBehavior, CacheBehaviorPerPath, CacheSettings, ContainerImage, ContainerService, DistributionCustomErrorResponse, DomainEntry, InputOrigin, InstanceState, KeyPair, MetricDatapoint, Operation, PortInfo, PrivateRegistryAccessRequest, ResourceLocation, Tag, WafRule } from "./models_0";
2
+ import type { AccessRules, AvailabilityZone, Bucket, BucketAccessLogConfig, BucketCorsConfig, CacheBehavior, CacheBehaviorPerPath, CacheSettings, ContainerImage, ContainerService, DistributionCustomErrorResponse, DomainEntry, InputOrigin, InstanceSnapshot, InstanceState, KeyPair, MetricDatapoint, Operation, PortInfo, PrivateRegistryAccessRequest, ResourceLocation, Tag, WafRule } from "./models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export interface GetInstanceSnapshotsRequest {
7
+ /**
8
+ * <p>The token to advance to the next page of results from your request.</p>
9
+ * <p>To get a page token, perform an initial <code>GetInstanceSnapshots</code> request. If your
10
+ * results are paginated, the response will return a next page token that you can specify as the
11
+ * page token in a subsequent request.</p>
12
+ * @public
13
+ */
14
+ pageToken?: string | undefined;
15
+ }
16
+ /**
17
+ * @public
18
+ */
19
+ export interface GetInstanceSnapshotsResult {
20
+ /**
21
+ * <p>An array of key-value pairs containing information about the results of your get instance
22
+ * snapshots request.</p>
23
+ * @public
24
+ */
25
+ instanceSnapshots?: InstanceSnapshot[] | undefined;
26
+ /**
27
+ * <p>The token to advance to the next page of results from your request.</p>
28
+ * <p>A next page token is not returned if there are no more results to display.</p>
29
+ * <p>To get the next page of results, perform another <code>GetInstanceSnapshots</code> request
30
+ * and specify the next page token using the <code>pageToken</code> parameter.</p>
31
+ * @public
32
+ */
33
+ nextPageToken?: string | undefined;
34
+ }
3
35
  /**
4
36
  * @public
5
37
  */
@@ -337,6 +337,8 @@ export declare var InstanceAccessDetails$: StaticStructureSchema;
337
337
  export declare var InstanceAttributeUpdates$: StaticStructureSchema;
338
338
  export declare var InstanceEntry$: StaticStructureSchema;
339
339
  export declare var InstanceHardware$: StaticStructureSchema;
340
+ export declare var InstanceHealthStatus$: StaticStructureSchema;
341
+ export declare var InstanceHealthStatusDetail$: StaticStructureSchema;
340
342
  export declare var InstanceHealthSummary$: StaticStructureSchema;
341
343
  export declare var InstanceMetadataOptions$: StaticStructureSchema;
342
344
  export declare var InstanceNetworking$: StaticStructureSchema;
@@ -1,5 +1,5 @@
1
1
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
- import { GetInstanceSnapshotsRequest, GetInstanceSnapshotsResult } from "../models/models_0";
2
+ import { GetInstanceSnapshotsRequest, GetInstanceSnapshotsResult } from "../models/models_1";
3
3
  export { __MetadataBearer };
4
4
  export interface GetInstanceSnapshotsCommandInput extends GetInstanceSnapshotsRequest {}
5
5
  export interface GetInstanceSnapshotsCommandOutput
@@ -576,6 +576,28 @@ export declare const ExportSnapshotRecordSourceType: {
576
576
  };
577
577
  export type ExportSnapshotRecordSourceType =
578
578
  (typeof ExportSnapshotRecordSourceType)[keyof typeof ExportSnapshotRecordSourceType];
579
+ export declare const InstanceHealthStatusDetailName: {
580
+ readonly REACHABILITY: "reachability";
581
+ };
582
+ export type InstanceHealthStatusDetailName =
583
+ (typeof InstanceHealthStatusDetailName)[keyof typeof InstanceHealthStatusDetailName];
584
+ export declare const InstanceHealthStatusDetailValue: {
585
+ readonly FAILED: "failed";
586
+ readonly INITIALIZING: "initializing";
587
+ readonly INSUFFICIENT_DATA: "insufficient-data";
588
+ readonly PASSED: "passed";
589
+ };
590
+ export type InstanceHealthStatusDetailValue =
591
+ (typeof InstanceHealthStatusDetailValue)[keyof typeof InstanceHealthStatusDetailValue];
592
+ export declare const InstanceHealthStatusValue: {
593
+ readonly IMPAIRED: "impaired";
594
+ readonly INITIALIZING: "initializing";
595
+ readonly INSUFFICIENT_DATA: "insufficient-data";
596
+ readonly NOT_APPLICABLE: "not-applicable";
597
+ readonly OK: "ok";
598
+ };
599
+ export type InstanceHealthStatusValue =
600
+ (typeof InstanceHealthStatusValue)[keyof typeof InstanceHealthStatusValue];
579
601
  export declare const HttpEndpoint: {
580
602
  readonly disabled: "disabled";
581
603
  readonly enabled: "enabled";
@@ -35,6 +35,9 @@ import {
35
35
  HttpProtocolIpv6,
36
36
  HttpTokens,
37
37
  InstanceAccessProtocol,
38
+ InstanceHealthStatusDetailName,
39
+ InstanceHealthStatusDetailValue,
40
+ InstanceHealthStatusValue,
38
41
  InstanceMetadataState,
39
42
  InstanceMetricName,
40
43
  InstancePlatform,
@@ -1452,12 +1455,22 @@ export interface GetExportSnapshotRecordsResult {
1452
1455
  }
1453
1456
  export interface GetInstanceRequest {
1454
1457
  instanceName: string | undefined;
1458
+ includeHealthStatus?: boolean | undefined;
1455
1459
  }
1456
1460
  export interface InstanceHardware {
1457
1461
  cpuCount?: number | undefined;
1458
1462
  disks?: Disk[] | undefined;
1459
1463
  ramSizeInGb?: number | undefined;
1460
1464
  }
1465
+ export interface InstanceHealthStatusDetail {
1466
+ name?: InstanceHealthStatusDetailName | undefined;
1467
+ status?: InstanceHealthStatusDetailValue | undefined;
1468
+ impairedSince?: Date | undefined;
1469
+ }
1470
+ export interface InstanceHealthStatus {
1471
+ status?: InstanceHealthStatusValue | undefined;
1472
+ details?: InstanceHealthStatusDetail[] | undefined;
1473
+ }
1461
1474
  export interface InstanceMetadataOptions {
1462
1475
  state?: InstanceMetadataState | undefined;
1463
1476
  httpTokens?: HttpTokens | undefined;
@@ -1511,6 +1524,8 @@ export interface Instance {
1511
1524
  username?: string | undefined;
1512
1525
  sshKeyName?: string | undefined;
1513
1526
  metadataOptions?: InstanceMetadataOptions | undefined;
1527
+ instanceStatus?: InstanceHealthStatus | undefined;
1528
+ systemStatus?: InstanceHealthStatus | undefined;
1514
1529
  }
1515
1530
  export interface GetInstanceResult {
1516
1531
  instance?: Instance | undefined;
@@ -1578,6 +1593,7 @@ export interface GetInstancePortStatesResult {
1578
1593
  }
1579
1594
  export interface GetInstancesRequest {
1580
1595
  pageToken?: string | undefined;
1596
+ includeHealthStatus?: boolean | undefined;
1581
1597
  }
1582
1598
  export interface GetInstancesResult {
1583
1599
  instances?: Instance[] | undefined;
@@ -1607,10 +1623,3 @@ export interface InstanceSnapshot {
1607
1623
  export interface GetInstanceSnapshotResult {
1608
1624
  instanceSnapshot?: InstanceSnapshot | undefined;
1609
1625
  }
1610
- export interface GetInstanceSnapshotsRequest {
1611
- pageToken?: string | undefined;
1612
- }
1613
- export interface GetInstanceSnapshotsResult {
1614
- instanceSnapshots?: InstanceSnapshot[] | undefined;
1615
- nextPageToken?: string | undefined;
1616
- }
@@ -51,6 +51,7 @@ import {
51
51
  DistributionCustomErrorResponse,
52
52
  DomainEntry,
53
53
  InputOrigin,
54
+ InstanceSnapshot,
54
55
  InstanceState,
55
56
  KeyPair,
56
57
  MetricDatapoint,
@@ -61,6 +62,13 @@ import {
61
62
  Tag,
62
63
  WafRule,
63
64
  } from "./models_0";
65
+ export interface GetInstanceSnapshotsRequest {
66
+ pageToken?: string | undefined;
67
+ }
68
+ export interface GetInstanceSnapshotsResult {
69
+ instanceSnapshots?: InstanceSnapshot[] | undefined;
70
+ nextPageToken?: string | undefined;
71
+ }
64
72
  export interface GetInstanceStateRequest {
65
73
  instanceName: string | undefined;
66
74
  }
@@ -332,6 +332,8 @@ export declare var InstanceAccessDetails$: StaticStructureSchema;
332
332
  export declare var InstanceAttributeUpdates$: StaticStructureSchema;
333
333
  export declare var InstanceEntry$: StaticStructureSchema;
334
334
  export declare var InstanceHardware$: StaticStructureSchema;
335
+ export declare var InstanceHealthStatus$: StaticStructureSchema;
336
+ export declare var InstanceHealthStatusDetail$: StaticStructureSchema;
335
337
  export declare var InstanceHealthSummary$: StaticStructureSchema;
336
338
  export declare var InstanceMetadataOptions$: StaticStructureSchema;
337
339
  export declare var InstanceNetworking$: StaticStructureSchema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-lightsail",
3
- "version": "3.1159.0",
3
+ "version": "3.1161.0",
4
4
  "description": "AWS SDK for JavaScript Lightsail Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-lightsail",
6
6
  "license": "Apache-2.0",
@@ -46,12 +46,12 @@
46
46
  "test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
47
47
  },
48
48
  "dependencies": {
49
- "@aws-sdk/core": "^3.978.7",
50
- "@aws-sdk/credential-provider-node": "^3.972.90",
49
+ "@aws-sdk/core": "^3.979.1",
50
+ "@aws-sdk/credential-provider-node": "^3.972.92",
51
51
  "@aws-sdk/types": "^3.975.0",
52
- "@smithy/core": "^3.37.0",
52
+ "@smithy/core": "^3.38.0",
53
53
  "@smithy/fetch-http-handler": "^5.8.0",
54
- "@smithy/node-http-handler": "^4.13.0",
54
+ "@smithy/node-http-handler": "^4.14.0",
55
55
  "@smithy/types": "^4.19.0",
56
56
  "tslib": "^2.6.2"
57
57
  },