1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`AssociateFileSystem`](crate::operation::associate_file_system::builders::AssociateFileSystemFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`user_name(impl Into<String>)`](crate::operation::associate_file_system::builders::AssociateFileSystemFluentBuilder::user_name) / [`set_user_name(Option<String>)`](crate::operation::associate_file_system::builders::AssociateFileSystemFluentBuilder::set_user_name):<br>required: **true**<br><p>The user name of the user credential that has permission to access the root share D$ of the Amazon FSx file system. The user account must belong to the Amazon FSx delegated admin user group.</p><br>
    ///   - [`password(impl Into<String>)`](crate::operation::associate_file_system::builders::AssociateFileSystemFluentBuilder::password) / [`set_password(Option<String>)`](crate::operation::associate_file_system::builders::AssociateFileSystemFluentBuilder::set_password):<br>required: **true**<br><p>The password of the user credential.</p><br>
    ///   - [`client_token(impl Into<String>)`](crate::operation::associate_file_system::builders::AssociateFileSystemFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::associate_file_system::builders::AssociateFileSystemFluentBuilder::set_client_token):<br>required: **true**<br><p>A unique string value that you supply that is used by the FSx File Gateway to ensure idempotent file system association creation.</p><br>
    ///   - [`gateway_arn(impl Into<String>)`](crate::operation::associate_file_system::builders::AssociateFileSystemFluentBuilder::gateway_arn) / [`set_gateway_arn(Option<String>)`](crate::operation::associate_file_system::builders::AssociateFileSystemFluentBuilder::set_gateway_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the gateway. Use the <code>ListGateways</code> operation to return a list of gateways for your account and Amazon Web Services Region.</p><br>
    ///   - [`location_arn(impl Into<String>)`](crate::operation::associate_file_system::builders::AssociateFileSystemFluentBuilder::location_arn) / [`set_location_arn(Option<String>)`](crate::operation::associate_file_system::builders::AssociateFileSystemFluentBuilder::set_location_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the Amazon FSx file system to associate with the FSx File Gateway.</p><br>
    ///   - [`tags(Tag)`](crate::operation::associate_file_system::builders::AssociateFileSystemFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::associate_file_system::builders::AssociateFileSystemFluentBuilder::set_tags):<br>required: **false**<br><p>A list of up to 50 tags that can be assigned to the file system association. Each tag is a key-value pair.</p><br>
    ///   - [`audit_destination_arn(impl Into<String>)`](crate::operation::associate_file_system::builders::AssociateFileSystemFluentBuilder::audit_destination_arn) / [`set_audit_destination_arn(Option<String>)`](crate::operation::associate_file_system::builders::AssociateFileSystemFluentBuilder::set_audit_destination_arn):<br>required: **false**<br><p>The Amazon Resource Name (ARN) of the storage used for the audit logs.</p><br>
    ///   - [`cache_attributes(CacheAttributes)`](crate::operation::associate_file_system::builders::AssociateFileSystemFluentBuilder::cache_attributes) / [`set_cache_attributes(Option<CacheAttributes>)`](crate::operation::associate_file_system::builders::AssociateFileSystemFluentBuilder::set_cache_attributes):<br>required: **false**<br><p>The refresh cache information for the file share or FSx file systems.</p><br>
    ///   - [`endpoint_network_configuration(EndpointNetworkConfiguration)`](crate::operation::associate_file_system::builders::AssociateFileSystemFluentBuilder::endpoint_network_configuration) / [`set_endpoint_network_configuration(Option<EndpointNetworkConfiguration>)`](crate::operation::associate_file_system::builders::AssociateFileSystemFluentBuilder::set_endpoint_network_configuration):<br>required: **false**<br><p>Specifies the network configuration information for the gateway associated with the Amazon FSx file system.</p><note>  <p>If multiple file systems are associated with this gateway, this parameter's <code>IpAddresses</code> field is required.</p> </note><br>
    /// - On success, responds with [`AssociateFileSystemOutput`](crate::operation::associate_file_system::AssociateFileSystemOutput) with field(s):
    ///   - [`file_system_association_arn(Option<String>)`](crate::operation::associate_file_system::AssociateFileSystemOutput::file_system_association_arn): <p>The ARN of the newly created file system association.</p>
    /// - On failure, responds with [`SdkError<AssociateFileSystemError>`](crate::operation::associate_file_system::AssociateFileSystemError)
    pub fn associate_file_system(&self) -> crate::operation::associate_file_system::builders::AssociateFileSystemFluentBuilder {
        crate::operation::associate_file_system::builders::AssociateFileSystemFluentBuilder::new(self.handle.clone())
    }
}