- Navigation GuideYou are on a Command (operation) page with structural examples. Use the navigation breadcrumb if you would like to return to the Client landing page.
DescribeAppAssessmentCommand
Describes an assessment for an Resilience Hub application.
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { ResiliencehubClient, DescribeAppAssessmentCommand } from "@aws-sdk/client-resiliencehub"; // ES Modules import
// const { ResiliencehubClient, DescribeAppAssessmentCommand } = require("@aws-sdk/client-resiliencehub"); // CommonJS import
const client = new ResiliencehubClient(config);
const input = { // DescribeAppAssessmentRequest
assessmentArn: "STRING_VALUE", // required
};
const command = new DescribeAppAssessmentCommand(input);
const response = await client.send(command);
// { // DescribeAppAssessmentResponse
// assessment: { // AppAssessment
// appArn: "STRING_VALUE",
// appVersion: "STRING_VALUE",
// invoker: "User" || "System", // required
// cost: { // Cost
// amount: Number("double"), // required
// currency: "STRING_VALUE", // required
// frequency: "Hourly" || "Daily" || "Monthly" || "Yearly", // required
// },
// resiliencyScore: { // ResiliencyScore
// score: Number("double"), // required
// disruptionScore: { // DisruptionResiliencyScore // required
// "<keys>": Number("double"),
// },
// componentScore: { // ScoringComponentResiliencyScores
// "<keys>": { // ScoringComponentResiliencyScore
// score: Number("double"),
// possibleScore: Number("double"),
// outstandingCount: Number("long"),
// excludedCount: Number("long"),
// },
// },
// },
// compliance: { // AssessmentCompliance
// "<keys>": { // DisruptionCompliance
// achievableRtoInSecs: Number("int"),
// currentRtoInSecs: Number("int"),
// rtoReferenceId: "STRING_VALUE",
// rtoDescription: "STRING_VALUE",
// currentRpoInSecs: Number("int"),
// rpoReferenceId: "STRING_VALUE",
// rpoDescription: "STRING_VALUE",
// complianceStatus: "PolicyBreached" || "PolicyMet" || "NotApplicable" || "MissingPolicy", // required
// achievableRpoInSecs: Number("int"),
// message: "STRING_VALUE",
// },
// },
// complianceStatus: "PolicyBreached" || "PolicyMet" || "NotApplicable" || "MissingPolicy",
// assessmentStatus: "Pending" || "InProgress" || "Failed" || "Success", // required
// startTime: new Date("TIMESTAMP"),
// endTime: new Date("TIMESTAMP"),
// message: "STRING_VALUE",
// assessmentName: "STRING_VALUE",
// assessmentArn: "STRING_VALUE", // required
// policy: { // ResiliencyPolicy
// policyArn: "STRING_VALUE",
// policyName: "STRING_VALUE",
// policyDescription: "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
// rpoInSecs: Number("int"), // required
// },
// },
// creationTime: new Date("TIMESTAMP"),
// tags: { // TagMap
// "<keys>": "STRING_VALUE",
// },
// },
// tags: {
// "<keys>": "STRING_VALUE",
// },
// resourceErrorsDetails: { // ResourceErrorsDetails
// resourceErrors: [ // ResourceErrorList
// { // ResourceError
// logicalResourceId: "STRING_VALUE",
// physicalResourceId: "STRING_VALUE",
// reason: "STRING_VALUE",
// },
// ],
// hasMoreErrors: true || false,
// },
// versionName: "STRING_VALUE",
// driftStatus: "NotChecked" || "NotDetected" || "Detected",
// summary: { // AssessmentSummary
// summary: "STRING_VALUE",
// riskRecommendations: [ // AssessmentRiskRecommendationList
// { // AssessmentRiskRecommendation
// risk: "STRING_VALUE",
// recommendation: "STRING_VALUE",
// appComponents: [ // AppComponentNameList
// "STRING_VALUE",
// ],
// },
// ],
// },
// },
// };
DescribeAppAssessmentCommand Input
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
assessmentArn Required | string | undefined | Amazon Resource Name (ARN) of the assessment. The format for this ARN is: arn: |
DescribeAppAssessmentCommand Output
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
assessment Required | AppAssessment | undefined | The assessment for an Resilience Hub application, returned as an object. This object includes Amazon Resource Names (ARNs), compliance information, compliance status, cost, messages, resiliency scores, and more. |
Throws
Name | Fault | Details |
---|
Name | Fault | Details |
---|---|---|
AccessDeniedException | client | You don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. |
InternalServerException | server | This exception occurs when there is an internal failure in the Resilience Hub service. |
ResourceNotFoundException | client | This exception occurs when the specified resource could not be found. |
ThrottlingException | client | This exception occurs when you have exceeded the limit on the number of requests per second. |
ValidationException | client | This exception occurs when a request is not valid. |
ResiliencehubServiceException | Base exception class for all service exceptions from Resiliencehub service. |