Struct aws_sdk_ec2::output::create_key_pair_output::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for CreateKeyPairOutput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn key_fingerprint(self, input: impl Into<String>) -> Self
pub fn key_fingerprint(self, input: impl Into<String>) -> Self
-
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.
sourcepub fn set_key_fingerprint(self, input: Option<String>) -> Self
pub fn set_key_fingerprint(self, input: Option<String>) -> Self
-
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.
sourcepub fn key_material(self, input: impl Into<String>) -> Self
pub fn key_material(self, input: impl Into<String>) -> Self
An unencrypted PEM encoded RSA or ED25519 private key.
sourcepub fn set_key_material(self, input: Option<String>) -> Self
pub fn set_key_material(self, input: Option<String>) -> Self
An unencrypted PEM encoded RSA or ED25519 private key.
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 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.
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.
sourcepub fn build(self) -> CreateKeyPairOutput
pub fn build(self) -> CreateKeyPairOutput
Consumes the builder and constructs a CreateKeyPairOutput
.