AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::ECR::RegistryPolicy

CfnRegistryPolicy

The `AWS::ECR::RegistryPolicy` resource creates or updates the permissions policy for a private registry. A private registry policy is used to specify permissions for another AWS account and is used when configuring cross-account replication. For more information, see [Registry permissions](https://docs.aws.amazon.com/AmazonECR/latest/userguide/registry-permissions.html) in the *Amazon Elastic Container Registry User Guide* .

Import

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

Or use the module namespace:

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

Properties

Configuration passed to the constructor as CfnRegistryPolicyProps.

policyTextRequired
any

The JSON policy text for your registry.

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