Struct aws_sdk_ec2::operation::import_key_pair::ImportKeyPairInput
source · #[non_exhaustive]pub struct ImportKeyPairInput {
pub dry_run: Option<bool>,
pub key_name: Option<String>,
pub public_key_material: Option<Blob>,
pub tag_specifications: Option<Vec<TagSpecification>>,
}
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.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_name: Option<String>
A unique name for the key pair.
public_key_material: Option<Blob>
The public key. For API calls, the text must be base64-encoded. For command line tools, base64 encoding is performed for you.
tag_specifications: Option<Vec<TagSpecification>>
The tags to apply to the imported key pair.
Implementations§
source§impl ImportKeyPairInput
impl ImportKeyPairInput
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 public_key_material(&self) -> Option<&Blob>
pub fn public_key_material(&self) -> Option<&Blob>
The public key. For API calls, the text must be base64-encoded. For command line tools, base64 encoding is performed for you.
sourcepub fn tag_specifications(&self) -> Option<&[TagSpecification]>
pub fn tag_specifications(&self) -> Option<&[TagSpecification]>
The tags to apply to the imported key pair.
source§impl ImportKeyPairInput
impl ImportKeyPairInput
sourcepub fn builder() -> ImportKeyPairInputBuilder
pub fn builder() -> ImportKeyPairInputBuilder
Creates a new builder-style object to manufacture ImportKeyPairInput
.
Trait Implementations§
source§impl Clone for ImportKeyPairInput
impl Clone for ImportKeyPairInput
source§fn clone(&self) -> ImportKeyPairInput
fn clone(&self) -> ImportKeyPairInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ImportKeyPairInput
impl Debug for ImportKeyPairInput
source§impl PartialEq<ImportKeyPairInput> for ImportKeyPairInput
impl PartialEq<ImportKeyPairInput> for ImportKeyPairInput
source§fn eq(&self, other: &ImportKeyPairInput) -> bool
fn eq(&self, other: &ImportKeyPairInput) -> bool
self
and other
values to be equal, and is used
by ==
.