Skip to content

Commit

Permalink
feat(client-resiliencehub): AWS Resilience Hub now integrates with th…
Browse files Browse the repository at this point in the history
…e myApplications platform, enabling customers to easily assess the resilience of applications defined in myApplications. The new Resiliency widget provides visibility into application resilience and actionable recommendations for improvement.
  • Loading branch information
awstools committed Oct 15, 2024
1 parent bc971c9 commit d4a0fb6
Show file tree
Hide file tree
Showing 45 changed files with 1,150 additions and 829 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ export interface AddDraftAppVersionResourceMappingsCommandOutput
* logicalStackName: "STRING_VALUE",
* appRegistryAppName: "STRING_VALUE",
* resourceGroupName: "STRING_VALUE",
* mappingType: "STRING_VALUE", // required
* mappingType: "CfnStack" || "Resource" || "AppRegistryApp" || "ResourceGroup" || "Terraform" || "EKS", // required
* physicalResourceId: { // PhysicalResourceId
* identifier: "STRING_VALUE", // required
* type: "STRING_VALUE", // required
* type: "Arn" || "Native", // required
* awsRegion: "STRING_VALUE",
* awsAccountId: "STRING_VALUE",
* },
Expand All @@ -79,10 +79,10 @@ export interface AddDraftAppVersionResourceMappingsCommandOutput
* // logicalStackName: "STRING_VALUE",
* // appRegistryAppName: "STRING_VALUE",
* // resourceGroupName: "STRING_VALUE",
* // mappingType: "STRING_VALUE", // required
* // mappingType: "CfnStack" || "Resource" || "AppRegistryApp" || "ResourceGroup" || "Terraform" || "EKS", // required
* // physicalResourceId: { // PhysicalResourceId
* // identifier: "STRING_VALUE", // required
* // type: "STRING_VALUE", // required
* // type: "Arn" || "Native", // required
* // awsRegion: "STRING_VALUE",
* // awsAccountId: "STRING_VALUE",
* // },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export interface BatchUpdateRecommendationStatusCommandOutput
* targetRegion: "STRING_VALUE",
* },
* excluded: true || false, // required
* excludeReason: "STRING_VALUE",
* excludeReason: "AlreadyImplemented" || "NotRelevant" || "ComplexityOfImplementation",
* },
* ],
* };
Expand All @@ -70,7 +70,7 @@ export interface BatchUpdateRecommendationStatusCommandOutput
* // targetRegion: "STRING_VALUE",
* // },
* // excluded: true || false, // required
* // excludeReason: "STRING_VALUE",
* // excludeReason: "AlreadyImplemented" || "NotRelevant" || "ComplexityOfImplementation",
* // },
* // ],
* // failedEntries: [ // BatchUpdateRecommendationStatusFailedEntries // required
Expand Down
20 changes: 11 additions & 9 deletions clients/client-resiliencehub/src/commands/CreateAppCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ export interface CreateAppCommandOutput extends CreateAppResponse, __MetadataBea
* "<keys>": "STRING_VALUE",
* },
* clientToken: "STRING_VALUE",
* assessmentSchedule: "STRING_VALUE",
* assessmentSchedule: "Disabled" || "Daily",
* permissionModel: { // PermissionModel
* type: "STRING_VALUE", // required
* type: "LegacyIAMUser" || "RoleBased", // required
* invokerRoleName: "STRING_VALUE",
* crossAccountRoleArns: [ // IamRoleArnList
* "STRING_VALUE",
Expand All @@ -69,10 +69,11 @@ export interface CreateAppCommandOutput extends CreateAppResponse, __MetadataBea
* eventSubscriptions: [ // EventSubscriptionList
* { // EventSubscription
* name: "STRING_VALUE", // required
* eventType: "STRING_VALUE", // required
* eventType: "ScheduledAssessmentFailure" || "DriftDetected", // required
* snsTopicArn: "STRING_VALUE",
* },
* ],
* awsApplicationArn: "STRING_VALUE",
* };
* const command = new CreateAppCommand(input);
* const response = await client.send(command);
Expand All @@ -83,17 +84,17 @@ export interface CreateAppCommandOutput extends CreateAppResponse, __MetadataBea
* // description: "STRING_VALUE",
* // policyArn: "STRING_VALUE",
* // creationTime: new Date("TIMESTAMP"), // required
* // status: "STRING_VALUE",
* // complianceStatus: "STRING_VALUE",
* // status: "Active" || "Deleting",
* // complianceStatus: "PolicyBreached" || "PolicyMet" || "NotAssessed" || "ChangesDetected" || "NotApplicable" || "MissingPolicy",
* // lastAppComplianceEvaluationTime: new Date("TIMESTAMP"),
* // resiliencyScore: Number("double"),
* // lastResiliencyScoreEvaluationTime: new Date("TIMESTAMP"),
* // tags: { // TagMap
* // "<keys>": "STRING_VALUE",
* // },
* // assessmentSchedule: "STRING_VALUE",
* // assessmentSchedule: "Disabled" || "Daily",
* // permissionModel: { // PermissionModel
* // type: "STRING_VALUE", // required
* // type: "LegacyIAMUser" || "RoleBased", // required
* // invokerRoleName: "STRING_VALUE",
* // crossAccountRoleArns: [ // IamRoleArnList
* // "STRING_VALUE",
Expand All @@ -102,14 +103,15 @@ export interface CreateAppCommandOutput extends CreateAppResponse, __MetadataBea
* // eventSubscriptions: [ // EventSubscriptionList
* // { // EventSubscription
* // name: "STRING_VALUE", // required
* // eventType: "STRING_VALUE", // required
* // eventType: "ScheduledAssessmentFailure" || "DriftDetected", // required
* // snsTopicArn: "STRING_VALUE",
* // },
* // ],
* // driftStatus: "STRING_VALUE",
* // driftStatus: "NotChecked" || "NotDetected" || "Detected",
* // lastDriftEvaluationTime: new Date("TIMESTAMP"),
* // rtoInSecs: Number("int"),
* // rpoInSecs: Number("int"),
* // awsApplicationArn: "STRING_VALUE",
* // },
* // };
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export interface CreateAppVersionResourceCommandOutput extends CreateAppVersionR
* // },
* // physicalResourceId: { // PhysicalResourceId
* // identifier: "STRING_VALUE", // required
* // type: "STRING_VALUE", // required
* // type: "Arn" || "Native", // required
* // awsRegion: "STRING_VALUE",
* // awsAccountId: "STRING_VALUE",
* // },
Expand All @@ -116,7 +116,7 @@ export interface CreateAppVersionResourceCommandOutput extends CreateAppVersionR
* // ],
* // },
* // excluded: true || false,
* // sourceType: "STRING_VALUE",
* // sourceType: "AppTemplate" || "Discovered",
* // parentResourceName: "STRING_VALUE",
* // },
* // };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ export interface CreateRecommendationTemplateCommandOutput
* recommendationIds: [ // RecommendationIdList
* "STRING_VALUE",
* ],
* format: "STRING_VALUE",
* format: "CfnYaml" || "CfnJson",
* recommendationTypes: [ // RenderRecommendationTypeList
* "STRING_VALUE",
* "Alarm" || "Sop" || "Test",
* ],
* assessmentArn: "STRING_VALUE", // required
* name: "STRING_VALUE", // required
Expand All @@ -75,12 +75,12 @@ export interface CreateRecommendationTemplateCommandOutput
* // "STRING_VALUE",
* // ],
* // recommendationTypes: [ // RenderRecommendationTypeList // required
* // "STRING_VALUE",
* // "Alarm" || "Sop" || "Test",
* // ],
* // format: "STRING_VALUE", // required
* // format: "CfnYaml" || "CfnJson", // required
* // recommendationTemplateArn: "STRING_VALUE", // required
* // message: "STRING_VALUE",
* // status: "STRING_VALUE", // required
* // status: "Pending" || "InProgress" || "Failed" || "Success", // required
* // name: "STRING_VALUE", // required
* // startTime: new Date("TIMESTAMP"),
* // endTime: new Date("TIMESTAMP"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ export interface CreateResiliencyPolicyCommandOutput extends CreateResiliencyPol
* const input = { // CreateResiliencyPolicyRequest
* policyName: "STRING_VALUE", // required
* policyDescription: "STRING_VALUE",
* dataLocationConstraint: "STRING_VALUE",
* tier: "STRING_VALUE", // required
* dataLocationConstraint: "AnyLocation" || "SameContinent" || "SameCountry",
* tier: "MissionCritical" || "Critical" || "Important" || "CoreServices" || "NonCritical" || "NotApplicable", // required
* policy: { // DisruptionPolicy // required
* "<keys>": { // FailurePolicy
* rtoInSecs: Number("int"), // required
Expand All @@ -72,9 +72,9 @@ export interface CreateResiliencyPolicyCommandOutput extends CreateResiliencyPol
* // policyArn: "STRING_VALUE",
* // policyName: "STRING_VALUE",
* // policyDescription: "STRING_VALUE",
* // dataLocationConstraint: "STRING_VALUE",
* // tier: "STRING_VALUE",
* // estimatedCostTier: "STRING_VALUE",
* // dataLocationConstraint: "AnyLocation" || "SameContinent" || "SameCountry",
* // tier: "MissionCritical" || "Critical" || "Important" || "CoreServices" || "NonCritical" || "NotApplicable",
* // estimatedCostTier: "L1" || "L2" || "L3" || "L4",
* // policy: { // DisruptionPolicy
* // "<keys>": { // FailurePolicy
* // rtoInSecs: Number("int"), // required
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export interface DeleteAppAssessmentCommandOutput extends DeleteAppAssessmentRes
* const response = await client.send(command);
* // { // DeleteAppAssessmentResponse
* // assessmentArn: "STRING_VALUE", // required
* // assessmentStatus: "STRING_VALUE", // required
* // assessmentStatus: "Pending" || "InProgress" || "Failed" || "Success", // required
* // };
*
* ```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export interface DeleteAppInputSourceCommandOutput extends DeleteAppInputSourceR
* // appArn: "STRING_VALUE",
* // appInputSource: { // AppInputSource
* // sourceName: "STRING_VALUE",
* // importType: "STRING_VALUE", // required
* // importType: "CfnStack" || "Resource" || "AppRegistryApp" || "ResourceGroup" || "Terraform" || "EKS", // required
* // sourceArn: "STRING_VALUE",
* // terraformSource: { // TerraformSource
* // s3StateFileUrl: "STRING_VALUE", // required
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export interface DeleteAppVersionResourceCommandOutput extends DeleteAppVersionR
* // },
* // physicalResourceId: { // PhysicalResourceId
* // identifier: "STRING_VALUE", // required
* // type: "STRING_VALUE", // required
* // type: "Arn" || "Native", // required
* // awsRegion: "STRING_VALUE",
* // awsAccountId: "STRING_VALUE",
* // },
Expand All @@ -105,7 +105,7 @@ export interface DeleteAppVersionResourceCommandOutput extends DeleteAppVersionR
* // ],
* // },
* // excluded: true || false,
* // sourceType: "STRING_VALUE",
* // sourceType: "AppTemplate" || "Discovered",
* // parentResourceName: "STRING_VALUE",
* // },
* // };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export interface DeleteRecommendationTemplateCommandOutput
* const response = await client.send(command);
* // { // DeleteRecommendationTemplateResponse
* // recommendationTemplateArn: "STRING_VALUE", // required
* // status: "STRING_VALUE", // required
* // status: "Pending" || "InProgress" || "Failed" || "Success", // required
* // };
*
* ```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ export interface DescribeAppAssessmentCommandOutput extends DescribeAppAssessmen
* // assessment: { // AppAssessment
* // appArn: "STRING_VALUE",
* // appVersion: "STRING_VALUE",
* // invoker: "STRING_VALUE", // required
* // invoker: "User" || "System", // required
* // cost: { // Cost
* // amount: Number("double"), // required
* // currency: "STRING_VALUE", // required
* // frequency: "STRING_VALUE", // required
* // frequency: "Hourly" || "Daily" || "Monthly" || "Yearly", // required
* // },
* // resiliencyScore: { // ResiliencyScore
* // score: Number("double"), // required
Expand All @@ -77,13 +77,13 @@ export interface DescribeAppAssessmentCommandOutput extends DescribeAppAssessmen
* // currentRpoInSecs: Number("int"),
* // rpoReferenceId: "STRING_VALUE",
* // rpoDescription: "STRING_VALUE",
* // complianceStatus: "STRING_VALUE", // required
* // complianceStatus: "PolicyBreached" || "PolicyMet" || "NotApplicable" || "MissingPolicy", // required
* // achievableRpoInSecs: Number("int"),
* // message: "STRING_VALUE",
* // },
* // },
* // complianceStatus: "STRING_VALUE",
* // assessmentStatus: "STRING_VALUE", // required
* // complianceStatus: "PolicyBreached" || "PolicyMet" || "NotApplicable" || "MissingPolicy",
* // assessmentStatus: "Pending" || "InProgress" || "Failed" || "Success", // required
* // startTime: new Date("TIMESTAMP"),
* // endTime: new Date("TIMESTAMP"),
* // message: "STRING_VALUE",
Expand All @@ -93,9 +93,9 @@ export interface DescribeAppAssessmentCommandOutput extends DescribeAppAssessmen
* // policyArn: "STRING_VALUE",
* // policyName: "STRING_VALUE",
* // policyDescription: "STRING_VALUE",
* // dataLocationConstraint: "STRING_VALUE",
* // tier: "STRING_VALUE",
* // estimatedCostTier: "STRING_VALUE",
* // dataLocationConstraint: "AnyLocation" || "SameContinent" || "SameCountry",
* // tier: "MissionCritical" || "Critical" || "Important" || "CoreServices" || "NonCritical" || "NotApplicable",
* // estimatedCostTier: "L1" || "L2" || "L3" || "L4",
* // policy: { // DisruptionPolicy
* // "<keys>": { // FailurePolicy
* // rtoInSecs: Number("int"), // required
Expand All @@ -121,7 +121,7 @@ export interface DescribeAppAssessmentCommandOutput extends DescribeAppAssessmen
* // hasMoreErrors: true || false,
* // },
* // versionName: "STRING_VALUE",
* // driftStatus: "STRING_VALUE",
* // driftStatus: "NotChecked" || "NotDetected" || "Detected",
* // summary: { // AssessmentSummary
* // summary: "STRING_VALUE",
* // riskRecommendations: [ // AssessmentRiskRecommendationList
Expand Down
13 changes: 7 additions & 6 deletions clients/client-resiliencehub/src/commands/DescribeAppCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,17 @@ export interface DescribeAppCommandOutput extends DescribeAppResponse, __Metadat
* // description: "STRING_VALUE",
* // policyArn: "STRING_VALUE",
* // creationTime: new Date("TIMESTAMP"), // required
* // status: "STRING_VALUE",
* // complianceStatus: "STRING_VALUE",
* // status: "Active" || "Deleting",
* // complianceStatus: "PolicyBreached" || "PolicyMet" || "NotAssessed" || "ChangesDetected" || "NotApplicable" || "MissingPolicy",
* // lastAppComplianceEvaluationTime: new Date("TIMESTAMP"),
* // resiliencyScore: Number("double"),
* // lastResiliencyScoreEvaluationTime: new Date("TIMESTAMP"),
* // tags: { // TagMap
* // "<keys>": "STRING_VALUE",
* // },
* // assessmentSchedule: "STRING_VALUE",
* // assessmentSchedule: "Disabled" || "Daily",
* // permissionModel: { // PermissionModel
* // type: "STRING_VALUE", // required
* // type: "LegacyIAMUser" || "RoleBased", // required
* // invokerRoleName: "STRING_VALUE",
* // crossAccountRoleArns: [ // IamRoleArnList
* // "STRING_VALUE",
Expand All @@ -66,14 +66,15 @@ export interface DescribeAppCommandOutput extends DescribeAppResponse, __Metadat
* // eventSubscriptions: [ // EventSubscriptionList
* // { // EventSubscription
* // name: "STRING_VALUE", // required
* // eventType: "STRING_VALUE", // required
* // eventType: "ScheduledAssessmentFailure" || "DriftDetected", // required
* // snsTopicArn: "STRING_VALUE",
* // },
* // ],
* // driftStatus: "STRING_VALUE",
* // driftStatus: "NotChecked" || "NotDetected" || "Detected",
* // lastDriftEvaluationTime: new Date("TIMESTAMP"),
* // rtoInSecs: Number("int"),
* // rpoInSecs: Number("int"),
* // awsApplicationArn: "STRING_VALUE",
* // },
* // };
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export interface DescribeAppVersionResourceCommandOutput extends DescribeAppVers
* // },
* // physicalResourceId: { // PhysicalResourceId
* // identifier: "STRING_VALUE", // required
* // type: "STRING_VALUE", // required
* // type: "Arn" || "Native", // required
* // awsRegion: "STRING_VALUE",
* // awsAccountId: "STRING_VALUE",
* // },
Expand All @@ -109,7 +109,7 @@ export interface DescribeAppVersionResourceCommandOutput extends DescribeAppVers
* // ],
* // },
* // excluded: true || false,
* // sourceType: "STRING_VALUE",
* // sourceType: "AppTemplate" || "Discovered",
* // parentResourceName: "STRING_VALUE",
* // },
* // };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export interface DescribeAppVersionResourcesResolutionStatusCommandOutput
* // appArn: "STRING_VALUE", // required
* // appVersion: "STRING_VALUE", // required
* // resolutionId: "STRING_VALUE", // required
* // status: "STRING_VALUE", // required
* // status: "Pending" || "InProgress" || "Failed" || "Success", // required
* // errorMessage: "STRING_VALUE",
* // };
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,14 @@ export interface DescribeDraftAppVersionResourcesImportStatusCommandOutput
* // { // DescribeDraftAppVersionResourcesImportStatusResponse
* // appArn: "STRING_VALUE", // required
* // appVersion: "STRING_VALUE", // required
* // status: "STRING_VALUE", // required
* // status: "Pending" || "InProgress" || "Failed" || "Success", // required
* // statusChangeTime: new Date("TIMESTAMP"), // required
* // errorMessage: "STRING_VALUE",
* // errorDetails: [ // ErrorDetailList
* // { // ErrorDetail
* // errorMessage: "STRING_VALUE",
* // },
* // ],
* // };
*
* ```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ export interface DescribeResiliencyPolicyCommandOutput extends DescribeResilienc
* // policyArn: "STRING_VALUE",
* // policyName: "STRING_VALUE",
* // policyDescription: "STRING_VALUE",
* // dataLocationConstraint: "STRING_VALUE",
* // tier: "STRING_VALUE",
* // estimatedCostTier: "STRING_VALUE",
* // dataLocationConstraint: "AnyLocation" || "SameContinent" || "SameCountry",
* // tier: "MissionCritical" || "Critical" || "Important" || "CoreServices" || "NonCritical" || "NotApplicable",
* // estimatedCostTier: "L1" || "L2" || "L3" || "L4",
* // policy: { // DisruptionPolicy
* // "<keys>": { // FailurePolicy
* // rtoInSecs: Number("int"), // required
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export interface DescribeResourceGroupingRecommendationTaskCommandOutput
* const response = await client.send(command);
* // { // DescribeResourceGroupingRecommendationTaskResponse
* // groupingId: "STRING_VALUE", // required
* // status: "STRING_VALUE", // required
* // status: "Pending" || "InProgress" || "Failed" || "Success", // required
* // errorMessage: "STRING_VALUE",
* // };
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export interface ImportResourcesToDraftAppVersionCommandOutput
* s3StateFileUrl: "STRING_VALUE", // required
* },
* ],
* importStrategy: "STRING_VALUE",
* importStrategy: "AddOnly" || "ReplaceAll",
* eksSources: [ // EksSourceList
* { // EksSource
* eksClusterArn: "STRING_VALUE", // required
Expand All @@ -70,7 +70,7 @@ export interface ImportResourcesToDraftAppVersionCommandOutput
* // sourceArns: [ // ArnList
* // "STRING_VALUE",
* // ],
* // status: "STRING_VALUE", // required
* // status: "Pending" || "InProgress" || "Failed" || "Success", // required
* // terraformSources: [ // TerraformSourceList
* // { // TerraformSource
* // s3StateFileUrl: "STRING_VALUE", // required
Expand Down
Loading

0 comments on commit d4a0fb6

Please sign in to comment.