Class: AWSCDK::FSX::CfnDataRepositoryAssociation::S3Property
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::FSX::CfnDataRepositoryAssociation::S3Property
- Defined in:
- fsx/cfn_data_repository_association.rb
Overview
The configuration for an Amazon S3 data repository linked to an Amazon FSx Lustre file system with a data repository association.
The configuration defines which file events (new, changed, or deleted files or directories) are automatically imported from the linked data repository to the file system or automatically exported from the file system to the data repository.
Instance Attribute Summary collapse
-
#auto_export_policy ⇒ AWSCDK::IResolvable, ...
readonly
Describes a data repository association's automatic export policy.
-
#auto_import_policy ⇒ AWSCDK::IResolvable, ...
readonly
Describes the data repository association's automatic import policy.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(auto_export_policy: nil, auto_import_policy: nil) ⇒ S3Property
constructor
A new instance of S3Property.
- #to_jsii ⇒ Object
Constructor Details
#initialize(auto_export_policy: nil, auto_import_policy: nil) ⇒ S3Property
Returns a new instance of S3Property.
694 695 696 697 698 699 |
# File 'fsx/cfn_data_repository_association.rb', line 694 def initialize(auto_export_policy: nil, auto_import_policy: nil) @auto_export_policy = auto_export_policy.is_a?(Hash) ? ::AWSCDK::FSX::CfnDataRepositoryAssociation::AutoExportPolicyProperty.new(**auto_export_policy.transform_keys(&:to_sym)) : auto_export_policy Jsii::Type.check_type(@auto_export_policy, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19mc3guQ2ZuRGF0YVJlcG9zaXRvcnlBc3NvY2lhdGlvbi5BdXRvRXhwb3J0UG9saWN5UHJvcGVydHkifV19fQ==")), "autoExportPolicy") unless @auto_export_policy.nil? @auto_import_policy = auto_import_policy.is_a?(Hash) ? ::AWSCDK::FSX::CfnDataRepositoryAssociation::AutoImportPolicyProperty.new(**auto_import_policy.transform_keys(&:to_sym)) : auto_import_policy Jsii::Type.check_type(@auto_import_policy, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19mc3guQ2ZuRGF0YVJlcG9zaXRvcnlBc3NvY2lhdGlvbi5BdXRvSW1wb3J0UG9saWN5UHJvcGVydHkifV19fQ==")), "autoImportPolicy") unless @auto_import_policy.nil? end |
Instance Attribute Details
#auto_export_policy ⇒ AWSCDK::IResolvable, ... (readonly)
Describes a data repository association's automatic export policy.
The AutoExportPolicy defines the types of updated objects on the file system that will be automatically exported to the data repository. As you create, modify, or delete files, Amazon FSx for Lustre automatically exports the defined changes asynchronously once your application finishes modifying the file.
The AutoExportPolicy is only supported on Amazon FSx for Lustre file systems with a data repository association.
709 710 711 |
# File 'fsx/cfn_data_repository_association.rb', line 709 def auto_export_policy @auto_export_policy end |
#auto_import_policy ⇒ AWSCDK::IResolvable, ... (readonly)
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.
718 719 720 |
# File 'fsx/cfn_data_repository_association.rb', line 718 def auto_import_policy @auto_import_policy end |
Class Method Details
.jsii_properties ⇒ Object
720 721 722 723 724 725 |
# File 'fsx/cfn_data_repository_association.rb', line 720 def self.jsii_properties { :auto_export_policy => "autoExportPolicy", :auto_import_policy => "autoImportPolicy", } end |
Instance Method Details
#to_jsii ⇒ Object
727 728 729 730 731 732 733 734 |
# File 'fsx/cfn_data_repository_association.rb', line 727 def to_jsii result = {} result.merge!({ "autoExportPolicy" => @auto_export_policy, "autoImportPolicy" => @auto_import_policy, }) result.compact end |