We are excited to announce our new API Documentation.
Protected
List the tags for an Amazon ECR resource.
Use a bare-bones client and the command you need to make an API call.
import { ECRClient, ListTagsForResourceCommand } from "@aws-sdk/client-ecr"; // ES Modules import// const { ECRClient, ListTagsForResourceCommand } = require("@aws-sdk/client-ecr"); // CommonJS importconst client = new ECRClient(config);const input = { // ListTagsForResourceRequest resourceArn: "STRING_VALUE", // required};const command = new ListTagsForResourceCommand(input);const response = await client.send(command);// { // ListTagsForResourceResponse// tags: [ // TagList// { // Tag// Key: "STRING_VALUE", // required// Value: "STRING_VALUE", // required// },// ],// };
ListTagsForResourceCommandInput
ListTagsForResourceCommandOutput
input
response
config
InvalidParameterException (client fault)
The specified parameter is invalid. Review the available parameters for the API request.
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.
ServerException (server fault)
These errors are usually caused by a server-side issue.
ECRServiceException
Base exception class for all service exceptions from ECR service.
Readonly
Static
List the tags for an Amazon ECR resource.
Example
Use a bare-bones client and the command you need to make an API call.
Param
ListTagsForResourceCommandInput
Returns
ListTagsForResourceCommandOutput
See
input
shape.response
shape.config
shape.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.
Throws
ECRServiceException
Base exception class for all service exceptions from ECR service.