Struct aws_sdk_ec2::operation::delete_key_pair::DeleteKeyPairInput
source · #[non_exhaustive]pub struct DeleteKeyPairInput {
pub key_name: Option<String>,
pub key_pair_id: Option<String>,
pub dry_run: Option<bool>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.key_name: Option<String>
The name of the key pair.
key_pair_id: Option<String>
The ID of the key pair.
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
.
Implementations§
source§impl DeleteKeyPairInput
impl DeleteKeyPairInput
sourcepub fn key_pair_id(&self) -> Option<&str>
pub fn key_pair_id(&self) -> Option<&str>
The ID of the key pair.
source§impl DeleteKeyPairInput
impl DeleteKeyPairInput
sourcepub fn builder() -> DeleteKeyPairInputBuilder
pub fn builder() -> DeleteKeyPairInputBuilder
Creates a new builder-style object to manufacture DeleteKeyPairInput
.
Trait Implementations§
source§impl Clone for DeleteKeyPairInput
impl Clone for DeleteKeyPairInput
source§fn clone(&self) -> DeleteKeyPairInput
fn clone(&self) -> DeleteKeyPairInput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DeleteKeyPairInput
impl Debug for DeleteKeyPairInput
source§impl PartialEq<DeleteKeyPairInput> for DeleteKeyPairInput
impl PartialEq<DeleteKeyPairInput> for DeleteKeyPairInput
source§fn eq(&self, other: &DeleteKeyPairInput) -> bool
fn eq(&self, other: &DeleteKeyPairInput) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DeleteKeyPairInput
Auto Trait Implementations§
impl RefUnwindSafe for DeleteKeyPairInput
impl Send for DeleteKeyPairInput
impl Sync for DeleteKeyPairInput
impl Unpin for DeleteKeyPairInput
impl UnwindSafe for DeleteKeyPairInput
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more