Skip to content

KeyPair

Source code in docs_src/capo_ec2/types/key_pair.py
class KeyPair(TypedDict, closed=True):
    key_pair_id: NotRequired["capo_ec2.types.string.String"]
    """<p>The ID of the key pair.</p>"""
    tags: NotRequired["capo_ec2.types.tag_list.TagList"]
    """<p>Any tags applied to the key pair.</p>"""
    key_name: NotRequired["capo_ec2.types.string.String"]
    """<p>The name of the key pair.</p>"""
    key_fingerprint: NotRequired["capo_ec2.types.string.String"]
    """<ul> <li> <p>For RSA key pairs, the key fingerprint is the SHA-1 digest of the DER encoded private key.</p> </li> <li> <p>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.</p> </li> </ul>"""
    key_material: NotRequired["capo_ec2.types.sensitive_user_data.SensitiveUserData"]
    """<p>An unencrypted PEM encoded RSA or ED25519 private key.</p>"""

key_fingerprint instance-attribute

key_fingerprint: NotRequired[String]
  • 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.

key_material instance-attribute

key_material: NotRequired[SensitiveUserData]

An unencrypted PEM encoded RSA or ED25519 private key.

key_name instance-attribute

key_name: NotRequired[String]

The name of the key pair.

key_pair_id instance-attribute

key_pair_id: NotRequired[String]

The ID of the key pair.

tags instance-attribute

tags: NotRequired[TagList]

Any tags applied to the key pair.