aws-cdk-lib.aws_fsx.CfnVolume.OriginSnapshotProperty

interface OriginSnapshotProperty

LanguageType name
.NETAmazon.CDK.AWS.FSx.CfnVolume.OriginSnapshotProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsfsx#CfnVolume_OriginSnapshotProperty
Javasoftware.amazon.awscdk.services.fsx.CfnVolume.OriginSnapshotProperty
Pythonaws_cdk.aws_fsx.CfnVolume.OriginSnapshotProperty
TypeScript aws-cdk-lib » aws_fsx » CfnVolume » OriginSnapshotProperty

The configuration object that specifies the snapshot to use as the origin of the data for the volume.

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 originSnapshotProperty: fsx.CfnVolume.OriginSnapshotProperty = {
  copyStrategy: 'copyStrategy',
  snapshotArn: 'snapshotArn',
};

Properties

NameTypeDescription
copyStrategystringThe strategy used when copying data from the snapshot to the new volume.
snapshotArnstringSpecifies the snapshot to use when creating an OpenZFS volume from a snapshot.

copyStrategy

Type: string

The strategy used when copying data from the snapshot to the new volume.

  • CLONE - The new volume references the data in the origin snapshot. Cloning a snapshot is faster than copying data from the snapshot to a new volume and doesn't consume disk throughput. However, the origin snapshot can't be deleted if there is a volume using its copied data.
  • FULL_COPY - Copies all data from the snapshot to the new volume.

snapshotArn

Type: string

Specifies the snapshot to use when creating an OpenZFS volume from a snapshot.