Skip to content
v2.278.0

OneZoneFileSystemProps Struct ​

Properties for configuring ReplicationConfiguration to replicate to a new One Zone file system.

Example ​

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';
import { aws_kms as kms } from 'aws-cdk-lib';

declare const key: kms.Key;
const oneZoneFileSystemProps: efs.OneZoneFileSystemProps = {
  availabilityZone: 'availabilityZone',
  region: 'region',

  // the properties below are optional
  kmsKey: key,
};
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
from aws_cdk import aws_kms as kms

# key: kms.Key

one_zone_file_system_props = efs.OneZoneFileSystemProps(
    availability_zone="availabilityZone",
    region="region",

    # the properties below are optional
    kms_key=key
)
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.*;
import software.amazon.awscdk.services.kms.*;

Key key;

OneZoneFileSystemProps oneZoneFileSystemProps = OneZoneFileSystemProps.builder()
        .availabilityZone("availabilityZone")
        .region("region")

        // the properties below are optional
        .kmsKey(key)
        .build();
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;
using Amazon.CDK.AWS.KMS;

Key key;

var oneZoneFileSystemProps = new OneZoneFileSystemProps {
    AvailabilityZone = "availabilityZone",
    Region = "region",

    // the properties below are optional
    KmsKey = key
};
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"
import "github.com/aws/aws-cdk-go/awscdk"

var key Key

oneZoneFileSystemProps := &OneZoneFileSystemProps{
	AvailabilityZone: jsii.String("availabilityZone"),
	Region: jsii.String("region"),

	// the properties below are optional
	KmsKey: key,
}

Properties ​

availabilityZonestringavailability_zonestravailabilityZoneStringAvailabilityZonestringAvailabilityZone*string required #
The availability zone name of the destination file system.

One zone file system is used as the destination file system when this property is set.

kmsKeyoptionalIKeykms_keyoptionalIKeykmsKeyoptionalIKeyKmsKeyoptionalIKeyKmsKeyoptionalIKey #
AWS KMS key used to protect the encrypted file system.

Default: use service-managed KMS key for Amazon EFS

regionstringregionstrregionStringRegionstringRegion*string required #
The AWS Region in which the destination file system is located.