aws-sdk-resiliencehub 1.26.0 → 1.27.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: fc41d84dbcd4bdae90875a633b8863b9923286d453af7a51d58feecdfa49e445
4
- data.tar.gz: 249db9b668442d77a2c24ee00e46cd72db1982c9e45b8a5924026a148cf72906
3
+ metadata.gz: eab265ce5f21c5686951ecf3316bdc66053ec89ad6c75e6a6627277483d29add
4
+ data.tar.gz: d34f86d4c2ebdceb631d5f9799abc467fbcb97032b8f8edf5bc0089f3bf7cfa6
5
5
  SHA512:
6
- metadata.gz: fc523fa43be5ff52bd18c71ace7b9b0dcbc60b0bfbec08674c554725c0be92204f0c5e274b204ec2608836b4520e9f152d09f81348e1feec905afb7bc180184e
7
- data.tar.gz: 33d03322b92b4d56adc9f4e6af2fed9331f85ed35196d9dfba69c8b54787a220742af5e354fa7f82d50daabe844d874b3c5b8be2f115d513baa4ca06867cbad5
6
+ metadata.gz: 638e59047cb736bd05a4779d9f2026fc5bedb2d275ac1216ce39b768c5fcc008e5ad55d6950e31c64efd427e0b558725c7985a9249aef8b1f010e79d3fe89de1
7
+ data.tar.gz: ee589977cc440c5b7898307d57cd601213df507deae15ca5936137b2445b42ba973a4787c439a942a0b8b41a9d4d3104f9e8e1b1f225998bfcda633aee56d16b
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.27.0 (2024-05-07)
5
+ ------------------
6
+
7
+ * Feature - AWS Resilience Hub has expanded its drift detection capabilities by introducing a new type of drift detection - application resource drift. This new enhancement detects changes, such as the addition or deletion of resources within the application's input sources.
8
+
4
9
  1.26.0 (2024-04-25)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.26.0
1
+ 1.27.0
@@ -2313,8 +2313,8 @@ module Aws::ResilienceHub
2313
2313
  # resp.compliance_drifts[0].actual_value["DisruptionType"].rto_reference_id #=> String
2314
2314
  # resp.compliance_drifts[0].app_id #=> String
2315
2315
  # resp.compliance_drifts[0].app_version #=> String
2316
- # resp.compliance_drifts[0].diff_type #=> String, one of "NotEqual"
2317
- # resp.compliance_drifts[0].drift_type #=> String, one of "ApplicationCompliance"
2316
+ # resp.compliance_drifts[0].diff_type #=> String, one of "NotEqual", "Added", "Removed"
2317
+ # resp.compliance_drifts[0].drift_type #=> String, one of "ApplicationCompliance", "AppComponentResiliencyComplianceStatus"
2318
2318
  # resp.compliance_drifts[0].entity_id #=> String
2319
2319
  # resp.compliance_drifts[0].entity_type #=> String
2320
2320
  # resp.compliance_drifts[0].expected_reference_id #=> String
@@ -2340,6 +2340,69 @@ module Aws::ResilienceHub
2340
2340
  req.send_request(options)
2341
2341
  end
2342
2342
 
2343
+ # Indicates the list of resource drifts that were detected while running
2344
+ # an assessment.
2345
+ #
2346
+ # @option params [required, String] :assessment_arn
2347
+ # Amazon Resource Name (ARN) of the assessment. The format for this ARN
2348
+ # is:
2349
+ # arn:`partition`:resiliencehub:`region`:`account`:app-assessment/`app-id`.
2350
+ # For more information about ARNs, see [ Amazon Resource Names
2351
+ # (ARNs)][1] in the *Amazon Web Services General Reference* guide.
2352
+ #
2353
+ #
2354
+ #
2355
+ # [1]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
2356
+ #
2357
+ # @option params [Integer] :max_results
2358
+ # Indicates the maximum number of drift results to include in the
2359
+ # response. If more results exist than the specified `MaxResults` value,
2360
+ # a token is included in the response so that the remaining results can
2361
+ # be retrieved.
2362
+ #
2363
+ # @option params [String] :next_token
2364
+ # Null, or the token from a previous call to get the next set of
2365
+ # results.
2366
+ #
2367
+ # @return [Types::ListAppAssessmentResourceDriftsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2368
+ #
2369
+ # * {Types::ListAppAssessmentResourceDriftsResponse#next_token #next_token} => String
2370
+ # * {Types::ListAppAssessmentResourceDriftsResponse#resource_drifts #resource_drifts} => Array<Types::ResourceDrift>
2371
+ #
2372
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2373
+ #
2374
+ # @example Request syntax with placeholder values
2375
+ #
2376
+ # resp = client.list_app_assessment_resource_drifts({
2377
+ # assessment_arn: "Arn", # required
2378
+ # max_results: 1,
2379
+ # next_token: "NextToken",
2380
+ # })
2381
+ #
2382
+ # @example Response structure
2383
+ #
2384
+ # resp.next_token #=> String
2385
+ # resp.resource_drifts #=> Array
2386
+ # resp.resource_drifts[0].app_arn #=> String
2387
+ # resp.resource_drifts[0].app_version #=> String
2388
+ # resp.resource_drifts[0].diff_type #=> String, one of "NotEqual", "Added", "Removed"
2389
+ # resp.resource_drifts[0].reference_id #=> String
2390
+ # resp.resource_drifts[0].resource_identifier.logical_resource_id.eks_source_name #=> String
2391
+ # resp.resource_drifts[0].resource_identifier.logical_resource_id.identifier #=> String
2392
+ # resp.resource_drifts[0].resource_identifier.logical_resource_id.logical_stack_name #=> String
2393
+ # resp.resource_drifts[0].resource_identifier.logical_resource_id.resource_group_name #=> String
2394
+ # resp.resource_drifts[0].resource_identifier.logical_resource_id.terraform_source_name #=> String
2395
+ # resp.resource_drifts[0].resource_identifier.resource_type #=> String
2396
+ #
2397
+ # @see http://docs.aws.amazon.com/goto/WebAPI/resiliencehub-2020-04-30/ListAppAssessmentResourceDrifts AWS API Documentation
2398
+ #
2399
+ # @overload list_app_assessment_resource_drifts(params = {})
2400
+ # @param [Hash] params ({})
2401
+ def list_app_assessment_resource_drifts(params = {}, options = {})
2402
+ req = build_request(:list_app_assessment_resource_drifts, params)
2403
+ req.send_request(options)
2404
+ end
2405
+
2343
2406
  # Lists the assessments for an Resilience Hub application. You can use
2344
2407
  # request parameters to refine the results for the response object.
2345
2408
  #
@@ -3033,7 +3096,7 @@ module Aws::ResilienceHub
3033
3096
  # Lists the recommendation templates for the Resilience Hub
3034
3097
  # applications.
3035
3098
  #
3036
- # @option params [required, String] :assessment_arn
3099
+ # @option params [String] :assessment_arn
3037
3100
  # Amazon Resource Name (ARN) of the assessment. The format for this ARN
3038
3101
  # is:
3039
3102
  # arn:`partition`:resiliencehub:`region`:`account`:app-assessment/`app-id`.
@@ -3076,7 +3139,7 @@ module Aws::ResilienceHub
3076
3139
  # @example Request syntax with placeholder values
3077
3140
  #
3078
3141
  # resp = client.list_recommendation_templates({
3079
- # assessment_arn: "Arn", # required
3142
+ # assessment_arn: "Arn",
3080
3143
  # max_results: 1,
3081
3144
  # name: "EntityName",
3082
3145
  # next_token: "NextToken",
@@ -4553,7 +4616,7 @@ module Aws::ResilienceHub
4553
4616
  params: params,
4554
4617
  config: config)
4555
4618
  context[:gem_name] = 'aws-sdk-resiliencehub'
4556
- context[:gem_version] = '1.26.0'
4619
+ context[:gem_version] = '1.27.0'
4557
4620
  Seahorse::Client::Request.new(handlers, context)
4558
4621
  end
4559
4622
 
@@ -152,6 +152,8 @@ module Aws::ResilienceHub
152
152
  ListAlarmRecommendationsResponse = Shapes::StructureShape.new(name: 'ListAlarmRecommendationsResponse')
153
153
  ListAppAssessmentComplianceDriftsRequest = Shapes::StructureShape.new(name: 'ListAppAssessmentComplianceDriftsRequest')
154
154
  ListAppAssessmentComplianceDriftsResponse = Shapes::StructureShape.new(name: 'ListAppAssessmentComplianceDriftsResponse')
155
+ ListAppAssessmentResourceDriftsRequest = Shapes::StructureShape.new(name: 'ListAppAssessmentResourceDriftsRequest')
156
+ ListAppAssessmentResourceDriftsResponse = Shapes::StructureShape.new(name: 'ListAppAssessmentResourceDriftsResponse')
155
157
  ListAppAssessmentsRequest = Shapes::StructureShape.new(name: 'ListAppAssessmentsRequest')
156
158
  ListAppAssessmentsResponse = Shapes::StructureShape.new(name: 'ListAppAssessmentsResponse')
157
159
  ListAppComponentCompliancesRequest = Shapes::StructureShape.new(name: 'ListAppComponentCompliancesRequest')
