OpenZFSConfigurationProperty Struct
Specifies the configuration of the Amazon FSx for OpenZFS volume that you are creating.
| Source | |
|---|---|
| Type last changed |
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_fsx as fsx } from 'aws-cdk-lib';
const openZFSConfigurationProperty: fsx.CfnVolume.OpenZFSConfigurationProperty = {
parentVolumeId: 'parentVolumeId',
// the properties below are optional
copyTagsToSnapshots: false,
dataCompressionType: 'dataCompressionType',
nfsExports: [{
clientConfigurations: [{
clients: 'clients',
options: ['options'],
}],
}],
options: ['options'],
originSnapshot: {
copyStrategy: 'copyStrategy',
snapshotArn: 'snapshotArn',
},
readOnly: false,
recordSizeKiB: 123,
storageCapacityQuotaGiB: 123,
storageCapacityReservationGiB: 123,
userAndGroupQuotas: [{
id: 123,
storageCapacityQuotaGiB: 123,
type: 'type',
}],
};
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_fsx as fsx
open_zfs_configuration_property = fsx.CfnVolume.OpenZFSConfigurationProperty(
parent_volume_id="parentVolumeId",
# the properties below are optional
copy_tags_to_snapshots=False,
data_compression_type="dataCompressionType",
nfs_exports=[fsx.CfnVolume.NfsExportsProperty(
client_configurations=[fsx.CfnVolume.ClientConfigurationsProperty(
clients="clients",
options=["options"]
)]
)],
options=["options"],
origin_snapshot=fsx.CfnVolume.OriginSnapshotProperty(
copy_strategy="copyStrategy",
snapshot_arn="snapshotArn"
),
read_only=False,
record_size_ki_b=123,
storage_capacity_quota_gi_b=123,
storage_capacity_reservation_gi_b=123,
user_and_group_quotas=[fsx.CfnVolume.UserAndGroupQuotasProperty(
id=123,
storage_capacity_quota_gi_b=123,
type="type"
)]
)
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.fsx.*;
OpenZFSConfigurationProperty openZFSConfigurationProperty = OpenZFSConfigurationProperty.builder()
.parentVolumeId("parentVolumeId")
// the properties below are optional
.copyTagsToSnapshots(false)
.dataCompressionType("dataCompressionType")
.nfsExports(List.of(NfsExportsProperty.builder()
.clientConfigurations(List.of(ClientConfigurationsProperty.builder()
.clients("clients")
.options(List.of("options"))
.build()))
.build()))
.options(List.of("options"))
.originSnapshot(OriginSnapshotProperty.builder()
.copyStrategy("copyStrategy")
.snapshotArn("snapshotArn")
.build())
.readOnly(false)
.recordSizeKiB(123)
.storageCapacityQuotaGiB(123)
.storageCapacityReservationGiB(123)
.userAndGroupQuotas(List.of(UserAndGroupQuotasProperty.builder()
.id(123)
.storageCapacityQuotaGiB(123)
.type("type")
.build()))
.build();
// 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.FSx;
var openZFSConfigurationProperty = new OpenZFSConfigurationProperty {
ParentVolumeId = "parentVolumeId",
// the properties below are optional
CopyTagsToSnapshots = false,
DataCompressionType = "dataCompressionType",
NfsExports = new [] { new NfsExportsProperty {
ClientConfigurations = new [] { new ClientConfigurationsProperty {
Clients = "clients",
Options = new [] { "options" }
} }
} },
Options = new [] { "options" },
OriginSnapshot = new OriginSnapshotProperty {
CopyStrategy = "copyStrategy",
SnapshotArn = "snapshotArn"
},
ReadOnly = false,
RecordSizeKiB = 123,
StorageCapacityQuotaGiB = 123,
StorageCapacityReservationGiB = 123,
UserAndGroupQuotas = new [] { new UserAndGroupQuotasProperty {
Id = 123,
StorageCapacityQuotaGiB = 123,
Type = "type"
} }
};
// 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"
openZFSConfigurationProperty := &OpenZFSConfigurationProperty{
ParentVolumeId: jsii.String("parentVolumeId"),
// the properties below are optional
CopyTagsToSnapshots: jsii.Boolean(false),
DataCompressionType: jsii.String("dataCompressionType"),
NfsExports: []interface{}{
&NfsExportsProperty{
ClientConfigurations: []interface{}{
&ClientConfigurationsProperty{
Clients: jsii.String("clients"),
Options: []*string{
jsii.String("options"),
},
},
},
},
},
Options: []*string{
jsii.String("options"),
},
OriginSnapshot: &OriginSnapshotProperty{
CopyStrategy: jsii.String("copyStrategy"),
SnapshotArn: jsii.String("snapshotArn"),
},
ReadOnly: jsii.Boolean(false),
RecordSizeKiB: jsii.Number(123),
StorageCapacityQuotaGiB: jsii.Number(123),
StorageCapacityReservationGiB: jsii.Number(123),
UserAndGroupQuotas: []interface{}{
&UserAndGroupQuotasProperty{
Id: jsii.Number(123),
StorageCapacityQuotaGiB: jsii.Number(123),
Type: jsii.String("type"),
},
},
}
Properties
copyTagsToSnapshotsoptionalboolean | IResolvablecopy_tags_to_snapshotsoptionaltyping.Union[bool, IResolvable]copyTagsToSnapshotsoptionalBooleanCopyTagsToSnapshotsoptionalboolCopyTagsToSnapshotsoptionalinterface{} #notes
This value defaults to false . If this value is set to true , and you do not specify any tags, all tags for the original volume are copied over to snapshots. If this value is set to true , and you do specify one or more tags, only the specified tags for the original volume are copied over to snapshots. If you specify one or more tags when creating a new snapshot, no tags are copied over from the original volume, regardless of this value.
dataCompressionTypeoptionalstringdata_compression_typeoptionalstrdataCompressionTypeoptionalStringDataCompressionTypeoptionalstringDataCompressionTypeoptional*string #notes
NONE- Doesn't compress the data on the volume.NONEis the default.ZSTD- Compresses the data in the volume using the Zstandard (ZSTD) compression algorithm. Compared to LZ4, Z-Standard provides a better compression ratio to minimize on-disk storage utilization.LZ4- Compresses the data in the volume using the LZ4 compression algorithm. Compared to Z-Standard, LZ4 is less compute-intensive and delivers higher write throughput speeds.
nfsExportsoptionalIResolvable | IResolvable | CfnVolume.NfsExportsProperty[]nfs_exportsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, NfsExportsProperty]]]nfsExportsoptionalIResolvableNfsExportsoptionalIResolvableNfsExportsoptionalinterface{} #optionsoptionalstring[]optionsoptionaltyping.List[str]optionsoptionalList<String>Optionsoptionalstring[]Optionsoptional*[]*string #originSnapshotoptionalIResolvable | CfnVolume.OriginSnapshotPropertyorigin_snapshotoptionaltyping.Union[IResolvable, OriginSnapshotProperty]originSnapshotoptionalIResolvableOriginSnapshotoptionalIResolvableOriginSnapshotoptionalinterface{} #parentVolumeIdstringparent_volume_idstrparentVolumeIdStringParentVolumeIdstringParentVolumeId*string required #readOnlyoptionalboolean | IResolvableread_onlyoptionaltyping.Union[bool, IResolvable]readOnlyoptionalBooleanReadOnlyoptionalboolReadOnlyoptionalinterface{} #recordSizeKiBoptionalnumberrecord_size_ki_boptionalint | floatrecordSizeKiBoptionalNumberRecordSizeKiBoptionaldoubleRecordSizeKiBoptional*float64 #notes
For file systems using the Intelligent-Tiering storage class, valid values are 128, 256, 512, 1024, 2048, or 4096 KiB, with a default of 1024 KiB. For all other file systems, valid values are 4, 8, 16, 32, 64, 128, 256, 512, or 1024 KiB, with a default of 128 KiB. We recommend using the default setting for the majority of use cases. Generally, workloads that write in fixed small or large record sizes may benefit from setting a custom record size, like database workloads (small record size) or media streaming workloads (large record size). For additional guidance on when to set a custom record size, see ZFS Record size in the Amazon FSx for OpenZFS User Guide .
storageCapacityQuotaGiBoptionalnumberstorage_capacity_quota_gi_boptionalint | floatstorageCapacityQuotaGiBoptionalNumberStorageCapacityQuotaGiBoptionaldoubleStorageCapacityQuotaGiBoptional*float64 #notes
You can specify a quota that is larger than the storage on the parent volume. A volume quota limits the amount of storage that the volume can consume to the configured amount, but does not guarantee the space will be available on the parent volume. To guarantee quota space, you must also set StorageCapacityReservationGiB . To not specify a storage capacity quota, set this to -1 .
For more information, see Volume properties in the Amazon FSx for OpenZFS User Guide .
storageCapacityReservationGiBoptionalnumberstorage_capacity_reservation_gi_boptionalint | floatstorageCapacityReservationGiBoptionalNumberStorageCapacityReservationGiBoptionaldoubleStorageCapacityReservationGiBoptional*float64 #notes
Setting StorageCapacityReservationGiB guarantees that the specified amount of storage space on the parent volume will always be available for the volume. You can't reserve more storage than the parent volume has. To not specify a storage capacity reservation, set this to 0 or -1 . For more information, see Volume properties in the Amazon FSx for OpenZFS User Guide .
userAndGroupQuotasoptionalIResolvable | IResolvable | CfnVolume.user_and_group_quotasoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, UserAndGroupQuotasProperty]]]userAndGroupQuotasoptionalIResolvableUserAndGroupQuotasoptionalIResolvableUserAndGroupQuotasoptionalinterface{} #