Jump to Content

Class DescribePullThroughCacheRulesCommandProtected

Returns the pull through cache rules for a registry.

Example

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

import { ECRClient, DescribePullThroughCacheRulesCommand } from "@aws-sdk/client-ecr"; // ES Modules import
// const { ECRClient, DescribePullThroughCacheRulesCommand } = require("@aws-sdk/client-ecr"); // CommonJS import
const client = new ECRClient(config);
const input = { // DescribePullThroughCacheRulesRequest
registryId: "STRING_VALUE",
ecrRepositoryPrefixes: [ // PullThroughCacheRuleRepositoryPrefixList
"STRING_VALUE",
],
nextToken: "STRING_VALUE",
maxResults: Number("int"),
};
const command = new DescribePullThroughCacheRulesCommand(input);
const response = await client.send(command);

Param

DescribePullThroughCacheRulesCommandInput

Returns

DescribePullThroughCacheRulesCommandOutput

See

Throws

InvalidParameterException (client fault)

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

Throws

PullThroughCacheRuleNotFoundException (client fault)

The pull through cache rule was not found. Specify a valid pull through cache rule and try again.

Throws

ServerException (server fault)

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

Throws

ValidationException (client fault)

There was an exception validating this request.

Hierarchy

Constructors

Properties

Methods