Skip to content
v2.277.0

AutocommitPeriodProperty Struct ​

Sets the autocommit period of files in an FSx for ONTAP SnapLock volume, which determines how long the files must remain unmodified before they're automatically transitioned to the write once, read many (WORM) state.

For more information, see Autocommit .

Example ​

ts
// 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 autocommitPeriodProperty: fsx.CfnVolume.AutocommitPeriodProperty = {
  type: 'type',

  // the properties below are optional
  value: 123,
};
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_fsx as fsx

autocommit_period_property = fsx.CfnVolume.AutocommitPeriodProperty(
    type="type",

    # the properties below are optional
    value=123
)
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.fsx.*;

AutocommitPeriodProperty autocommitPeriodProperty = AutocommitPeriodProperty.builder()
        .type("type")

        // the properties below are optional
        .value(123)
        .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.FSx;

var autocommitPeriodProperty = new AutocommitPeriodProperty {
    Type = "type",

    // the properties below are optional
    Value = 123
};
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"

autocommitPeriodProperty := &AutocommitPeriodProperty{
	Type: jsii.String("type"),

	// the properties below are optional
	Value: jsii.Number(123),
}

Properties ​

typestringtypestrtypeStringTypestringType*string required #
Defines the type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume.

Setting this value to NONE disables autocommit. The default value is NONE .

valueoptionalnumbervalueoptionalint | floatvalueoptionalNumberValueoptionaldoubleValueoptional*float64 #
Defines the amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume.

The following ranges are valid:

  • Minutes : 5 - 65,535
  • Hours : 1 - 65,535
  • Days : 1 - 3,650
  • Months : 1 - 120
  • Years : 1 - 10