1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. fsx
  5. getDataRepositoryAssociation

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi

aws-native.fsx.getDataRepositoryAssociation

Explore with Pulumi AI

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi

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.

Using getDataRepositoryAssociation

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getDataRepositoryAssociation(args: GetDataRepositoryAssociationArgs, opts?: InvokeOptions): Promise<GetDataRepositoryAssociationResult>
function getDataRepositoryAssociationOutput(args: GetDataRepositoryAssociationOutputArgs, opts?: InvokeOptions): Output<GetDataRepositoryAssociationResult>
Copy
def get_data_repository_association(association_id: Optional[str] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetDataRepositoryAssociationResult
def get_data_repository_association_output(association_id: Optional[pulumi.Input[str]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetDataRepositoryAssociationResult]
Copy
func LookupDataRepositoryAssociation(ctx *Context, args *LookupDataRepositoryAssociationArgs, opts ...InvokeOption) (*LookupDataRepositoryAssociationResult, error)
func LookupDataRepositoryAssociationOutput(ctx *Context, args *LookupDataRepositoryAssociationOutputArgs, opts ...InvokeOption) LookupDataRepositoryAssociationResultOutput
Copy

> Note: This function is named LookupDataRepositoryAssociation in the Go SDK.

public static class GetDataRepositoryAssociation 
{
    public static Task<GetDataRepositoryAssociationResult> InvokeAsync(GetDataRepositoryAssociationArgs args, InvokeOptions? opts = null)
    public static Output<GetDataRepositoryAssociationResult> Invoke(GetDataRepositoryAssociationInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetDataRepositoryAssociationResult> getDataRepositoryAssociation(GetDataRepositoryAssociationArgs args, InvokeOptions options)
public static Output<GetDataRepositoryAssociationResult> getDataRepositoryAssociation(GetDataRepositoryAssociationArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aws-native:fsx:getDataRepositoryAssociation
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

AssociationId This property is required. string

Returns the data repository association's system generated Association ID.

Example: dra-abcdef0123456789d

AssociationId This property is required. string

Returns the data repository association's system generated Association ID.

Example: dra-abcdef0123456789d

associationId This property is required. String

Returns the data repository association's system generated Association ID.

Example: dra-abcdef0123456789d

associationId This property is required. string

Returns the data repository association's system generated Association ID.

Example: dra-abcdef0123456789d

association_id This property is required. str

Returns the data repository association's system generated Association ID.

Example: dra-abcdef0123456789d

associationId This property is required. String

Returns the data repository association's system generated Association ID.

Example: dra-abcdef0123456789d

getDataRepositoryAssociation Result

The following output properties are available:

AssociationId string

Returns the data repository association's system generated Association ID.

Example: dra-abcdef0123456789d

ImportedFileChunkSize int
For files imported from a data repository, this value determines the stripe count and maximum amount of data per file (in MiB) stored on a single physical disk. The maximum number of disks that a single file can be striped across is limited by the total number of disks that make up the file system or cache. The default chunk size is 1,024 MiB (1 GiB) and can go as high as 512,000 MiB (500 GiB). Amazon S3 objects have a maximum size of 5 TB.
ResourceArn string

Returns the data repository association's Amazon Resource Name (ARN).

Example: arn:aws:fsx:us-east-1:111122223333:association/fs-abc012345def6789a/dra-abcdef0123456789b

S3 Pulumi.AwsNative.FSx.Outputs.DataRepositoryAssociationS3
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.
Tags List<Pulumi.AwsNative.Outputs.Tag>
An array of key-value pairs to apply to this resource. For more information, see Tag.
AssociationId string

Returns the data repository association's system generated Association ID.

Example: dra-abcdef0123456789d

ImportedFileChunkSize int
For files imported from a data repository, this value determines the stripe count and maximum amount of data per file (in MiB) stored on a single physical disk. The maximum number of disks that a single file can be striped across is limited by the total number of disks that make up the file system or cache. The default chunk size is 1,024 MiB (1 GiB) and can go as high as 512,000 MiB (500 GiB). Amazon S3 objects have a maximum size of 5 TB.
ResourceArn string

Returns the data repository association's Amazon Resource Name (ARN).

Example: arn:aws:fsx:us-east-1:111122223333:association/fs-abc012345def6789a/dra-abcdef0123456789b

S3 DataRepositoryAssociationS3
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.
Tags Tag
An array of key-value pairs to apply to this resource. For more information, see Tag.
associationId String

Returns the data repository association's system generated Association ID.

Example: dra-abcdef0123456789d

importedFileChunkSize Integer
For files imported from a data repository, this value determines the stripe count and maximum amount of data per file (in MiB) stored on a single physical disk. The maximum number of disks that a single file can be striped across is limited by the total number of disks that make up the file system or cache. The default chunk size is 1,024 MiB (1 GiB) and can go as high as 512,000 MiB (500 GiB). Amazon S3 objects have a maximum size of 5 TB.
resourceArn String

Returns the data repository association's Amazon Resource Name (ARN).

Example: arn:aws:fsx:us-east-1:111122223333:association/fs-abc012345def6789a/dra-abcdef0123456789b

s3 DataRepositoryAssociationS3
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.
tags List<Tag>
An array of key-value pairs to apply to this resource. For more information, see Tag.
associationId string

Returns the data repository association's system generated Association ID.

Example: dra-abcdef0123456789d

importedFileChunkSize number
For files imported from a data repository, this value determines the stripe count and maximum amount of data per file (in MiB) stored on a single physical disk. The maximum number of disks that a single file can be striped across is limited by the total number of disks that make up the file system or cache. The default chunk size is 1,024 MiB (1 GiB) and can go as high as 512,000 MiB (500 GiB). Amazon S3 objects have a maximum size of 5 TB.
resourceArn string

Returns the data repository association's Amazon Resource Name (ARN).

Example: arn:aws:fsx:us-east-1:111122223333:association/fs-abc012345def6789a/dra-abcdef0123456789b

s3 DataRepositoryAssociationS3
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.
tags Tag[]
An array of key-value pairs to apply to this resource. For more information, see Tag.
association_id str

Returns the data repository association's system generated Association ID.

Example: dra-abcdef0123456789d

imported_file_chunk_size int
For files imported from a data repository, this value determines the stripe count and maximum amount of data per file (in MiB) stored on a single physical disk. The maximum number of disks that a single file can be striped across is limited by the total number of disks that make up the file system or cache. The default chunk size is 1,024 MiB (1 GiB) and can go as high as 512,000 MiB (500 GiB). Amazon S3 objects have a maximum size of 5 TB.
resource_arn str

Returns the data repository association's Amazon Resource Name (ARN).

Example: arn:aws:fsx:us-east-1:111122223333:association/fs-abc012345def6789a/dra-abcdef0123456789b

s3 DataRepositoryAssociationS3
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.
tags Sequence[root_Tag]
An array of key-value pairs to apply to this resource. For more information, see Tag.
associationId String

Returns the data repository association's system generated Association ID.

Example: dra-abcdef0123456789d

importedFileChunkSize Number
For files imported from a data repository, this value determines the stripe count and maximum amount of data per file (in MiB) stored on a single physical disk. The maximum number of disks that a single file can be striped across is limited by the total number of disks that make up the file system or cache. The default chunk size is 1,024 MiB (1 GiB) and can go as high as 512,000 MiB (500 GiB). Amazon S3 objects have a maximum size of 5 TB.
resourceArn String

Returns the data repository association's Amazon Resource Name (ARN).

Example: arn:aws:fsx:us-east-1:111122223333:association/fs-abc012345def6789a/dra-abcdef0123456789b

s3 Property Map
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.
tags List<Property Map>
An array of key-value pairs to apply to this resource. For more information, see Tag.

Supporting Types

DataRepositoryAssociationAutoExportPolicy

Events This property is required. List<Pulumi.AwsNative.FSx.DataRepositoryAssociationEventType>

The AutoExportPolicy can have the following event values:

  • NEW - New files and directories are automatically exported to the data repository as they are added to the file system.
  • CHANGED - Changes to files and directories on the file system are automatically exported to the data repository.
  • DELETED - Files and directories are automatically deleted on the data repository when they are deleted on the file system.

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

Events This property is required. []DataRepositoryAssociationEventType

The AutoExportPolicy can have the following event values:

  • NEW - New files and directories are automatically exported to the data repository as they are added to the file system.
  • CHANGED - Changes to files and directories on the file system are automatically exported to the data repository.
  • DELETED - Files and directories are automatically deleted on the data repository when they are deleted on the file system.

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

events This property is required. List<DataRepositoryAssociationEventType>

The AutoExportPolicy can have the following event values:

  • NEW - New files and directories are automatically exported to the data repository as they are added to the file system.
  • CHANGED - Changes to files and directories on the file system are automatically exported to the data repository.
  • DELETED - Files and directories are automatically deleted on the data repository when they are deleted on the file system.

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

events This property is required. DataRepositoryAssociationEventType[]

The AutoExportPolicy can have the following event values:

  • NEW - New files and directories are automatically exported to the data repository as they are added to the file system.
  • CHANGED - Changes to files and directories on the file system are automatically exported to the data repository.
  • DELETED - Files and directories are automatically deleted on the data repository when they are deleted on the file system.

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

events This property is required. Sequence[DataRepositoryAssociationEventType]

The AutoExportPolicy can have the following event values:

  • NEW - New files and directories are automatically exported to the data repository as they are added to the file system.
  • CHANGED - Changes to files and directories on the file system are automatically exported to the data repository.
  • DELETED - Files and directories are automatically deleted on the data repository when they are deleted on the file system.

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

events This property is required. List<"NEW" | "CHANGED" | "DELETED">

The AutoExportPolicy can have the following event values:

  • NEW - New files and directories are automatically exported to the data repository as they are added to the file system.
  • CHANGED - Changes to files and directories on the file system are automatically exported to the data repository.
  • DELETED - Files and directories are automatically deleted on the data repository when they are deleted on the file system.

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

DataRepositoryAssociationAutoImportPolicy

Events This property is required. List<Pulumi.AwsNative.FSx.DataRepositoryAssociationEventType>

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.

Events This property is required. []DataRepositoryAssociationEventType

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.

events This property is required. List<DataRepositoryAssociationEventType>

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.

events This property is required. DataRepositoryAssociationEventType[]

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.

events This property is required. Sequence[DataRepositoryAssociationEventType]

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.

events This property is required. List<"NEW" | "CHANGED" | "DELETED">

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.

DataRepositoryAssociationEventType

DataRepositoryAssociationS3

AutoExportPolicy Pulumi.AwsNative.FSx.Inputs.DataRepositoryAssociationAutoExportPolicy
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.
AutoImportPolicy Pulumi.AwsNative.FSx.Inputs.DataRepositoryAssociationAutoImportPolicy
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.
AutoExportPolicy DataRepositoryAssociationAutoExportPolicy
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.
AutoImportPolicy DataRepositoryAssociationAutoImportPolicy
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.
autoExportPolicy DataRepositoryAssociationAutoExportPolicy
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.
autoImportPolicy DataRepositoryAssociationAutoImportPolicy
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.
autoExportPolicy DataRepositoryAssociationAutoExportPolicy
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.
autoImportPolicy DataRepositoryAssociationAutoImportPolicy
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.
auto_export_policy DataRepositoryAssociationAutoExportPolicy
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.
auto_import_policy DataRepositoryAssociationAutoImportPolicy
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.
autoExportPolicy Property Map
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.
autoImportPolicy Property Map
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.

Tag

Key This property is required. string
The key name of the tag
Value This property is required. string
The value of the tag
Key This property is required. string
The key name of the tag
Value This property is required. string
The value of the tag
key This property is required. String
The key name of the tag
value This property is required. String
The value of the tag
key This property is required. string
The key name of the tag
value This property is required. string
The value of the tag
key This property is required. str
The key name of the tag
value This property is required. str
The value of the tag
key This property is required. String
The key name of the tag
value This property is required. String
The value of the tag

Package Details

Repository
AWS Native pulumi/pulumi-aws-native
License
Apache-2.0

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi