public static interface KeyPairInfo.Builder extends SdkPojo, CopyableBuilder<KeyPairInfo.Builder,KeyPairInfo>
| Modifier and Type | Method and Description |
|---|---|
KeyPairInfo.Builder |
createTime(Instant 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.
|
KeyPairInfo.Builder |
keyFingerprint(String keyFingerprint)
If you used CreateKeyPair to create the key pair:
|
KeyPairInfo.Builder |
keyName(String keyName)
The name of the key pair.
|
KeyPairInfo.Builder |
keyPairId(String keyPairId)
The ID of the key pair.
|
KeyPairInfo.Builder |
keyType(KeyType keyType)
The type of key pair.
|
KeyPairInfo.Builder |
keyType(String keyType)
The type of key pair.
|
KeyPairInfo.Builder |
publicKey(String publicKey)
The public key material.
|
KeyPairInfo.Builder |
tags(Collection<Tag> tags)
Any tags applied to the key pair.
|
KeyPairInfo.Builder |
tags(Consumer<Tag.Builder>... tags)
Any tags applied to the key pair.
|
KeyPairInfo.Builder |
tags(Tag... tags)
Any tags applied to the key pair.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildKeyPairInfo.Builder keyPairId(String keyPairId)
The ID of the key pair.
keyPairId - The ID of the key pair.KeyPairInfo.Builder keyFingerprint(String 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.
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.
KeyPairInfo.Builder keyName(String keyName)
The name of the key pair.
keyName - The name of the key pair.KeyPairInfo.Builder keyType(String keyType)
The type of key pair.
KeyPairInfo.Builder keyType(KeyType keyType)
The type of key pair.
KeyPairInfo.Builder tags(Collection<Tag> tags)
Any tags applied to the key pair.
tags - Any tags applied to the key pair.KeyPairInfo.Builder tags(Tag... tags)
Any tags applied to the key pair.
tags - Any tags applied to the key pair.KeyPairInfo.Builder tags(Consumer<Tag.Builder>... tags)
Any tags applied to the key pair.
This is a convenience method that creates an instance of theTag.Builder avoiding the need to create one manually via
Tag.builder().
When the Consumer completes, SdkBuilder.build() is
called immediately and its result is passed to #tags(List.
tags - a consumer that will call methods on Tag.Builder#tags(java.util.Collection) KeyPairInfo.Builder publicKey(String publicKey)
The public key material.
publicKey - The public key material.KeyPairInfo.Builder createTime(Instant 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.
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.
Copyright © 2023. All rights reserved.