Protected
Returns the pull through cache rules for a registry.
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 importconst 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);
DescribePullThroughCacheRulesCommandInput
DescribePullThroughCacheRulesCommandOutput
input
response
config
InvalidParameterException (client fault)
The specified parameter is invalid. Review the available parameters for the API request.
PullThroughCacheRuleNotFoundException (client fault)
The pull through cache rule was not found. Specify a valid pull through cache rule and try again.
ServerException (server fault)
These errors are usually caused by a server-side issue.
ValidationException (client fault)
There was an exception validating this request.
Readonly
Static
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.
Param
DescribePullThroughCacheRulesCommandInput
Returns
DescribePullThroughCacheRulesCommandOutput
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
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.