v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1441293181.2 KB

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.

post/#X-Amz-Target=AmazonEC2ContainerRegistry_V20150921.CreatePullThroughCacheRule

Headers

X-Amz-Target'AmazonEC2ContainerRegistry_V20150921.CreatePullThroughCacheRule' required

Request body

ecrRepositoryPrefixstring required

The repository name prefix to use when caching images from the source registry.

upstreamRegistryUrlstring required

The registry URL of the upstream public registry to use as the source for the pull through cache rule.

registryIdstring

The Amazon Web Services account ID associated with the registry to create the pull through cache rule for. If you do not specify a registry, the default registry is assumed.

Response

Success

ecrRepositoryPrefixstring

The Amazon ECR repository prefix associated with the pull through cache rule.

upstreamRegistryUrlstring

The upstream registry URL associated with the pull through cache rule.

createdAtstring date-time

The date and time, in JavaScript date format, when the pull through cache rule was created.

registryIdstring

The registry ID associated with the request.