disassociateMacSecKey method

Future<DisassociateMacSecKeyResponse> disassociateMacSecKey({
  1. required String connectionId,
  2. required String secretARN,
})

Removes the association between a MAC Security (MACsec) security key and a Direct Connect connection.

May throw DirectConnectClientException. May throw DirectConnectServerException.

Parameter connectionId : The ID of the dedicated connection (dxcon-xxxx), interconnect (dxcon-xxxx), or LAG (dxlag-xxxx).

You can use DescribeConnections, DescribeInterconnects, or DescribeLags to retrieve connection ID.

Parameter secretARN : The Amazon Resource Name (ARN) of the MAC Security (MACsec) secret key.

You can use DescribeConnections to retrieve the ARN of the MAC Security (MACsec) secret key.

Implementation

Future<DisassociateMacSecKeyResponse> disassociateMacSecKey({
  required String connectionId,
  required String secretARN,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'OvertureService.DisassociateMacSecKey'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'connectionId': connectionId,
      'secretARN': secretARN,
    },
  );

  return DisassociateMacSecKeyResponse.fromJson(jsonResponse.body);
}