@@ -221,10 +223,13 @@ module Aws::ResilienceHub
221
223
  ResiliencyScoreType = Shapes::StringShape.new(name: 'ResiliencyScoreType')
222
224
  ResolveAppVersionResourcesRequest = Shapes::StructureShape.new(name: 'ResolveAppVersionResourcesRequest')
223
225
  ResolveAppVersionResourcesResponse = Shapes::StructureShape.new(name: 'ResolveAppVersionResourcesResponse')
226
+ ResourceDrift = Shapes::StructureShape.new(name: 'ResourceDrift')
227
+ ResourceDriftList = Shapes::ListShape.new(name: 'ResourceDriftList')
224
228
  ResourceError = Shapes::StructureShape.new(name: 'ResourceError')
225
229
  ResourceErrorList = Shapes::ListShape.new(name: 'ResourceErrorList')
226
230
  ResourceErrorsDetails = Shapes::StructureShape.new(name: 'ResourceErrorsDetails')
227
231
  ResourceId = Shapes::StringShape.new(name: 'ResourceId')
232
+ ResourceIdentifier = Shapes::StructureShape.new(name: 'ResourceIdentifier')
228
233
  ResourceImportStatusType = Shapes::StringShape.new(name: 'ResourceImportStatusType')
229
234
  ResourceImportStrategyType = Shapes::StringShape.new(name: 'ResourceImportStrategyType')
230
235
  ResourceMapping = Shapes::StructureShape.new(name: 'ResourceMapping')
@@ -807,6 +812,15 @@ module Aws::ResilienceHub
807
812
  ListAppAssessmentComplianceDriftsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
808
813
  ListAppAssessmentComplianceDriftsResponse.struct_class = Types::ListAppAssessmentComplianceDriftsResponse
809
814
 
815
+ ListAppAssessmentResourceDriftsRequest.add_member(:assessment_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "assessmentArn"))
816
+ ListAppAssessmentResourceDriftsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "maxResults"))
817
+ ListAppAssessmentResourceDriftsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
818
+ ListAppAssessmentResourceDriftsRequest.struct_class = Types::ListAppAssessmentResourceDriftsRequest
819
+
820
+ ListAppAssessmentResourceDriftsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
821
+ ListAppAssessmentResourceDriftsResponse.add_member(:resource_drifts, Shapes::ShapeRef.new(shape: ResourceDriftList, required: true, location_name: "resourceDrifts"))
822
+ ListAppAssessmentResourceDriftsResponse.struct_class = Types::ListAppAssessmentResourceDriftsResponse
823
+
810
824
  ListAppAssessmentsRequest.add_member(:app_arn, Shapes::ShapeRef.new(shape: Arn, location: "querystring", location_name: "appArn"))
811
825
  ListAppAssessmentsRequest.add_member(:assessment_name, Shapes::ShapeRef.new(shape: EntityName, location: "querystring", location_name: "assessmentName"))
812
826
  ListAppAssessmentsRequest.add_member(:assessment_status, Shapes::ShapeRef.new(shape: AssessmentStatusList, location: "querystring", location_name: "assessmentStatus"))
@@ -907,7 +921,7 @@ module Aws::ResilienceHub
907
921
  ListAppsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
908
922
  ListAppsResponse.struct_class = Types::ListAppsResponse
909
923
 
910
- ListRecommendationTemplatesRequest.add_member(:assessment_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "querystring", location_name: "assessmentArn"))
924
+ ListRecommendationTemplatesRequest.add_member(:assessment_arn, Shapes::ShapeRef.new(shape: Arn, location: "querystring", location_name: "assessmentArn"))
911
925
  ListRecommendationTemplatesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
912
926
  ListRecommendationTemplatesRequest.add_member(:name, Shapes::ShapeRef.new(shape: EntityName, location: "querystring", location_name: "name"))
913
927
  ListRecommendationTemplatesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "nextToken"))
@@ -1107,6 +1121,15 @@ module Aws::ResilienceHub
1107
1121
  ResolveAppVersionResourcesResponse.add_member(:status, Shapes::ShapeRef.new(shape: ResourceResolutionStatusType, required: true, location_name: "status"))
1108
1122
  ResolveAppVersionResourcesResponse.struct_class = Types::ResolveAppVersionResourcesResponse
1109
1123
 
1124
+ ResourceDrift.add_member(:app_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "appArn"))
1125
+ ResourceDrift.add_member(:app_version, Shapes::ShapeRef.new(shape: EntityVersion, location_name: "appVersion"))
1126
+ ResourceDrift.add_member(:diff_type, Shapes::ShapeRef.new(shape: DifferenceType, location_name: "diffType"))
1127
+ ResourceDrift.add_member(:reference_id, Shapes::ShapeRef.new(shape: EntityId, location_name: "referenceId"))
1128
+ ResourceDrift.add_member(:resource_identifier, Shapes::ShapeRef.new(shape: ResourceIdentifier, location_name: "resourceIdentifier"))
1129
+ ResourceDrift.struct_class = Types::ResourceDrift
1130
+
1131
+ ResourceDriftList.member = Shapes::ShapeRef.new(shape: ResourceDrift)
1132
+
1110
1133
  ResourceError.add_member(:logical_resource_id, Shapes::ShapeRef.new(shape: String255, location_name: "logicalResourceId"))
1111
1134
  ResourceError.add_member(:physical_resource_id, Shapes::ShapeRef.new(shape: String255, location_name: "physicalResourceId"))
1112
1135
  ResourceError.add_member(:reason, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "reason"))
@@ -1118,6 +1141,10 @@ module Aws::ResilienceHub
1118
1141
  ResourceErrorsDetails.add_member(:resource_errors, Shapes::ShapeRef.new(shape: ResourceErrorList, location_name: "resourceErrors"))
1119
1142
  ResourceErrorsDetails.struct_class = Types::ResourceErrorsDetails
1120
1143
 
1144
+ ResourceIdentifier.add_member(:logical_resource_id, Shapes::ShapeRef.new(shape: LogicalResourceId, location_name: "logicalResourceId"))
1145
+ ResourceIdentifier.add_member(:resource_type, Shapes::ShapeRef.new(shape: String255, location_name: "resourceType"))
1146
+ ResourceIdentifier.struct_class = Types::ResourceIdentifier
1147
+
1121
1148
  ResourceMapping.add_member(:app_registry_app_name, Shapes::ShapeRef.new(shape: EntityName, location_name: "appRegistryAppName"))
1122
1149
  ResourceMapping.add_member(:eks_source_name, Shapes::ShapeRef.new(shape: String255, location_name: "eksSourceName"))
1123
1150
  ResourceMapping.add_member(:logical_stack_name, Shapes::ShapeRef.new(shape: String255, location_name: "logicalStackName"))
@@ -1317,6 +1344,7 @@ module Aws::ResilienceHub
1317
1344
  "endpointPrefix" => "resiliencehub",
1318
1345
  "jsonVersion" => "1.1",
1319
1346
  "protocol" => "rest-json",
1347
+ "protocols" => ["rest-json"],
1320
1348
  "serviceFullName" => "AWS Resilience Hub",
1321
1349
  "serviceId" => "resiliencehub",
1322
1350
  "signatureVersion" => "v4",
@@ -1692,6 +1720,24 @@ module Aws::ResilienceHub
1692
1720
  )
1693
1721
  end)
1694
1722
 
