Skip to content
v2.277.0

SynchronizationConfigurationProperty Struct ​

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_s3files as s3files } from 'aws-cdk-lib';
const synchronizationConfigurationProperty: s3files.CfnFileSystem.SynchronizationConfigurationProperty = {
  expirationDataRules: [{
    daysAfterLastAccess: 123,
  }],
  importDataRules: [{
    prefix: 'prefix',
    sizeLessThan: 123,
    trigger: 'trigger',
  }],

  // the properties below are optional
  latestVersionNumber: 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_s3files as s3files

synchronization_configuration_property = s3files.CfnFileSystem.SynchronizationConfigurationProperty(
    expiration_data_rules=[s3files.CfnFileSystem.ExpirationDataRuleProperty(
        days_after_last_access=123
    )],
    import_data_rules=[s3files.CfnFileSystem.ImportDataRuleProperty(
        prefix="prefix",
        size_less_than=123,
        trigger="trigger"
    )],

    # the properties below are optional
    latest_version_number=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.s3files.*;

SynchronizationConfigurationProperty synchronizationConfigurationProperty = SynchronizationConfigurationProperty.builder()
        .expirationDataRules(List.of(ExpirationDataRuleProperty.builder()
                .daysAfterLastAccess(123)
                .build()))
        .importDataRules(List.of(ImportDataRuleProperty.builder()
                .prefix("prefix")
                .sizeLessThan(123)
                .trigger("trigger")
                .build()))

        // the properties below are optional
        .latestVersionNumber(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.S3Files;

var synchronizationConfigurationProperty = new SynchronizationConfigurationProperty {
    ExpirationDataRules = new [] { new ExpirationDataRuleProperty {
        DaysAfterLastAccess = 123
    } },
    ImportDataRules = new [] { new ImportDataRuleProperty {
        Prefix = "prefix",
        SizeLessThan = 123,
        Trigger = "trigger"
    } },

    // the properties below are optional
    LatestVersionNumber = 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"

synchronizationConfigurationProperty := &SynchronizationConfigurationProperty{
	ExpirationDataRules: []interface{}{
		&ExpirationDataRuleProperty{
			DaysAfterLastAccess: jsii.Number(123),
		},
	},
	ImportDataRules: []interface{}{
		&ImportDataRuleProperty{
			Prefix: jsii.String("prefix"),
			SizeLessThan: jsii.Number(123),
			Trigger: jsii.String("trigger"),
		},
	},

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

Properties ​

expirationDataRulesIResolvable | IResolvable | CfnFileSystem.ExpirationDataRuleProperty[]expiration_data_rulestyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ExpirationDataRuleProperty]]]expirationDataRulesIResolvableExpirationDataRulesIResolvableExpirationDataRulesinterface{}required#
importDataRulesIResolvable | IResolvable | CfnFileSystem.ImportDataRuleProperty[]import_data_rulestyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ImportDataRuleProperty]]]importDataRulesIResolvableImportDataRulesIResolvableImportDataRulesinterface{}required#
latestVersionNumberoptionalnumberlatest_version_numberoptionalint | floatlatestVersionNumberoptionalNumberLatestVersionNumberoptionaldoubleLatestVersionNumberoptional*float64#