AWS::ECR::RegistryPolicyThe `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 { CfnRegistryPolicy } from 'aws-cdk-lib/aws-ecr';Or use the module namespace:
import * as ecr from 'aws-cdk-lib/aws-ecr';
// ecr.CfnRegistryPolicyConfiguration passed to the constructor as CfnRegistryPolicyProps.
policyTextRequiredanyThe JSON policy text for your registry.
This L1 construct maps directly to the following CloudFormation resource type.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-ecrAWS::ECR::RegistryPolicy