1723
+ api.add_operation(:list_app_assessment_resource_drifts, Seahorse::Model::Operation.new.tap do |o|
1724
+ o.name = "ListAppAssessmentResourceDrifts"
1725
+ o.http_method = "POST"
1726
+ o.http_request_uri = "/list-app-assessment-resource-drifts"
1727
+ o.input = Shapes::ShapeRef.new(shape: ListAppAssessmentResourceDriftsRequest)
1728
+ o.output = Shapes::ShapeRef.new(shape: ListAppAssessmentResourceDriftsResponse)
1729
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1730
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1731
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1732
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1733
+ o[:pager] = Aws::Pager.new(
1734
+ limit_key: "max_results",
1735
+ tokens: {
1736
+ "next_token" => "next_token"
1737
+ }
1738
+ )
1739
+ end)
1740
+
1695
1741
  api.add_operation(:list_app_assessments, Seahorse::Model::Operation.new.tap do |o|
1696
1742
  o.name = "ListAppAssessments"
1697
1743
  o.http_method = "GET"
@@ -376,6 +376,20 @@ module Aws::ResilienceHub
376
376
  end
377
377
  end
378
378
 
379
+ class ListAppAssessmentResourceDrifts
380
+ def self.build(context)
381
+ unless context.config.regional_endpoint
382
+ endpoint = context.config.endpoint.to_s
383
+ end
384
+ Aws::ResilienceHub::EndpointParameters.new(
385
+ region: context.config.region,
386
+ use_dual_stack: context.config.use_dualstack_endpoint,
387
+ use_fips: context.config.use_fips_endpoint,
388
+ endpoint: endpoint,
389
+ )
390
+ end
391
+ end
392
+
379
393
  class ListAppAssessments
380
394
  def self.build(context)
381
395
  unless context.config.regional_endpoint
@@ -110,6 +110,8 @@ module Aws::ResilienceHub
110
110
  Aws::ResilienceHub::Endpoints::ListAlarmRecommendations.build(context)
111
111
  when :list_app_assessment_compliance_drifts
112
112
  Aws::ResilienceHub::Endpoints::ListAppAssessmentComplianceDrifts.build(context)
113
+ when :list_app_assessment_resource_drifts
114
+ Aws::ResilienceHub::Endpoints::ListAppAssessmentResourceDrifts.build(context)
113
115
  when :list_app_assessments
114
116
  Aws::ResilienceHub::Endpoints::ListAppAssessments.build(context)
115
117
  when :list_app_component_compliances
@@ -3046,6 +3046,58 @@ module Aws::ResilienceHub
3046
3046
  include Aws::Structure
3047
3047
  end
3048
3048
 
3049
+ # @!attribute [rw] assessment_arn
3050
+ # Amazon Resource Name (ARN) of the assessment. The format for this
3051
+ # ARN is:
3052
+ # arn:`partition`:resiliencehub:`region`:`account`:app-assessment/`app-id`.
3053
+ # For more information about ARNs, see [ Amazon Resource Names
3054
+ # (ARNs)][1] in the *Amazon Web Services General Reference* guide.
3055
+ #
3056
+ #
3057
+ #
3058
+ # [1]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
3059
+ # @return [String]
3060
+ #
3061
+ # @!attribute [rw] max_results
3062
+ # Indicates the maximum number of drift results to include in the
3063
+ # response. If more results exist than the specified `MaxResults`
3064
+ # value, a token is included in the response so that the remaining
3065
+ # results can be retrieved.
3066
+ # @return [Integer]
3067
+ #
3068
+ # @!attribute [rw] next_token
3069
+ # Null, or the token from a previous call to get the next set of
3070
+ # results.
3071
+ # @return [String]
3072
+ #
3073
+ # @see http://docs.aws.amazon.com/goto/WebAPI/resiliencehub-2020-04-30/ListAppAssessmentResourceDriftsRequest AWS API Documentation
3074
+ #
3075
+ class ListAppAssessmentResourceDriftsRequest < Struct.new(
3076
+ :assessment_arn,
3077
+ :max_results,
3078
+ :next_token)
3079
+ SENSITIVE = []
3080
+ include Aws::Structure
3081
+ end
3082
+
3083
+ # @!attribute [rw] next_token
3084
+ # Null, or the token from a previous call to get the next set of
3085
+ # results.
3086
+ # @return [String]
3087
+ #
3088
+ # @!attribute [rw] resource_drifts
3089
+ # Indicates all the resource drifts detected for an assessed entity.
3090
+ # @return [Array<Types::ResourceDrift>]
3091
+ #
3092
+ # @see http://docs.aws.amazon.com/goto/WebAPI/resiliencehub-2020-04-30/ListAppAssessmentResourceDriftsResponse AWS API Documentation
3093
+ #
3094
+ class ListAppAssessmentResourceDriftsResponse < Struct.new(
3095
+ :next_token,
3096
+ :resource_drifts)
3097
+ SENSITIVE = []
3098
+ include Aws::Structure
3099
+ end
3100
+
3049
3101
  # @!attribute [rw] app_arn
3050
3102
  # Amazon Resource Name (ARN) of the Resilience Hub application. The
3051
3103
  # format for this ARN is:
@@ -4129,7 +4181,7 @@ module Aws::ResilienceHub
4129
4181
  # @return [String]
4130
4182
  #
4131
4183
  # @!attribute [rw] resource_type
4132
- # The type of resource.
4184
+ # Type of resource.
4133
4185
  # @return [String]
4134
4186
  #
4135
4187
  # @!attribute [rw] source_type
@@ -5036,6 +5088,49 @@ module Aws::ResilienceHub
5036
5088
  include Aws::Structure
5037
5089
  end
5038
5090
 
5091
+ # Indicates the resources that have drifted in the current application
5092
+ # version.
5093
+ #
5094
+ # @!attribute [rw] app_arn
5095
+ # Amazon Resource Name (ARN) of the application whose resources have
5096
+ # drifted. The format for this ARN is:
5097
+ # arn:`partition`:resiliencehub:`region`:`account`:app-assessment/`app-id`.
5098
+ # For more information about ARNs, see [ Amazon Resource Names
5099
+ # (ARNs)][1] in the *Amazon Web Services General Reference* guide.
5100
+ #
5101
+ #
5102
+ #
5103
+ # [1]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
5104
+ # @return [String]
5105
+ #
5106
+ # @!attribute [rw] app_version
5107
+ # Version of the application whose resources have drifted.
5108
+ # @return [String]
5109
+ #
5110
+ # @!attribute [rw] diff_type
5111
+ # Indicates if the resource was added or removed.
5112
+ # @return [String]
5113
+ #
5114
+ # @!attribute [rw] reference_id
5115
+ # Reference identifier of the resource drift.
5116
+ # @return [String]
5117
+ #
5118
+ # @!attribute [rw] resource_identifier
5119
+ # Identifier of the drifted resource.
5120
+ # @return [Types::ResourceIdentifier]
5121
+ #
5122
+ # @see http://docs.aws.amazon.com/goto/WebAPI/resiliencehub-2020-04-30/ResourceDrift AWS API Documentation
5123
+ #
5124
+ class ResourceDrift < Struct.new(
5125
+ :app_arn,
5126
+ :app_version,
5127
+ :diff_type,
5128
+ :reference_id,
5129
+ :resource_identifier)
5130
+ SENSITIVE = []
5131
+ include Aws::Structure
5132
+ end
5133
+
5039
5134
  # Defines application resource errors.
5040
5135
  #
5041
5136
  # @!attribute [rw] logical_resource_id
@@ -5080,15 +5175,35 @@ module Aws::ResilienceHub
5080
5175
  include Aws::Structure
5081
5176
  end
5082
5177
 
5178
+ # Defines a resource identifier for the drifted resource.
5179
+ #
5180
+ # @!attribute [rw] logical_resource_id
5181
+ # Logical identifier of the drifted resource.
5182
+ # @return [Types::LogicalResourceId]
5183
+ #
5184
+ # @!attribute [rw] resource_type
5185
+ # Type of the drifted resource.
5186
+ # @return [String]
5187
+ #
5188
+ # @see http://docs.aws.amazon.com/goto/WebAPI/resiliencehub-2020-04-30/ResourceIdentifier AWS API Documentation
5189
+ #
5190
+ class ResourceIdentifier < Struct.new(
5191
+ :logical_resource_id,
5192
+ :resource_type)
5193
+ SENSITIVE = []
5194
+ include Aws::Structure
5195
+ end
5196
+
5083
5197
  # Defines a resource mapping.
5084
5198
  #
5085
5199
  # @!attribute [rw] app_registry_app_name
5086
- # The name of the application this resource is mapped to.
5200
+ # Name of the application this resource is mapped to when the
5201
+ # `mappingType` is `AppRegistryApp`.
5087
5202
  # @return [String]
5088
5203
  #
5089
5204
  # @!attribute [rw] eks_source_name
5090
5205
  # Name of the Amazon Elastic Kubernetes Service cluster and namespace
5091
- # this resource belongs to.
5206
+ # that this resource is mapped to when the `mappingType` is `EKS`.
5092
5207
  #
5093
5208
  # <note markdown="1"> This parameter accepts values in "eks-cluster/namespace" format.
5094
5209
  #
@@ -5096,32 +5211,12 @@ module Aws::ResilienceHub
5096
5211
  # @return [String]
5097
5212
  #
5098
5213
  # @!attribute [rw] logical_stack_name
5099
- # The name of the CloudFormation stack this resource is mapped to.
5214
+ # Name of the CloudFormation stack this resource is mapped to when the
5215
+ # `mappingType` is `CfnStack`.
5100
5216
  # @return [String]
5101
5217
  #
5102
5218
  # @!attribute [rw] mapping_type
5103
5219
  # Specifies the type of resource mapping.
5104
- #
5105
- # AppRegistryApp
5106
- #
5107
- # : The resource is mapped to another application. The name of the
5108
- # application is contained in the `appRegistryAppName` property.
5109
- #
5110
- # CfnStack
5111
- #
5112
- # : The resource is mapped to a CloudFormation stack. The name of the
5113
- # CloudFormation stack is contained in the `logicalStackName`
5114
- # property.
5115
- #
5116
- # Resource
5117
- #
5118
- # : The resource is mapped to another resource. The name of the
5119
- # resource is contained in the `resourceName` property.
5120
- #
5121
- # ResourceGroup
5122
- #
5123
- # : The resource is mapped to Resource Groups. The name of the
5124
- # resource group is contained in the `resourceGroupName` property.
5125
5220
  # @return [String]
5126
5221
  #
5127
5222
  # @!attribute [rw] physical_resource_id
@@ -5129,15 +5224,18 @@ module Aws::ResilienceHub
5129
5224
  # @return [Types::PhysicalResourceId]
5130
5225
  #
5131
5226
  # @!attribute [rw] resource_group_name
5132
- # Name of the resource group that the resource is mapped to.
5227
+ # Name of the Resource Groups that this resource is mapped to when the
5228
+ # `mappingType` is `ResourceGroup`.
5133
5229
  # @return [String]
5134
5230
  #
5135
5231
  # @!attribute [rw] resource_name
5136
- # Name of the resource that the resource is mapped to.
5232
+ # Name of the resource that this resource is mapped to when the
5233
+ # `mappingType` is `Resource`.
5137
5234
  # @return [String]
5138
5235
  #
5139
5236
  # @!attribute [rw] terraform_source_name
5140
- # The short name of the Terraform source.
5237
+ # Name of the Terraform source that this resource is mapped to when
5238
+ # the `mappingType` is `Terraform`.
5141
5239
  # @return [String]
5142
5240
  #
5143
5241
  # @see http://docs.aws.amazon.com/goto/WebAPI/resiliencehub-2020-04-30/ResourceMapping AWS API Documentation
@@ -5207,34 +5305,36 @@ module Aws::ResilienceHub
5207
5305
  # @!attribute [rw] excluded_count
5208
5306
  # Number of recommendations that were excluded from the assessment.
5209
5307
  #
5210
- # For example, if the `Excluded count` for Resilience Hub recommended
5211
- # Amazon CloudWatch alarms is 7, it indicates that 7 Amazon CloudWatch
5212
- # alarms are excluded from the assessment.
5308
+ # For example, if the `excludedCount` for Alarms coverage scoring
5309
+ # component is 7, it indicates that 7 Amazon CloudWatch alarms are
5310
+ # excluded from the assessment.
5213
5311
  # @return [Integer]
5214
5312
  #
5215
5313
  # @!attribute [rw] outstanding_count
5216
- # Number of issues that must be resolved to obtain the maximum
5217
- # possible score for the scoring component. For SOPs, alarms, and FIS
5218
- # experiments, these are the number of recommendations that must be
5219
- # implemented. For compliance, it is the number of Application
5220
- # Components that has breached the resiliency policy.
5221
- #
5222
- # For example, if the `Outstanding count` for Resilience Hub
5223
- # recommended Amazon CloudWatch alarms is 5, it indicates that 5
5224
- # Amazon CloudWatch alarms must be fixed to achieve the maximum
5225
- # possible score.
5314
+ # Number of recommendations that must be implemented to obtain the
5315
+ # maximum possible score for the scoring component. For SOPs, alarms,
5316
+ # and tests, these are the number of recommendations that must be
5317
+ # implemented. For compliance, these are the number of Application
5318
+ # Components that have breached the resiliency policy.
5319
+ #
5320
+ # For example, if the `outstandingCount` for Alarms coverage scoring
5321
+ # component is 5, it indicates that 5 Amazon CloudWatch alarms need to
5322
+ # be implemented to achieve the maximum possible score.
5226
5323
  # @return [Integer]
5227
5324
  #
5228
5325
  # @!attribute [rw] possible_score
5229
5326
  # Maximum possible score that can be obtained for the scoring
5230
- # component. If the `Possible score` is 20 points, it indicates the
5231
- # maximum possible score you can achieve for your application when you
5232
- # run a new assessment after implementing all the Resilience Hub
5233
- # recommendations.
5327
+ # component.
5328
+ #
5329
+ # For example, if the `possibleScore` is 20 points, it indicates the
5330
+ # maximum possible score you can achieve for the scoring component
5331
+ # when you run a new assessment after implementing all the Resilience
5332
+ # Hub recommendations.
5234
5333
  # @return [Float]
5235
5334
  #
5236
5335
  # @!attribute [rw] score
5237
- # Resiliency score of your application.
5336
+ # Resiliency score points given for the scoring component. The score
5337
+ # is always less than or equal to the `possibleScore`.
5238
5338
  # @return [Float]
5239
5339
  #
5240
5340
  # @see http://docs.aws.amazon.com/goto/WebAPI/resiliencehub-2020-04-30/ScoringComponentResiliencyScore AWS API Documentation
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-resiliencehub/customizations'
52
52
  # @!group service
53
53
  module Aws::ResilienceHub
54
54
 
55
- GEM_VERSION = '1.26.0'
55
+ GEM_VERSION = '1.27.0'
56
56
 
57
57
  end
data/sig/client.rbs CHANGED
@@ -516,6 +516,19 @@ module Aws
516
516
  ) -> _ListAppAssessmentComplianceDriftsResponseSuccess
