import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { StartAppAssessmentRequest, StartAppAssessmentResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link StartAppAssessmentCommand}. */ export interface StartAppAssessmentCommandInput extends StartAppAssessmentRequest { } /** * @public * * The output of {@link StartAppAssessmentCommand}. */ export interface StartAppAssessmentCommandOutput extends StartAppAssessmentResponse, __MetadataBearer { } declare const StartAppAssessmentCommand_base: { new (input: StartAppAssessmentCommandInput): import("@smithy/core/client").CommandImpl; new (input: StartAppAssessmentCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Creates a new application assessment for an application.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ResiliencehubClient, StartAppAssessmentCommand } from "@aws-sdk/client-resiliencehub"; // ES Modules import * // const { ResiliencehubClient, StartAppAssessmentCommand } = require("@aws-sdk/client-resiliencehub"); // CommonJS import * // import type { ResiliencehubClientConfig } from "@aws-sdk/client-resiliencehub"; * const config = {}; // type is ResiliencehubClientConfig * const client = new ResiliencehubClient(config); * const input = { // StartAppAssessmentRequest * appArn: "STRING_VALUE", // required * appVersion: "STRING_VALUE", // required * assessmentName: "STRING_VALUE", // required * clientToken: "STRING_VALUE", * tags: { // TagMap * "": "STRING_VALUE", * }, * }; * const command = new StartAppAssessmentCommand(input); * const response = await client.send(command); * // { // StartAppAssessmentResponse * // 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 * // "": Number("double"), * // }, * // componentScore: { // ScoringComponentResiliencyScores * // "": { // ScoringComponentResiliencyScore * // score: Number("double"), * // possibleScore: Number("double"), * // outstandingCount: Number("long"), * // excludedCount: Number("long"), * // }, * // }, * // }, * // compliance: { // AssessmentCompliance * // "": { // 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 * // "": { // FailurePolicy * // rtoInSecs: Number("int"), // required * // rpoInSecs: Number("int"), // required * // }, * // }, * // creationTime: new Date("TIMESTAMP"), * // tags: { // TagMap * // "": "STRING_VALUE", * // }, * // }, * // tags: { * // "": "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", * // ], * // }, * // ], * // }, * // }, * // }; * * ``` * * @param StartAppAssessmentCommandInput - {@link StartAppAssessmentCommandInput} * @returns {@link StartAppAssessmentCommandOutput} * @see {@link StartAppAssessmentCommandInput} for command's `input` shape. * @see {@link StartAppAssessmentCommandOutput} for command's `response` shape. * @see {@link ResiliencehubClientResolvedConfig | config} for ResiliencehubClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

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.

* * @throws {@link ConflictException} (client fault) *

This exception occurs when a conflict with a previous successful write is detected. This generally occurs * when the previous write did not have time to propagate to the host serving the current * request. A retry (with appropriate backoff logic) is the recommended response to this * exception.

* * @throws {@link InternalServerException} (server fault) *

This exception occurs when there is an internal failure in the Resilience Hub * service.

* * @throws {@link ResourceNotFoundException} (client fault) *

This exception occurs when the specified resource could not be found.

* * @throws {@link ServiceQuotaExceededException} (client fault) *

This exception occurs when you have exceeded your service quota. To perform the requested action, remove some of the * relevant resources, or use Service Quotas to request a service quota increase.

* * @throws {@link ThrottlingException} (client fault) *

This exception occurs when you have exceeded the limit on the number of requests per second.

* * @throws {@link ValidationException} (client fault) *

This exception occurs when a request is not valid.

* * @throws {@link ResiliencehubServiceException} *

Base exception class for all service exceptions from Resiliencehub service.

* * * @public */ export declare class StartAppAssessmentCommand extends StartAppAssessmentCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: StartAppAssessmentRequest; output: StartAppAssessmentResponse; }; sdk: { input: StartAppAssessmentCommandInput; output: StartAppAssessmentCommandOutput; }; }; }