Class CfnReplicationConfiguration
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.ecr.CfnReplicationConfiguration
- 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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnReplicationConfiguration.static interfaceThe replication configuration for a registry.static interfaceAn array of objects representing the destination for a replication rule.static interfaceAn array of objects representing the replication destinations and repository filters for a replication configuration.static interfaceThe filter settings used with image replication.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.ecr.IReplicationConfigurationRef
IReplicationConfigurationRef.Jsii$Default, IReplicationConfigurationRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnReplicationConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnReplicationConfiguration(software.amazon.jsii.JsiiObjectRef objRef) CfnReplicationConfiguration(software.constructs.Construct scope, String id, CfnReplicationConfigurationProps props) Create a newAWS::ECR::ReplicationConfiguration. -
Method Summary
Modifier and TypeMethodDescriptionThe account ID of the destination registry.The replication configuration for a registry.A reference to a ReplicationConfiguration resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnReplicationConfiguration.renderProperties(Map<String, Object> props) voidThe replication configuration for a registry.voidThe replication configuration for a registry.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
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 newAWS::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
-
isCfnReplicationConfiguration
Checks whether the given object is a CfnReplicationConfiguration.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrRegistryId
The account ID of the destination registry. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getReplicationConfigurationRef
@Stability(Stable) @NotNull public ReplicationConfigurationReference getReplicationConfigurationRef()A reference to a ReplicationConfiguration resource.- Specified by:
getReplicationConfigurationRefin interfaceIReplicationConfigurationRef
-
getReplicationConfiguration
The replication configuration for a registry.Returns union: either
IResolvableorCfnReplicationConfiguration.ReplicationConfigurationProperty -
setReplicationConfiguration
The replication configuration for a registry. -
setReplicationConfiguration
@Stability(Stable) public void setReplicationConfiguration(@NotNull CfnReplicationConfiguration.ReplicationConfigurationProperty value) The replication configuration for a registry.
-