Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AssociateMacSecKeyCommand

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.

For information about MAC Security (MACsec) key considerations, see MACsec pre-shared CKN/CAK key considerations in the Direct Connect User Guide.

example

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);
see

AssociateMacSecKeyCommandInput for command's input shape.

see

AssociateMacSecKeyCommandOutput for command's response shape.

see

config for DirectConnectClient's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: AssociateMacSecKeyCommandInput

Readonly middlewareStack

Methods

Static getEndpointParameterInstructions