Struct aws_sdk_ec2::operation::create_key_pair::CreateKeyPairInput
source · #[non_exhaustive]pub struct CreateKeyPairInput {
pub key_name: Option<String>,
pub dry_run: Option<bool>,
pub key_type: Option<KeyType>,
pub tag_specifications: Option<Vec<TagSpecification>>,
pub key_format: Option<KeyFormat>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.key_name: Option<String>
A unique name for the key pair.
Constraints: Up to 255 ASCII characters
dry_run: Option<bool>
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
key_type: Option<KeyType>
The type of key pair. Note that ED25519 keys are not supported for Windows instances.
Default: rsa
tag_specifications: Option<Vec<TagSpecification>>
The tags to apply to the new key pair.
key_format: Option<KeyFormat>
The format of the key pair.
Default: pem
Implementations§
source§impl CreateKeyPairInput
impl CreateKeyPairInput
sourcepub fn key_name(&self) -> Option<&str>
pub fn key_name(&self) -> Option<&str>
A unique name for the key pair.
Constraints: Up to 255 ASCII characters
sourcepub fn dry_run(&self) -> Option<bool>
pub fn dry_run(&self) -> Option<bool>
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
sourcepub fn key_type(&self) -> Option<&KeyType>
pub fn key_type(&self) -> Option<&KeyType>
The type of key pair. Note that ED25519 keys are not supported for Windows instances.
Default: rsa
sourcepub fn tag_specifications(&self) -> Option<&[TagSpecification]>
pub fn tag_specifications(&self) -> Option<&[TagSpecification]>
The tags to apply to the new key pair.
sourcepub fn key_format(&self) -> Option<&KeyFormat>
pub fn key_format(&self) -> Option<&KeyFormat>
The format of the key pair.
Default: pem
source§impl CreateKeyPairInput
impl CreateKeyPairInput
sourcepub fn builder() -> CreateKeyPairInputBuilder
pub fn builder() -> CreateKeyPairInputBuilder
Creates a new builder-style object to manufacture CreateKeyPairInput
.
Trait Implementations§
source§impl Clone for CreateKeyPairInput
impl Clone for CreateKeyPairInput
source§fn clone(&self) -> CreateKeyPairInput
fn clone(&self) -> CreateKeyPairInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateKeyPairInput
impl Debug for CreateKeyPairInput
source§impl PartialEq<CreateKeyPairInput> for CreateKeyPairInput
impl PartialEq<CreateKeyPairInput> for CreateKeyPairInput
source§fn eq(&self, other: &CreateKeyPairInput) -> bool
fn eq(&self, other: &CreateKeyPairInput) -> bool
self
and other
values to be equal, and is used
by ==
.