aws-sdk-greengrassv2 1.19.0 → 1.20.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 77a7d6316272826d8cd4f92ee7df041ea0faed036d47095134f04ecf90b98dfc
4
- data.tar.gz: 74b760c485f5a81768e024a229a27311407e0e98f5b40ba24388f64474d4a3c1
3
+ metadata.gz: e4be62bb05304634040b32dfe8e4e781d709bcb654df1c2c3c7972302a0f4f3e
4
+ data.tar.gz: a6ba7ad02ceb51c6a1374ba36d2e1cbd93445c7427616bd2babae9760b8d6f5d
5
5
  SHA512:
6
- metadata.gz: 2c39c85779db816c1d9649dc879fe6b479cf391ec7355e5cc0e40cba4329609bb44c783127956a9bc112caf2fba3a755b8b636806b16b8caee69717ed0855fab
7
- data.tar.gz: 25638e619b299500a33f8b6e169f6787ab6281902a7985607fc40487943d22340f77f450cf20aa8a9a20b339445cb80b0a1ba839ea29623fc76f668e7022076b
6
+ metadata.gz: e7cb044f1c79716a083e9f83e9c65833b68c69f69e947f24a3b4962e97d3f697166fba867fcc08cf0811efe59be264b7c9fcdd83a917e5750578dee12a73ea6b
7
+ data.tar.gz: d157bff3230b875f524ac958b45d2202991c6652f94d6669db71034e3f73d5f95afec1d7369d47e687327188f01a02cfd546db04ce8d6e0c9325fa850bdb44b2
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.20.0 (2022-10-07)
5
+ ------------------
6
+
7
+ * Feature - This release adds error status details for deployments and components that failed on a device and adds features to improve visibility into component installation.
8
+
4
9
  1.19.0 (2022-08-30)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.19.0
1
+ 1.20.0
@@ -1700,6 +1700,10 @@ module Aws::GreengrassV2
1700
1700
  # resp.effective_deployments[0].reason #=> String
1701
1701
  # resp.effective_deployments[0].creation_timestamp #=> Time
1702
1702
  # resp.effective_deployments[0].modified_timestamp #=> Time
1703
+ # resp.effective_deployments[0].status_details.error_stack #=> Array
1704
+ # resp.effective_deployments[0].status_details.error_stack[0] #=> String
1705
+ # resp.effective_deployments[0].status_details.error_types #=> Array
1706
+ # resp.effective_deployments[0].status_details.error_types[0] #=> String
1703
1707
  # resp.next_token #=> String
1704
1708
  #
1705
1709
  # @see http://docs.aws.amazon.com/goto/WebAPI/greengrassv2-2020-11-30/ListEffectiveDeployments AWS API Documentation
@@ -1793,6 +1797,10 @@ module Aws::GreengrassV2
1793
1797
  # resp.installed_components[0].lifecycle_state_details #=> String
1794
1798
  # resp.installed_components[0].is_root #=> Boolean
1795
1799
  # resp.installed_components[0].last_status_change_timestamp #=> Time
1800
+ # resp.installed_components[0].last_reported_timestamp #=> Time
1801
+ # resp.installed_components[0].last_installation_source #=> String
1802
+ # resp.installed_components[0].lifecycle_status_codes #=> Array
1803
+ # resp.installed_components[0].lifecycle_status_codes[0] #=> String
1796
1804
  # resp.next_token #=> String
1797
1805
  #
1798
1806
  # @see http://docs.aws.amazon.com/goto/WebAPI/greengrassv2-2020-11-30/ListInstalledComponents AWS API Documentation
@@ -2047,7 +2055,7 @@ module Aws::GreengrassV2
2047
2055
  params: params,
2048
2056
  config: config)
2049
2057
  context[:gem_name] = 'aws-sdk-greengrassv2'
2050
- context[:gem_version] = '1.19.0'
2058
+ context[:gem_version] = '1.20.0'
2051
2059
  Seahorse::Client::Request.new(handlers, context)
2052
2060
  end
2053
2061
 
@@ -97,7 +97,12 @@ module Aws::GreengrassV2
97
97
  DisassociateServiceRoleFromAccountRequest = Shapes::StructureShape.new(name: 'DisassociateServiceRoleFromAccountRequest')
