@aws-sdk/client-greengrassv2 3.185.0 → 3.187.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/CHANGELOG.md CHANGED
@@ -3,6 +3,25 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.187.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.186.0...v3.187.0) (2022-10-07)
7
+
8
+
9
+ ### Features
10
+
11
+ * **client-greengrassv2:** This release adds error status details for deployments and components that failed on a device and adds features to improve visibility into component installation. ([0faff07](https://github.com/aws/aws-sdk-js-v3/commit/0faff0779623527f7697d2dd06d2adb568d68fae))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.186.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.185.0...v3.186.0) (2022-10-06)
18
+
19
+ **Note:** Version bump only for package @aws-sdk/client-greengrassv2
20
+
21
+
22
+
23
+
24
+
6
25
  # [3.185.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.184.0...v3.185.0) (2022-10-05)
7
26
 
8
27
 
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SystemResourceLimitsFilterSensitiveLog = exports.ComponentDependencyRequirementFilterSensitiveLog = exports.ComponentConfigurationUpdateFilterSensitiveLog = exports.ComponentCandidateFilterSensitiveLog = exports.ComponentFilterSensitiveLog = exports.ComponentLatestVersionFilterSensitiveLog = exports.ComponentPlatformFilterSensitiveLog = exports.CloudComponentStatusFilterSensitiveLog = exports.CancelDeploymentResponseFilterSensitiveLog = exports.CancelDeploymentRequestFilterSensitiveLog = exports.BatchDisassociateClientDeviceFromCoreDeviceResponseFilterSensitiveLog = exports.DisassociateClientDeviceFromCoreDeviceErrorEntryFilterSensitiveLog = exports.BatchDisassociateClientDeviceFromCoreDeviceRequestFilterSensitiveLog = exports.DisassociateClientDeviceFromCoreDeviceEntryFilterSensitiveLog = exports.BatchAssociateClientDeviceWithCoreDeviceResponseFilterSensitiveLog = exports.BatchAssociateClientDeviceWithCoreDeviceRequestFilterSensitiveLog = exports.ValidationExceptionFieldFilterSensitiveLog = exports.AssociateServiceRoleToAccountResponseFilterSensitiveLog = exports.AssociateServiceRoleToAccountRequestFilterSensitiveLog = exports.AssociatedClientDeviceFilterSensitiveLog = exports.AssociateClientDeviceWithCoreDeviceErrorEntryFilterSensitiveLog = exports.AssociateClientDeviceWithCoreDeviceEntryFilterSensitiveLog = exports.InstalledComponentLifecycleState = exports.InstalledComponentTopologyFilter = exports.RecipeOutputFormat = exports.EffectiveDeploymentExecutionStatus = exports.DeploymentHistoryFilter = exports.DeploymentStatus = exports.IoTJobExecutionFailureType = exports.IoTJobAbortAction = exports.DeploymentFailureHandlingPolicy = exports.DeploymentComponentUpdatePolicyAction = exports.ServiceQuotaExceededException = exports.RequestAlreadyInProgressException = exports.LambdaIsolationMode = exports.LambdaFilesystemPermission = exports.LambdaInputPayloadEncodingType = exports.LambdaEventSourceType = exports.CoreDeviceStatus = exports.ComponentVisibilityScope = exports.ComponentDependencyType = exports.VendorGuidance = exports.CloudComponentState = exports.ConflictException = exports.ThrottlingException = exports.ResourceNotFoundException = exports.ValidationException = exports.ValidationExceptionReason = exports.InternalServerException = exports.AccessDeniedException = void 0;
4
- exports.ListComponentsRequestFilterSensitiveLog = exports.ListClientDevicesAssociatedWithCoreDeviceResponseFilterSensitiveLog = exports.ListClientDevicesAssociatedWithCoreDeviceRequestFilterSensitiveLog = exports.GetServiceRoleForAccountResponseFilterSensitiveLog = exports.GetServiceRoleForAccountRequestFilterSensitiveLog = exports.GetDeploymentResponseFilterSensitiveLog = exports.GetDeploymentRequestFilterSensitiveLog = exports.GetCoreDeviceResponseFilterSensitiveLog = exports.GetCoreDeviceRequestFilterSensitiveLog = exports.GetConnectivityInfoResponseFilterSensitiveLog = exports.GetConnectivityInfoRequestFilterSensitiveLog = exports.GetComponentVersionArtifactResponseFilterSensitiveLog = exports.GetComponentVersionArtifactRequestFilterSensitiveLog = exports.GetComponentResponseFilterSensitiveLog = exports.GetComponentRequestFilterSensitiveLog = exports.EffectiveDeploymentFilterSensitiveLog = exports.DisassociateServiceRoleFromAccountResponseFilterSensitiveLog = exports.DisassociateServiceRoleFromAccountRequestFilterSensitiveLog = exports.DescribeComponentResponseFilterSensitiveLog = exports.DescribeComponentRequestFilterSensitiveLog = exports.DeploymentFilterSensitiveLog = exports.DeleteDeploymentRequestFilterSensitiveLog = exports.DeleteCoreDeviceRequestFilterSensitiveLog = exports.DeleteComponentRequestFilterSensitiveLog = exports.CreateDeploymentResponseFilterSensitiveLog = exports.CreateDeploymentRequestFilterSensitiveLog = exports.DeploymentIoTJobConfigurationFilterSensitiveLog = exports.IoTJobTimeoutConfigFilterSensitiveLog = exports.IoTJobExecutionsRolloutConfigFilterSensitiveLog = exports.IoTJobExponentialRolloutRateFilterSensitiveLog = exports.IoTJobRateIncreaseCriteriaFilterSensitiveLog = exports.IoTJobAbortConfigFilterSensitiveLog = exports.IoTJobAbortCriteriaFilterSensitiveLog = exports.DeploymentPoliciesFilterSensitiveLog = exports.DeploymentConfigurationValidationPolicyFilterSensitiveLog = exports.DeploymentComponentUpdatePolicyFilterSensitiveLog = exports.CreateComponentVersionResponseFilterSensitiveLog = exports.CreateComponentVersionRequestFilterSensitiveLog = exports.LambdaFunctionRecipeSourceFilterSensitiveLog = exports.LambdaExecutionParametersFilterSensitiveLog = exports.LambdaLinuxProcessParamsFilterSensitiveLog = exports.LambdaContainerParamsFilterSensitiveLog = exports.LambdaVolumeMountFilterSensitiveLog = exports.LambdaDeviceMountFilterSensitiveLog = exports.LambdaEventSourceFilterSensitiveLog = exports.CoreDeviceFilterSensitiveLog = exports.ConnectivityInfoFilterSensitiveLog = exports.ComponentVersionListItemFilterSensitiveLog = exports.ComponentDeploymentSpecificationFilterSensitiveLog = exports.ComponentRunWithFilterSensitiveLog = void 0;
5
- exports.UpdateConnectivityInfoResponseFilterSensitiveLog = exports.UpdateConnectivityInfoRequestFilterSensitiveLog = exports.UntagResourceResponseFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceResponseFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.ResolveComponentCandidatesResponseFilterSensitiveLog = exports.ResolvedComponentVersionFilterSensitiveLog = exports.ResolveComponentCandidatesRequestFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ListTagsForResourceRequestFilterSensitiveLog = exports.ListInstalledComponentsResponseFilterSensitiveLog = exports.InstalledComponentFilterSensitiveLog = exports.ListInstalledComponentsRequestFilterSensitiveLog = exports.ListEffectiveDeploymentsResponseFilterSensitiveLog = exports.ListEffectiveDeploymentsRequestFilterSensitiveLog = exports.ListDeploymentsResponseFilterSensitiveLog = exports.ListDeploymentsRequestFilterSensitiveLog = exports.ListCoreDevicesResponseFilterSensitiveLog = exports.ListCoreDevicesRequestFilterSensitiveLog = exports.ListComponentVersionsResponseFilterSensitiveLog = exports.ListComponentVersionsRequestFilterSensitiveLog = exports.ListComponentsResponseFilterSensitiveLog = void 0;
4
+ exports.ListClientDevicesAssociatedWithCoreDeviceResponseFilterSensitiveLog = exports.ListClientDevicesAssociatedWithCoreDeviceRequestFilterSensitiveLog = exports.GetServiceRoleForAccountResponseFilterSensitiveLog = exports.GetServiceRoleForAccountRequestFilterSensitiveLog = exports.GetDeploymentResponseFilterSensitiveLog = exports.GetDeploymentRequestFilterSensitiveLog = exports.GetCoreDeviceResponseFilterSensitiveLog = exports.GetCoreDeviceRequestFilterSensitiveLog = exports.GetConnectivityInfoResponseFilterSensitiveLog = exports.GetConnectivityInfoRequestFilterSensitiveLog = exports.GetComponentVersionArtifactResponseFilterSensitiveLog = exports.GetComponentVersionArtifactRequestFilterSensitiveLog = exports.GetComponentResponseFilterSensitiveLog = exports.GetComponentRequestFilterSensitiveLog = exports.EffectiveDeploymentFilterSensitiveLog = exports.EffectiveDeploymentStatusDetailsFilterSensitiveLog = exports.DisassociateServiceRoleFromAccountResponseFilterSensitiveLog = exports.DisassociateServiceRoleFromAccountRequestFilterSensitiveLog = exports.DescribeComponentResponseFilterSensitiveLog = exports.DescribeComponentRequestFilterSensitiveLog = exports.DeploymentFilterSensitiveLog = exports.DeleteDeploymentRequestFilterSensitiveLog = exports.DeleteCoreDeviceRequestFilterSensitiveLog = exports.DeleteComponentRequestFilterSensitiveLog = exports.CreateDeploymentResponseFilterSensitiveLog = exports.CreateDeploymentRequestFilterSensitiveLog = exports.DeploymentIoTJobConfigurationFilterSensitiveLog = exports.IoTJobTimeoutConfigFilterSensitiveLog = exports.IoTJobExecutionsRolloutConfigFilterSensitiveLog = exports.IoTJobExponentialRolloutRateFilterSensitiveLog = exports.IoTJobRateIncreaseCriteriaFilterSensitiveLog = exports.IoTJobAbortConfigFilterSensitiveLog = exports.IoTJobAbortCriteriaFilterSensitiveLog = exports.DeploymentPoliciesFilterSensitiveLog = exports.DeploymentConfigurationValidationPolicyFilterSensitiveLog = exports.DeploymentComponentUpdatePolicyFilterSensitiveLog = exports.CreateComponentVersionResponseFilterSensitiveLog = exports.CreateComponentVersionRequestFilterSensitiveLog = exports.LambdaFunctionRecipeSourceFilterSensitiveLog = exports.LambdaExecutionParametersFilterSensitiveLog = exports.LambdaLinuxProcessParamsFilterSensitiveLog = exports.LambdaContainerParamsFilterSensitiveLog = exports.LambdaVolumeMountFilterSensitiveLog = exports.LambdaDeviceMountFilterSensitiveLog = exports.LambdaEventSourceFilterSensitiveLog = exports.CoreDeviceFilterSensitiveLog = exports.ConnectivityInfoFilterSensitiveLog = exports.ComponentVersionListItemFilterSensitiveLog = exports.ComponentDeploymentSpecificationFilterSensitiveLog = exports.ComponentRunWithFilterSensitiveLog = void 0;
5
+ exports.UpdateConnectivityInfoResponseFilterSensitiveLog = exports.UpdateConnectivityInfoRequestFilterSensitiveLog = exports.UntagResourceResponseFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceResponseFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.ResolveComponentCandidatesResponseFilterSensitiveLog = exports.ResolvedComponentVersionFilterSensitiveLog = exports.ResolveComponentCandidatesRequestFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ListTagsForResourceRequestFilterSensitiveLog = exports.ListInstalledComponentsResponseFilterSensitiveLog = exports.InstalledComponentFilterSensitiveLog = exports.ListInstalledComponentsRequestFilterSensitiveLog = exports.ListEffectiveDeploymentsResponseFilterSensitiveLog = exports.ListEffectiveDeploymentsRequestFilterSensitiveLog = exports.ListDeploymentsResponseFilterSensitiveLog = exports.ListDeploymentsRequestFilterSensitiveLog = exports.ListCoreDevicesResponseFilterSensitiveLog = exports.ListCoreDevicesRequestFilterSensitiveLog = exports.ListComponentVersionsResponseFilterSensitiveLog = exports.ListComponentVersionsRequestFilterSensitiveLog = exports.ListComponentsResponseFilterSensitiveLog = exports.ListComponentsRequestFilterSensitiveLog = void 0;
6
6
  const GreengrassV2ServiceException_1 = require("./GreengrassV2ServiceException");
7
7
  class AccessDeniedException extends GreengrassV2ServiceException_1.GreengrassV2ServiceException {
8
8
  constructor(opts) {
@@ -467,6 +467,10 @@ const DisassociateServiceRoleFromAccountResponseFilterSensitiveLog = (obj) => ({
467
467
  ...obj,
468
468
  });
469
469
  exports.DisassociateServiceRoleFromAccountResponseFilterSensitiveLog = DisassociateServiceRoleFromAccountResponseFilterSensitiveLog;
470
+ const EffectiveDeploymentStatusDetailsFilterSensitiveLog = (obj) => ({
471
+ ...obj,
472
+ });
473
+ exports.EffectiveDeploymentStatusDetailsFilterSensitiveLog = EffectiveDeploymentStatusDetailsFilterSensitiveLog;
470
474
  const EffectiveDeploymentFilterSensitiveLog = (obj) => ({
471
475
  ...obj,
472
476
  });
@@ -2826,9 +2826,34 @@ const deserializeAws_restJson1EffectiveDeployment = (output, context) => {
2826
2826
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.modifiedTimestamp)))
2827
2827
  : undefined,
2828
2828
  reason: (0, smithy_client_1.expectString)(output.reason),
2829
+ statusDetails: output.statusDetails != null
2830
+ ? deserializeAws_restJson1EffectiveDeploymentStatusDetails(output.statusDetails, context)
2831
+ : undefined,
2829
2832
  targetArn: (0, smithy_client_1.expectString)(output.targetArn),
2830
2833
  };
2831
2834
  };
