aws_sdk_datasync/client/create_location_nfs.rs
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`CreateLocationNfs`](crate::operation::create_location_nfs::builders::CreateLocationNfsFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`subdirectory(impl Into<String>)`](crate::operation::create_location_nfs::builders::CreateLocationNfsFluentBuilder::subdirectory) / [`set_subdirectory(Option<String>)`](crate::operation::create_location_nfs::builders::CreateLocationNfsFluentBuilder::set_subdirectory):<br>required: **true**<br><p>Specifies the export path in your NFS file server that you want DataSync to mount.</p> <p>This path (or a subdirectory of the path) is where DataSync transfers data to or from. For information on configuring an export for DataSync, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-nfs-location.html#accessing-nfs">Accessing NFS file servers</a>.</p><br>
/// - [`server_hostname(impl Into<String>)`](crate::operation::create_location_nfs::builders::CreateLocationNfsFluentBuilder::server_hostname) / [`set_server_hostname(Option<String>)`](crate::operation::create_location_nfs::builders::CreateLocationNfsFluentBuilder::set_server_hostname):<br>required: **true**<br><p>Specifies the Domain Name System (DNS) name or IP version 4 address of the NFS file server that your DataSync agent connects to.</p><br>
/// - [`on_prem_config(OnPremConfig)`](crate::operation::create_location_nfs::builders::CreateLocationNfsFluentBuilder::on_prem_config) / [`set_on_prem_config(Option<OnPremConfig>)`](crate::operation::create_location_nfs::builders::CreateLocationNfsFluentBuilder::set_on_prem_config):<br>required: **true**<br><p>Specifies the Amazon Resource Name (ARN) of the DataSync agent that can connect to your NFS file server.</p> <p>You can specify more than one agent. For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/do-i-need-datasync-agent.html#multiple-agents">Using multiple DataSync agents</a>.</p><br>
/// - [`mount_options(NfsMountOptions)`](crate::operation::create_location_nfs::builders::CreateLocationNfsFluentBuilder::mount_options) / [`set_mount_options(Option<NfsMountOptions>)`](crate::operation::create_location_nfs::builders::CreateLocationNfsFluentBuilder::set_mount_options):<br>required: **false**<br><p>Specifies the options that DataSync can use to mount your NFS file server.</p><br>
/// - [`tags(TagListEntry)`](crate::operation::create_location_nfs::builders::CreateLocationNfsFluentBuilder::tags) / [`set_tags(Option<Vec::<TagListEntry>>)`](crate::operation::create_location_nfs::builders::CreateLocationNfsFluentBuilder::set_tags):<br>required: **false**<br><p>Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We recommend creating at least a name tag for your location.</p><br>
/// - On success, responds with [`CreateLocationNfsOutput`](crate::operation::create_location_nfs::CreateLocationNfsOutput) with field(s):
/// - [`location_arn(Option<String>)`](crate::operation::create_location_nfs::CreateLocationNfsOutput::location_arn): <p>The ARN of the transfer location that you created for your NFS file server.</p>
/// - On failure, responds with [`SdkError<CreateLocationNfsError>`](crate::operation::create_location_nfs::CreateLocationNfsError)
pub fn create_location_nfs(&self) -> crate::operation::create_location_nfs::builders::CreateLocationNfsFluentBuilder {
crate::operation::create_location_nfs::builders::CreateLocationNfsFluentBuilder::new(self.handle.clone())
}
}