libZSservicesZSamazonka-directconnectZSamazonka-directconnect
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.DirectConnect.AssociateMacSecKey

Description

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.

Synopsis

Creating a Request

data AssociateMacSecKey Source #

See: newAssociateMacSecKey smart constructor.

Constructors

AssociateMacSecKey' 

Fields

  • ckn :: Maybe Text

    The MAC Security (MACsec) CKN to associate with the dedicated 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 cak request parameter and not use the secretARN request parameter.

  • cak :: Maybe Text

    The MAC Security (MACsec) CAK to associate with the dedicated 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 ckn request parameter and not use the secretARN request parameter.

  • secretARN :: Maybe Text

    The Amazon Resource Name (ARN) of the MAC Security (MACsec) secret key to associate with the dedicated 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 ckn and cak request parameters.

  • connectionId :: Text

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

    You can use DescribeConnections or DescribeLags to retrieve connection ID.

Instances

Instances details
Eq AssociateMacSecKey Source # 
Instance details

Defined in Amazonka.DirectConnect.AssociateMacSecKey

Read AssociateMacSecKey Source # 
Instance details

Defined in Amazonka.DirectConnect.AssociateMacSecKey

Show AssociateMacSecKey Source # 
Instance details

Defined in Amazonka.DirectConnect.AssociateMacSecKey

Generic AssociateMacSecKey Source # 
Instance details

Defined in Amazonka.DirectConnect.AssociateMacSecKey

Associated Types

type Rep AssociateMacSecKey :: Type -> Type #

NFData AssociateMacSecKey Source # 
Instance details

Defined in Amazonka.DirectConnect.AssociateMacSecKey

Methods

rnf :: AssociateMacSecKey -> () #

Hashable AssociateMacSecKey Source # 
Instance details

Defined in Amazonka.DirectConnect.AssociateMacSecKey

ToJSON AssociateMacSecKey Source # 
Instance details

Defined in Amazonka.DirectConnect.AssociateMacSecKey

AWSRequest AssociateMacSecKey Source # 
Instance details

Defined in Amazonka.DirectConnect.AssociateMacSecKey

Associated Types

type AWSResponse AssociateMacSecKey #

ToHeaders AssociateMacSecKey Source # 
Instance details

Defined in Amazonka.DirectConnect.AssociateMacSecKey

ToPath AssociateMacSecKey Source # 
Instance details

Defined in Amazonka.DirectConnect.AssociateMacSecKey

ToQuery AssociateMacSecKey Source # 
Instance details

Defined in Amazonka.DirectConnect.AssociateMacSecKey

type Rep AssociateMacSecKey Source # 
Instance details

Defined in Amazonka.DirectConnect.AssociateMacSecKey

type Rep AssociateMacSecKey = D1 ('MetaData "AssociateMacSecKey" "Amazonka.DirectConnect.AssociateMacSecKey" "libZSservicesZSamazonka-directconnectZSamazonka-directconnect" 'False) (C1 ('MetaCons "AssociateMacSecKey'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "ckn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "cak") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "secretARN") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "connectionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse AssociateMacSecKey Source # 
Instance details

Defined in Amazonka.DirectConnect.AssociateMacSecKey

newAssociateMacSecKey Source #

Create a value of AssociateMacSecKey with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:ckn:AssociateMacSecKey', associateMacSecKey_ckn - The MAC Security (MACsec) CKN to associate with the dedicated 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 cak request parameter and not use the secretARN request parameter.

$sel:cak:AssociateMacSecKey', associateMacSecKey_cak - The MAC Security (MACsec) CAK to associate with the dedicated 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 ckn request parameter and not use the secretARN request parameter.

$sel:secretARN:AssociateMacSecKey', associateMacSecKey_secretARN - The Amazon Resource Name (ARN) of the MAC Security (MACsec) secret key to associate with the dedicated 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 ckn and cak request parameters.

$sel:connectionId:AssociateMacSecKey', associateMacSecKey_connectionId - The ID of the dedicated connection (dxcon-xxxx), or the ID of the LAG (dxlag-xxxx).

You can use DescribeConnections or DescribeLags to retrieve connection ID.

Request Lenses

associateMacSecKey_ckn :: Lens' AssociateMacSecKey (Maybe Text) Source #

The MAC Security (MACsec) CKN to associate with the dedicated 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 cak request parameter and not use the secretARN request parameter.

associateMacSecKey_cak :: Lens' AssociateMacSecKey (Maybe Text) Source #

The MAC Security (MACsec) CAK to associate with the dedicated 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 ckn request parameter and not use the secretARN request parameter.

associateMacSecKey_secretARN :: Lens' AssociateMacSecKey (Maybe Text) Source #

The Amazon Resource Name (ARN) of the MAC Security (MACsec) secret key to associate with the dedicated 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 ckn and cak request parameters.

associateMacSecKey_connectionId :: Lens' AssociateMacSecKey Text Source #

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

You can use DescribeConnections or DescribeLags to retrieve connection ID.

Destructuring the Response

data AssociateMacSecKeyResponse Source #

See: newAssociateMacSecKeyResponse smart constructor.

Constructors

AssociateMacSecKeyResponse' 

Fields

Instances

Instances details
Eq AssociateMacSecKeyResponse Source # 
Instance details

Defined in Amazonka.DirectConnect.AssociateMacSecKey

Read AssociateMacSecKeyResponse Source # 
Instance details

Defined in Amazonka.DirectConnect.AssociateMacSecKey

Show AssociateMacSecKeyResponse Source # 
Instance details

Defined in Amazonka.DirectConnect.AssociateMacSecKey

Generic AssociateMacSecKeyResponse Source # 
Instance details

Defined in Amazonka.DirectConnect.AssociateMacSecKey

Associated Types

type Rep AssociateMacSecKeyResponse :: Type -> Type #

NFData AssociateMacSecKeyResponse Source # 
Instance details

Defined in Amazonka.DirectConnect.AssociateMacSecKey

type Rep AssociateMacSecKeyResponse Source # 
Instance details

Defined in Amazonka.DirectConnect.AssociateMacSecKey

type Rep AssociateMacSecKeyResponse = D1 ('MetaData "AssociateMacSecKeyResponse" "Amazonka.DirectConnect.AssociateMacSecKey" "libZSservicesZSamazonka-directconnectZSamazonka-directconnect" 'False) (C1 ('MetaCons "AssociateMacSecKeyResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "connectionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "macSecKeys") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [MacSecKey])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newAssociateMacSecKeyResponse Source #

Create a value of AssociateMacSecKeyResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:connectionId:AssociateMacSecKey', associateMacSecKeyResponse_connectionId - The ID of the dedicated connection (dxcon-xxxx), or the ID of the LAG (dxlag-xxxx).

$sel:macSecKeys:AssociateMacSecKeyResponse', associateMacSecKeyResponse_macSecKeys - The MAC Security (MACsec) security keys associated with the dedicated connection.

$sel:httpStatus:AssociateMacSecKeyResponse', associateMacSecKeyResponse_httpStatus - The response's http status code.

Response Lenses

associateMacSecKeyResponse_connectionId :: Lens' AssociateMacSecKeyResponse (Maybe Text) Source #

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

associateMacSecKeyResponse_macSecKeys :: Lens' AssociateMacSecKeyResponse (Maybe [MacSecKey]) Source #

The MAC Security (MACsec) security keys associated with the dedicated connection.