AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::ECR::PullThroughCacheRule

CfnPullThroughCacheRule

The `AWS::ECR::PullThroughCacheRule` resource creates or updates a pull through cache rule. A pull through cache rule provides a way to cache images from an upstream registry in your Amazon ECR private registry.

Import

import { CfnPullThroughCacheRule } from 'aws-cdk-lib/aws-ecr';

Or use the module namespace:

import * as ecr from 'aws-cdk-lib/aws-ecr';
// ecr.CfnPullThroughCacheRule

Properties

Configuration passed to the constructor as CfnPullThroughCacheRuleProps.

credentialArnOptional
string

The ARN of the Secrets Manager secret associated with the pull through cache rule.

customRoleArnOptional
string

The ARN of the IAM role associated with the pull through cache rule.

ecrRepositoryPrefixOptional
string

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

upstreamRegistryOptional
string

The name of the upstream source registry associated with the pull through cache rule.

upstreamRegistryUrlOptional
string

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

upstreamRepositoryPrefixOptional
string

The upstream repository prefix associated with the pull through cache rule.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter