aws-sdk-resiliencehub 1.20.0 → 1.22.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -146,6 +146,7 @@ module Aws::ResilienceHub
146
146
  ImportResourcesToDraftAppVersionRequest = Shapes::StructureShape.new(name: 'ImportResourcesToDraftAppVersionRequest')
147
147
  ImportResourcesToDraftAppVersionResponse = Shapes::StructureShape.new(name: 'ImportResourcesToDraftAppVersionResponse')
148
148
  Integer = Shapes::IntegerShape.new(name: 'Integer')
149
+ IntegerOptional = Shapes::IntegerShape.new(name: 'IntegerOptional')
149
150
  InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
150
151
  ListAlarmRecommendationsRequest = Shapes::StructureShape.new(name: 'ListAlarmRecommendationsRequest')
151
152
  ListAlarmRecommendationsResponse = Shapes::StructureShape.new(name: 'ListAlarmRecommendationsResponse')
@@ -184,6 +185,7 @@ module Aws::ResilienceHub
184
185
  ListUnsupportedAppVersionResourcesRequest = Shapes::StructureShape.new(name: 'ListUnsupportedAppVersionResourcesRequest')
185
186
  ListUnsupportedAppVersionResourcesResponse = Shapes::StructureShape.new(name: 'ListUnsupportedAppVersionResourcesResponse')
186
187
  LogicalResourceId = Shapes::StructureShape.new(name: 'LogicalResourceId')
188
+ Long = Shapes::IntegerShape.new(name: 'Long')
187
189
  LongOptional = Shapes::IntegerShape.new(name: 'LongOptional')
188
190
  MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
189
191
  NextToken = Shapes::StringShape.new(name: 'NextToken')
@@ -203,6 +205,7 @@ module Aws::ResilienceHub
203
205
  RecommendationIdList = Shapes::ListShape.new(name: 'RecommendationIdList')
204
206
  RecommendationItem = Shapes::StructureShape.new(name: 'RecommendationItem')
205
207
  RecommendationItemList = Shapes::ListShape.new(name: 'RecommendationItemList')
208
+ RecommendationStatus = Shapes::StringShape.new(name: 'RecommendationStatus')
206
209
  RecommendationTemplate = Shapes::StructureShape.new(name: 'RecommendationTemplate')
207
210
  RecommendationTemplateList = Shapes::ListShape.new(name: 'RecommendationTemplateList')
208
211
  RecommendationTemplateStatus = Shapes::StringShape.new(name: 'RecommendationTemplateStatus')
@@ -215,6 +218,7 @@ module Aws::ResilienceHub
215
218
  ResiliencyPolicy = Shapes::StructureShape.new(name: 'ResiliencyPolicy')
216
219
  ResiliencyPolicyTier = Shapes::StringShape.new(name: 'ResiliencyPolicyTier')
217
220
  ResiliencyScore = Shapes::StructureShape.new(name: 'ResiliencyScore')
221
+ ResiliencyScoreType = Shapes::StringShape.new(name: 'ResiliencyScoreType')
218
222
  ResolveAppVersionResourcesRequest = Shapes::StructureShape.new(name: 'ResolveAppVersionResourcesRequest')
219
223
  ResolveAppVersionResourcesResponse = Shapes::StructureShape.new(name: 'ResolveAppVersionResourcesResponse')
220
224
  ResourceError = Shapes::StructureShape.new(name: 'ResourceError')
@@ -233,6 +237,8 @@ module Aws::ResilienceHub
233
237
  RetryAfterSeconds = Shapes::IntegerShape.new(name: 'RetryAfterSeconds')
234
238
  S3Location = Shapes::StructureShape.new(name: 'S3Location')
235
239
  S3Url = Shapes::StringShape.new(name: 'S3Url')
240
+ ScoringComponentResiliencyScore = Shapes::StructureShape.new(name: 'ScoringComponentResiliencyScore')
241
+ ScoringComponentResiliencyScores = Shapes::MapShape.new(name: 'ScoringComponentResiliencyScores')
236
242
  Seconds = Shapes::IntegerShape.new(name: 'Seconds')
237
243
  ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
238
244
  SopRecommendation = Shapes::StructureShape.new(name: 'SopRecommendation')
@@ -307,6 +313,7 @@ module Aws::ResilienceHub
307
313
  AlarmRecommendation.add_member(:name, Shapes::ShapeRef.new(shape: String500, required: true, location_name: "name"))
308
314
  AlarmRecommendation.add_member(:prerequisite, Shapes::ShapeRef.new(shape: String500, location_name: "prerequisite"))
