Class CfnDataRepositoryAssociationPropsMixin

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.Mixin
software.amazon.awscdk.cfnpropertymixins.services.fsx.CfnDataRepositoryAssociationPropsMixin
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable, software.constructs.IMixin

@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)", date="2026-03-11T13:19:59.505Z") @Stability(Stable) public class CfnDataRepositoryAssociationPropsMixin extends Mixin implements software.constructs.IMixin
Creates an Amazon FSx for Lustre data repository association (DRA).

A data repository association is a link between a directory on the file system and an Amazon S3 bucket or prefix. You can have a maximum of 8 data repository associations on a file system. Data repository associations are supported on all FSx for Lustre 2.12 and newer file systems, excluding scratch_1 deployment type.

Each data repository association must have a unique Amazon FSx file system directory and a unique S3 bucket or prefix associated with it. You can configure a data repository association for automatic import only, for automatic export only, or for both. To learn more about linking a data repository to your file system, see Linking your file system to an S3 bucket .

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.cfnpropertymixins.services.fsx.*;
 import software.amazon.awscdk.*;
 IMergeStrategy mergeStrategy;
 CfnDataRepositoryAssociationPropsMixin cfnDataRepositoryAssociationPropsMixin = CfnDataRepositoryAssociationPropsMixin.Builder.create(CfnDataRepositoryAssociationMixinProps.builder()
         .batchImportMetaDataOnCreate(false)
         .dataRepositoryPath("dataRepositoryPath")
         .fileSystemId("fileSystemId")
         .fileSystemPath("fileSystemPath")
         .importedFileChunkSize(123)
         .s3(S3Property.builder()
                 .autoExportPolicy(AutoExportPolicyProperty.builder()
                         .events(List.of("events"))
                         .build())
                 .autoImportPolicy(AutoImportPolicyProperty.builder()
                         .events(List.of("events"))
                         .build())
                 .build())
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .build())
 .strategy(mergeStrategy)
 .build();
 

See Also:
  • Field Details

    • CFN_PROPERTY_KEYS

      @Stability(Stable) protected static final List<String> CFN_PROPERTY_KEYS
  • Constructor Details

    • CfnDataRepositoryAssociationPropsMixin

      protected CfnDataRepositoryAssociationPropsMixin(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnDataRepositoryAssociationPropsMixin

      protected CfnDataRepositoryAssociationPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnDataRepositoryAssociationPropsMixin

      @Stability(Stable) public CfnDataRepositoryAssociationPropsMixin(@NotNull CfnDataRepositoryAssociationMixinProps props, @Nullable CfnPropertyMixinOptions options)
      Create a mixin to apply properties to AWS::FSx::DataRepositoryAssociation.

      Parameters:
      props - L1 properties to apply. This parameter is required.
      options - Mixin options.
    • CfnDataRepositoryAssociationPropsMixin

      @Stability(Stable) public CfnDataRepositoryAssociationPropsMixin(@NotNull CfnDataRepositoryAssociationMixinProps props)
      Create a mixin to apply properties to AWS::FSx::DataRepositoryAssociation.

      Parameters:
      props - L1 properties to apply. This parameter is required.
  • Method Details

    • applyTo

      @Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct)
      Apply the mixin properties to the construct.

      Specified by:
      applyTo in interface software.constructs.IMixin
      Specified by:
      applyTo in class Mixin
      Parameters:
      construct - This parameter is required.
    • supports

      @Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct)
      Check if this mixin supports the given construct.

      Specified by:
      supports in interface software.constructs.IMixin
      Overrides:
      supports in class Mixin
      Parameters:
      construct - This parameter is required.
    • getProps

      @Stability(Stable) @NotNull protected CfnDataRepositoryAssociationMixinProps getProps()
    • getStrategy

      @Stability(Stable) @NotNull protected IMergeStrategy getStrategy()