1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateDataRepositoryAssociation`](crate::operation::create_data_repository_association::builders::CreateDataRepositoryAssociationFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`file_system_id(impl Into<String>)`](crate::operation::create_data_repository_association::builders::CreateDataRepositoryAssociationFluentBuilder::file_system_id) / [`set_file_system_id(Option<String>)`](crate::operation::create_data_repository_association::builders::CreateDataRepositoryAssociationFluentBuilder::set_file_system_id):<br>required: **true**<br><p>The globally unique ID of the file system, assigned by Amazon FSx.</p><br>
    ///   - [`file_system_path(impl Into<String>)`](crate::operation::create_data_repository_association::builders::CreateDataRepositoryAssociationFluentBuilder::file_system_path) / [`set_file_system_path(Option<String>)`](crate::operation::create_data_repository_association::builders::CreateDataRepositoryAssociationFluentBuilder::set_file_system_path):<br>required: **false**<br><p>A path on the file system that points to a high-level directory (such as <code>/ns1/</code>) or subdirectory (such as <code>/ns1/subdir/</code>) that will be mapped 1-1 with <code>DataRepositoryPath</code>. The leading forward slash in the name is required. Two data repository associations cannot have overlapping file system paths. For example, if a data repository is associated with file system path <code>/ns1/</code>, then you cannot link another data repository with file system path <code>/ns1/ns2</code>.</p> <p>This path specifies where in your file system files will be exported from or imported to. This file system directory can be linked to only one Amazon S3 bucket, and no other S3 bucket can be linked to the directory.</p><note>  <p>If you specify only a forward slash (<code>/</code>) as the file system path, you can link only one data repository to the file system. You can only specify "/" as the file system path for the first data repository associated with a file system.</p> </note><br>
    ///   - [`data_repository_path(impl Into<String>)`](crate::operation::create_data_repository_association::builders::CreateDataRepositoryAssociationFluentBuilder::data_repository_path) / [`set_data_repository_path(Option<String>)`](crate::operation::create_data_repository_association::builders::CreateDataRepositoryAssociationFluentBuilder::set_data_repository_path):<br>required: **true**<br><p>The path to the Amazon S3 data repository that will be linked to the file system. The path can be an S3 bucket or prefix in the format <code>s3://myBucket/myPrefix/</code>. This path specifies where in the S3 data repository files will be imported from or exported to.</p><br>
    ///   - [`batch_import_meta_data_on_create(bool)`](crate::operation::create_data_repository_association::builders::CreateDataRepositoryAssociationFluentBuilder::batch_import_meta_data_on_create) / [`set_batch_import_meta_data_on_create(Option<bool>)`](crate::operation::create_data_repository_association::builders::CreateDataRepositoryAssociationFluentBuilder::set_batch_import_meta_data_on_create):<br>required: **false**<br><p>Set to <code>true</code> to run an import data repository task to import metadata from the data repository to the file system after the data repository association is created. Default is <code>false</code>.</p><br>
    ///   - [`imported_file_chunk_size(i32)`](crate::operation::create_data_repository_association::builders::CreateDataRepositoryAssociationFluentBuilder::imported_file_chunk_size) / [`set_imported_file_chunk_size(Option<i32>)`](crate::operation::create_data_repository_association::builders::CreateDataRepositoryAssociationFluentBuilder::set_imported_file_chunk_size):<br>required: **false**<br><p>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.</p> <p>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.</p><br>
    ///   - [`s3(S3DataRepositoryConfiguration)`](crate::operation::create_data_repository_association::builders::CreateDataRepositoryAssociationFluentBuilder::s3) / [`set_s3(Option<S3DataRepositoryConfiguration>)`](crate::operation::create_data_repository_association::builders::CreateDataRepositoryAssociationFluentBuilder::set_s3):<br>required: **false**<br><p>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.</p><br>
    ///   - [`client_request_token(impl Into<String>)`](crate::operation::create_data_repository_association::builders::CreateDataRepositoryAssociationFluentBuilder::client_request_token) / [`set_client_request_token(Option<String>)`](crate::operation::create_data_repository_association::builders::CreateDataRepositoryAssociationFluentBuilder::set_client_request_token):<br>required: **false**<br><p>(Optional) An idempotency token for resource creation, in a string of up to 63 ASCII characters. This token is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.</p><br>
    ///   - [`tags(Tag)`](crate::operation::create_data_repository_association::builders::CreateDataRepositoryAssociationFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::create_data_repository_association::builders::CreateDataRepositoryAssociationFluentBuilder::set_tags):<br>required: **false**<br><p>A list of <code>Tag</code> values, with a maximum of 50 elements.</p><br>
    /// - On success, responds with [`CreateDataRepositoryAssociationOutput`](crate::operation::create_data_repository_association::CreateDataRepositoryAssociationOutput) with field(s):
    ///   - [`association(Option<DataRepositoryAssociation>)`](crate::operation::create_data_repository_association::CreateDataRepositoryAssociationOutput::association): <p>The response object returned after the data repository association is created.</p>
    /// - On failure, responds with [`SdkError<CreateDataRepositoryAssociationError>`](crate::operation::create_data_repository_association::CreateDataRepositoryAssociationError)
    pub fn create_data_repository_association(
        &self,
    ) -> crate::operation::create_data_repository_association::builders::CreateDataRepositoryAssociationFluentBuilder {
        crate::operation::create_data_repository_association::builders::CreateDataRepositoryAssociationFluentBuilder::new(self.handle.clone())
    }
}