517
517
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListAppAssessmentComplianceDriftsResponseSuccess
518
518
 
519
+ interface _ListAppAssessmentResourceDriftsResponseSuccess
520
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListAppAssessmentResourceDriftsResponse]
521
+ def next_token: () -> ::String
522
+ def resource_drifts: () -> ::Array[Types::ResourceDrift]
523
+ end
524
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ResilienceHub/Client.html#list_app_assessment_resource_drifts-instance_method
525
+ def list_app_assessment_resource_drifts: (
526
+ assessment_arn: ::String,
527
+ ?max_results: ::Integer,
528
+ ?next_token: ::String
529
+ ) -> _ListAppAssessmentResourceDriftsResponseSuccess
530
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListAppAssessmentResourceDriftsResponseSuccess
531
+
519
532
  interface _ListAppAssessmentsResponseSuccess
520
533
  include ::Seahorse::Client::_ResponseSuccess[Types::ListAppAssessmentsResponse]
521
534
  def assessment_summaries: () -> ::Array[Types::AppAssessmentSummary]
@@ -659,7 +672,7 @@ module Aws
659
672
  end
660
673
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ResilienceHub/Client.html#list_recommendation_templates-instance_method
661
674
  def list_recommendation_templates: (
662
- assessment_arn: ::String,
675
+ ?assessment_arn: ::String,
663
676
  ?max_results: ::Integer,
664
677
  ?name: ::String,
665
678
  ?next_token: ::String,
@@ -667,7 +680,7 @@ module Aws
667
680
  ?reverse_order: bool,
668
681
  ?status: Array[("Pending" | "InProgress" | "Failed" | "Success")]
669
682
  ) -> _ListRecommendationTemplatesResponseSuccess
