aws-sdk-resiliencehub 1.25.0 → 1.27.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5d7cc560022271fe09d0de7d9917e809b08ff2eb6d2e4235d4b10d48107013de
4
- data.tar.gz: 17c3b4a8398a67fb342cee0db6dab89c9ecd61b114b99903c37161bffdbe488f
3
+ metadata.gz: eab265ce5f21c5686951ecf3316bdc66053ec89ad6c75e6a6627277483d29add
4
+ data.tar.gz: d34f86d4c2ebdceb631d5f9799abc467fbcb97032b8f8edf5bc0089f3bf7cfa6
5
5
  SHA512:
6
- metadata.gz: 426a97f8bbfd7712d082f13b8e606d4addc091f4af6f2638d989527daf247b3ca66bc1dc4292cffac0604a1a8ceac5120fedc43f646ce16da164794cdee7f2cd
7
- data.tar.gz: 0a79526220352be40d111ae209d3e3dc7ea83ed94f68e7171c87ba646c2d7aeec9f679f168f30fbe9edde896717369e7f664d2eee210a1aef0ff083dec2c5283
6
+ metadata.gz: 638e59047cb736bd05a4779d9f2026fc5bedb2d275ac1216ce39b768c5fcc008e5ad55d6950e31c64efd427e0b558725c7985a9249aef8b1f010e79d3fe89de1
7
+ data.tar.gz: ee589977cc440c5b7898307d57cd601213df507deae15ca5936137b2445b42ba973a4787c439a942a0b8b41a9d4d3104f9e8e1b1f225998bfcda633aee56d16b
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
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
+
9
+ 1.26.0 (2024-04-25)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.25.0 (2024-01-26)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.25.0
1
+ 1.27.0
@@ -22,6 +22,7 @@ require 'aws-sdk-core/plugins/endpoint_pattern.rb'
22
22
  require 'aws-sdk-core/plugins/response_paging.rb'
23
23
  require 'aws-sdk-core/plugins/stub_responses.rb'
24
24
  require 'aws-sdk-core/plugins/idempotency_token.rb'
25
+ require 'aws-sdk-core/plugins/invocation_id.rb'
25
26
  require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
26
27
  require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
27
28
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
@@ -72,6 +73,7 @@ module Aws::ResilienceHub
72
73
  add_plugin(Aws::Plugins::ResponsePaging)
73
74
  add_plugin(Aws::Plugins::StubResponses)
74
75
  add_plugin(Aws::Plugins::IdempotencyToken)
76
+ add_plugin(Aws::Plugins::InvocationId)
75
77
  add_plugin(Aws::Plugins::JsonvalueConverter)
76
78
  add_plugin(Aws::Plugins::ClientMetricsPlugin)
77
79
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
@@ -196,10 +198,17 @@ module Aws::ResilienceHub
196
198
  # When set to 'true' the request body will not be compressed
197
199
  # for supported operations.
198
200
  #
199
- # @option options [String] :endpoint
200
- # The client endpoint is normally constructed from the `:region`
201
- # option. You should only configure an `:endpoint` when connecting
202
- # to test or custom endpoints. This should be a valid HTTP(S) URI.
201
+ # @option options [String, URI::HTTPS, URI::HTTP] :endpoint
202
+ # Normally you should not configure the `:endpoint` option
203
+ # directly. This is normally constructed from the `:region`
204
+ # option. Configuring `:endpoint` is normally reserved for
205
+ # connecting to test or custom endpoints. The endpoint should
206
+ # be a URI formatted like:
207
+ #
208
+ # 'http://example.com'
209
+ # 'https://example.com'
210
+ # 'http://example.com:123'
211
+ #
203
212
  #
204
213
  # @option options [Integer] :endpoint_cache_max_entries (1000)
205
214
  # Used for the maximum size limit of the LRU cache storing endpoints data
