Struct aws_sdk_ec2::operation::create_key_pair::CreateKeyPairInput
source · #[non_exhaustive]pub struct CreateKeyPairInput { /* private fields */ }
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
.
source§impl CreateKeyPairInput
impl CreateKeyPairInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateKeyPair, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation( &self, _config: &Config ) -> Result<Operation<CreateKeyPair, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CreateKeyPair
>
Trait Implementations§
source§impl Clone for CreateKeyPairInput
impl Clone for CreateKeyPairInput
source§fn clone(&self) -> CreateKeyPairInput
fn clone(&self) -> CreateKeyPairInput
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 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
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateKeyPairInput
Auto Trait Implementations§
impl RefUnwindSafe for CreateKeyPairInput
impl Send for CreateKeyPairInput
impl Sync for CreateKeyPairInput
impl Unpin for CreateKeyPairInput
impl UnwindSafe for CreateKeyPairInput
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