aws-cdk-lib.aws_ecr.CfnReplicationConfiguration.ReplicationRuleProperty

interface ReplicationRuleProperty

LanguageType name
.NETAmazon.CDK.AWS.ECR.CfnReplicationConfiguration.ReplicationRuleProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsecr#CfnReplicationConfiguration_ReplicationRuleProperty
Javasoftware.amazon.awscdk.services.ecr.CfnReplicationConfiguration.ReplicationRuleProperty
Pythonaws_cdk.aws_ecr.CfnReplicationConfiguration.ReplicationRuleProperty
TypeScript aws-cdk-lib » aws_ecr » CfnReplicationConfiguration » ReplicationRuleProperty

An array of objects representing the replication destinations and repository filters for a replication configuration.

Example

// 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 replicationRuleProperty: ecr.CfnReplicationConfiguration.ReplicationRuleProperty = {
  destinations: [{
    region: 'region',
    registryId: 'registryId',
  }],

  // the properties below are optional
  repositoryFilters: [{
    filter: 'filter',
    filterType: 'filterType',
  }],
};

Properties

NameTypeDescription
destinationsIResolvable | IResolvable | ReplicationDestinationProperty[]An array of objects representing the destination for a replication rule.
repositoryFilters?IResolvable | IResolvable | RepositoryFilterProperty[]An array of objects representing the filters for a replication rule.

destinations

Type: IResolvable | IResolvable | ReplicationDestinationProperty[]

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


repositoryFilters?

Type: IResolvable | IResolvable | RepositoryFilterProperty[] (optional)

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

Specifying a repository filter for a replication rule provides a method for controlling which repositories in a private registry are replicated.