@@ -337,50 +346,65 @@ module Aws::ResilienceHub
337
346
  # @option options [Aws::ResilienceHub::EndpointProvider] :endpoint_provider
338
347
  # The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::ResilienceHub::EndpointParameters`
339
348
  #
340
- # @option options [URI::HTTP,String] :http_proxy A proxy to send
341
- # requests through. Formatted like 'http://proxy.com:123'.
342
- #
343
- # @option options [Float] :http_open_timeout (15) The number of
344
- # seconds to wait when opening a HTTP session before raising a
345
- # `Timeout::Error`.
346
- #
347
- # @option options [Float] :http_read_timeout (60) The default
348
- # number of seconds to wait for response data. This value can
349
- # safely be set per-request on the session.
350
- #
351
- # @option options [Float] :http_idle_timeout (5) The number of
352
- # seconds a connection is allowed to sit idle before it is
353
- # considered stale. Stale connections are closed and removed
354
- # from the pool before making a request.
355
- #
356
- # @option options [Float] :http_continue_timeout (1) The number of
357
- # seconds to wait for a 100-continue response before sending the
358
- # request body. This option has no effect unless the request has
359
- # "Expect" header set to "100-continue". Defaults to `nil` which
360
- # disables this behaviour. This value can safely be set per
361
- # request on the session.
362
- #
363
- # @option options [Float] :ssl_timeout (nil) Sets the SSL timeout
364
- # in seconds.
365
- #
366
- # @option options [Boolean] :http_wire_trace (false) When `true`,
367
- # HTTP debug output will be sent to the `:logger`.
349
+ # @option options [Float] :http_continue_timeout (1)
350
+ # The number of seconds to wait for a 100-continue response before sending the
351
+ # request body. This option has no effect unless the request has "Expect"
352
+ # header set to "100-continue". Defaults to `nil` which disables this
353
+ # behaviour. This value can safely be set per request on the session.
354
+ #
355
+ # @option options [Float] :http_idle_timeout (5)
356
+ # The number of seconds a connection is allowed to sit idle before it
357
+ # is considered stale. Stale connections are closed and removed from the
358
+ # pool before making a request.
359
+ #
360
+ # @option options [Float] :http_open_timeout (15)
361
+ # The default number of seconds to wait for response data.
362
+ # This value can safely be set per-request on the session.
363
+ #
364
+ # @option options [URI::HTTP,String] :http_proxy
365
+ # A proxy to send requests through. Formatted like 'http://proxy.com:123'.
366
+ #
367
+ # @option options [Float] :http_read_timeout (60)
368
+ # The default number of seconds to wait for response data.
369
+ # This value can safely be set per-request on the session.
370
+ #
371
+ # @option options [Boolean] :http_wire_trace (false)
372
+ # When `true`, HTTP debug output will be sent to the `:logger`.
373
+ #
374
+ # @option options [Proc] :on_chunk_received
375
+ # When a Proc object is provided, it will be used as callback when each chunk
376
+ # of the response body is received. It provides three arguments: the chunk,
377
+ # the number of bytes received, and the total number of
378
+ # bytes in the response (or nil if the server did not send a `content-length`).
379
+ #
380
+ # @option options [Proc] :on_chunk_sent
381
+ # When a Proc object is provided, it will be used as callback when each chunk
382
+ # of the request body is sent. It provides three arguments: the chunk,
383
+ # the number of bytes read from the body, and the total number of
384
+ # bytes in the body.
385
+ #
386
+ # @option options [Boolean] :raise_response_errors (true)
387
+ # When `true`, response errors are raised.
388
+ #
389
+ # @option options [String] :ssl_ca_bundle
390
+ # Full path to the SSL certificate authority bundle file that should be used when
391
+ # verifying peer certificates. If you do not pass `:ssl_ca_bundle` or
392
+ # `:ssl_ca_directory` the the system default will be used if available.
393
+ #
394
+ # @option options [String] :ssl_ca_directory
395
+ # Full path of the directory that contains the unbundled SSL certificate
396
+ # authority files for verifying peer certificates. If you do
397
+ # not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the system
398
+ # default will be used if available.
368
399
  #
