AWSEC2KeyPairInfo

Objective-C

@interface AWSEC2KeyPairInfo

Swift

class AWSEC2KeyPairInfo

Describes a key pair.

  • 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.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSDate *_Nullable createTime;

    Swift

    var createTime: Date? { get set }
  • 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.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable keyFingerprint;

    Swift

    var keyFingerprint: String? { get set }
  • The name of the key pair.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable keyName;

    Swift

    var keyName: String? { get set }
  • The ID of the key pair.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable keyPairId;

    Swift

    var keyPairId: String? { get set }
  • The type of key pair.

    Declaration

    Objective-C

    @property (nonatomic) AWSEC2KeyType keyType;

    Swift

    var keyType: AWSEC2KeyType { get set }
  • The public key material.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable publicKey;

    Swift

    var publicKey: String? { get set }
  • Any tags applied to the key pair.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSArray<AWSEC2Tag *> *_Nullable tags;

    Swift

    var tags: [AWSEC2Tag]? { get set }