Skip to content
v2.278.0

ReplicationDestinationProperty Struct ​

An array of objects representing the destination for a replication rule.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ecr as ecr } from 'aws-cdk-lib';
const replicationDestinationProperty: ecr.CfnReplicationConfiguration.ReplicationDestinationProperty = {
  region: 'region',
  registryId: 'registryId',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ecr as ecr

replication_destination_property = ecr.CfnReplicationConfiguration.ReplicationDestinationProperty(
    region="region",
    registry_id="registryId"
)
java
// 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.*;

ReplicationDestinationProperty replicationDestinationProperty = ReplicationDestinationProperty.builder()
        .region("region")
        .registryId("registryId")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ECR;

var replicationDestinationProperty = new ReplicationDestinationProperty {
    Region = "region",
    RegistryId = "registryId"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

replicationDestinationProperty := &ReplicationDestinationProperty{
	Region: jsii.String("region"),
	RegistryId: jsii.String("registryId"),
}

Properties ​

regionstringregionstrregionStringRegionstringRegion*string required #
The Region to replicate to.
registryIdstringregistry_idstrregistryIdStringRegistryIdstringRegistryId*string required #
The AWS account ID of the Amazon ECR private registry to replicate to.

When configuring cross-Region replication within your own registry, specify your own account ID.