Associates a MAC Security (MACsec) Connection Key Name (CKN)/ Connectivity Association Key (CAK) pair with an Direct Connect dedicated connection.
You must supply either the secretARN, or the CKN/CAK (ckn and cak) pair in the request.
secretARN,
ckn
cak
For information about MAC Security (MACsec) key considerations, see MACsec pre-shared CKN/CAK key considerations in the Direct Connect User Guide.
Use a bare-bones client and the command you need to make an API call.
import { DirectConnectClient, AssociateMacSecKeyCommand } from "@aws-sdk/client-direct-connect"; // ES Modules import // const { DirectConnectClient, AssociateMacSecKeyCommand } = require("@aws-sdk/client-direct-connect"); // CommonJS import const client = new DirectConnectClient(config); const command = new AssociateMacSecKeyCommand(input); const response = await client.send(command);
AssociateMacSecKeyCommandInput for command's input shape.
input
AssociateMacSecKeyCommandOutput for command's response shape.
response
config for DirectConnectClient's config shape.
config
Associates a MAC Security (MACsec) Connection Key Name (CKN)/ Connectivity Association Key (CAK) pair with an Direct Connect dedicated connection.
You must supply either the
secretARN,
or the CKN/CAK (ckn
andcak
) pair in the request.For information about MAC Security (MACsec) key considerations, see MACsec pre-shared CKN/CAK key considerations in the Direct Connect User Guide.
Use a bare-bones client and the command you need to make an API call.
import { DirectConnectClient, AssociateMacSecKeyCommand } from "@aws-sdk/client-direct-connect"; // ES Modules import // const { DirectConnectClient, AssociateMacSecKeyCommand } = require("@aws-sdk/client-direct-connect"); // CommonJS import const client = new DirectConnectClient(config); const command = new AssociateMacSecKeyCommand(input); const response = await client.send(command);
AssociateMacSecKeyCommandInput for command's
input
shape.AssociateMacSecKeyCommandOutput for command's
response
shape.config for DirectConnectClient's
config
shape.