Jump to Content

Class GetLifecyclePolicyPreviewCommandProtected

Retrieves the results of the lifecycle policy preview request for the specified repository.

Example

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

import { ECRClient, GetLifecyclePolicyPreviewCommand } from "@aws-sdk/client-ecr"; // ES Modules import
// const { ECRClient, GetLifecyclePolicyPreviewCommand } = require("@aws-sdk/client-ecr"); // CommonJS import
const client = new ECRClient(config);
const command = new GetLifecyclePolicyPreviewCommand(input);
const response = await client.send(command);

See

Throws

InvalidParameterException (client fault)

The specified parameter is invalid. Review the available parameters for the API request.

Throws

LifecyclePolicyPreviewNotFoundException (client fault)

There is no dry run for this repository.

Throws

RepositoryNotFoundException (client fault)

The specified repository could not be found. Check the spelling of the specified repository and ensure that you are performing operations on the correct registry.

Throws

ServerException (server fault)

These errors are usually caused by a server-side issue.

Hierarchy

Constructors

Properties

Methods