1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`UpdateConnection`](crate::operation::update_connection::builders::UpdateConnectionFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`connection_id(impl Into<String>)`](crate::operation::update_connection::builders::UpdateConnectionFluentBuilder::connection_id) / [`set_connection_id(Option<String>)`](crate::operation::update_connection::builders::UpdateConnectionFluentBuilder::set_connection_id):<br>required: **true**<br><p>The ID of the dedicated connection.</p> <p>You can use <code>DescribeConnections</code> to retrieve the connection ID.</p><br>
    ///   - [`connection_name(impl Into<String>)`](crate::operation::update_connection::builders::UpdateConnectionFluentBuilder::connection_name) / [`set_connection_name(Option<String>)`](crate::operation::update_connection::builders::UpdateConnectionFluentBuilder::set_connection_name):<br>required: **false**<br><p>The name of the connection.</p><br>
    ///   - [`encryption_mode(impl Into<String>)`](crate::operation::update_connection::builders::UpdateConnectionFluentBuilder::encryption_mode) / [`set_encryption_mode(Option<String>)`](crate::operation::update_connection::builders::UpdateConnectionFluentBuilder::set_encryption_mode):<br>required: **false**<br><p>The connection MAC Security (MACsec) encryption mode.</p> <p>The valid values are <code>no_encrypt</code>, <code>should_encrypt</code>, and <code>must_encrypt</code>.</p><br>
    /// - On success, responds with [`UpdateConnectionOutput`](crate::operation::update_connection::UpdateConnectionOutput) with field(s):
    ///   - [`owner_account(Option<String>)`](crate::operation::update_connection::UpdateConnectionOutput::owner_account): <p>The ID of the Amazon Web Services account that owns the connection.</p>
    ///   - [`connection_id(Option<String>)`](crate::operation::update_connection::UpdateConnectionOutput::connection_id): <p>The ID of the connection.</p>
    ///   - [`connection_name(Option<String>)`](crate::operation::update_connection::UpdateConnectionOutput::connection_name): <p>The name of the connection.</p>
    ///   - [`connection_state(Option<ConnectionState>)`](crate::operation::update_connection::UpdateConnectionOutput::connection_state): <p>The state of the connection. The following are the possible values:</p> <ul>  <li>   <p><code>ordering</code>: The initial state of a hosted connection provisioned on an interconnect. The connection stays in the ordering state until the owner of the hosted connection confirms or declines the connection order.</p></li>  <li>   <p><code>requested</code>: The initial state of a standard connection. The connection stays in the requested state until the Letter of Authorization (LOA) is sent to the customer.</p></li>  <li>   <p><code>pending</code>: The connection has been approved and is being initialized.</p></li>  <li>   <p><code>available</code>: The network link is up and the connection is ready for use.</p></li>  <li>   <p><code>down</code>: The network link is down.</p></li>  <li>   <p><code>deleting</code>: The connection is being deleted.</p></li>  <li>   <p><code>deleted</code>: The connection has been deleted.</p></li>  <li>   <p><code>rejected</code>: A hosted connection in the <code>ordering</code> state enters the <code>rejected</code> state if it is deleted by the customer.</p></li>  <li>   <p><code>unknown</code>: The state of the connection is not available.</p></li> </ul>
    ///   - [`region(Option<String>)`](crate::operation::update_connection::UpdateConnectionOutput::region): <p>The Amazon Web Services Region where the connection is located.</p>
    ///   - [`location(Option<String>)`](crate::operation::update_connection::UpdateConnectionOutput::location): <p>The location of the connection.</p>
    ///   - [`bandwidth(Option<String>)`](crate::operation::update_connection::UpdateConnectionOutput::bandwidth): <p>The bandwidth of the connection.</p>
    ///   - [`vlan(i32)`](crate::operation::update_connection::UpdateConnectionOutput::vlan): <p>The ID of the VLAN.</p>
    ///   - [`partner_name(Option<String>)`](crate::operation::update_connection::UpdateConnectionOutput::partner_name): <p>The name of the Direct Connect service provider associated with the connection.</p>
    ///   - [`loa_issue_time(Option<DateTime>)`](crate::operation::update_connection::UpdateConnectionOutput::loa_issue_time): <p>The time of the most recent call to <code>DescribeLoa</code> for this connection.</p>
    ///   - [`lag_id(Option<String>)`](crate::operation::update_connection::UpdateConnectionOutput::lag_id): <p>The ID of the LAG.</p>
    ///   - [`aws_device(Option<String>)`](crate::operation::update_connection::UpdateConnectionOutput::aws_device): <p>The Direct Connect endpoint on which the physical connection terminates.</p>
    ///   - [`jumbo_frame_capable(Option<bool>)`](crate::operation::update_connection::UpdateConnectionOutput::jumbo_frame_capable): <p>Indicates whether jumbo frames are supported.</p>
    ///   - [`aws_device_v2(Option<String>)`](crate::operation::update_connection::UpdateConnectionOutput::aws_device_v2): <p>The Direct Connect endpoint that terminates the physical connection.</p>
    ///   - [`aws_logical_device_id(Option<String>)`](crate::operation::update_connection::UpdateConnectionOutput::aws_logical_device_id): <p>The Direct Connect endpoint that terminates the logical connection. This device might be different than the device that terminates the physical connection.</p>
    ///   - [`has_logical_redundancy(Option<HasLogicalRedundancy>)`](crate::operation::update_connection::UpdateConnectionOutput::has_logical_redundancy): <p>Indicates whether the connection supports a secondary BGP peer in the same address family (IPv4/IPv6).</p>
    ///   - [`tags(Option<Vec::<Tag>>)`](crate::operation::update_connection::UpdateConnectionOutput::tags): <p>The tags associated with the connection.</p>
    ///   - [`provider_name(Option<String>)`](crate::operation::update_connection::UpdateConnectionOutput::provider_name): <p>The name of the service provider associated with the connection.</p>
    ///   - [`mac_sec_capable(Option<bool>)`](crate::operation::update_connection::UpdateConnectionOutput::mac_sec_capable): <p>Indicates whether the connection supports MAC Security (MACsec).</p>
    ///   - [`port_encryption_status(Option<String>)`](crate::operation::update_connection::UpdateConnectionOutput::port_encryption_status): <p>The MAC Security (MACsec) port link status of the connection.</p> <p>The valid values are <code>Encryption Up</code>, which means that there is an active Connection Key Name, or <code>Encryption Down</code>.</p>
    ///   - [`encryption_mode(Option<String>)`](crate::operation::update_connection::UpdateConnectionOutput::encryption_mode): <p>The MAC Security (MACsec) connection encryption mode.</p> <p>The valid values are <code>no_encrypt</code>, <code>should_encrypt</code>, and <code>must_encrypt</code>.</p>
    ///   - [`mac_sec_keys(Option<Vec::<MacSecKey>>)`](crate::operation::update_connection::UpdateConnectionOutput::mac_sec_keys): <p>The MAC Security (MACsec) security keys associated with the connection.</p>
    /// - On failure, responds with [`SdkError<UpdateConnectionError>`](crate::operation::update_connection::UpdateConnectionError)
    pub fn update_connection(&self) -> crate::operation::update_connection::builders::UpdateConnectionFluentBuilder {
        crate::operation::update_connection::builders::UpdateConnectionFluentBuilder::new(self.handle.clone())
    }
}