@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public interface AWSEC2InstanceConnect
Note: Do not directly implement this interface, new methods are added to it regularly. Extend from
AbstractAWSEC2InstanceConnect
instead.
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.
Modifier and Type | Field and Description |
---|---|
static String |
ENDPOINT_PREFIX
The region metadata service name for computing region endpoints.
|
Modifier and Type | Method and Description |
---|---|
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 sendSSHPublicKeyRequest)
Pushes an SSH public key to a particular OS user on a given EC2 instance for 60 seconds.
|
void |
shutdown()
Shuts down this client object, releasing any resources that might be held open.
|
static final String ENDPOINT_PREFIX
SendSSHPublicKeyResult sendSSHPublicKey(SendSSHPublicKeyRequest sendSSHPublicKeyRequest)
Pushes an SSH public key to a particular OS user on a given EC2 instance for 60 seconds.
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.void shutdown()
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 a request.
request
- The originally executed request.