# CfnReplicationConfigurationProps

Properties for defining a `CfnReplicationConfiguration`.

Used as props by: [CfnReplicationConfiguration](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ecr.CfnReplicationConfiguration.html)

- Source: Generated at build time

## 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 cfnReplicationConfigurationProps: ecr.CfnReplicationConfigurationProps = {
  replicationConfiguration: {
    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

cfn_replication_configuration_props = ecr.CfnReplicationConfigurationProps(
    replication_configuration=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.*;

CfnReplicationConfigurationProps cfnReplicationConfigurationProps = CfnReplicationConfigurationProps.builder()
        .replicationConfiguration(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())
        .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 cfnReplicationConfigurationProps = new CfnReplicationConfigurationProps {
    ReplicationConfiguration = 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"

cfnReplicationConfigurationProps := &CfnReplicationConfigurationProps{
	ReplicationConfiguration: &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

- `replicationConfiguration`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnReplicationConfiguration.ReplicationConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ecr.CfnReplicationConfiguration.ReplicationConfigurationProperty.html) (required) — The replication configuration for a registry.
