aws_sdk_datasync/client/
create_location_fsx_ontap.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateLocationFsxOntap`](crate::operation::create_location_fsx_ontap::builders::CreateLocationFsxOntapFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`protocol(FsxProtocol)`](crate::operation::create_location_fsx_ontap::builders::CreateLocationFsxOntapFluentBuilder::protocol) / [`set_protocol(Option<FsxProtocol>)`](crate::operation::create_location_fsx_ontap::builders::CreateLocationFsxOntapFluentBuilder::set_protocol):<br>required: **true**<br><p>Specifies the data transfer protocol that DataSync uses to access your Amazon FSx file system.</p><br>
    ///   - [`security_group_arns(impl Into<String>)`](crate::operation::create_location_fsx_ontap::builders::CreateLocationFsxOntapFluentBuilder::security_group_arns) / [`set_security_group_arns(Option<Vec::<String>>)`](crate::operation::create_location_fsx_ontap::builders::CreateLocationFsxOntapFluentBuilder::set_security_group_arns):<br>required: **true**<br><p>Specifies the Amazon EC2 security groups that provide access to your file system's preferred subnet.</p> <p>The security groups must allow outbound traffic on the following ports (depending on the protocol you use):</p> <ul>  <li>   <p><b>Network File System (NFS)</b>: TCP ports 111, 635, and 2049</p></li>  <li>   <p><b>Server Message Block (SMB)</b>: TCP port 445</p></li> </ul> <p>Your file system's security groups must also allow inbound traffic on the same ports.</p><br>
    ///   - [`storage_virtual_machine_arn(impl Into<String>)`](crate::operation::create_location_fsx_ontap::builders::CreateLocationFsxOntapFluentBuilder::storage_virtual_machine_arn) / [`set_storage_virtual_machine_arn(Option<String>)`](crate::operation::create_location_fsx_ontap::builders::CreateLocationFsxOntapFluentBuilder::set_storage_virtual_machine_arn):<br>required: **true**<br><p>Specifies the ARN of the storage virtual machine (SVM) in your file system where you want to copy data to or from.</p><br>
    ///   - [`subdirectory(impl Into<String>)`](crate::operation::create_location_fsx_ontap::builders::CreateLocationFsxOntapFluentBuilder::subdirectory) / [`set_subdirectory(Option<String>)`](crate::operation::create_location_fsx_ontap::builders::CreateLocationFsxOntapFluentBuilder::set_subdirectory):<br>required: **false**<br><p>Specifies a path to the file share in the SVM where you want to transfer data to or from.</p> <p>You can specify a junction path (also known as a mount point), qtree path (for NFS file shares), or share name (for SMB file shares). For example, your mount path might be <code>/vol1</code>, <code>/vol1/tree1</code>, or <code>/share1</code>.</p><note>  <p>Don't specify a junction path in the SVM's root volume. For more information, see <a href="https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/managing-svms.html">Managing FSx for ONTAP storage virtual machines</a> in the <i>Amazon FSx for NetApp ONTAP User Guide</i>.</p> </note><br>
    ///   - [`tags(TagListEntry)`](crate::operation::create_location_fsx_ontap::builders::CreateLocationFsxOntapFluentBuilder::tags) / [`set_tags(Option<Vec::<TagListEntry>>)`](crate::operation::create_location_fsx_ontap::builders::CreateLocationFsxOntapFluentBuilder::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 [`CreateLocationFsxOntapOutput`](crate::operation::create_location_fsx_ontap::CreateLocationFsxOntapOutput) with field(s):
    ///   - [`location_arn(Option<String>)`](crate::operation::create_location_fsx_ontap::CreateLocationFsxOntapOutput::location_arn): <p>Specifies the ARN of the FSx for ONTAP file system location that you create.</p>
    /// - On failure, responds with [`SdkError<CreateLocationFsxOntapError>`](crate::operation::create_location_fsx_ontap::CreateLocationFsxOntapError)
    pub fn create_location_fsx_ontap(&self) -> crate::operation::create_location_fsx_ontap::builders::CreateLocationFsxOntapFluentBuilder {
        crate::operation::create_location_fsx_ontap::builders::CreateLocationFsxOntapFluentBuilder::new(self.handle.clone())
    }
}