You can remove the association between the connection and the MACsec key.
To remove an association between a connection and a MACsec key
Open the AWS Direct Connect console at https://console.aws.amazon.com/directconnect/v2/home.
In the left pane, choose Connections.
Select a connection, and then choose View details.
Select the MACsec secret to remove, and then choose Disassociate key.
In the confirmation dialog box, enter disassociate, and then choose Disassociate.
disassociate-mac-sec-key (AWS CLI)
DisassociateMacSecKey (AWS Direct Connect API)
Javascript is disabled or is unavailable in your browser.
To use the Amazon Web Services Documentation, Javascript must be enabled. Please refer to your browser's Help pages for instructions.
Thanks for letting us know we're doing a good job!
If you've got a moment, please tell us what we did right so we can do more of it.
Thanks for letting us know this page needs work. We're sorry we let you down.
If you've got a moment, please tell us how we can make the documentation better.