async def disassociate_mac_sec_key(
self,
connection_id: "capo_direct_connect.types.connection_id.ConnectionId",
secret_arn: "capo_direct_connect.types.secret_arn.SecretARN",
*,
config_overrides: Optional[AsyncDirectConnectClientConfig] = None,
) -> "capo_direct_connect.types.disassociate_mac_sec_key_response.DisassociateMacSecKeyResponse":
"""<p>Removes the association between a MAC Security (MACsec) security key and a Direct Connect connection.</p>
Args:
connection_id: <p>The ID of the dedicated connection (dxcon-xxxx), interconnect (dxcon-xxxx), or LAG (dxlag-xxxx).</p> <p>You can use <a>DescribeConnections</a>, <a>DescribeInterconnects</a>, or <a>DescribeLags</a> to retrieve connection ID.</p>
secret_arn: <p>The Amazon Resource Name (ARN) of the MAC Security (MACsec) secret key.</p> <p>You can use <a>DescribeConnections</a> to retrieve the ARN of the MAC Security (MACsec) secret key.</p>
Raises:
capo_direct_connect.errors.direct_connect_client_exception.DirectConnectClientException: <p>One or more parameters are not valid.</p>
capo_direct_connect.errors.direct_connect_server_exception.DirectConnectServerException: <p>A server-side error occurred.</p>
capo_direct_connect.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_direct_connect.types.disassociate_mac_sec_key_request.DisassociateMacSecKeyRequest]",
) -> AsyncOperationResponse[
"capo_direct_connect.types.disassociate_mac_sec_key_response.DisassociateMacSecKeyResponse"
]:
import capo_direct_connect._operations.overture_service.disassociate_mac_sec_key
(
output,
http_response,
) = await capo_direct_connect._operations.overture_service.disassociate_mac_sec_key.async_disassociate_mac_sec_key(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DisassociateMacSecKey")
)
input_: capo_direct_connect.types.disassociate_mac_sec_key_request.DisassociateMacSecKeyRequest = {
"connection_id": connection_id,
"secret_arn": secret_arn,
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output