aws-sdk-resiliencehub 1.26.0 → 1.28.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-resiliencehub/client.rb +71 -7
- data/lib/aws-sdk-resiliencehub/client_api.rb +47 -1
- data/lib/aws-sdk-resiliencehub/endpoints.rb +14 -0
- data/lib/aws-sdk-resiliencehub/plugins/endpoints.rb +2 -0
- data/lib/aws-sdk-resiliencehub/types.rb +146 -46
- data/lib/aws-sdk-resiliencehub.rb +1 -1
- data/sig/client.rbs +15 -2
- data/sig/types.rbs +30 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3684ab0552d9f587f82ce25e31fcced3ac36511c8c95519827bcbe2bfe53ec47
|
4
|
+
data.tar.gz: 6a990b4290fab2259073829ba0fe735a2b97fa79a02582bbade3593c8225a6c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a52cf71e44b150f14d4c1d4b8d0583b2409face8ee71baf7b5997070183b18bf5153f74245909d9c54dd91d1ed15a752eb533019dae21408001b95d8d3a62083
|
7
|
+
data.tar.gz: 4cdb8fc62f7086c7bef214deb72c96794a6fac9928b8a720c050e3e57f0eb33337235988c0100b5e3afd41d9c079f47c2ceec2513dcd919d290c4714f84ba4c2
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.28.0 (2024-05-13)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.27.0 (2024-05-07)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* 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.
|
13
|
+
|
4
14
|
1.26.0 (2024-04-25)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.28.0
|
@@ -301,8 +301,9 @@ module Aws::ResilienceHub
|
|
301
301
|
#
|
302
302
|
# @option options [String] :sdk_ua_app_id
|
303
303
|
# A unique and opaque application ID that is appended to the
|
304
|
-
# User-Agent header as app
|
305
|
-
# maximum length of 50.
|
304
|
+
# User-Agent header as app/sdk_ua_app_id. It should have a
|
305
|
+
# maximum length of 50. This variable is sourced from environment
|
306
|
+
# variable AWS_SDK_UA_APP_ID or the shared config profile attribute sdk_ua_app_id.
|
306
307
|
#
|
307
308
|
# @option options [String] :secret_access_key
|
308
309
|
#
|
@@ -2313,8 +2314,8 @@ module Aws::ResilienceHub
|
|
2313
2314
|
# resp.compliance_drifts[0].actual_value["DisruptionType"].rto_reference_id #=> String
|
2314
2315
|
# resp.compliance_drifts[0].app_id #=> String
|
2315
2316
|
# 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"
|
2317
|
+
# resp.compliance_drifts[0].diff_type #=> String, one of "NotEqual", "Added", "Removed"
|
2318
|
+
# resp.compliance_drifts[0].drift_type #=> String, one of "ApplicationCompliance", "AppComponentResiliencyComplianceStatus"
|
2318
2319
|
# resp.compliance_drifts[0].entity_id #=> String
|
2319
2320
|
# resp.compliance_drifts[0].entity_type #=> String
|
2320
2321
|
# resp.compliance_drifts[0].expected_reference_id #=> String
|
@@ -2340,6 +2341,69 @@ module Aws::ResilienceHub
|
|
2340
2341
|
req.send_request(options)
|
2341
2342
|
end
|
2342
2343
|
|
2344
|
+
# Indicates the list of resource drifts that were detected while running
|
2345
|
+
# an assessment.
|
2346
|
+
#
|
2347
|
+
# @option params [required, String] :assessment_arn
|
2348
|
+
# Amazon Resource Name (ARN) of the assessment. The format for this ARN
|
2349
|
+
# is:
|
2350
|
+
# arn:`partition`:resiliencehub:`region`:`account`:app-assessment/`app-id`.
|
2351
|
+
# For more information about ARNs, see [ Amazon Resource Names
|
2352
|
+
# (ARNs)][1] in the *Amazon Web Services General Reference* guide.
|
2353
|
+
#
|
2354
|
+
#
|
2355
|
+
#
|
2356
|
+
# [1]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
|
2357
|
+
#
|
2358
|
+
# @option params [Integer] :max_results
|
2359
|
+
# Indicates the maximum number of drift results to include in the
|
2360
|
+
# response. If more results exist than the specified `MaxResults` value,
|
2361
|
+
# a token is included in the response so that the remaining results can
|
2362
|
+
# be retrieved.
|
2363
|
+
#
|
2364
|
+
# @option params [String] :next_token
|
2365
|
+
# Null, or the token from a previous call to get the next set of
|
2366
|
+
# results.
|
2367
|
+
#
|
2368
|
+
# @return [Types::ListAppAssessmentResourceDriftsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2369
|
+
#
|
2370
|
+
# * {Types::ListAppAssessmentResourceDriftsResponse#next_token #next_token} => String
|
2371
|
+
# * {Types::ListAppAssessmentResourceDriftsResponse#resource_drifts #resource_drifts} => Array<Types::ResourceDrift>
|
2372
|
+
#
|
2373
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
2374
|
+
#
|
2375
|
+
# @example Request syntax with placeholder values
|
2376
|
+
#
|
2377
|
+
# resp = client.list_app_assessment_resource_drifts({
|
2378
|
+
# assessment_arn: "Arn", # required
|
2379
|
+
# max_results: 1,
|
2380
|
+
# next_token: "NextToken",
|
2381
|
+
# })
|
2382
|
+
#
|
2383
|
+
# @example Response structure
|
2384
|
+
#
|
2385
|
+
# resp.next_token #=> String
|
2386
|
+
# resp.resource_drifts #=> Array
|
2387
|
+
# resp.resource_drifts[0].app_arn #=> String
|
2388
|
+
# resp.resource_drifts[0].app_version #=> String
|
2389
|
+
# resp.resource_drifts[0].diff_type #=> String, one of "NotEqual", "Added", "Removed"
|
2390
|
+
# resp.resource_drifts[0].reference_id #=> String
|
2391
|
+
# resp.resource_drifts[0].resource_identifier.logical_resource_id.eks_source_name #=> String
|
2392
|
+
# resp.resource_drifts[0].resource_identifier.logical_resource_id.identifier #=> String
|
2393
|
+
# resp.resource_drifts[0].resource_identifier.logical_resource_id.logical_stack_name #=> String
|
2394
|
+
# resp.resource_drifts[0].resource_identifier.logical_resource_id.resource_group_name #=> String
|
2395
|
+
# resp.resource_drifts[0].resource_identifier.logical_resource_id.terraform_source_name #=> String
|
2396
|
+
# resp.resource_drifts[0].resource_identifier.resource_type #=> String
|
2397
|
+
#
|
2398
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/resiliencehub-2020-04-30/ListAppAssessmentResourceDrifts AWS API Documentation
|
2399
|
+
#
|
2400
|
+
# @overload list_app_assessment_resource_drifts(params = {})
|
2401
|
+
# @param [Hash] params ({})
|
2402
|
+
def list_app_assessment_resource_drifts(params = {}, options = {})
|
2403
|
+
req = build_request(:list_app_assessment_resource_drifts, params)
|
2404
|
+
req.send_request(options)
|
2405
|
+
end
|
2406
|
+
|
2343
2407
|
# Lists the assessments for an Resilience Hub application. You can use
|
2344
2408
|
# request parameters to refine the results for the response object.
|
2345
2409
|
#
|
@@ -3033,7 +3097,7 @@ module Aws::ResilienceHub
|
|
3033
3097
|
# Lists the recommendation templates for the Resilience Hub
|
3034
3098
|
# applications.
|
3035
3099
|
#
|
3036
|
-
# @option params [
|
3100
|
+
# @option params [String] :assessment_arn
|
3037
3101
|
# Amazon Resource Name (ARN) of the assessment. The format for this ARN
|
3038
3102
|
# is:
|
3039
3103
|
# arn:`partition`:resiliencehub:`region`:`account`:app-assessment/`app-id`.
|
@@ -3076,7 +3140,7 @@ module Aws::ResilienceHub
|
|
3076
3140
|
# @example Request syntax with placeholder values
|
3077
3141
|
#
|
3078
3142
|
# resp = client.list_recommendation_templates({
|
3079
|
-
# assessment_arn: "Arn",
|
3143
|
+
# assessment_arn: "Arn",
|
3080
3144
|
# max_results: 1,
|
3081
3145
|
# name: "EntityName",
|
3082
3146
|
# next_token: "NextToken",
|
@@ -4553,7 +4617,7 @@ module Aws::ResilienceHub
|
|
4553
4617
|
params: params,
|
4554
4618
|
config: config)
|
4555
4619
|
context[:gem_name] = 'aws-sdk-resiliencehub'
|
4556
|
-
context[:gem_version] = '1.
|
4620
|
+
context[:gem_version] = '1.28.0'
|
4557
4621
|
Seahorse::Client::Request.new(handlers, context)
|
4558
4622
|
end
|
4559
4623
|
|
@@ -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,
|
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
|
-
#
|
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
|
-
#
|
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
|
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
|
-
#
|
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
|
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
|
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
|
-
#
|
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 `
|
5211
|
-
#
|
5212
|
-
#
|
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
|
5217
|
-
# possible score for the scoring component. For SOPs, alarms,
|
5218
|
-
#
|
5219
|
-
# implemented. For compliance,
|
5220
|
-
# Components that
|
5221
|
-
#
|
5222
|
-
# For example, if the `
|
5223
|
-
#
|
5224
|
-
#
|
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.
|
5231
|
-
#
|
5232
|
-
#
|
5233
|
-
#
|
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
|
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
|
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.
|
4
|
+
version: 1.28.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-
|
11
|
+
date: 2024-05-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|