Skip to content
v2.278.0

AutoImportPolicyProperty Struct ​

Describes the data repository association's automatic import policy.

The AutoImportPolicy defines how Amazon FSx keeps your file metadata and directory listings up to date by importing changes to your Amazon FSx for Lustre file system as you modify objects in a linked S3 bucket.

The AutoImportPolicy is only supported on Amazon FSx for Lustre file systems with a data repository association.

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 autoImportPolicyProperty: fsx.CfnDataRepositoryAssociation.AutoImportPolicyProperty = {
  events: ['events'],
};
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

auto_import_policy_property = fsx.CfnDataRepositoryAssociation.AutoImportPolicyProperty(
    events=["events"]
)
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.*;

AutoImportPolicyProperty autoImportPolicyProperty = AutoImportPolicyProperty.builder()
        .events(List.of("events"))
        .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 autoImportPolicyProperty = new AutoImportPolicyProperty {
    Events = new [] { "events" }
};
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"

autoImportPolicyProperty := &AutoImportPolicyProperty{
	Events: []*string{
		jsii.String("events"),
	},
}

Properties ​

eventsstring[]eventstyping.List[str]eventsList<String>Eventsstring[]Events*[]*string required #
The `AutoImportPolicy` can have the following event values:.
notes
  • NEW - Amazon FSx automatically imports metadata of files added to the linked S3 bucket that do not currently exist in the FSx file system.
  • CHANGED - Amazon FSx automatically updates file metadata and invalidates existing file content on the file system as files change in the data repository.
  • DELETED - Amazon FSx automatically deletes files on the file system as corresponding files are deleted in the data repository.

You can define any combination of event types for your AutoImportPolicy .