aws_sdk_efs/client/
create_mount_target.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`CreateMountTarget`](crate::operation::create_mount_target::builders::CreateMountTargetFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`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>
7    ///   - [`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>
8    ///   - [`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>If the IP address type for the mount target is IPv4, then specify the IPv4 address within the address range of the specified subnet.</p><br>
9    ///   - [`ipv6_address(impl Into<String>)`](crate::operation::create_mount_target::builders::CreateMountTargetFluentBuilder::ipv6_address) / [`set_ipv6_address(Option<String>)`](crate::operation::create_mount_target::builders::CreateMountTargetFluentBuilder::set_ipv6_address):<br>required: **false**<br><p>If the IP address type for the mount target is IPv6, then specify the IPv6 address within the address range of the specified subnet.</p><br>
10    ///   - [`ip_address_type(IpAddressType)`](crate::operation::create_mount_target::builders::CreateMountTargetFluentBuilder::ip_address_type) / [`set_ip_address_type(Option<IpAddressType>)`](crate::operation::create_mount_target::builders::CreateMountTargetFluentBuilder::set_ip_address_type):<br>required: **false**<br><p>Specify the type of IP address of the mount target you are creating. Options are IPv4, dual stack, or IPv6. If you don’t specify an IpAddressType, then IPv4 is used.</p> <ul>  <li>   <p>IPV4_ONLY – Create mount target with IPv4 only subnet or dual-stack subnet.</p></li>  <li>   <p>DUAL_STACK – Create mount target with dual-stack subnet.</p></li>  <li>   <p>IPV6_ONLY – Create mount target with IPv6 only subnet.</p></li> </ul><note>  <p>Creating IPv6 mount target only ENI in dual-stack subnet is not supported.</p> </note><br>
11    ///   - [`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>VPC security group IDs, of the form <code>sg-xxxxxxxx</code>. These must be for the same VPC as the subnet specified. The maximum number of security groups depends on account quota. For more information, see <a href="https://docs.aws.amazon.com/vpc/latest/userguide/amazon-vpc-limits.html">Amazon VPC Quotas</a> in the <i>Amazon VPC User Guide</i> (see the <b>Security Groups</b> table).</p><br>
12    /// - On success, responds with [`CreateMountTargetOutput`](crate::operation::create_mount_target::CreateMountTargetOutput) with field(s):
13    ///   - [`owner_id(Option<String>)`](crate::operation::create_mount_target::CreateMountTargetOutput::owner_id): <p>Amazon Web Services account ID that owns the resource.</p>
14    ///   - [`mount_target_id(String)`](crate::operation::create_mount_target::CreateMountTargetOutput::mount_target_id): <p>System-assigned mount target ID.</p>
15    ///   - [`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>
16    ///   - [`subnet_id(String)`](crate::operation::create_mount_target::CreateMountTargetOutput::subnet_id): <p>The ID of the mount target's subnet.</p>
17    ///   - [`life_cycle_state(LifeCycleState)`](crate::operation::create_mount_target::CreateMountTargetOutput::life_cycle_state): <p>Lifecycle state of the mount target.</p>
18    ///   - [`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>
19    ///   - [`ipv6_address(Option<String>)`](crate::operation::create_mount_target::CreateMountTargetOutput::ipv6_address): <p>The IPv6 address for the mount target.</p>
20    ///   - [`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>
21    ///   - [`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>
22    ///   - [`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>
23    ///   - [`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>
24    /// - On failure, responds with [`SdkError<CreateMountTargetError>`](crate::operation::create_mount_target::CreateMountTargetError)
25    pub fn create_mount_target(&self) -> crate::operation::create_mount_target::builders::CreateMountTargetFluentBuilder {
26        crate::operation::create_mount_target::builders::CreateMountTargetFluentBuilder::new(self.handle.clone())
27    }
28}