Class: AWSCDK::FSX::CfnDataRepositoryAssociation::AutoImportPolicyProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
fsx/cfn_data_repository_association.rb

Overview

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.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(events:) ⇒ AutoImportPolicyProperty

Returns a new instance of AutoImportPolicyProperty.

Parameters:

  • events (Array<String>)

    The AutoImportPolicy can have the following event values:.



652
653
654
655
# File 'fsx/cfn_data_repository_association.rb', line 652

def initialize(events:)
  @events = events
  Jsii::Type.check_type(@events, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "events")
end

Instance Attribute Details

#eventsArray<String> (readonly)

The AutoImportPolicy can have the following event values:.

  • 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 .



667
668
669
# File 'fsx/cfn_data_repository_association.rb', line 667

def events
  @events
end

Class Method Details

.jsii_propertiesObject



669
670
671
672
673
# File 'fsx/cfn_data_repository_association.rb', line 669

def self.jsii_properties
  {
    :events => "events",
  }
end

Instance Method Details

#to_jsiiObject



675
676
677
678
679
680
681
# File 'fsx/cfn_data_repository_association.rb', line 675

def to_jsii
  result = {}
  result.merge!({
    "events" => @events,
  })
  result.compact
end