# ReplicationConfigurationProperty

The replication configuration for a registry.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
        } }
    } }
};
```

Golang:

```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

- `rules`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnReplicationConfiguration.ReplicationRuleProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ecr.CfnReplicationConfiguration.ReplicationRuleProperty.html)[] (required) — An array of objects representing the replication destinations and repository filters for a replication configuration.
