DescribeDraftAppVersionResourcesImportStatusCommand

Describes the status of importing resources to an application version.

If you get a 404 error with ResourceImportStatusNotFoundAppMetadataException, you must call importResourcesToDraftAppVersion after creating the application and before calling describeDraftAppVersionResourcesImportStatus to obtain the status.

Example Syntax

Use a bare-bones client and the command you need to make an API call.

import { ResiliencehubClient, DescribeDraftAppVersionResourcesImportStatusCommand } from "@aws-sdk/client-resiliencehub"; // ES Modules import
// const { ResiliencehubClient, DescribeDraftAppVersionResourcesImportStatusCommand } = require("@aws-sdk/client-resiliencehub"); // CommonJS import
const client = new ResiliencehubClient(config);
const input = { // DescribeDraftAppVersionResourcesImportStatusRequest
  appArn: "STRING_VALUE", // required
};
const command = new DescribeDraftAppVersionResourcesImportStatusCommand(input);
const response = await client.send(command);
// { // DescribeDraftAppVersionResourcesImportStatusResponse
//   appArn: "STRING_VALUE", // required
//   appVersion: "STRING_VALUE", // required
//   status: "Pending" || "InProgress" || "Failed" || "Success", // required
//   statusChangeTime: new Date("TIMESTAMP"), // required
//   errorMessage: "STRING_VALUE",
//   errorDetails: [ // ErrorDetailList
//     { // ErrorDetail
//       errorMessage: "STRING_VALUE",
//     },
//   ],
// };

DescribeDraftAppVersionResourcesImportStatusCommand Input

Parameter
Type
Description
appArn
Required
string | undefined

Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs)  in the Amazon Web Services General Reference guide.

DescribeDraftAppVersionResourcesImportStatusCommand Output

Parameter
Type
Description
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.
appArn
Required
string | undefined

Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs)  in the Amazon Web Services General Reference guide.

appVersion
Required
string | undefined

The version of the application.

status
Required
ResourceImportStatusType | undefined

Status of the action.

statusChangeTime
Required
Date | undefined

The time when the status last changed.

errorDetails
ErrorDetail[] | undefined

List of errors that were encountered while importing resources.

errorMessage
string | undefined

The error message returned for the resource request.

Throws

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.