2835
+ const deserializeAws_restJson1EffectiveDeploymentErrorStack = (output, context) => {
2836
+ const retVal = (output || [])
2837
+ .filter((e) => e != null)
2838
+ .map((entry) => {
2839
+ if (entry === null) {
2840
+ return null;
2841
+ }
2842
+ return (0, smithy_client_1.expectString)(entry);
2843
+ });
2844
+ return retVal;
2845
+ };
2846
+ const deserializeAws_restJson1EffectiveDeploymentErrorTypeList = (output, context) => {
2847
+ const retVal = (output || [])
2848
+ .filter((e) => e != null)
2849
+ .map((entry) => {
2850
+ if (entry === null) {
2851
+ return null;
2852
+ }
2853
+ return (0, smithy_client_1.expectString)(entry);
2854
+ });
2855
+ return retVal;
2856
+ };
2832
2857
  const deserializeAws_restJson1EffectiveDeploymentsList = (output, context) => {
2833
2858
  const retVal = (output || [])
2834
2859
  .filter((e) => e != null)
@@ -2840,18 +2865,46 @@ const deserializeAws_restJson1EffectiveDeploymentsList = (output, context) => {
2840
2865
  });
2841
2866
  return retVal;
2842
2867
  };
2868
+ const deserializeAws_restJson1EffectiveDeploymentStatusDetails = (output, context) => {
2869
+ return {
2870
+ errorStack: output.errorStack != null
2871
+ ? deserializeAws_restJson1EffectiveDeploymentErrorStack(output.errorStack, context)
2872
+ : undefined,
2873
+ errorTypes: output.errorTypes != null
2874
+ ? deserializeAws_restJson1EffectiveDeploymentErrorTypeList(output.errorTypes, context)
2875
+ : undefined,
2876
+ };
2877
+ };
2843
2878
  const deserializeAws_restJson1InstalledComponent = (output, context) => {
2844
2879
  return {
2845
2880
  componentName: (0, smithy_client_1.expectString)(output.componentName),
2846
2881
  componentVersion: (0, smithy_client_1.expectString)(output.componentVersion),
2847
2882
  isRoot: (0, smithy_client_1.expectBoolean)(output.isRoot),
2883
+ lastInstallationSource: (0, smithy_client_1.expectString)(output.lastInstallationSource),
2884
+ lastReportedTimestamp: output.lastReportedTimestamp != null
2885
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastReportedTimestamp)))
2886
+ : undefined,
2848
2887
  lastStatusChangeTimestamp: output.lastStatusChangeTimestamp != null
2849
2888
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastStatusChangeTimestamp)))
2850
2889
  : undefined,
2851
2890
  lifecycleState: (0, smithy_client_1.expectString)(output.lifecycleState),
2852
2891
  lifecycleStateDetails: (0, smithy_client_1.expectString)(output.lifecycleStateDetails),
2892
+ lifecycleStatusCodes: output.lifecycleStatusCodes != null
2893
+ ? deserializeAws_restJson1InstalledComponentLifecycleStatusCodeList(output.lifecycleStatusCodes, context)
2894
+ : undefined,
2853
2895
  };
2854
2896
  };
2897
+ const deserializeAws_restJson1InstalledComponentLifecycleStatusCodeList = (output, context) => {
2898
+ const retVal = (output || [])
2899
+ .filter((e) => e != null)
2900
+ .map((entry) => {
2901
+ if (entry === null) {
2902
+ return null;
2903
+ }
2904
+ return (0, smithy_client_1.expectString)(entry);
2905
+ });
2906
+ return retVal;
2907
+ };
2855
2908
  const deserializeAws_restJson1InstalledComponentList = (output, context) => {
2856
2909
  const retVal = (output || [])
2857
2910
  .filter((e) => e != null)
@@ -287,6 +287,7 @@ export var DescribeComponentRequestFilterSensitiveLog = function (obj) { return
287
287
  export var DescribeComponentResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
288
288
  export var DisassociateServiceRoleFromAccountRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
289
289
  export var DisassociateServiceRoleFromAccountResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
290
+ export var EffectiveDeploymentStatusDetailsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
290
291
  export var EffectiveDeploymentFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
291
292
  export var GetComponentRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
292
293
  export var GetComponentResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -3559,9 +3559,34 @@ var deserializeAws_restJson1EffectiveDeployment = function (output, context) {
3559
3559
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.modifiedTimestamp)))
3560
3560
  : undefined,
3561
3561
  reason: __expectString(output.reason),
3562
+ statusDetails: output.statusDetails != null
3563
+ ? deserializeAws_restJson1EffectiveDeploymentStatusDetails(output.statusDetails, context)
3564
+ : undefined,
3562
3565
  targetArn: __expectString(output.targetArn),
3563
3566
  };
3564
3567
  };
3568
+ var deserializeAws_restJson1EffectiveDeploymentErrorStack = function (output, context) {
3569
+ var retVal = (output || [])
3570
+ .filter(function (e) { return e != null; })
3571
+ .map(function (entry) {
3572
+ if (entry === null) {
3573
+ return null;
3574
+ }
3575
+ return __expectString(entry);
3576
+ });
3577
+ return retVal;
3578
+ };
3579
+ var deserializeAws_restJson1EffectiveDeploymentErrorTypeList = function (output, context) {
3580
+ var retVal = (output || [])
3581
+ .filter(function (e) { return e != null; })
3582
+ .map(function (entry) {
3583
+ if (entry === null) {
3584
+ return null;
3585
+ }
3586
+ return __expectString(entry);
3587
+ });
3588
+ return retVal;
3589
+ };
3565
3590
  var deserializeAws_restJson1EffectiveDeploymentsList = function (output, context) {
3566
3591
  var retVal = (output || [])
3567
3592
  .filter(function (e) { return e != null; })
@@ -3573,18 +3598,46 @@ var deserializeAws_restJson1EffectiveDeploymentsList = function (output, context
3573
3598
  });
