interface ReplicationRuleProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ECR.CfnReplicationConfiguration.ReplicationRuleProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsecr#CfnReplicationConfiguration_ReplicationRuleProperty |
Java | software.amazon.awscdk.services.ecr.CfnReplicationConfiguration.ReplicationRuleProperty |
Python | aws_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
| Name | Type | Description |
|---|---|---|
| destinations | IResolvable | (IResolvable | Replication)[] | An array of objects representing the destination for a replication rule. |
| repository | IResolvable | (IResolvable | Repository)[] | An array of objects representing the filters for a replication rule. |
destinations
Type:
IResolvable | (IResolvable | Replication)[]
An array of objects representing the destination for a replication rule.
repositoryFilters?
Type:
IResolvable | (IResolvable | Repository)[]
(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.

.NET
Go
Java
Python
TypeScript