Struct aws_sdk_ec2instanceconnect::operation::send_serial_console_ssh_public_key::builders::SendSerialConsoleSSHPublicKeyFluentBuilder
source · pub struct SendSerialConsoleSSHPublicKeyFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to SendSerialConsoleSSHPublicKey
.
Pushes an SSH public key to the specified EC2 instance. The key remains for 60 seconds, which gives you 60 seconds to establish a serial console connection to the instance using SSH. For more information, see EC2 Serial Console in the Amazon EC2 User Guide.
Implementations§
source§impl SendSerialConsoleSSHPublicKeyFluentBuilder
impl SendSerialConsoleSSHPublicKeyFluentBuilder
sourcepub fn as_input(&self) -> &SendSerialConsoleSshPublicKeyInputBuilder
pub fn as_input(&self) -> &SendSerialConsoleSshPublicKeyInputBuilder
Access the SendSerialConsoleSSHPublicKey as a reference.
sourcepub async fn send(
self
) -> Result<SendSerialConsoleSshPublicKeyOutput, SdkError<SendSerialConsoleSSHPublicKeyError, HttpResponse>>
pub async fn send( self ) -> Result<SendSerialConsoleSshPublicKeyOutput, SdkError<SendSerialConsoleSSHPublicKeyError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<SendSerialConsoleSshPublicKeyOutput, SendSerialConsoleSSHPublicKeyError, Self>
pub fn customize( self ) -> CustomizableOperation<SendSerialConsoleSshPublicKeyOutput, SendSerialConsoleSSHPublicKeyError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn instance_id(self, input: impl Into<String>) -> Self
pub fn instance_id(self, input: impl Into<String>) -> Self
The ID of the EC2 instance.
sourcepub fn set_instance_id(self, input: Option<String>) -> Self
pub fn set_instance_id(self, input: Option<String>) -> Self
The ID of the EC2 instance.
sourcepub fn get_instance_id(&self) -> &Option<String>
pub fn get_instance_id(&self) -> &Option<String>
The ID of the EC2 instance.
sourcepub fn serial_port(self, input: i32) -> Self
pub fn serial_port(self, input: i32) -> Self
The serial port of the EC2 instance. Currently only port 0 is supported.
Default: 0
sourcepub fn set_serial_port(self, input: Option<i32>) -> Self
pub fn set_serial_port(self, input: Option<i32>) -> Self
The serial port of the EC2 instance. Currently only port 0 is supported.
Default: 0
sourcepub fn get_serial_port(&self) -> &Option<i32>
pub fn get_serial_port(&self) -> &Option<i32>
The serial port of the EC2 instance. Currently only port 0 is supported.
Default: 0
sourcepub fn ssh_public_key(self, input: impl Into<String>) -> Self
pub fn ssh_public_key(self, input: impl Into<String>) -> Self
The public key material. To use the public key, you must have the matching private key. For information about the supported key formats and lengths, see Requirements for key pairs in the Amazon EC2 User Guide.
sourcepub fn set_ssh_public_key(self, input: Option<String>) -> Self
pub fn set_ssh_public_key(self, input: Option<String>) -> Self
The public key material. To use the public key, you must have the matching private key. For information about the supported key formats and lengths, see Requirements for key pairs in the Amazon EC2 User Guide.
sourcepub fn get_ssh_public_key(&self) -> &Option<String>
pub fn get_ssh_public_key(&self) -> &Option<String>
The public key material. To use the public key, you must have the matching private key. For information about the supported key formats and lengths, see Requirements for key pairs in the Amazon EC2 User Guide.
Trait Implementations§
source§impl Clone for SendSerialConsoleSSHPublicKeyFluentBuilder
impl Clone for SendSerialConsoleSSHPublicKeyFluentBuilder
source§fn clone(&self) -> SendSerialConsoleSSHPublicKeyFluentBuilder
fn clone(&self) -> SendSerialConsoleSSHPublicKeyFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more