pub struct Ec2InstanceConnectClient { /* private fields */ }Expand description
A client for the EC2 Instance Connect API.
Implementations§
Source§impl Ec2InstanceConnectClient
impl Ec2InstanceConnectClient
Sourcepub fn new(region: Region) -> Ec2InstanceConnectClient
pub fn new(region: Region) -> Ec2InstanceConnectClient
Creates a client backed by the default tokio event loop.
The client will use the default credentials provider and tls client.
pub fn new_with<P, D>(
request_dispatcher: D,
credentials_provider: P,
region: Region,
) -> Ec2InstanceConnectClientwhere
P: ProvideAwsCredentials + Send + Sync + 'static,
D: DispatchSignedRequest + Send + Sync + 'static,
pub fn new_with_client( client: Client, region: Region, ) -> Ec2InstanceConnectClient
Trait Implementations§
Source§impl Clone for Ec2InstanceConnectClient
impl Clone for Ec2InstanceConnectClient
Source§fn clone(&self) -> Ec2InstanceConnectClient
fn clone(&self) -> Ec2InstanceConnectClient
Returns a duplicate 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 Ec2InstanceConnect for Ec2InstanceConnectClient
impl Ec2InstanceConnect for Ec2InstanceConnectClient
Source§fn send_ssh_public_key<'life0, 'async_trait>(
&'life0 self,
input: SendSSHPublicKeyRequest,
) -> Pin<Box<dyn Future<Output = Result<SendSSHPublicKeyResponse, RusotoError<SendSSHPublicKeyError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn send_ssh_public_key<'life0, 'async_trait>(
&'life0 self,
input: SendSSHPublicKeyRequest,
) -> Pin<Box<dyn Future<Output = Result<SendSSHPublicKeyResponse, RusotoError<SendSSHPublicKeyError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Pushes an SSH public key to a particular OS user on a given EC2 instance for 60 seconds.
Auto Trait Implementations§
impl Freeze for Ec2InstanceConnectClient
impl !RefUnwindSafe for Ec2InstanceConnectClient
impl Send for Ec2InstanceConnectClient
impl Sync for Ec2InstanceConnectClient
impl Unpin for Ec2InstanceConnectClient
impl !UnwindSafe for Ec2InstanceConnectClient
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