3574
3599
  return retVal;
3575
3600
  };
3601
+ var deserializeAws_restJson1EffectiveDeploymentStatusDetails = function (output, context) {
3602
+ return {
3603
+ errorStack: output.errorStack != null
3604
+ ? deserializeAws_restJson1EffectiveDeploymentErrorStack(output.errorStack, context)
3605
+ : undefined,
3606
+ errorTypes: output.errorTypes != null
3607
+ ? deserializeAws_restJson1EffectiveDeploymentErrorTypeList(output.errorTypes, context)
3608
+ : undefined,
3609
+ };
3610
+ };
3576
3611
  var deserializeAws_restJson1InstalledComponent = function (output, context) {
3577
3612
  return {
3578
3613
  componentName: __expectString(output.componentName),
3579
3614
  componentVersion: __expectString(output.componentVersion),
3580
3615
  isRoot: __expectBoolean(output.isRoot),
3616
+ lastInstallationSource: __expectString(output.lastInstallationSource),
3617
+ lastReportedTimestamp: output.lastReportedTimestamp != null
3618
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastReportedTimestamp)))
3619
+ : undefined,
3581
3620
  lastStatusChangeTimestamp: output.lastStatusChangeTimestamp != null
3582
3621
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastStatusChangeTimestamp)))
3583
3622
  : undefined,
3584
3623
  lifecycleState: __expectString(output.lifecycleState),
3585
3624
  lifecycleStateDetails: __expectString(output.lifecycleStateDetails),
3625
+ lifecycleStatusCodes: output.lifecycleStatusCodes != null
3626
+ ? deserializeAws_restJson1InstalledComponentLifecycleStatusCodeList(output.lifecycleStatusCodes, context)
3627
+ : undefined,
3586
3628
  };
3587
3629
  };
