Jump to Content

Class PutImageTagMutabilityCommandProtected

Updates the image tag mutability settings for the specified repository. For more information, see Image tag mutability in the Amazon Elastic Container Registry User Guide.

Example

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

import { ECRClient, PutImageTagMutabilityCommand } from "@aws-sdk/client-ecr"; // ES Modules import
// const { ECRClient, PutImageTagMutabilityCommand } = require("@aws-sdk/client-ecr"); // CommonJS import
const client = new ECRClient(config);
const input = { // PutImageTagMutabilityRequest
registryId: "STRING_VALUE",
repositoryName: "STRING_VALUE", // required
imageTagMutability: "STRING_VALUE", // required
};
const command = new PutImageTagMutabilityCommand(input);
const response = await client.send(command);

Param

PutImageTagMutabilityCommandInput

Returns

PutImageTagMutabilityCommandOutput

See

Throws

InvalidParameterException (client fault)

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

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