309
315
  AlarmRecommendation.add_member(:recommendation_id, Shapes::ShapeRef.new(shape: Uuid, required: true, location_name: "recommendationId"))
316
+ AlarmRecommendation.add_member(:recommendation_status, Shapes::ShapeRef.new(shape: RecommendationStatus, location_name: "recommendationStatus"))
310
317
  AlarmRecommendation.add_member(:reference_id, Shapes::ShapeRef.new(shape: SpecReferenceId, required: true, location_name: "referenceId"))
311
318
  AlarmRecommendation.add_member(:type, Shapes::ShapeRef.new(shape: AlarmType, required: true, location_name: "type"))
312
319
  AlarmRecommendation.struct_class = Types::AlarmRecommendation
@@ -329,6 +336,8 @@ module Aws::ResilienceHub
329
336
  App.add_member(:permission_model, Shapes::ShapeRef.new(shape: PermissionModel, location_name: "permissionModel"))
330
337
  App.add_member(:policy_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "policyArn"))
331
338
  App.add_member(:resiliency_score, Shapes::ShapeRef.new(shape: Double, location_name: "resiliencyScore"))
339
+ App.add_member(:rpo_in_secs, Shapes::ShapeRef.new(shape: IntegerOptional, location_name: "rpoInSecs"))
340
+ App.add_member(:rto_in_secs, Shapes::ShapeRef.new(shape: IntegerOptional, location_name: "rtoInSecs"))
332
341
  App.add_member(:status, Shapes::ShapeRef.new(shape: AppStatusType, location_name: "status"))
333
342
  App.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
334
343
  App.struct_class = Types::App
@@ -405,8 +414,11 @@ module Aws::ResilienceHub
405
414
  AppSummary.add_member(:creation_time, Shapes::ShapeRef.new(shape: TimeStamp, required: true, location_name: "creationTime"))
406
415
  AppSummary.add_member(:description, Shapes::ShapeRef.new(shape: EntityDescription, location_name: "description"))
407
416
  AppSummary.add_member(:drift_status, Shapes::ShapeRef.new(shape: AppDriftStatusType, location_name: "driftStatus"))
417
+ AppSummary.add_member(:last_app_compliance_evaluation_time, Shapes::ShapeRef.new(shape: TimeStamp, location_name: "lastAppComplianceEvaluationTime"))
408
418
  AppSummary.add_member(:name, Shapes::ShapeRef.new(shape: EntityName, required: true, location_name: "name"))
409
419
  AppSummary.add_member(:resiliency_score, Shapes::ShapeRef.new(shape: Double, location_name: "resiliencyScore"))
420
+ AppSummary.add_member(:rpo_in_secs, Shapes::ShapeRef.new(shape: IntegerOptional, location_name: "rpoInSecs"))
421
+ AppSummary.add_member(:rto_in_secs, Shapes::ShapeRef.new(shape: IntegerOptional, location_name: "rtoInSecs"))
410
422
  AppSummary.add_member(:status, Shapes::ShapeRef.new(shape: AppStatusType, location_name: "status"))
411
423
  AppSummary.struct_class = Types::AppSummary
412
424
 
@@ -883,9 +895,12 @@ module Aws::ResilienceHub
883
895
  ListAppVersionsResponse.struct_class = Types::ListAppVersionsResponse
884
896
 
885
897
  ListAppsRequest.add_member(:app_arn, Shapes::ShapeRef.new(shape: Arn, location: "querystring", location_name: "appArn"))
898
+ ListAppsRequest.add_member(:from_last_assessment_time, Shapes::ShapeRef.new(shape: TimeStamp, location: "querystring", location_name: "fromLastAssessmentTime"))
886
899
  ListAppsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
887
900
  ListAppsRequest.add_member(:name, Shapes::ShapeRef.new(shape: EntityName, location: "querystring", location_name: "name"))
888
901
  ListAppsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "nextToken"))
902
+ ListAppsRequest.add_member(:reverse_order, Shapes::ShapeRef.new(shape: BooleanOptional, location: "querystring", location_name: "reverseOrder"))
903
+ ListAppsRequest.add_member(:to_last_assessment_time, Shapes::ShapeRef.new(shape: TimeStamp, location: "querystring", location_name: "toLastAssessmentTime"))
889
904
  ListAppsRequest.struct_class = Types::ListAppsRequest
890
905
 
891
906
  ListAppsResponse.add_member(:app_summaries, Shapes::ShapeRef.new(shape: AppSummaryList, required: true, location_name: "appSummaries"))
@@ -1077,6 +1092,7 @@ module Aws::ResilienceHub
1077
1092
  ResiliencyPolicy.add_member(:tier, Shapes::ShapeRef.new(shape: ResiliencyPolicyTier, location_name: "tier"))
