amazonka-ec2-2.0: Amazon Elastic Compute Cloud 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.EC2.Types.KeyPairInfo

Description

 
Synopsis

Documentation

data KeyPairInfo Source #

Describes a key pair.

See: newKeyPairInfo smart constructor.

Constructors

KeyPairInfo' 

Fields

  • createTime :: Maybe ISO8601

    If you used Amazon EC2 to create the key pair, this is the date and time when the key was created, in ISO 8601 date-time format, in the UTC time zone.

    If you imported an existing key pair to Amazon EC2, this is the date and time the key was imported, in ISO 8601 date-time format, in the UTC time zone.

  • keyFingerprint :: Maybe Text

    If you used CreateKeyPair to create the key pair:

    • For RSA key pairs, the key fingerprint is the SHA-1 digest of the DER encoded private key.
    • For ED25519 key pairs, the key fingerprint is the base64-encoded SHA-256 digest, which is the default for OpenSSH, starting with OpenSSH 6.8.

    If you used ImportKeyPair to provide Amazon Web Services the public key:

    • For RSA key pairs, the key fingerprint is the MD5 public key fingerprint as specified in section 4 of RFC4716.
    • For ED25519 key pairs, the key fingerprint is the base64-encoded SHA-256 digest, which is the default for OpenSSH, starting with OpenSSH 6.8.
  • keyName :: Maybe Text

    The name of the key pair.

  • keyPairId :: Maybe Text

    The ID of the key pair.

  • keyType :: Maybe KeyType

    The type of key pair.

  • publicKey :: Maybe Text

    The public key material.

  • tags :: Maybe [Tag]

    Any tags applied to the key pair.

Instances

Instances details
FromXML KeyPairInfo Source # 
Instance details

Defined in Amazonka.EC2.Types.KeyPairInfo

Generic KeyPairInfo Source # 
Instance details

Defined in Amazonka.EC2.Types.KeyPairInfo

Associated Types

type Rep KeyPairInfo :: Type -> Type #

Read KeyPairInfo Source # 
Instance details

Defined in Amazonka.EC2.Types.KeyPairInfo

Show KeyPairInfo Source # 
Instance details

Defined in Amazonka.EC2.Types.KeyPairInfo

NFData KeyPairInfo Source # 
Instance details

Defined in Amazonka.EC2.Types.KeyPairInfo

Methods

rnf :: KeyPairInfo -> () #

Eq KeyPairInfo Source # 
Instance details

Defined in Amazonka.EC2.Types.KeyPairInfo

Hashable KeyPairInfo Source # 
Instance details

Defined in Amazonka.EC2.Types.KeyPairInfo

type Rep KeyPairInfo Source # 
Instance details

Defined in Amazonka.EC2.Types.KeyPairInfo

newKeyPairInfo :: KeyPairInfo Source #

Create a value of KeyPairInfo 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:createTime:KeyPairInfo', keyPairInfo_createTime - If you used Amazon EC2 to create the key pair, this is the date and time when the key was created, in ISO 8601 date-time format, in the UTC time zone.

If you imported an existing key pair to Amazon EC2, this is the date and time the key was imported, in ISO 8601 date-time format, in the UTC time zone.

$sel:keyFingerprint:KeyPairInfo', keyPairInfo_keyFingerprint - If you used CreateKeyPair to create the key pair:

  • For RSA key pairs, the key fingerprint is the SHA-1 digest of the DER encoded private key.
  • For ED25519 key pairs, the key fingerprint is the base64-encoded SHA-256 digest, which is the default for OpenSSH, starting with OpenSSH 6.8.

If you used ImportKeyPair to provide Amazon Web Services the public key:

  • For RSA key pairs, the key fingerprint is the MD5 public key fingerprint as specified in section 4 of RFC4716.
  • For ED25519 key pairs, the key fingerprint is the base64-encoded SHA-256 digest, which is the default for OpenSSH, starting with OpenSSH 6.8.

$sel:keyName:KeyPairInfo', keyPairInfo_keyName - The name of the key pair.

$sel:keyPairId:KeyPairInfo', keyPairInfo_keyPairId - The ID of the key pair.

$sel:keyType:KeyPairInfo', keyPairInfo_keyType - The type of key pair.

$sel:publicKey:KeyPairInfo', keyPairInfo_publicKey - The public key material.

$sel:tags:KeyPairInfo', keyPairInfo_tags - Any tags applied to the key pair.

keyPairInfo_createTime :: Lens' KeyPairInfo (Maybe UTCTime) Source #

If you used Amazon EC2 to create the key pair, this is the date and time when the key was created, in ISO 8601 date-time format, in the UTC time zone.

If you imported an existing key pair to Amazon EC2, this is the date and time the key was imported, in ISO 8601 date-time format, in the UTC time zone.

keyPairInfo_keyFingerprint :: Lens' KeyPairInfo (Maybe Text) Source #

If you used CreateKeyPair to create the key pair:

  • For RSA key pairs, the key fingerprint is the SHA-1 digest of the DER encoded private key.
  • For ED25519 key pairs, the key fingerprint is the base64-encoded SHA-256 digest, which is the default for OpenSSH, starting with OpenSSH 6.8.

If you used ImportKeyPair to provide Amazon Web Services the public key:

  • For RSA key pairs, the key fingerprint is the MD5 public key fingerprint as specified in section 4 of RFC4716.
  • For ED25519 key pairs, the key fingerprint is the base64-encoded SHA-256 digest, which is the default for OpenSSH, starting with OpenSSH 6.8.

keyPairInfo_keyName :: Lens' KeyPairInfo (Maybe Text) Source #

The name of the key pair.

keyPairInfo_tags :: Lens' KeyPairInfo (Maybe [Tag]) Source #

Any tags applied to the key pair.