Skip to content
v2.278.0

ReplicationConfigurationProperty Struct ​

The replication configuration for a registry.

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 replicationConfigurationProperty: ecr.CfnReplicationConfiguration.ReplicationConfigurationProperty = {
  rules: [{
    destinations: [{
      region: 'region',
      registryId: 'registryId',
    }],

    // the properties below are optional
    deleteReplication: {
      enabled: false,
    },
    repositoryFilters: [{
      filter: 'filter',
      filterType: 'filterType',
    }],
  }],
};
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_configuration_property = ecr.CfnReplicationConfiguration.ReplicationConfigurationProperty(
    rules=[ecr.CfnReplicationConfiguration.ReplicationRuleProperty(
        destinations=[ecr.CfnReplicationConfiguration.ReplicationDestinationProperty(
            region="region",
            registry_id="registryId"
        )],

        # the properties below are optional
        delete_replication=ecr.CfnReplicationConfiguration.DeleteReplicationProperty(
            enabled=False
        ),
        repository_filters=[ecr.CfnReplicationConfiguration.RepositoryFilterProperty(
            filter="filter",
            filter_type="filterType"
        )]
    )]
)
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.*;

ReplicationConfigurationProperty replicationConfigurationProperty = ReplicationConfigurationProperty.builder()
        .rules(List.of(ReplicationRuleProperty.builder()
                .destinations(List.of(ReplicationDestinationProperty.builder()
                        .region("region")
                        .registryId("registryId")
                        .build()))

                // the properties below are optional
                .deleteReplication(DeleteReplicationProperty.builder()
                        .enabled(false)
                        .build())
                .repositoryFilters(List.of(RepositoryFilterProperty.builder()
                        .filter("filter")
                        .filterType("filterType")
                        .build()))
                .build()))
        .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 replicationConfigurationProperty = new ReplicationConfigurationProperty {
    Rules = new [] { new ReplicationRuleProperty {
        Destinations = new [] { new ReplicationDestinationProperty {
            Region = "region",
            RegistryId = "registryId"
        } },

        // the properties below are optional
        DeleteReplication = new DeleteReplicationProperty {
            Enabled = false
        },
        RepositoryFilters = new [] { new RepositoryFilterProperty {
            Filter = "filter",
            FilterType = "filterType"
        } }
    } }
};
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"

replicationConfigurationProperty := &ReplicationConfigurationProperty{
	Rules: []interface{}{
		&ReplicationRuleProperty{
			Destinations: []interface{}{
				&ReplicationDestinationProperty{
					Region: jsii.String("region"),
					RegistryId: jsii.String("registryId"),
				},
			},

			// the properties below are optional
			DeleteReplication: &DeleteReplicationProperty{
				Enabled: jsii.Boolean(false),
			},
			RepositoryFilters: []interface{}{
				&RepositoryFilterProperty{
					Filter: jsii.String("filter"),
					FilterType: jsii.String("filterType"),
				},
			},
		},
	},
}

Properties ​

rulesIResolvable | IResolvable | CfnReplicationConfiguration.ReplicationRuleProperty[]rulestyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ReplicationRuleProperty]]]rulesIResolvableRulesIResolvableRulesinterface{} required #
An array of objects representing the replication destinations and repository filters for a replication configuration.