1078
1093
  ResiliencyPolicy.struct_class = Types::ResiliencyPolicy
1079
1094
 
1095
+ ResiliencyScore.add_member(:component_score, Shapes::ShapeRef.new(shape: ScoringComponentResiliencyScores, location_name: "componentScore"))
1080
1096
  ResiliencyScore.add_member(:disruption_score, Shapes::ShapeRef.new(shape: DisruptionResiliencyScore, required: true, location_name: "disruptionScore"))
1081
1097
  ResiliencyScore.add_member(:score, Shapes::ShapeRef.new(shape: Double, required: true, location_name: "score"))
1082
1098
  ResiliencyScore.struct_class = Types::ResiliencyScore
@@ -1123,6 +1139,15 @@ module Aws::ResilienceHub
1123
1139
  S3Location.add_member(:prefix, Shapes::ShapeRef.new(shape: String500, location_name: "prefix"))
1124
1140
  S3Location.struct_class = Types::S3Location
1125
1141
 
1142
+ ScoringComponentResiliencyScore.add_member(:excluded_count, Shapes::ShapeRef.new(shape: Long, location_name: "excludedCount"))
1143
+ ScoringComponentResiliencyScore.add_member(:outstanding_count, Shapes::ShapeRef.new(shape: Long, location_name: "outstandingCount"))
1144
+ ScoringComponentResiliencyScore.add_member(:possible_score, Shapes::ShapeRef.new(shape: Double, location_name: "possibleScore"))
1145
+ ScoringComponentResiliencyScore.add_member(:score, Shapes::ShapeRef.new(shape: Double, location_name: "score"))
1146
+ ScoringComponentResiliencyScore.struct_class = Types::ScoringComponentResiliencyScore
1147
+
1148
+ ScoringComponentResiliencyScores.key = Shapes::ShapeRef.new(shape: ResiliencyScoreType)
1149
+ ScoringComponentResiliencyScores.value = Shapes::ShapeRef.new(shape: ScoringComponentResiliencyScore)
1150
+
1126
1151
  ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String500, location_name: "message"))
1127
1152
  ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
1128
1153
 
@@ -1132,6 +1157,7 @@ module Aws::ResilienceHub
1132
1157
  SopRecommendation.add_member(:name, Shapes::ShapeRef.new(shape: DocumentName, location_name: "name"))
1133
1158
  SopRecommendation.add_member(:prerequisite, Shapes::ShapeRef.new(shape: String500, location_name: "prerequisite"))
1134
1159
  SopRecommendation.add_member(:recommendation_id, Shapes::ShapeRef.new(shape: Uuid, required: true, location_name: "recommendationId"))
1160
+ SopRecommendation.add_member(:recommendation_status, Shapes::ShapeRef.new(shape: RecommendationStatus, location_name: "recommendationStatus"))
1135
1161
  SopRecommendation.add_member(:reference_id, Shapes::ShapeRef.new(shape: SpecReferenceId, required: true, location_name: "referenceId"))
1136
1162
  SopRecommendation.add_member(:service_type, Shapes::ShapeRef.new(shape: SopServiceType, required: true, location_name: "serviceType"))
1137
1163
  SopRecommendation.struct_class = Types::SopRecommendation
@@ -1176,6 +1202,7 @@ module Aws::ResilienceHub
1176
1202
  TestRecommendation.add_member(:name, Shapes::ShapeRef.new(shape: DocumentName, location_name: "name"))
1177
1203
  TestRecommendation.add_member(:prerequisite, Shapes::ShapeRef.new(shape: String500, location_name: "prerequisite"))
1178
1204
  TestRecommendation.add_member(:recommendation_id, Shapes::ShapeRef.new(shape: Uuid, location_name: "recommendationId"))
1205
+ TestRecommendation.add_member(:recommendation_status, Shapes::ShapeRef.new(shape: RecommendationStatus, location_name: "recommendationStatus"))
1179
1206
  TestRecommendation.add_member(:reference_id, Shapes::ShapeRef.new(shape: SpecReferenceId, required: true, location_name: "referenceId"))
1180
1207
  TestRecommendation.add_member(:risk, Shapes::ShapeRef.new(shape: TestRisk, location_name: "risk"))
1181
1208
  TestRecommendation.add_member(:type, Shapes::ShapeRef.new(shape: TestType, location_name: "type"))
@@ -32,7 +32,7 @@ module Aws::ResilienceHub
32
32
  raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
33
  end
34
34
  if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
35
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
+ if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
36
36
  return Aws::Endpoints::Endpoint.new(url: "https://resiliencehub-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
37
37
  end
38
38
  raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"