@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AbstractAWSEC2InstanceConnect extends Object implements AWSEC2InstanceConnect
AWSEC2InstanceConnect. Convenient method forms pass through to the corresponding
overload that takes a request object, which throws an UnsupportedOperationException.ENDPOINT_PREFIX| 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.
|
SendSerialConsoleSSHPublicKeyResult |
sendSerialConsoleSSHPublicKey(SendSerialConsoleSSHPublicKeyRequest request)
Pushes an SSH public key to the specified EC2 instance.
|
SendSSHPublicKeyResult |
sendSSHPublicKey(SendSSHPublicKeyRequest request)
Pushes an SSH public key to the specified EC2 instance for use by the specified user.
|
void |
shutdown()
Shuts down this client object, releasing any resources that might be held open.
|
public SendSSHPublicKeyResult sendSSHPublicKey(SendSSHPublicKeyRequest request)
AWSEC2InstanceConnectPushes 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.
sendSSHPublicKey in interface AWSEC2InstanceConnectpublic SendSerialConsoleSSHPublicKeyResult sendSerialConsoleSSHPublicKey(SendSerialConsoleSSHPublicKeyRequest request)
AWSEC2InstanceConnectPushes 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.
sendSerialConsoleSSHPublicKey in interface AWSEC2InstanceConnectpublic void shutdown()
AWSEC2InstanceConnectshutdown in interface AWSEC2InstanceConnectpublic ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
AWSEC2InstanceConnectResponse 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.
getCachedResponseMetadata in interface AWSEC2InstanceConnectrequest - The originally executed request.