Class CfnReplicationConfigurationPropsMixin
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.Mixin
software.amazon.awscdk.cfnpropertymixins.services.ecr.CfnReplicationConfigurationPropsMixin
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable,software.constructs.IMixin
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-03-11T13:19:58.818Z")
@Stability(Stable)
public class CfnReplicationConfigurationPropsMixin
extends Mixin
implements software.constructs.IMixin
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.cfnpropertymixins.services.ecr.*;
import software.amazon.awscdk.*;
IMergeStrategy mergeStrategy;
CfnReplicationConfigurationPropsMixin cfnReplicationConfigurationPropsMixin = CfnReplicationConfigurationPropsMixin.Builder.create(CfnReplicationConfigurationMixinProps.builder()
.replicationConfiguration(ReplicationConfigurationProperty.builder()
.rules(List.of(ReplicationRuleProperty.builder()
.destinations(List.of(ReplicationDestinationProperty.builder()
.region("region")
.registryId("registryId")
.build()))
.repositoryFilters(List.of(RepositoryFilterProperty.builder()
.filter("filter")
.filterType("filterType")
.build()))
.build()))
.build())
.build())
.strategy(mergeStrategy)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnReplicationConfigurationPropsMixin.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.IMixin
software.constructs.IMixin.Jsii$Default, software.constructs.IMixin.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreate a mixin to apply properties toAWS::ECR::ReplicationConfiguration.CfnReplicationConfigurationPropsMixin(CfnReplicationConfigurationMixinProps props, CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::ECR::ReplicationConfiguration.protectedCfnReplicationConfigurationPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnReplicationConfigurationPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(software.constructs.IConstruct construct) Apply the mixin properties to the construct.protected CfnReplicationConfigurationMixinPropsgetProps()protected IMergeStrategysupports(software.constructs.IConstruct construct) Check if this mixin supports the given construct.Methods 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, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_PROPERTY_KEYS
-
-
Constructor Details
-
CfnReplicationConfigurationPropsMixin
protected CfnReplicationConfigurationPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
CfnReplicationConfigurationPropsMixin
protected CfnReplicationConfigurationPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnReplicationConfigurationPropsMixin
@Stability(Stable) public CfnReplicationConfigurationPropsMixin(@NotNull CfnReplicationConfigurationMixinProps props, @Nullable CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::ECR::ReplicationConfiguration.- Parameters:
props- L1 properties to apply. This parameter is required.options- Mixin options.
-
CfnReplicationConfigurationPropsMixin
@Stability(Stable) public CfnReplicationConfigurationPropsMixin(@NotNull CfnReplicationConfigurationMixinProps props) Create a mixin to apply properties toAWS::ECR::ReplicationConfiguration.- Parameters:
props- L1 properties to apply. This parameter is required.
-
-
Method Details
-
applyTo
@Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct) Apply the mixin properties to the construct. -
supports
@Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct) Check if this mixin supports the given construct. -
getProps
-
getStrategy
-