369
- # @option options [Boolean] :ssl_verify_peer (true) When `true`,
370
- # SSL peer certificates are verified when establishing a
371
- # connection.
400
+ # @option options [String] :ssl_ca_store
401
+ # Sets the X509::Store to verify peer certificate.
372
402
  #
373
- # @option options [String] :ssl_ca_bundle Full path to the SSL
374
- # certificate authority bundle file that should be used when
375
- # verifying peer certificates. If you do not pass
376
- # `:ssl_ca_bundle` or `:ssl_ca_directory` the the system default
377
- # will be used if available.
403
+ # @option options [Float] :ssl_timeout
404
+ # Sets the SSL timeout in seconds
378
405
  #
379
- # @option options [String] :ssl_ca_directory Full path of the
380
- # directory that contains the unbundled SSL certificate
381
- # authority files for verifying peer certificates. If you do
382
- # not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the
383
- # system default will be used if available.
406
+ # @option options [Boolean] :ssl_verify_peer (true)
407
+ # When `true`, SSL peer certificates are verified when establishing a connection.
384
408
  #
385
409
  def initialize(*args)
386
410
  super
@@ -2289,8 +2313,8 @@ module Aws::ResilienceHub
2289
2313
  # resp.compliance_drifts[0].actual_value["DisruptionType"].rto_reference_id #=> String
2290
2314
  # resp.compliance_drifts[0].app_id #=> String
2291
2315
  # resp.compliance_drifts[0].app_version #=> String
2292
- # resp.compliance_drifts[0].diff_type #=> String, one of "NotEqual"
2293
- # 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"
2294
2318
  # resp.compliance_drifts[0].entity_id #=> String
2295
2319
  # resp.compliance_drifts[0].entity_type #=> String
2296
2320
  # resp.compliance_drifts[0].expected_reference_id #=> String
@@ -2316,6 +2340,69 @@ module Aws::ResilienceHub
2316
2340
  req.send_request(options)
2317
2341
  end
2318
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
+
2319
2406
  # Lists the assessments for an Resilience Hub application. You can use
2320
2407
  # request parameters to refine the results for the response object.
2321
2408
  #
@@ -3009,7 +3096,7 @@ module Aws::ResilienceHub
3009
3096
  # Lists the recommendation templates for the Resilience Hub
3010
3097
  # applications.
3011
3098
  #
3012
- # @option params [required, String] :assessment_arn
3099
+ # @option params [String] :assessment_arn
3013
3100
  # Amazon Resource Name (ARN) of the assessment. The format for this ARN
3014
3101
  # is:
3015
3102
  # arn:`partition`:resiliencehub:`region`:`account`:app-assessment/`app-id`.
@@ -3052,7 +3139,7 @@ module Aws::ResilienceHub
3052
3139
  # @example Request syntax with placeholder values
3053
3140
  #
3054
3141
  # resp = client.list_recommendation_templates({
3055
- # assessment_arn: "Arn", # required
3142
+ # assessment_arn: "Arn",
3056
3143
  # max_results: 1,
3057
3144
  # name: "EntityName",
3058
3145
  # next_token: "NextToken",
@@ -4529,7 +4616,7 @@ module Aws::ResilienceHub
4529
4616
  params: params,
4530
4617
  config: config)
4531
4618
  context[:gem_name] = 'aws-sdk-resiliencehub'
4532
- context[:gem_version] = '1.25.0'
4619
+ context[:gem_version] = '1.27.0'
4533
4620
  Seahorse::Client::Request.new(handlers, context)
4534
4621
  end
4535
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.25.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.25.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-01-26 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
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.191.0
22
+ version: 3.193.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.191.0
32
+ version: 3.193.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement