# ReplicationDestinationProperty

Describes the destination file system in the replication configuration.

- Source: Generated at build time
- Type last changed: v2.169.0 · 21 Nov 2024

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_efs as efs } from 'aws-cdk-lib';
const replicationDestinationProperty: efs.CfnFileSystem.ReplicationDestinationProperty = {
  availabilityZoneName: 'availabilityZoneName',
  fileSystemId: 'fileSystemId',
  kmsKeyId: 'kmsKeyId',
  region: 'region',
  roleArn: 'roleArn',
  status: 'status',
  statusMessage: 'statusMessage',
};
```

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_efs as efs

replication_destination_property = efs.CfnFileSystem.ReplicationDestinationProperty(
    availability_zone_name="availabilityZoneName",
    file_system_id="fileSystemId",
    kms_key_id="kmsKeyId",
    region="region",
    role_arn="roleArn",
    status="status",
    status_message="statusMessage"
)
```

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.efs.*;

ReplicationDestinationProperty replicationDestinationProperty = ReplicationDestinationProperty.builder()
        .availabilityZoneName("availabilityZoneName")
        .fileSystemId("fileSystemId")
        .kmsKeyId("kmsKeyId")
        .region("region")
        .roleArn("roleArn")
        .status("status")
        .statusMessage("statusMessage")
        .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.EFS;

var replicationDestinationProperty = new ReplicationDestinationProperty {
    AvailabilityZoneName = "availabilityZoneName",
    FileSystemId = "fileSystemId",
    KmsKeyId = "kmsKeyId",
    Region = "region",
    RoleArn = "roleArn",
    Status = "status",
    StatusMessage = "statusMessage"
};
```

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"

replicationDestinationProperty := &ReplicationDestinationProperty{
	AvailabilityZoneName: jsii.String("availabilityZoneName"),
	FileSystemId: jsii.String("fileSystemId"),
	KmsKeyId: jsii.String("kmsKeyId"),
	Region: jsii.String("region"),
	RoleArn: jsii.String("roleArn"),
	Status: jsii.String("status"),
	StatusMessage: jsii.String("statusMessage"),
}
```

## Properties

- `availabilityZoneName`: string — For One Zone file systems, the replication configuration must specify the Availability Zone in which the destination file system is located.

  Use the format `us-east-1a` to specify the Availability Zone. For more information about One Zone file systems, see [EFS file system types](https://docs.aws.amazon.com/efs/latest/ug/storage-classes.html) in the *Amazon EFS User Guide* .

  > One Zone file system type is not available in all Availability Zones in AWS Regions where Amazon EFS is available.

- `fileSystemId`: string — The ID of the destination Amazon EFS file system.

- `kmsKeyId`: string — The ID of an AWS KMS key used to protect the encrypted file system.

- `region`: string — The AWS Region in which the destination file system is located.

  > For One Zone file systems, the replication configuration must specify the AWS Region in which the destination file system is located.

- `roleArn`: string — The Amazon Resource Name (ARN) of the current source file system in the replication configuration.

- `status`: string — Describes the status of the replication configuration.

  For more information about replication status, see [Viewing replication details](https://docs.aws.amazon.com//efs/latest/ug/awsbackup.html#restoring-backup-efsmonitoring-replication-status.html) in the *Amazon EFS User Guide* .

- `statusMessage`: string — Message that provides details about the `PAUSED` or `ERRROR` state of the replication destination configuration.

  For more information about replication status messages, see [Viewing replication details](https://docs.aws.amazon.com//efs/latest/ug/awsbackup.html#restoring-backup-efsmonitoring-replication-status.html) in the *Amazon EFS User Guide* .
