aws_sdk_directconnect/client/
disassociate_mac_sec_key.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 [`DisassociateMacSecKey`](crate::operation::disassociate_mac_sec_key::builders::DisassociateMacSecKeyFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`connection_id(impl Into<String>)`](crate::operation::disassociate_mac_sec_key::builders::DisassociateMacSecKeyFluentBuilder::connection_id) / [`set_connection_id(Option<String>)`](crate::operation::disassociate_mac_sec_key::builders::DisassociateMacSecKeyFluentBuilder::set_connection_id):<br>required: **true**<br><p>The ID of the dedicated connection (dxcon-xxxx), or the ID of the LAG (dxlag-xxxx).</p> <p>You can use <code>DescribeConnections</code> or <code>DescribeLags</code> to retrieve connection ID.</p><br>
7    ///   - [`secret_arn(impl Into<String>)`](crate::operation::disassociate_mac_sec_key::builders::DisassociateMacSecKeyFluentBuilder::secret_arn) / [`set_secret_arn(Option<String>)`](crate::operation::disassociate_mac_sec_key::builders::DisassociateMacSecKeyFluentBuilder::set_secret_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the MAC Security (MACsec) secret key.</p> <p>You can use <code>DescribeConnections</code> to retrieve the ARN of the MAC Security (MACsec) secret key.</p><br>
8    /// - On success, responds with [`DisassociateMacSecKeyOutput`](crate::operation::disassociate_mac_sec_key::DisassociateMacSecKeyOutput) with field(s):
9    ///   - [`connection_id(Option<String>)`](crate::operation::disassociate_mac_sec_key::DisassociateMacSecKeyOutput::connection_id): <p>The ID of the dedicated connection (dxcon-xxxx), or the ID of the LAG (dxlag-xxxx).</p>
10    ///   - [`mac_sec_keys(Option<Vec::<MacSecKey>>)`](crate::operation::disassociate_mac_sec_key::DisassociateMacSecKeyOutput::mac_sec_keys): <p>The MAC Security (MACsec) security keys no longer associated with the dedicated connection.</p>
11    /// - On failure, responds with [`SdkError<DisassociateMacSecKeyError>`](crate::operation::disassociate_mac_sec_key::DisassociateMacSecKeyError)
12    pub fn disassociate_mac_sec_key(&self) -> crate::operation::disassociate_mac_sec_key::builders::DisassociateMacSecKeyFluentBuilder {
13        crate::operation::disassociate_mac_sec_key::builders::DisassociateMacSecKeyFluentBuilder::new(self.handle.clone())
14    }
15}