aws_sdk_directconnect/client/
update_direct_connect_gateway.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 [`UpdateDirectConnectGateway`](crate::operation::update_direct_connect_gateway::builders::UpdateDirectConnectGatewayFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`direct_connect_gateway_id(impl Into<String>)`](crate::operation::update_direct_connect_gateway::builders::UpdateDirectConnectGatewayFluentBuilder::direct_connect_gateway_id) / [`set_direct_connect_gateway_id(Option<String>)`](crate::operation::update_direct_connect_gateway::builders::UpdateDirectConnectGatewayFluentBuilder::set_direct_connect_gateway_id):<br>required: **true**<br><p>The ID of the Direct Connect gateway to update.</p><br>
7    ///   - [`new_direct_connect_gateway_name(impl Into<String>)`](crate::operation::update_direct_connect_gateway::builders::UpdateDirectConnectGatewayFluentBuilder::new_direct_connect_gateway_name) / [`set_new_direct_connect_gateway_name(Option<String>)`](crate::operation::update_direct_connect_gateway::builders::UpdateDirectConnectGatewayFluentBuilder::set_new_direct_connect_gateway_name):<br>required: **true**<br><p>The new name for the Direct Connect gateway.</p><br>
8    /// - On success, responds with [`UpdateDirectConnectGatewayOutput`](crate::operation::update_direct_connect_gateway::UpdateDirectConnectGatewayOutput) with field(s):
9    ///   - [`direct_connect_gateway(Option<DirectConnectGateway>)`](crate::operation::update_direct_connect_gateway::UpdateDirectConnectGatewayOutput::direct_connect_gateway): <p>Informaiton about a Direct Connect gateway, which enables you to connect virtual interfaces and virtual private gateways or transit gateways.</p>
10    /// - On failure, responds with [`SdkError<UpdateDirectConnectGatewayError>`](crate::operation::update_direct_connect_gateway::UpdateDirectConnectGatewayError)
11    pub fn update_direct_connect_gateway(
12        &self,
13    ) -> crate::operation::update_direct_connect_gateway::builders::UpdateDirectConnectGatewayFluentBuilder {
14        crate::operation::update_direct_connect_gateway::builders::UpdateDirectConnectGatewayFluentBuilder::new(self.handle.clone())
15    }
16}