98
98
  DisassociateServiceRoleFromAccountResponse = Shapes::StructureShape.new(name: 'DisassociateServiceRoleFromAccountResponse')
99
99
  EffectiveDeployment = Shapes::StructureShape.new(name: 'EffectiveDeployment')
100
+ EffectiveDeploymentErrorCode = Shapes::StringShape.new(name: 'EffectiveDeploymentErrorCode')
101
+ EffectiveDeploymentErrorStack = Shapes::ListShape.new(name: 'EffectiveDeploymentErrorStack')
102
+ EffectiveDeploymentErrorType = Shapes::StringShape.new(name: 'EffectiveDeploymentErrorType')
103
+ EffectiveDeploymentErrorTypeList = Shapes::ListShape.new(name: 'EffectiveDeploymentErrorTypeList')
100
104
  EffectiveDeploymentExecutionStatus = Shapes::StringShape.new(name: 'EffectiveDeploymentExecutionStatus')
105
+ EffectiveDeploymentStatusDetails = Shapes::StructureShape.new(name: 'EffectiveDeploymentStatusDetails')
101
106
  EffectiveDeploymentsList = Shapes::ListShape.new(name: 'EffectiveDeploymentsList')
102
107
  FileSystemPath = Shapes::StringShape.new(name: 'FileSystemPath')
103
108
  GGCVersion = Shapes::StringShape.new(name: 'GGCVersion')
@@ -116,6 +121,8 @@ module Aws::GreengrassV2
116
121
  GetServiceRoleForAccountResponse = Shapes::StructureShape.new(name: 'GetServiceRoleForAccountResponse')
117
122
  InstalledComponent = Shapes::StructureShape.new(name: 'InstalledComponent')
118
123
  InstalledComponentLifecycleState = Shapes::StringShape.new(name: 'InstalledComponentLifecycleState')
124
+ InstalledComponentLifecycleStatusCode = Shapes::StringShape.new(name: 'InstalledComponentLifecycleStatusCode')
125
+ InstalledComponentLifecycleStatusCodeList = Shapes::ListShape.new(name: 'InstalledComponentLifecycleStatusCodeList')
119
126
  InstalledComponentList = Shapes::ListShape.new(name: 'InstalledComponentList')
120
127
  InstalledComponentTopologyFilter = Shapes::StringShape.new(name: 'InstalledComponentTopologyFilter')
121
128
  InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
@@ -460,8 +467,17 @@ module Aws::GreengrassV2
460
467
  EffectiveDeployment.add_member(:reason, Shapes::ShapeRef.new(shape: Reason, location_name: "reason"))
461
468
  EffectiveDeployment.add_member(:creation_timestamp, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "creationTimestamp"))
462
469
  EffectiveDeployment.add_member(:modified_timestamp, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "modifiedTimestamp"))
470
+ EffectiveDeployment.add_member(:status_details, Shapes::ShapeRef.new(shape: EffectiveDeploymentStatusDetails, location_name: "statusDetails"))
463
471
  EffectiveDeployment.struct_class = Types::EffectiveDeployment
464
472
 
473
+ EffectiveDeploymentErrorStack.member = Shapes::ShapeRef.new(shape: EffectiveDeploymentErrorCode)
474
+
475
+ EffectiveDeploymentErrorTypeList.member = Shapes::ShapeRef.new(shape: EffectiveDeploymentErrorType)
476
+
477
+ EffectiveDeploymentStatusDetails.add_member(:error_stack, Shapes::ShapeRef.new(shape: EffectiveDeploymentErrorStack, location_name: "errorStack"))
478
+ EffectiveDeploymentStatusDetails.add_member(:error_types, Shapes::ShapeRef.new(shape: EffectiveDeploymentErrorTypeList, location_name: "errorTypes"))
479
+ EffectiveDeploymentStatusDetails.struct_class = Types::EffectiveDeploymentStatusDetails
480
+
465
481
  EffectiveDeploymentsList.member = Shapes::ShapeRef.new(shape: EffectiveDeployment)
466
482
 
