aws_sdk_ec2/client/
associate_nat_gateway_address.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 [`AssociateNatGatewayAddress`](crate::operation::associate_nat_gateway_address::builders::AssociateNatGatewayAddressFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`nat_gateway_id(impl Into<String>)`](crate::operation::associate_nat_gateway_address::builders::AssociateNatGatewayAddressFluentBuilder::nat_gateway_id) / [`set_nat_gateway_id(Option<String>)`](crate::operation::associate_nat_gateway_address::builders::AssociateNatGatewayAddressFluentBuilder::set_nat_gateway_id):<br>required: **true**<br><p>The ID of the NAT gateway.</p><br>
7    ///   - [`allocation_ids(impl Into<String>)`](crate::operation::associate_nat_gateway_address::builders::AssociateNatGatewayAddressFluentBuilder::allocation_ids) / [`set_allocation_ids(Option<Vec::<String>>)`](crate::operation::associate_nat_gateway_address::builders::AssociateNatGatewayAddressFluentBuilder::set_allocation_ids):<br>required: **true**<br><p>The allocation IDs of EIPs that you want to associate with your NAT gateway.</p><br>
8    ///   - [`private_ip_addresses(impl Into<String>)`](crate::operation::associate_nat_gateway_address::builders::AssociateNatGatewayAddressFluentBuilder::private_ip_addresses) / [`set_private_ip_addresses(Option<Vec::<String>>)`](crate::operation::associate_nat_gateway_address::builders::AssociateNatGatewayAddressFluentBuilder::set_private_ip_addresses):<br>required: **false**<br><p>The private IPv4 addresses that you want to assign to the NAT gateway.</p><br>
9    ///   - [`dry_run(bool)`](crate::operation::associate_nat_gateway_address::builders::AssociateNatGatewayAddressFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::associate_nat_gateway_address::builders::AssociateNatGatewayAddressFluentBuilder::set_dry_run):<br>required: **false**<br><p>Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p><br>
10    /// - On success, responds with [`AssociateNatGatewayAddressOutput`](crate::operation::associate_nat_gateway_address::AssociateNatGatewayAddressOutput) with field(s):
11    ///   - [`nat_gateway_id(Option<String>)`](crate::operation::associate_nat_gateway_address::AssociateNatGatewayAddressOutput::nat_gateway_id): <p>The ID of the NAT gateway.</p>
12    ///   - [`nat_gateway_addresses(Option<Vec::<NatGatewayAddress>>)`](crate::operation::associate_nat_gateway_address::AssociateNatGatewayAddressOutput::nat_gateway_addresses): <p>The IP addresses.</p>
13    /// - On failure, responds with [`SdkError<AssociateNatGatewayAddressError>`](crate::operation::associate_nat_gateway_address::AssociateNatGatewayAddressError)
14    pub fn associate_nat_gateway_address(
15        &self,
16    ) -> crate::operation::associate_nat_gateway_address::builders::AssociateNatGatewayAddressFluentBuilder {
17        crate::operation::associate_nat_gateway_address::builders::AssociateNatGatewayAddressFluentBuilder::new(self.handle.clone())
18    }
19}