Struct aws_sdk_ec2::input::CreateKeyPairInput
source · [−]#[non_exhaustive]pub struct CreateKeyPairInput { /* private fields */ }
Implementations
sourceimpl 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
>
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CreateKeyPairInput
.
sourceimpl 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
Trait Implementations
sourceimpl Clone for CreateKeyPairInput
impl Clone for CreateKeyPairInput
sourcefn clone(&self) -> CreateKeyPairInput
fn clone(&self) -> CreateKeyPairInput
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for CreateKeyPairInput
impl Debug for CreateKeyPairInput
sourceimpl PartialEq<CreateKeyPairInput> for CreateKeyPairInput
impl PartialEq<CreateKeyPairInput> for CreateKeyPairInput
sourcefn eq(&self, other: &CreateKeyPairInput) -> bool
fn eq(&self, other: &CreateKeyPairInput) -> bool
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more