467
483
  GetComponentRequest.add_member(:recipe_output_format, Shapes::ShapeRef.new(shape: RecipeOutputFormat, location: "querystring", location_name: "recipeOutputFormat"))
@@ -529,8 +545,13 @@ module Aws::GreengrassV2
529
545
  InstalledComponent.add_member(:lifecycle_state_details, Shapes::ShapeRef.new(shape: LifecycleStateDetails, location_name: "lifecycleStateDetails"))
530
546
  InstalledComponent.add_member(:is_root, Shapes::ShapeRef.new(shape: IsRoot, location_name: "isRoot"))
531
547
  InstalledComponent.add_member(:last_status_change_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "lastStatusChangeTimestamp"))
548
+ InstalledComponent.add_member(:last_reported_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "lastReportedTimestamp"))
549
+ InstalledComponent.add_member(:last_installation_source, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "lastInstallationSource"))
550
+ InstalledComponent.add_member(:lifecycle_status_codes, Shapes::ShapeRef.new(shape: InstalledComponentLifecycleStatusCodeList, location_name: "lifecycleStatusCodes"))
532
551
  InstalledComponent.struct_class = Types::InstalledComponent
533
552
 
553
+ InstalledComponentLifecycleStatusCodeList.member = Shapes::ShapeRef.new(shape: InstalledComponentLifecycleStatusCode)
554
+
534
555
  InstalledComponentList.member = Shapes::ShapeRef.new(shape: InstalledComponent)
535
556
 
536
557
  InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
@@ -1691,6 +1691,11 @@ module Aws::GreengrassV2
1691
1691
  # ISO 8601 format.
1692
1692
  # @return [Time]
1693
1693
  #
1694
+ # @!attribute [rw] status_details
1695
+ # The status details that explain why a deployment has an error. This
1696
+ # response will be null if the deployment is in a success state.
1697
+ # @return [Types::EffectiveDeploymentStatusDetails]
1698
+ #
1694
1699
  # @see http://docs.aws.amazon.com/goto/WebAPI/greengrassv2-2020-11-30/EffectiveDeployment AWS API Documentation
1695
1700
  #
1696
1701
  class EffectiveDeployment < Struct.new(
@@ -1703,7 +1708,40 @@ module Aws::GreengrassV2
1703
1708
  :core_device_execution_status,
1704
1709
  :reason,
1705
1710
  :creation_timestamp,
1706
- :modified_timestamp)
1711
+ :modified_timestamp,
1712
+ :status_details)
1713
+ SENSITIVE = []
1714
+ include Aws::Structure
1715
+ end
1716
+
1717
+ # Contains all error-related information for the deployment record. The
1718
+ # status details will be null if the deployment is in a success state.
1719
+ #
1720
+ # <note markdown="1"> Greengrass nucleus v2.8.0 or later is required to get an accurate
1721
+ # `errorStack` and `errorTypes` response. This field will not be
1722
+ # returned for earlier Greengrass nucleus versions.
1723
+ #
1724
+ # </note>
1725
+ #
1726
+ # @!attribute [rw] error_stack
1727
+ # Contains an ordered list of short error codes that range from the
1728
+ # most generic error to the most specific one. The error codes
1729
+ # describe the reason for failure whenever the
1730
+ # `coreDeviceExecutionStatus` is in a failed state. The response will
1731
+ # be an empty list if there is no error.
1732
+ # @return [Array<String>]
1733
+ #
1734
+ # @!attribute [rw] error_types
1735
+ # Contains tags which describe the error. You can use the error types
1736
+ # to classify errors to assist with remediating the failure. The
1737
+ # response will be an empty list if there is no error.
1738
+ # @return [Array<String>]
1739
+ #
1740
+ # @see http://docs.aws.amazon.com/goto/WebAPI/greengrassv2-2020-11-30/EffectiveDeploymentStatusDetails AWS API Documentation
1741
+ #
1742
+ class EffectiveDeploymentStatusDetails < Struct.new(
1743
+ :error_stack,
1744
+ :error_types)
1707
1745
  SENSITIVE = []
1708
1746
  include Aws::Structure
1709
1747
  end
@@ -2089,7 +2127,8 @@ module Aws::GreengrassV2
2089
2127
  # @return [String]
