associate_mac_sec_key
async
¶
associate_mac_sec_key(
connection_id: ConnectionId,
*,
config_overrides: Optional[AsyncDirectConnectClientConfig] = None,
secret_arn: Optional[SecretARN] = None,
ckn: Optional[Ckn] = None,
cak: Optional[Cak] = None,
) -> AssociateMacSecKeyResponse
Associates a MAC Security (MACsec) Connection Key Name (CKN)/ Connectivity Association Key (CAK) pair with a Direct Connect 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.
Parameters:
-
connection_id(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.
-
secret_arn(Optional[SecretARN], default:None) –The Amazon Resource Name (ARN) of the MAC Security (MACsec) secret key to associate with the connection.
You can use DescribeConnections or DescribeLags to retrieve the MAC Security (MACsec) secret key.
If you use this request parameter, you do not use the
cknandcakrequest parameters. -
ckn(Optional[Ckn], default:None) –The MAC Security (MACsec) CKN to associate with the connection.
You can create the CKN/CAK pair using an industry standard tool.
The valid values are 64 hexadecimal characters (0-9, A-E).
If you use this request parameter, you must use the
cakrequest parameter and not use thesecretARNrequest parameter. -
cak(Optional[Cak], default:None) –The MAC Security (MACsec) CAK to associate with the connection.
You can create the CKN/CAK pair using an industry standard tool.
The valid values are 64 hexadecimal characters (0-9, A-E).
If you use this request parameter, you must use the
cknrequest parameter and not use thesecretARNrequest parameter.
Raises:
-
DirectConnectClientException–One or more parameters are not valid.
-
DirectConnectServerException–A server-side error occurred.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_direct_connect/_services/async_direct_connect.py
963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 | |