@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSEC2InstanceConnectClient extends AmazonWebServiceClient implements AWSEC2InstanceConnect
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 AWSEC2InstanceConnectClientBuilder |
builder() |
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Returns additional metadata for a previously executed successful, request, typically used for debugging issues
where a service isn't acting as expected.
|
SendSSHPublicKeyResult |
sendSSHPublicKey(SendSSHPublicKeyRequest request)
Pushes an SSH public key to a particular OS user on a given EC2 instance for 60 seconds.
|
addRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, shutdown, withEndpoint, withRegion, withRegion, withTimeOffset
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
shutdown
public static AWSEC2InstanceConnectClientBuilder builder()
public SendSSHPublicKeyResult sendSSHPublicKey(SendSSHPublicKeyRequest request)
Pushes an SSH public key to a particular OS user on a given EC2 instance for 60 seconds.
sendSSHPublicKey
in interface AWSEC2InstanceConnect
sendSSHPublicKeyRequest
- AuthException
- Indicates that either your AWS credentials are invalid or you do not have access to the EC2 instance.InvalidArgsException
- Indicates that you provided bad input. Ensure you have a valid instance ID, the correct zone, and a valid
SSH public key.ServiceException
- Indicates that the service encountered an error. Follow the message's instructions and try again.ThrottlingException
- Indicates you have been making requests too frequently and have been throttled. Wait for a while and try
again. If higher call volume is warranted contact AWS Support.EC2InstanceNotFoundException
- Indicates that the instance requested was not found in the given zone. Check that you have provided a
valid instance ID and the correct zone.public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing the request.
getCachedResponseMetadata
in interface AWSEC2InstanceConnect
request
- The originally executed requestCopyright © 2013 Amazon Web Services, Inc. All Rights Reserved.