2090
2128
  #
2091
2129
  # @!attribute [rw] lifecycle_state_details
2092
- # The details about the lifecycle state of the component.
2130
+ # A detailed response about the lifecycle state of the component that
2131
+ # explains the reason why a component has an error or is broken.
2093
2132
  # @return [String]
2094
2133
  #
2095
2134
  # @!attribute [rw] is_root
@@ -2105,6 +2144,32 @@ module Aws::GreengrassV2
2105
2144
  # undergo a state change and this status would not be updated.
2106
2145
  # @return [Time]
2107
2146
  #
2147
+ # @!attribute [rw] last_reported_timestamp
2148
+ # The last time the Greengrass core device sent a message containing a
2149
+ # certain component to the Amazon Web Services Cloud.
2150
+ #
2151
+ # A component does not need to see a state change for this field to
2152
+ # update.
2153
+ # @return [Time]
2154
+ #
2155
+ # @!attribute [rw] last_installation_source
2156
+ # The most recent deployment source that brought the component to the
2157
+ # Greengrass core device. For a thing group deployment or thing
2158
+ # deployment, the source will be the The ID of the deployment. and for
2159
+ # local deployments it will be `LOCAL`.
2160
+ # @return [String]
2161
+ #
2162
+ # @!attribute [rw] lifecycle_status_codes
2163
+ # The status codes that indicate the reason for failure whenever the
2164
+ # `lifecycleState` has an error or is in a broken state.
2165
+ #
2166
+ # <note markdown="1"> Greengrass nucleus v2.8.0 or later is required to get an accurate
2167
+ # `lifecycleStatusCodes` response. This response can be inaccurate in
2168
+ # earlier Greengrass nucleus versions.
2169
+ #
2170
+ # </note>
2171
+ # @return [Array<String>]
2172
+ #
2108
2173
  # @see http://docs.aws.amazon.com/goto/WebAPI/greengrassv2-2020-11-30/InstalledComponent AWS API Documentation
2109
2174
  #
2110
2175
  class InstalledComponent < Struct.new(
@@ -2113,7 +2178,10 @@ module Aws::GreengrassV2
2113
2178
  :lifecycle_state,
2114
2179
  :lifecycle_state_details,
2115
2180
  :is_root,
2116
- :last_status_change_timestamp)
2181
+ :last_status_change_timestamp,
2182
+ :last_reported_timestamp,
2183
+ :last_installation_source,
2184
+ :lifecycle_status_codes)
2117
2185
  SENSITIVE = []
2118
2186
  include Aws::Structure
2119
2187
  end
@@ -3235,9 +3303,16 @@ module Aws::GreengrassV2
3235
3303
  # @!attribute [rw] installed_components
3236
3304
  # A list that summarizes each component on the core device.
3237
3305
  #
3238
- # <note markdown="1"> Accuracy of the `lastStatusChangeTimestamp` response depends on
3239
- # Greengrass nucleus v2.7.0. It performs best on Greengrass nucleus
3240
- # v2.7.0 and can be inaccurate on earlier versions.
3306
+ # <note markdown="1"> Greengrass nucleus v2.7.0 or later is required to get an accurate
3307
+ # `lastStatusChangeTimestamp` response. This response can be
3308
+ # inaccurate in earlier Greengrass nucleus versions.
3309
+ #
3310
+ # </note>
3311
+ #
3312
+ # <note markdown="1"> Greengrass nucleus v2.8.0 or later is required to get an accurate
3313
+ # `lastInstallationSource` and `lastReportedTimestamp` response. This
3314
+ # response can be inaccurate or null in earlier Greengrass nucleus
3315
+ # versions.
3241
3316
  #
3242
3317
  # </note>
3243
3318
  # @return [Array<Types::InstalledComponent>]
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-greengrassv2/customizations'
48
48
  # @!group service
49
49
  module Aws::GreengrassV2
50
50
 
51
- GEM_VERSION = '1.19.0'
51
+ GEM_VERSION = '1.20.0'
52
52
 
53
53
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-greengrassv2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.19.0
4
+ version: 1.20.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-30 00:00:00.000000000 Z
11
+ date: 2022-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core