@Generated(value="software.amazon.awssdk:codegen") @ThreadSafe public interface Ec2InstanceConnectAsyncClient extends AwsClient
builder() method.
Amazon EC2 Instance Connect enables system administrators to publish one-time use SSH public keys to EC2, providing users a simple and secure way to connect to their instances.
| Modifier and Type | Field and Description |
|---|---|
static String |
SERVICE_METADATA_ID
Value for looking up the service's metadata from the
ServiceMetadataProvider. |
static String |
SERVICE_NAME |
serviceNameclosestatic final String SERVICE_NAME
static final String SERVICE_METADATA_ID
ServiceMetadataProvider.default CompletableFuture<SendSshPublicKeyResponse> sendSSHPublicKey(SendSshPublicKeyRequest sendSshPublicKeyRequest)
Pushes an SSH public key to the specified EC2 instance for use by the specified user. The key remains for 60 seconds. For more information, see Connect to your Linux instance using EC2 Instance Connect in the Amazon EC2 User Guide.
sendSshPublicKeyRequest - default CompletableFuture<SendSshPublicKeyResponse> sendSSHPublicKey(Consumer<SendSshPublicKeyRequest.Builder> sendSshPublicKeyRequest)
Pushes an SSH public key to the specified EC2 instance for use by the specified user. The key remains for 60 seconds. For more information, see Connect to your Linux instance using EC2 Instance Connect in the Amazon EC2 User Guide.
This is a convenience which creates an instance of the SendSshPublicKeyRequest.Builder avoiding the need
to create one manually via SendSshPublicKeyRequest.builder()
sendSshPublicKeyRequest - A Consumer that will call methods on SendSSHPublicKeyRequest.Builder to create a request.default CompletableFuture<SendSerialConsoleSshPublicKeyResponse> sendSerialConsoleSSHPublicKey(SendSerialConsoleSshPublicKeyRequest sendSerialConsoleSshPublicKeyRequest)
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.
sendSerialConsoleSshPublicKeyRequest - default CompletableFuture<SendSerialConsoleSshPublicKeyResponse> sendSerialConsoleSSHPublicKey(Consumer<SendSerialConsoleSshPublicKeyRequest.Builder> sendSerialConsoleSshPublicKeyRequest)
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.
This is a convenience which creates an instance of the SendSerialConsoleSshPublicKeyRequest.Builder
avoiding the need to create one manually via SendSerialConsoleSshPublicKeyRequest.builder()
sendSerialConsoleSshPublicKeyRequest - A Consumer that will call methods on SendSerialConsoleSSHPublicKeyRequest.Builder to
create a request.default Ec2InstanceConnectServiceClientConfiguration serviceClientConfiguration()
serviceClientConfiguration in interface AwsClientserviceClientConfiguration in interface SdkClientstatic Ec2InstanceConnectAsyncClient create()
Ec2InstanceConnectAsyncClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider.static Ec2InstanceConnectAsyncClientBuilder builder()
Ec2InstanceConnectAsyncClient.Copyright © 2023. All rights reserved.