amazonka-transfer-2.0: Amazon Transfer Family SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Transfer.ImportHostKey

Description

Adds a host key to the server that's specified by the ServerId parameter.

Synopsis

Creating a Request

data ImportHostKey Source #

See: newImportHostKey smart constructor.

Constructors

ImportHostKey' 

Fields

  • description :: Maybe Text

    The text description that identifies this host key.

  • tags :: Maybe (NonEmpty Tag)

    Key-value pairs that can be used to group and search for host keys.

  • serverId :: Text

    The identifier of the server that contains the host key that you are importing.

  • hostKeyBody :: Sensitive Text

    The public key portion of an SSH key pair.

    Transfer Family accepts RSA, ECDSA, and ED25519 keys.

Instances

Instances details
ToJSON ImportHostKey Source # 
Instance details

Defined in Amazonka.Transfer.ImportHostKey

ToHeaders ImportHostKey Source # 
Instance details

Defined in Amazonka.Transfer.ImportHostKey

ToPath ImportHostKey Source # 
Instance details

Defined in Amazonka.Transfer.ImportHostKey

ToQuery ImportHostKey Source # 
Instance details

Defined in Amazonka.Transfer.ImportHostKey

AWSRequest ImportHostKey Source # 
Instance details

Defined in Amazonka.Transfer.ImportHostKey

Associated Types

type AWSResponse ImportHostKey #

Generic ImportHostKey Source # 
Instance details

Defined in Amazonka.Transfer.ImportHostKey

Associated Types

type Rep ImportHostKey :: Type -> Type #

Show ImportHostKey Source # 
Instance details

Defined in Amazonka.Transfer.ImportHostKey

NFData ImportHostKey Source # 
Instance details

Defined in Amazonka.Transfer.ImportHostKey

Methods

rnf :: ImportHostKey -> () #

Eq ImportHostKey Source # 
Instance details

Defined in Amazonka.Transfer.ImportHostKey

Hashable ImportHostKey Source # 
Instance details

Defined in Amazonka.Transfer.ImportHostKey

type AWSResponse ImportHostKey Source # 
Instance details

Defined in Amazonka.Transfer.ImportHostKey

type Rep ImportHostKey Source # 
Instance details

Defined in Amazonka.Transfer.ImportHostKey

type Rep ImportHostKey = D1 ('MetaData "ImportHostKey" "Amazonka.Transfer.ImportHostKey" "amazonka-transfer-2.0-JiqKYJwOo427yDlzvkXGLY" 'False) (C1 ('MetaCons "ImportHostKey'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty Tag)))) :*: (S1 ('MetaSel ('Just "serverId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "hostKeyBody") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Sensitive Text)))))

newImportHostKey Source #

Create a value of ImportHostKey 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:

ImportHostKey, importHostKey_description - The text description that identifies this host key.

ImportHostKey, importHostKey_tags - Key-value pairs that can be used to group and search for host keys.

ImportHostKey, importHostKey_serverId - The identifier of the server that contains the host key that you are importing.

$sel:hostKeyBody:ImportHostKey', importHostKey_hostKeyBody - The public key portion of an SSH key pair.

Transfer Family accepts RSA, ECDSA, and ED25519 keys.

Request Lenses

importHostKey_description :: Lens' ImportHostKey (Maybe Text) Source #

The text description that identifies this host key.

importHostKey_tags :: Lens' ImportHostKey (Maybe (NonEmpty Tag)) Source #

Key-value pairs that can be used to group and search for host keys.

importHostKey_serverId :: Lens' ImportHostKey Text Source #

The identifier of the server that contains the host key that you are importing.

importHostKey_hostKeyBody :: Lens' ImportHostKey Text Source #

The public key portion of an SSH key pair.

Transfer Family accepts RSA, ECDSA, and ED25519 keys.

Destructuring the Response

data ImportHostKeyResponse Source #

See: newImportHostKeyResponse smart constructor.

Constructors

ImportHostKeyResponse' 

Fields

  • httpStatus :: Int

    The response's http status code.

  • serverId :: Text

    Returns the server identifier that contains the imported key.

  • hostKeyId :: Text

    Returns the host key identifier for the imported key.

Instances

Instances details
Generic ImportHostKeyResponse Source # 
Instance details

Defined in Amazonka.Transfer.ImportHostKey

Associated Types

type Rep ImportHostKeyResponse :: Type -> Type #

Read ImportHostKeyResponse Source # 
Instance details

Defined in Amazonka.Transfer.ImportHostKey

Show ImportHostKeyResponse Source # 
Instance details

Defined in Amazonka.Transfer.ImportHostKey

NFData ImportHostKeyResponse Source # 
Instance details

Defined in Amazonka.Transfer.ImportHostKey

Methods

rnf :: ImportHostKeyResponse -> () #

Eq ImportHostKeyResponse Source # 
Instance details

Defined in Amazonka.Transfer.ImportHostKey

type Rep ImportHostKeyResponse Source # 
Instance details

Defined in Amazonka.Transfer.ImportHostKey

type Rep ImportHostKeyResponse = D1 ('MetaData "ImportHostKeyResponse" "Amazonka.Transfer.ImportHostKey" "amazonka-transfer-2.0-JiqKYJwOo427yDlzvkXGLY" 'False) (C1 ('MetaCons "ImportHostKeyResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: (S1 ('MetaSel ('Just "serverId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "hostKeyId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newImportHostKeyResponse Source #

Create a value of ImportHostKeyResponse 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:httpStatus:ImportHostKeyResponse', importHostKeyResponse_httpStatus - The response's http status code.

ImportHostKey, importHostKeyResponse_serverId - Returns the server identifier that contains the imported key.

ImportHostKeyResponse, importHostKeyResponse_hostKeyId - Returns the host key identifier for the imported key.

Response Lenses

importHostKeyResponse_serverId :: Lens' ImportHostKeyResponse Text Source #

Returns the server identifier that contains the imported key.

importHostKeyResponse_hostKeyId :: Lens' ImportHostKeyResponse Text Source #

Returns the host key identifier for the imported key.