3630
+ var deserializeAws_restJson1InstalledComponentLifecycleStatusCodeList = function (output, context) {
3631
+ var retVal = (output || [])
3632
+ .filter(function (e) { return e != null; })
3633
+ .map(function (entry) {
3634
+ if (entry === null) {
3635
+ return null;
3636
+ }
3637
+ return __expectString(entry);
3638
+ });
3639
+ return retVal;
3640
+ };
3588
3641
  var deserializeAws_restJson1InstalledComponentList = function (output, context) {
3589
3642
  var retVal = (output || [])
3590
3643
  .filter(function (e) { return e != null; })
@@ -1360,6 +1360,30 @@ export declare enum EffectiveDeploymentExecutionStatus {
1360
1360
  REJECTED = "REJECTED",
1361
1361
  TIMED_OUT = "TIMED_OUT"
1362
1362
  }
1363
+ /**
1364
+ * <p>Contains all error-related information for the deployment record. The status details will
1365
+ * be null if the deployment is in a success state.</p>
1366
+ * <note>
1367
+ * <p>Greengrass nucleus v2.8.0 or later is required to get an accurate <code>errorStack</code> and
1368
+ * <code>errorTypes</code> response. This field will not be returned for earlier Greengrass nucleus
1369
+ * versions.</p>
1370
+ * </note>
1371
+ */
1372
+ export interface EffectiveDeploymentStatusDetails {
1373
+ /**
1374
+ * <p>Contains an ordered list of short error codes that range from the most generic error to
1375
+ * the most specific one. The error codes describe the reason for failure whenever the
1376
+ * <code>coreDeviceExecutionStatus</code> is in a failed state. The response will be an empty
1377
+ * list if there is no error.</p>
1378
+ */
1379
+ errorStack?: string[];
1380
+ /**
1381
+ * <p>Contains tags which describe the error. You can use the error types to classify errors to
1382
+ * assist with remediating the failure. The response will be an empty list if there is no
1383
+ * error.</p>
1384
+ */
1385
+ errorTypes?: string[];
1386
+ }
1363
1387
  /**
1364
1388
  * <p>Contains information about a deployment job that IoT Greengrass sends to a Greengrass core device.</p>
1365
1389
  */
@@ -1405,6 +1429,11 @@ export interface EffectiveDeployment {
1405
1429
  * format.</p>
1406
1430
  */
1407
1431
  modifiedTimestamp: Date | undefined;
1432
+ /**
1433
+ * <p>The status details that explain why a deployment has an error. This response will be null
1434
+ * if the deployment is in a success state.</p>
1435
+ */
1436
+ statusDetails?: EffectiveDeploymentStatusDetails;
1408
1437
  }
1409
1438
  export declare enum RecipeOutputFormat {
1410
1439
  JSON = "JSON",
@@ -1852,7 +1881,8 @@ export interface InstalledComponent {
1852
1881
  */
1853
1882
  lifecycleState?: InstalledComponentLifecycleState | string;
1854
1883
  /**
1855
- * <p>The details about the lifecycle state of the component.</p>
1884
+ * <p>A detailed response about the lifecycle state of the component that explains the reason
1885
+ * why a component has an error or is broken.</p>
1856
1886
  */
1857
1887
  lifecycleStateDetails?: string;
1858
1888
  /**
@@ -1866,14 +1896,41 @@ export interface InstalledComponent {
1866
1896
  * deployment, it might not undergo a state change and this status would not be updated.</p>
1867
1897
  */
1868
1898
  lastStatusChangeTimestamp?: Date;
1899
+ /**
1900
+ * <p>The last time the Greengrass core device sent a message containing a certain component to the
1901
+ * Amazon Web Services Cloud.</p>
1902
+ * <p>A component does not need to see a state change for this field to update.</p>
1903
+ */
1904
+ lastReportedTimestamp?: Date;
1905
+ /**
1906
+ * <p>The most recent deployment source that brought the component to the Greengrass core device. For
1907
+ * a thing group deployment or thing deployment, the source will be the The ID of the deployment. and for
1908
+ * local deployments it will be <code>LOCAL</code>.</p>
1909
+ */
1910
+ lastInstallationSource?: string;
1911
+ /**
1912
+ * <p>The status codes that indicate the reason for failure whenever the
1913
+ * <code>lifecycleState</code> has an error or is in a broken state.</p>
1914
+ * <note>
1915
+ * <p>Greengrass nucleus v2.8.0 or later is required to get an accurate
1916
+ * <code>lifecycleStatusCodes</code> response. This response can be inaccurate in earlier
1917
+ * Greengrass nucleus versions.</p>
1918
+ * </note>
1919
+ */
1920
+ lifecycleStatusCodes?: string[];
1869
1921
  }
1870
1922
  export interface ListInstalledComponentsResponse {
1871
1923
  /**
1872
1924
  * <p>A list that summarizes each component on the core device.</p>
1873
1925
  * <note>
1874
- * <p>Accuracy of the <code>lastStatusChangeTimestamp</code> response depends on Greengrass nucleus
1875
- * v2.7.0. It performs best on Greengrass nucleus v2.7.0 and can be inaccurate on earlier
1876
- * versions.</p>
1926
+ * <p>Greengrass nucleus v2.7.0 or later is required to get an accurate
1927
+ * <code>lastStatusChangeTimestamp</code> response. This response can be inaccurate in
1928
+ * earlier Greengrass nucleus versions.</p>
1929
+ * </note>
1930
+ * <note>
1931
+ * <p>Greengrass nucleus v2.8.0 or later is required to get an accurate
1932
+ * <code>lastInstallationSource</code> and <code>lastReportedTimestamp</code> response. This
1933
+ * response can be inaccurate or null in earlier Greengrass nucleus versions.</p>
1877
1934
  * </note>
1878
1935
  */
1879
1936
  installedComponents?: InstalledComponent[];
@@ -2231,6 +2288,10 @@ export declare const DisassociateServiceRoleFromAccountRequestFilterSensitiveLog
2231
2288
  * @internal
2232
2289
  */
2233
2290
  export declare const DisassociateServiceRoleFromAccountResponseFilterSensitiveLog: (obj: DisassociateServiceRoleFromAccountResponse) => any;
2291
+ /**
2292
+ * @internal
2293
+ */
2294
+ export declare const EffectiveDeploymentStatusDetailsFilterSensitiveLog: (obj: EffectiveDeploymentStatusDetails) => any;
2234
2295
  /**
2235
2296
  * @internal
2236
2297
  */
@@ -422,6 +422,10 @@ export declare enum EffectiveDeploymentExecutionStatus {
422
422
  REJECTED = "REJECTED",
423
423
  TIMED_OUT = "TIMED_OUT",
424
424
  }
425
+ export interface EffectiveDeploymentStatusDetails {
426
+ errorStack?: string[];
427
+ errorTypes?: string[];
428
+ }
425
429
  export interface EffectiveDeployment {
426
430
  deploymentId: string | undefined;
427
431
  deploymentName: string | undefined;
@@ -436,6 +440,7 @@ export interface EffectiveDeployment {
436
440
  reason?: string;
437
441
  creationTimestamp: Date | undefined;
438
442
  modifiedTimestamp: Date | undefined;
443
+ statusDetails?: EffectiveDeploymentStatusDetails;
439
444
  }
440
445
  export declare enum RecipeOutputFormat {
441
446
  JSON = "JSON",
@@ -582,6 +587,9 @@ export interface InstalledComponent {
582
587
  lifecycleStateDetails?: string;
583
588
  isRoot?: boolean;
584
589
  lastStatusChangeTimestamp?: Date;
590
+ lastReportedTimestamp?: Date;
591
+ lastInstallationSource?: string;
592
+ lifecycleStatusCodes?: string[];
585
593
  }
586
594
  export interface ListInstalledComponentsResponse {
587
595
  installedComponents?: InstalledComponent[];
@@ -788,6 +796,9 @@ export declare const DisassociateServiceRoleFromAccountRequestFilterSensitiveLog
788
796
  export declare const DisassociateServiceRoleFromAccountResponseFilterSensitiveLog: (
789
797
  obj: DisassociateServiceRoleFromAccountResponse
790
798
  ) => any;
799
+ export declare const EffectiveDeploymentStatusDetailsFilterSensitiveLog: (
800
+ obj: EffectiveDeploymentStatusDetails
801
+ ) => any;
791
802
  export declare const EffectiveDeploymentFilterSensitiveLog: (
792
803
  obj: EffectiveDeployment
793
804
  ) => any;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-greengrassv2",
3
3
  "description": "AWS SDK for JavaScript Greengrassv2 Client for Node.js, Browser and React Native",
4
- "version": "3.185.0",
4
+ "version": "3.187.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -19,42 +19,42 @@
19
19
  "dependencies": {
20
20
  "@aws-crypto/sha256-browser": "2.0.0",
21
21
  "@aws-crypto/sha256-js": "2.0.0",
22
- "@aws-sdk/client-sts": "3.185.0",
23
- "@aws-sdk/config-resolver": "3.183.0",
24
- "@aws-sdk/credential-provider-node": "3.185.0",
25
- "@aws-sdk/fetch-http-handler": "3.183.0",
26
- "@aws-sdk/hash-node": "3.183.0",
27
- "@aws-sdk/invalid-dependency": "3.183.0",
28
- "@aws-sdk/middleware-content-length": "3.183.0",
29
- "@aws-sdk/middleware-host-header": "3.183.0",
30
- "@aws-sdk/middleware-logger": "3.183.0",
31
- "@aws-sdk/middleware-recursion-detection": "3.183.0",
32
- "@aws-sdk/middleware-retry": "3.185.0",
33
- "@aws-sdk/middleware-serde": "3.183.0",
34
- "@aws-sdk/middleware-signing": "3.183.0",
35
- "@aws-sdk/middleware-stack": "3.183.0",
36
- "@aws-sdk/middleware-user-agent": "3.183.0",
37
- "@aws-sdk/node-config-provider": "3.183.0",
38
- "@aws-sdk/node-http-handler": "3.185.0",
39
- "@aws-sdk/protocol-http": "3.183.0",
40
- "@aws-sdk/smithy-client": "3.183.0",
41
- "@aws-sdk/types": "3.183.0",
42
- "@aws-sdk/url-parser": "3.183.0",
43
- "@aws-sdk/util-base64-browser": "3.183.0",
44
- "@aws-sdk/util-base64-node": "3.183.0",
45
- "@aws-sdk/util-body-length-browser": "3.183.0",
46
- "@aws-sdk/util-body-length-node": "3.183.0",
47
- "@aws-sdk/util-defaults-mode-browser": "3.183.0",
48
- "@aws-sdk/util-defaults-mode-node": "3.183.0",
49
- "@aws-sdk/util-user-agent-browser": "3.183.0",
50
- "@aws-sdk/util-user-agent-node": "3.183.0",
51
- "@aws-sdk/util-utf8-browser": "3.183.0",
52
- "@aws-sdk/util-utf8-node": "3.183.0",
22
+ "@aws-sdk/client-sts": "3.186.0",
23
+ "@aws-sdk/config-resolver": "3.186.0",
24
+ "@aws-sdk/credential-provider-node": "3.186.0",
25
+ "@aws-sdk/fetch-http-handler": "3.186.0",
26
+ "@aws-sdk/hash-node": "3.186.0",
27
+ "@aws-sdk/invalid-dependency": "3.186.0",
28
+ "@aws-sdk/middleware-content-length": "3.186.0",
29
+ "@aws-sdk/middleware-host-header": "3.186.0",
30
+ "@aws-sdk/middleware-logger": "3.186.0",
31
+ "@aws-sdk/middleware-recursion-detection": "3.186.0",
32
+ "@aws-sdk/middleware-retry": "3.186.0",
33
+ "@aws-sdk/middleware-serde": "3.186.0",
34
+ "@aws-sdk/middleware-signing": "3.186.0",
35
+ "@aws-sdk/middleware-stack": "3.186.0",
36
+ "@aws-sdk/middleware-user-agent": "3.186.0",
37
+ "@aws-sdk/node-config-provider": "3.186.0",
38
+ "@aws-sdk/node-http-handler": "3.186.0",
39
+ "@aws-sdk/protocol-http": "3.186.0",
40
+ "@aws-sdk/smithy-client": "3.186.0",
41
+ "@aws-sdk/types": "3.186.0",
42
+ "@aws-sdk/url-parser": "3.186.0",
43
+ "@aws-sdk/util-base64-browser": "3.186.0",
44
+ "@aws-sdk/util-base64-node": "3.186.0",
45
+ "@aws-sdk/util-body-length-browser": "3.186.0",
46
+ "@aws-sdk/util-body-length-node": "3.186.0",
47
+ "@aws-sdk/util-defaults-mode-browser": "3.186.0",
48
+ "@aws-sdk/util-defaults-mode-node": "3.186.0",
49
+ "@aws-sdk/util-user-agent-browser": "3.186.0",
50
+ "@aws-sdk/util-user-agent-node": "3.186.0",
51
+ "@aws-sdk/util-utf8-browser": "3.186.0",
52
+ "@aws-sdk/util-utf8-node": "3.186.0",
53
53
  "tslib": "^2.3.1",
54
54
  "uuid": "^8.3.2"
55
55
  },
56
56
  "devDependencies": {
57
- "@aws-sdk/service-client-documentation-generator": "3.183.0",
57
+ "@aws-sdk/service-client-documentation-generator": "3.186.0",
58
58
  "@tsconfig/recommended": "1.0.1",
59
59
  "@types/node": "^12.7.5",
60
60
  "@types/uuid": "^8.3.0",