Struct aws_sdk_ec2::types::builders::KeyPairInfoBuilder
source · #[non_exhaustive]pub struct KeyPairInfoBuilder { /* private fields */ }
Expand description
A builder for KeyPairInfo
.
Implementations§
source§impl KeyPairInfoBuilder
impl KeyPairInfoBuilder
sourcepub fn key_pair_id(self, input: impl Into<String>) -> Self
pub fn key_pair_id(self, input: impl Into<String>) -> Self
The ID of the key pair.
sourcepub fn set_key_pair_id(self, input: Option<String>) -> Self
pub fn set_key_pair_id(self, input: Option<String>) -> Self
The ID of the key pair.
sourcepub fn get_key_pair_id(&self) -> &Option<String>
pub fn get_key_pair_id(&self) -> &Option<String>
The ID of the key pair.
sourcepub fn key_fingerprint(self, input: impl Into<String>) -> Self
pub fn key_fingerprint(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_key_fingerprint(self, input: Option<String>) -> Self
pub fn set_key_fingerprint(self, input: Option<String>) -> Self
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.
sourcepub fn get_key_fingerprint(&self) -> &Option<String>
pub fn get_key_fingerprint(&self) -> &Option<String>
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.
sourcepub fn set_key_name(self, input: Option<String>) -> Self
pub fn set_key_name(self, input: Option<String>) -> Self
The name of the key pair.
sourcepub fn get_key_name(&self) -> &Option<String>
pub fn get_key_name(&self) -> &Option<String>
The name of the key pair.
sourcepub fn set_key_type(self, input: Option<KeyType>) -> Self
pub fn set_key_type(self, input: Option<KeyType>) -> Self
The type of key pair.
sourcepub fn get_key_type(&self) -> &Option<KeyType>
pub fn get_key_type(&self) -> &Option<KeyType>
The type of key pair.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
Any tags applied to the key pair.
Any tags applied to the key pair.
Any tags applied to the key pair.
sourcepub fn public_key(self, input: impl Into<String>) -> Self
pub fn public_key(self, input: impl Into<String>) -> Self
The public key material.
sourcepub fn set_public_key(self, input: Option<String>) -> Self
pub fn set_public_key(self, input: Option<String>) -> Self
The public key material.
sourcepub fn get_public_key(&self) -> &Option<String>
pub fn get_public_key(&self) -> &Option<String>
The public key material.
sourcepub fn create_time(self, input: DateTime) -> Self
pub fn create_time(self, input: DateTime) -> Self
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.
sourcepub fn set_create_time(self, input: Option<DateTime>) -> Self
pub fn set_create_time(self, input: Option<DateTime>) -> Self
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.
sourcepub fn get_create_time(&self) -> &Option<DateTime>
pub fn get_create_time(&self) -> &Option<DateTime>
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.
sourcepub fn build(self) -> KeyPairInfo
pub fn build(self) -> KeyPairInfo
Consumes the builder and constructs a KeyPairInfo
.
Trait Implementations§
source§impl Clone for KeyPairInfoBuilder
impl Clone for KeyPairInfoBuilder
source§fn clone(&self) -> KeyPairInfoBuilder
fn clone(&self) -> KeyPairInfoBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for KeyPairInfoBuilder
impl Debug for KeyPairInfoBuilder
source§impl Default for KeyPairInfoBuilder
impl Default for KeyPairInfoBuilder
source§fn default() -> KeyPairInfoBuilder
fn default() -> KeyPairInfoBuilder
source§impl PartialEq<KeyPairInfoBuilder> for KeyPairInfoBuilder
impl PartialEq<KeyPairInfoBuilder> for KeyPairInfoBuilder
source§fn eq(&self, other: &KeyPairInfoBuilder) -> bool
fn eq(&self, other: &KeyPairInfoBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.