670
- | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListRecommendationTemplatesResponseSuccess
683
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListRecommendationTemplatesResponseSuccess
671
684
 
672
685
  interface _ListResiliencyPoliciesResponseSuccess
673
686
  include ::Seahorse::Client::_ResponseSuccess[Types::ListResiliencyPoliciesResponse]
data/sig/types.rbs CHANGED
@@ -187,8 +187,8 @@ module Aws::ResilienceHub
187
187
  attr_accessor actual_value: ::Hash[("Software" | "Hardware" | "AZ" | "Region"), Types::DisruptionCompliance]
188
188
  attr_accessor app_id: ::String
189
189
  attr_accessor app_version: ::String
190
- attr_accessor diff_type: ("NotEqual")
191
- attr_accessor drift_type: ("ApplicationCompliance")
190
+ attr_accessor diff_type: ("NotEqual" | "Added" | "Removed")
191
+ attr_accessor drift_type: ("ApplicationCompliance" | "AppComponentResiliencyComplianceStatus")
192
192
  attr_accessor entity_id: ::String
193
193
  attr_accessor entity_type: ::String
194
194
  attr_accessor expected_reference_id: ::String
@@ -620,6 +620,19 @@ module Aws::ResilienceHub
620
620
  SENSITIVE: []
621
621
  end
