aws_sdk_ec2/client/
modify_vpn_tunnel_options.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 [`ModifyVpnTunnelOptions`](crate::operation::modify_vpn_tunnel_options::builders::ModifyVpnTunnelOptionsFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`vpn_connection_id(impl Into<String>)`](crate::operation::modify_vpn_tunnel_options::builders::ModifyVpnTunnelOptionsFluentBuilder::vpn_connection_id) / [`set_vpn_connection_id(Option<String>)`](crate::operation::modify_vpn_tunnel_options::builders::ModifyVpnTunnelOptionsFluentBuilder::set_vpn_connection_id):<br>required: **true**<br><p>The ID of the Amazon Web Services Site-to-Site VPN connection.</p><br>
7    ///   - [`vpn_tunnel_outside_ip_address(impl Into<String>)`](crate::operation::modify_vpn_tunnel_options::builders::ModifyVpnTunnelOptionsFluentBuilder::vpn_tunnel_outside_ip_address) / [`set_vpn_tunnel_outside_ip_address(Option<String>)`](crate::operation::modify_vpn_tunnel_options::builders::ModifyVpnTunnelOptionsFluentBuilder::set_vpn_tunnel_outside_ip_address):<br>required: **true**<br><p>The external IP address of the VPN tunnel.</p><br>
8    ///   - [`tunnel_options(ModifyVpnTunnelOptionsSpecification)`](crate::operation::modify_vpn_tunnel_options::builders::ModifyVpnTunnelOptionsFluentBuilder::tunnel_options) / [`set_tunnel_options(Option<ModifyVpnTunnelOptionsSpecification>)`](crate::operation::modify_vpn_tunnel_options::builders::ModifyVpnTunnelOptionsFluentBuilder::set_tunnel_options):<br>required: **true**<br><p>The tunnel options to modify.</p><br>
9    ///   - [`dry_run(bool)`](crate::operation::modify_vpn_tunnel_options::builders::ModifyVpnTunnelOptionsFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::modify_vpn_tunnel_options::builders::ModifyVpnTunnelOptionsFluentBuilder::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    ///   - [`skip_tunnel_replacement(bool)`](crate::operation::modify_vpn_tunnel_options::builders::ModifyVpnTunnelOptionsFluentBuilder::skip_tunnel_replacement) / [`set_skip_tunnel_replacement(Option<bool>)`](crate::operation::modify_vpn_tunnel_options::builders::ModifyVpnTunnelOptionsFluentBuilder::set_skip_tunnel_replacement):<br>required: **false**<br><p>Choose whether or not to trigger immediate tunnel replacement. This is only applicable when turning on or off <code>EnableTunnelLifecycleControl</code>.</p> <p>Valid values: <code>True</code> | <code>False</code></p><br>
11    ///   - [`pre_shared_key_storage(impl Into<String>)`](crate::operation::modify_vpn_tunnel_options::builders::ModifyVpnTunnelOptionsFluentBuilder::pre_shared_key_storage) / [`set_pre_shared_key_storage(Option<String>)`](crate::operation::modify_vpn_tunnel_options::builders::ModifyVpnTunnelOptionsFluentBuilder::set_pre_shared_key_storage):<br>required: **false**<br><p>Specifies the storage mode for the pre-shared key (PSK). Valid values are <code>Standard</code> (stored in Site-to-Site VPN service) or <code>SecretsManager</code> (stored in Amazon Web Services Secrets Manager).</p><br>
12    /// - On success, responds with [`ModifyVpnTunnelOptionsOutput`](crate::operation::modify_vpn_tunnel_options::ModifyVpnTunnelOptionsOutput) with field(s):
13    ///   - [`vpn_connection(Option<VpnConnection>)`](crate::operation::modify_vpn_tunnel_options::ModifyVpnTunnelOptionsOutput::vpn_connection): <p>Information about the VPN connection.</p>
14    /// - On failure, responds with [`SdkError<ModifyVpnTunnelOptionsError>`](crate::operation::modify_vpn_tunnel_options::ModifyVpnTunnelOptionsError)
15    pub fn modify_vpn_tunnel_options(&self) -> crate::operation::modify_vpn_tunnel_options::builders::ModifyVpnTunnelOptionsFluentBuilder {
16        crate::operation::modify_vpn_tunnel_options::builders::ModifyVpnTunnelOptionsFluentBuilder::new(self.handle.clone())
17    }
18}