Class CfnReplicationConfiguration

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, IReplicationConfigurationRef, IEnvironmentAware, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.121.0 (build d7af9b9)", date="2025-12-18T18:20:09.398Z") @Stability(Stable) public class CfnReplicationConfiguration extends CfnResource implements IInspectable, IReplicationConfigurationRef
The AWS::ECR::ReplicationConfiguration resource creates or updates the replication configuration for a private registry.

The first time a replication configuration is applied to a private registry, a service-linked IAM role is created in your account for the replication process. For more information, see Using Service-Linked Roles for Amazon ECR in the Amazon Elastic Container Registry User Guide .

When configuring cross-account replication, the destination account must grant the source account permission to replicate. This permission is controlled using a private registry permissions policy. For more information, see AWS::ECR::RegistryPolicy .

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.ecr.*;
 CfnReplicationConfiguration cfnReplicationConfiguration = CfnReplicationConfiguration.Builder.create(this, "MyCfnReplicationConfiguration")
         .replicationConfiguration(ReplicationConfigurationProperty.builder()
                 .rules(List.of(ReplicationRuleProperty.builder()
                         .destinations(List.of(ReplicationDestinationProperty.builder()
                                 .region("region")
                                 .registryId("registryId")
                                 .build()))
                         // the properties below are optional
                         .repositoryFilters(List.of(RepositoryFilterProperty.builder()
                                 .filter("filter")
                                 .filterType("filterType")
                                 .build()))
                         .build()))
                 .build())
         .build();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnReplicationConfiguration

      protected CfnReplicationConfiguration(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnReplicationConfiguration

      protected CfnReplicationConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnReplicationConfiguration

      @Stability(Stable) public CfnReplicationConfiguration(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnReplicationConfigurationProps props)
      Create a new AWS::ECR::ReplicationConfiguration.

      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties. This parameter is required.
  • Method Details