aws-sdk-efs 1.54.0

AWS SDK for Amazon Elastic File System
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateMountTarget`](crate::operation::create_mount_target::builders::CreateMountTargetFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`file_system_id(impl Into<String>)`](crate::operation::create_mount_target::builders::CreateMountTargetFluentBuilder::file_system_id) / [`set_file_system_id(Option<String>)`](crate::operation::create_mount_target::builders::CreateMountTargetFluentBuilder::set_file_system_id):<br>required: **true**<br><p>The ID of the file system for which to create the mount target.</p><br>
    ///   - [`subnet_id(impl Into<String>)`](crate::operation::create_mount_target::builders::CreateMountTargetFluentBuilder::subnet_id) / [`set_subnet_id(Option<String>)`](crate::operation::create_mount_target::builders::CreateMountTargetFluentBuilder::set_subnet_id):<br>required: **true**<br><p>The ID of the subnet to add the mount target in. For One Zone file systems, use the subnet that is associated with the file system's Availability Zone.</p><br>
    ///   - [`ip_address(impl Into<String>)`](crate::operation::create_mount_target::builders::CreateMountTargetFluentBuilder::ip_address) / [`set_ip_address(Option<String>)`](crate::operation::create_mount_target::builders::CreateMountTargetFluentBuilder::set_ip_address):<br>required: **false**<br><p>Valid IPv4 address within the address range of the specified subnet.</p><br>
    ///   - [`security_groups(impl Into<String>)`](crate::operation::create_mount_target::builders::CreateMountTargetFluentBuilder::security_groups) / [`set_security_groups(Option<Vec::<String>>)`](crate::operation::create_mount_target::builders::CreateMountTargetFluentBuilder::set_security_groups):<br>required: **false**<br><p>Up to five VPC security group IDs, of the form <code>sg-xxxxxxxx</code>. These must be for the same VPC as subnet specified.</p><br>
    /// - On success, responds with [`CreateMountTargetOutput`](crate::operation::create_mount_target::CreateMountTargetOutput) with field(s):
    ///   - [`owner_id(Option<String>)`](crate::operation::create_mount_target::CreateMountTargetOutput::owner_id): <p>Amazon Web Services account ID that owns the resource.</p>
    ///   - [`mount_target_id(String)`](crate::operation::create_mount_target::CreateMountTargetOutput::mount_target_id): <p>System-assigned mount target ID.</p>
    ///   - [`file_system_id(String)`](crate::operation::create_mount_target::CreateMountTargetOutput::file_system_id): <p>The ID of the file system for which the mount target is intended.</p>
    ///   - [`subnet_id(String)`](crate::operation::create_mount_target::CreateMountTargetOutput::subnet_id): <p>The ID of the mount target's subnet.</p>
    ///   - [`life_cycle_state(LifeCycleState)`](crate::operation::create_mount_target::CreateMountTargetOutput::life_cycle_state): <p>Lifecycle state of the mount target.</p>
    ///   - [`ip_address(Option<String>)`](crate::operation::create_mount_target::CreateMountTargetOutput::ip_address): <p>Address at which the file system can be mounted by using the mount target.</p>
    ///   - [`network_interface_id(Option<String>)`](crate::operation::create_mount_target::CreateMountTargetOutput::network_interface_id): <p>The ID of the network interface that Amazon EFS created when it created the mount target.</p>
    ///   - [`availability_zone_id(Option<String>)`](crate::operation::create_mount_target::CreateMountTargetOutput::availability_zone_id): <p>The unique and consistent identifier of the Availability Zone that the mount target resides in. For example, <code>use1-az1</code> is an AZ ID for the us-east-1 Region and it has the same location in every Amazon Web Services account.</p>
    ///   - [`availability_zone_name(Option<String>)`](crate::operation::create_mount_target::CreateMountTargetOutput::availability_zone_name): <p>The name of the Availability Zone in which the mount target is located. Availability Zones are independently mapped to names for each Amazon Web Services account. For example, the Availability Zone <code>us-east-1a</code> for your Amazon Web Services account might not be the same location as <code>us-east-1a</code> for another Amazon Web Services account.</p>
    ///   - [`vpc_id(Option<String>)`](crate::operation::create_mount_target::CreateMountTargetOutput::vpc_id): <p>The virtual private cloud (VPC) ID that the mount target is configured in.</p>
    /// - On failure, responds with [`SdkError<CreateMountTargetError>`](crate::operation::create_mount_target::CreateMountTargetError)
    pub fn create_mount_target(&self) -> crate::operation::create_mount_target::builders::CreateMountTargetFluentBuilder {
        crate::operation::create_mount_target::builders::CreateMountTargetFluentBuilder::new(self.handle.clone())
    }
}