622
622
 
623
+ class ListAppAssessmentResourceDriftsRequest
624
+ attr_accessor assessment_arn: ::String
625
+ attr_accessor max_results: ::Integer
626
+ attr_accessor next_token: ::String
627
+ SENSITIVE: []
628
+ end
629
+
630
+ class ListAppAssessmentResourceDriftsResponse
631
+ attr_accessor next_token: ::String
632
+ attr_accessor resource_drifts: ::Array[Types::ResourceDrift]
633
+ SENSITIVE: []
634
+ end
635
+
623
636
  class ListAppAssessmentsRequest
624
637
  attr_accessor app_arn: ::String
625
638
  attr_accessor assessment_name: ::String
@@ -1001,6 +1014,15 @@ module Aws::ResilienceHub
1001
1014
  SENSITIVE: []
1002
1015
  end
1003
1016
 
1017
+ class ResourceDrift
1018
+ attr_accessor app_arn: ::String
1019
+ attr_accessor app_version: ::String
1020
+ attr_accessor diff_type: ("NotEqual" | "Added" | "Removed")
1021
+ attr_accessor reference_id: ::String
1022
+ attr_accessor resource_identifier: Types::ResourceIdentifier
1023
+ SENSITIVE: []
1024
+ end
1025
+
1004
1026
  class ResourceError
1005
1027
  attr_accessor logical_resource_id: ::String
1006
1028
  attr_accessor physical_resource_id: ::String
@@ -1014,6 +1036,12 @@ module Aws::ResilienceHub
1014
1036
  SENSITIVE: []
1015
1037
  end
1016
1038
 
1039
+ class ResourceIdentifier
1040
+ attr_accessor logical_resource_id: Types::LogicalResourceId
1041
+ attr_accessor resource_type: ::String
1042
+ SENSITIVE: []
1043
+ end
1044
+
1017
1045
  class ResourceMapping
1018
1046
  attr_accessor app_registry_app_name: ::String
1019
1047
  attr_accessor eks_source_name: ::String
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-resiliencehub
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.26.0
4
+ version: 1.27.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: 2024-04-25 00:00:00.000000000 Z
11
+ date: 2024-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core