Jump to Content

Class CreatePullThroughCacheRuleCommandProtected

Creates a pull through cache rule. A pull through cache rule provides a way to cache images from an external public registry in your Amazon ECR private registry.

Example

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

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

Param

CreatePullThroughCacheRuleCommandInput

Returns

CreatePullThroughCacheRuleCommandOutput

See

Throws

InvalidParameterException (client fault)

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

Throws

LimitExceededException (client fault)

The operation did not succeed because it would have exceeded a service limit for your account. For more information, see Amazon ECR service quotas in the Amazon Elastic Container Registry User Guide.

Throws

PullThroughCacheRuleAlreadyExistsException (client fault)

A pull through cache rule with these settings already exists for the private registry.

Throws

ServerException (server fault)

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

Throws

UnsupportedUpstreamRegistryException (client fault)

The specified upstream registry isn't supported.

Throws

ValidationException (client fault)

There was an exception validating this request.

Hierarchy

Constructors

Properties

Methods