@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSEC2InstanceConnectAsyncClient extends AWSEC2InstanceConnectClient implements AWSEC2InstanceConnectAsync
AsyncHandler
can be used to receive
notification when an asynchronous operation completes.
AWS EC2 Connect Service is a service that enables system administrators to publish temporary SSH keys to their EC2 instances in order to establish connections to their instances without leaving a permanent authentication option.
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
Modifier and Type | Method and Description |
---|---|
static AWSEC2InstanceConnectAsyncClientBuilder |
asyncBuilder() |
ExecutorService |
getExecutorService()
Returns the executor service used by this client to execute async requests.
|
Future<SendSSHPublicKeyResult> |
sendSSHPublicKeyAsync(SendSSHPublicKeyRequest request)
Pushes an SSH public key to a particular OS user on a given EC2 instance for 60 seconds.
|
Future<SendSSHPublicKeyResult> |
sendSSHPublicKeyAsync(SendSSHPublicKeyRequest request,
AsyncHandler<SendSSHPublicKeyRequest,SendSSHPublicKeyResult> asyncHandler)
Pushes an SSH public key to a particular OS user on a given EC2 instance for 60 seconds.
|
void |
shutdown()
Shuts down the client, releasing all managed resources.
|
builder, getCachedResponseMetadata, sendSSHPublicKey
addRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCachedResponseMetadata, sendSSHPublicKey
public static AWSEC2InstanceConnectAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<SendSSHPublicKeyResult> sendSSHPublicKeyAsync(SendSSHPublicKeyRequest request)
AWSEC2InstanceConnectAsync
Pushes an SSH public key to a particular OS user on a given EC2 instance for 60 seconds.
sendSSHPublicKeyAsync
in interface AWSEC2InstanceConnectAsync
public Future<SendSSHPublicKeyResult> sendSSHPublicKeyAsync(SendSSHPublicKeyRequest request, AsyncHandler<SendSSHPublicKeyRequest,SendSSHPublicKeyResult> asyncHandler)
AWSEC2InstanceConnectAsync
Pushes an SSH public key to a particular OS user on a given EC2 instance for 60 seconds.
sendSSHPublicKeyAsync
in interface AWSEC2InstanceConnectAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public void shutdown()
getExecutorService().shutdown()
followed by getExecutorService().awaitTermination()
prior to
calling this method.shutdown
in interface AWSEC2InstanceConnect
shutdown
in class AWSEC2InstanceConnectClient