@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AmazonLightsailAsyncClient extends AmazonLightsailClient implements AmazonLightsailAsync
AsyncHandler
can be used to receive
notification when an asynchronous operation completes.
Amazon Lightsail is the easiest way to get started with AWS for developers who just need virtual private servers. Lightsail includes everything you need to launch your project quickly - a virtual machine, SSD-based storage, data transfer, DNS management, and a static IP - for a low, predictable price. You manage those Lightsail servers through the Lightsail console or by using the API or command-line interface (CLI).
For more information about Lightsail concepts and tasks, see the Lightsail Dev Guide.
To use the Lightsail API or the CLI, you will need to use AWS Identity and Access Management (IAM) to generate access keys. For details about how to set this up, see the Lightsail Dev Guide.
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
Constructor and Description |
---|
AmazonLightsailAsyncClient()
Deprecated.
|
AmazonLightsailAsyncClient(AWSCredentials awsCredentials)
Deprecated.
|
AmazonLightsailAsyncClient(AWSCredentials awsCredentials,
ClientConfiguration clientConfiguration,
ExecutorService executorService)
|
AmazonLightsailAsyncClient(AWSCredentials awsCredentials,
ExecutorService executorService)
|
AmazonLightsailAsyncClient(AWSCredentialsProvider awsCredentialsProvider)
Deprecated.
|
AmazonLightsailAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration)
|
AmazonLightsailAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration,
ExecutorService executorService)
|
AmazonLightsailAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ExecutorService executorService)
|
AmazonLightsailAsyncClient(ClientConfiguration clientConfiguration)
Deprecated.
|
allocateStaticIp, attachStaticIp, builder, closeInstancePublicPorts, createDomain, createDomainEntry, createInstances, createInstancesFromSnapshot, createInstanceSnapshot, createKeyPair, deleteDomain, deleteDomainEntry, deleteInstance, deleteInstanceSnapshot, deleteKeyPair, detachStaticIp, downloadDefaultKeyPair, getActiveNames, getBlueprints, getBundles, getCachedResponseMetadata, getDomain, getDomains, getInstance, getInstanceAccessDetails, getInstanceMetricData, getInstancePortStates, getInstances, getInstanceSnapshot, getInstanceSnapshots, getInstanceState, getKeyPair, getKeyPairs, getOperation, getOperations, getOperationsForResource, getRegions, getStaticIp, getStaticIps, importKeyPair, isVpcPeered, openInstancePublicPorts, peerVpc, putInstancePublicPorts, rebootInstance, releaseStaticIp, startInstance, stopInstance, unpeerVpc, updateDomainEntry
addRequestHandler, addRequestHandler, configureRegion, getEndpointPrefix, 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
allocateStaticIp, attachStaticIp, closeInstancePublicPorts, createDomain, createDomainEntry, createInstances, createInstancesFromSnapshot, createInstanceSnapshot, createKeyPair, deleteDomain, deleteDomainEntry, deleteInstance, deleteInstanceSnapshot, deleteKeyPair, detachStaticIp, downloadDefaultKeyPair, getActiveNames, getBlueprints, getBundles, getCachedResponseMetadata, getDomain, getDomains, getInstance, getInstanceAccessDetails, getInstanceMetricData, getInstancePortStates, getInstances, getInstanceSnapshot, getInstanceSnapshots, getInstanceState, getKeyPair, getKeyPairs, getOperation, getOperations, getOperationsForResource, getRegions, getStaticIp, getStaticIps, importKeyPair, isVpcPeered, openInstancePublicPorts, peerVpc, putInstancePublicPorts, rebootInstance, releaseStaticIp, setEndpoint, setRegion, startInstance, stopInstance, unpeerVpc, updateDomainEntry
@Deprecated public AmazonLightsailAsyncClient()
AmazonLightsailAsyncClientBuilder.defaultClient()
Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default maximum number of concurrent connections to the service).
@Deprecated public AmazonLightsailAsyncClient(ClientConfiguration clientConfiguration)
AwsClientBuilder.withClientConfiguration(ClientConfiguration)
Asynchronous methods are delegated to a fixed-size thread pool containing a number of threads equal to the
maximum number of concurrent connections configured via ClientConfiguration.getMaxConnections()
.
clientConfiguration
- The client configuration options controlling how this client connects to Amazon Lightsail (ex: proxy
settings, retry counts, etc).DefaultAWSCredentialsProviderChain
,
Executors.newFixedThreadPool(int)
@Deprecated public AmazonLightsailAsyncClient(AWSCredentials awsCredentials)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default maximum number of concurrent connections to the service).
awsCredentials
- The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.Executors.newFixedThreadPool(int)
@Deprecated public AmazonLightsailAsyncClient(AWSCredentials awsCredentials, ExecutorService executorService)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
and
AwsAsyncClientBuilder.withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)
awsCredentials
- The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.executorService
- The executor service by which all asynchronous requests will be executed.@Deprecated public AmazonLightsailAsyncClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration, ExecutorService executorService)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
and
AwsClientBuilder.withClientConfiguration(ClientConfiguration)
and
AwsAsyncClientBuilder.withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)
awsCredentials
- The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.clientConfiguration
- Client configuration options (ex: max retry limit, proxy settings, etc).executorService
- The executor service by which all asynchronous requests will be executed.@Deprecated public AmazonLightsailAsyncClient(AWSCredentialsProvider awsCredentialsProvider)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default maximum number of concurrent connections to the service).
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.Executors.newFixedThreadPool(int)
@Deprecated public AmazonLightsailAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
and
AwsClientBuilder.withClientConfiguration(ClientConfiguration)
Asynchronous methods are delegated to a fixed-size thread pool containing a number of threads equal to the
maximum number of concurrent connections configured via ClientConfiguration.getMaxConnections()
.
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.clientConfiguration
- Client configuration options (ex: max retry limit, proxy settings, etc).DefaultAWSCredentialsProviderChain
,
Executors.newFixedThreadPool(int)
@Deprecated public AmazonLightsailAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ExecutorService executorService)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
and
AwsAsyncClientBuilder.withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.executorService
- The executor service by which all asynchronous requests will be executed.@Deprecated public AmazonLightsailAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, ExecutorService executorService)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
and
AwsClientBuilder.withClientConfiguration(ClientConfiguration)
and
AwsAsyncClientBuilder.withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.clientConfiguration
- Client configuration options (ex: max retry limit, proxy settings, etc).executorService
- The executor service by which all asynchronous requests will be executed.public static AmazonLightsailAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<AllocateStaticIpResult> allocateStaticIpAsync(AllocateStaticIpRequest request)
AmazonLightsailAsync
Allocates a static IP address.
allocateStaticIpAsync
in interface AmazonLightsailAsync
public Future<AllocateStaticIpResult> allocateStaticIpAsync(AllocateStaticIpRequest request, AsyncHandler<AllocateStaticIpRequest,AllocateStaticIpResult> asyncHandler)
AmazonLightsailAsync
Allocates a static IP address.
allocateStaticIpAsync
in interface AmazonLightsailAsync
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 Future<AttachStaticIpResult> attachStaticIpAsync(AttachStaticIpRequest request)
AmazonLightsailAsync
Attaches a static IP address to a specific Amazon Lightsail instance.
attachStaticIpAsync
in interface AmazonLightsailAsync
public Future<AttachStaticIpResult> attachStaticIpAsync(AttachStaticIpRequest request, AsyncHandler<AttachStaticIpRequest,AttachStaticIpResult> asyncHandler)
AmazonLightsailAsync
Attaches a static IP address to a specific Amazon Lightsail instance.
attachStaticIpAsync
in interface AmazonLightsailAsync
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 Future<CloseInstancePublicPortsResult> closeInstancePublicPortsAsync(CloseInstancePublicPortsRequest request)
AmazonLightsailAsync
Closes the public ports on a specific Amazon Lightsail instance.
closeInstancePublicPortsAsync
in interface AmazonLightsailAsync
public Future<CloseInstancePublicPortsResult> closeInstancePublicPortsAsync(CloseInstancePublicPortsRequest request, AsyncHandler<CloseInstancePublicPortsRequest,CloseInstancePublicPortsResult> asyncHandler)
AmazonLightsailAsync
Closes the public ports on a specific Amazon Lightsail instance.
closeInstancePublicPortsAsync
in interface AmazonLightsailAsync
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 Future<CreateDomainResult> createDomainAsync(CreateDomainRequest request)
AmazonLightsailAsync
Creates a domain resource for the specified domain (e.g., example.com).
createDomainAsync
in interface AmazonLightsailAsync
public Future<CreateDomainResult> createDomainAsync(CreateDomainRequest request, AsyncHandler<CreateDomainRequest,CreateDomainResult> asyncHandler)
AmazonLightsailAsync
Creates a domain resource for the specified domain (e.g., example.com).
createDomainAsync
in interface AmazonLightsailAsync
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 Future<CreateDomainEntryResult> createDomainEntryAsync(CreateDomainEntryRequest request)
AmazonLightsailAsync
Creates one of the following entry records associated with the domain: A record, CNAME record, TXT record, or MX record.
createDomainEntryAsync
in interface AmazonLightsailAsync
public Future<CreateDomainEntryResult> createDomainEntryAsync(CreateDomainEntryRequest request, AsyncHandler<CreateDomainEntryRequest,CreateDomainEntryResult> asyncHandler)
AmazonLightsailAsync
Creates one of the following entry records associated with the domain: A record, CNAME record, TXT record, or MX record.
createDomainEntryAsync
in interface AmazonLightsailAsync
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 Future<CreateInstanceSnapshotResult> createInstanceSnapshotAsync(CreateInstanceSnapshotRequest request)
AmazonLightsailAsync
Creates a snapshot of a specific virtual private server, or instance. You can use a snapshot to create a new instance that is based on that snapshot.
createInstanceSnapshotAsync
in interface AmazonLightsailAsync
public Future<CreateInstanceSnapshotResult> createInstanceSnapshotAsync(CreateInstanceSnapshotRequest request, AsyncHandler<CreateInstanceSnapshotRequest,CreateInstanceSnapshotResult> asyncHandler)
AmazonLightsailAsync
Creates a snapshot of a specific virtual private server, or instance. You can use a snapshot to create a new instance that is based on that snapshot.
createInstanceSnapshotAsync
in interface AmazonLightsailAsync
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 Future<CreateInstancesResult> createInstancesAsync(CreateInstancesRequest request)
AmazonLightsailAsync
Creates one or more Amazon Lightsail virtual private servers, or instances.
createInstancesAsync
in interface AmazonLightsailAsync
public Future<CreateInstancesResult> createInstancesAsync(CreateInstancesRequest request, AsyncHandler<CreateInstancesRequest,CreateInstancesResult> asyncHandler)
AmazonLightsailAsync
Creates one or more Amazon Lightsail virtual private servers, or instances.
createInstancesAsync
in interface AmazonLightsailAsync
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 Future<CreateInstancesFromSnapshotResult> createInstancesFromSnapshotAsync(CreateInstancesFromSnapshotRequest request)
AmazonLightsailAsync
Uses a specific snapshot as a blueprint for creating one or more new instances that are based on that identical configuration.
createInstancesFromSnapshotAsync
in interface AmazonLightsailAsync
public Future<CreateInstancesFromSnapshotResult> createInstancesFromSnapshotAsync(CreateInstancesFromSnapshotRequest request, AsyncHandler<CreateInstancesFromSnapshotRequest,CreateInstancesFromSnapshotResult> asyncHandler)
AmazonLightsailAsync
Uses a specific snapshot as a blueprint for creating one or more new instances that are based on that identical configuration.
createInstancesFromSnapshotAsync
in interface AmazonLightsailAsync
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 Future<CreateKeyPairResult> createKeyPairAsync(CreateKeyPairRequest request)
AmazonLightsailAsync
Creates sn SSH key pair.
createKeyPairAsync
in interface AmazonLightsailAsync
public Future<CreateKeyPairResult> createKeyPairAsync(CreateKeyPairRequest request, AsyncHandler<CreateKeyPairRequest,CreateKeyPairResult> asyncHandler)
AmazonLightsailAsync
Creates sn SSH key pair.
createKeyPairAsync
in interface AmazonLightsailAsync
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 Future<DeleteDomainResult> deleteDomainAsync(DeleteDomainRequest request)
AmazonLightsailAsync
Deletes the specified domain recordset and all of its domain records.
deleteDomainAsync
in interface AmazonLightsailAsync
public Future<DeleteDomainResult> deleteDomainAsync(DeleteDomainRequest request, AsyncHandler<DeleteDomainRequest,DeleteDomainResult> asyncHandler)
AmazonLightsailAsync
Deletes the specified domain recordset and all of its domain records.
deleteDomainAsync
in interface AmazonLightsailAsync
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 Future<DeleteDomainEntryResult> deleteDomainEntryAsync(DeleteDomainEntryRequest request)
AmazonLightsailAsync
Deletes a specific domain entry.
deleteDomainEntryAsync
in interface AmazonLightsailAsync
public Future<DeleteDomainEntryResult> deleteDomainEntryAsync(DeleteDomainEntryRequest request, AsyncHandler<DeleteDomainEntryRequest,DeleteDomainEntryResult> asyncHandler)
AmazonLightsailAsync
Deletes a specific domain entry.
deleteDomainEntryAsync
in interface AmazonLightsailAsync
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 Future<DeleteInstanceResult> deleteInstanceAsync(DeleteInstanceRequest request)
AmazonLightsailAsync
Deletes a specific Amazon Lightsail virtual private server, or instance.
deleteInstanceAsync
in interface AmazonLightsailAsync
public Future<DeleteInstanceResult> deleteInstanceAsync(DeleteInstanceRequest request, AsyncHandler<DeleteInstanceRequest,DeleteInstanceResult> asyncHandler)
AmazonLightsailAsync
Deletes a specific Amazon Lightsail virtual private server, or instance.
deleteInstanceAsync
in interface AmazonLightsailAsync
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 Future<DeleteInstanceSnapshotResult> deleteInstanceSnapshotAsync(DeleteInstanceSnapshotRequest request)
AmazonLightsailAsync
Deletes a specific snapshot of a virtual private server (or instance).
deleteInstanceSnapshotAsync
in interface AmazonLightsailAsync
public Future<DeleteInstanceSnapshotResult> deleteInstanceSnapshotAsync(DeleteInstanceSnapshotRequest request, AsyncHandler<DeleteInstanceSnapshotRequest,DeleteInstanceSnapshotResult> asyncHandler)
AmazonLightsailAsync
Deletes a specific snapshot of a virtual private server (or instance).
deleteInstanceSnapshotAsync
in interface AmazonLightsailAsync
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 Future<DeleteKeyPairResult> deleteKeyPairAsync(DeleteKeyPairRequest request)
AmazonLightsailAsync
Deletes a specific SSH key pair.
deleteKeyPairAsync
in interface AmazonLightsailAsync
public Future<DeleteKeyPairResult> deleteKeyPairAsync(DeleteKeyPairRequest request, AsyncHandler<DeleteKeyPairRequest,DeleteKeyPairResult> asyncHandler)
AmazonLightsailAsync
Deletes a specific SSH key pair.
deleteKeyPairAsync
in interface AmazonLightsailAsync
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 Future<DetachStaticIpResult> detachStaticIpAsync(DetachStaticIpRequest request)
AmazonLightsailAsync
Detaches a static IP from the Amazon Lightsail instance to which it is attached.
detachStaticIpAsync
in interface AmazonLightsailAsync
public Future<DetachStaticIpResult> detachStaticIpAsync(DetachStaticIpRequest request, AsyncHandler<DetachStaticIpRequest,DetachStaticIpResult> asyncHandler)
AmazonLightsailAsync
Detaches a static IP from the Amazon Lightsail instance to which it is attached.
detachStaticIpAsync
in interface AmazonLightsailAsync
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 Future<DownloadDefaultKeyPairResult> downloadDefaultKeyPairAsync(DownloadDefaultKeyPairRequest request)
AmazonLightsailAsync
Downloads the default SSH key pair from the user's account.
downloadDefaultKeyPairAsync
in interface AmazonLightsailAsync
public Future<DownloadDefaultKeyPairResult> downloadDefaultKeyPairAsync(DownloadDefaultKeyPairRequest request, AsyncHandler<DownloadDefaultKeyPairRequest,DownloadDefaultKeyPairResult> asyncHandler)
AmazonLightsailAsync
Downloads the default SSH key pair from the user's account.
downloadDefaultKeyPairAsync
in interface AmazonLightsailAsync
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 Future<GetActiveNamesResult> getActiveNamesAsync(GetActiveNamesRequest request)
AmazonLightsailAsync
Returns the names of all active (not deleted) resources.
getActiveNamesAsync
in interface AmazonLightsailAsync
public Future<GetActiveNamesResult> getActiveNamesAsync(GetActiveNamesRequest request, AsyncHandler<GetActiveNamesRequest,GetActiveNamesResult> asyncHandler)
AmazonLightsailAsync
Returns the names of all active (not deleted) resources.
getActiveNamesAsync
in interface AmazonLightsailAsync
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 Future<GetBlueprintsResult> getBlueprintsAsync(GetBlueprintsRequest request)
AmazonLightsailAsync
Returns the list of available instance images, or blueprints. You can use a blueprint to create a new virtual private server already running a specific operating system, as well as a preinstalled app or development stack. The software each instance is running depends on the blueprint image you choose.
getBlueprintsAsync
in interface AmazonLightsailAsync
public Future<GetBlueprintsResult> getBlueprintsAsync(GetBlueprintsRequest request, AsyncHandler<GetBlueprintsRequest,GetBlueprintsResult> asyncHandler)
AmazonLightsailAsync
Returns the list of available instance images, or blueprints. You can use a blueprint to create a new virtual private server already running a specific operating system, as well as a preinstalled app or development stack. The software each instance is running depends on the blueprint image you choose.
getBlueprintsAsync
in interface AmazonLightsailAsync
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 Future<GetBundlesResult> getBundlesAsync(GetBundlesRequest request)
AmazonLightsailAsync
Returns the list of bundles that are available for purchase. A bundle describes the specs for your virtual private server (or instance).
getBundlesAsync
in interface AmazonLightsailAsync
public Future<GetBundlesResult> getBundlesAsync(GetBundlesRequest request, AsyncHandler<GetBundlesRequest,GetBundlesResult> asyncHandler)
AmazonLightsailAsync
Returns the list of bundles that are available for purchase. A bundle describes the specs for your virtual private server (or instance).
getBundlesAsync
in interface AmazonLightsailAsync
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 Future<GetDomainResult> getDomainAsync(GetDomainRequest request)
AmazonLightsailAsync
Returns information about a specific domain recordset.
getDomainAsync
in interface AmazonLightsailAsync
public Future<GetDomainResult> getDomainAsync(GetDomainRequest request, AsyncHandler<GetDomainRequest,GetDomainResult> asyncHandler)
AmazonLightsailAsync
Returns information about a specific domain recordset.
getDomainAsync
in interface AmazonLightsailAsync
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 Future<GetDomainsResult> getDomainsAsync(GetDomainsRequest request)
AmazonLightsailAsync
Returns a list of all domains in the user's account.
getDomainsAsync
in interface AmazonLightsailAsync
public Future<GetDomainsResult> getDomainsAsync(GetDomainsRequest request, AsyncHandler<GetDomainsRequest,GetDomainsResult> asyncHandler)
AmazonLightsailAsync
Returns a list of all domains in the user's account.
getDomainsAsync
in interface AmazonLightsailAsync
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 Future<GetInstanceResult> getInstanceAsync(GetInstanceRequest request)
AmazonLightsailAsync
Returns information about a specific Amazon Lightsail instance, which is a virtual private server.
getInstanceAsync
in interface AmazonLightsailAsync
public Future<GetInstanceResult> getInstanceAsync(GetInstanceRequest request, AsyncHandler<GetInstanceRequest,GetInstanceResult> asyncHandler)
AmazonLightsailAsync
Returns information about a specific Amazon Lightsail instance, which is a virtual private server.
getInstanceAsync
in interface AmazonLightsailAsync
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 Future<GetInstanceAccessDetailsResult> getInstanceAccessDetailsAsync(GetInstanceAccessDetailsRequest request)
AmazonLightsailAsync
Returns temporary SSH keys you can use to connect to a specific virtual private server, or instance.
getInstanceAccessDetailsAsync
in interface AmazonLightsailAsync
public Future<GetInstanceAccessDetailsResult> getInstanceAccessDetailsAsync(GetInstanceAccessDetailsRequest request, AsyncHandler<GetInstanceAccessDetailsRequest,GetInstanceAccessDetailsResult> asyncHandler)
AmazonLightsailAsync
Returns temporary SSH keys you can use to connect to a specific virtual private server, or instance.
getInstanceAccessDetailsAsync
in interface AmazonLightsailAsync
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 Future<GetInstanceMetricDataResult> getInstanceMetricDataAsync(GetInstanceMetricDataRequest request)
AmazonLightsailAsync
Returns the data points for the specified Amazon Lightsail instance metric, given an instance name.
getInstanceMetricDataAsync
in interface AmazonLightsailAsync
public Future<GetInstanceMetricDataResult> getInstanceMetricDataAsync(GetInstanceMetricDataRequest request, AsyncHandler<GetInstanceMetricDataRequest,GetInstanceMetricDataResult> asyncHandler)
AmazonLightsailAsync
Returns the data points for the specified Amazon Lightsail instance metric, given an instance name.
getInstanceMetricDataAsync
in interface AmazonLightsailAsync
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 Future<GetInstancePortStatesResult> getInstancePortStatesAsync(GetInstancePortStatesRequest request)
AmazonLightsailAsync
Returns the port states for a specific virtual private server, or instance.
getInstancePortStatesAsync
in interface AmazonLightsailAsync
public Future<GetInstancePortStatesResult> getInstancePortStatesAsync(GetInstancePortStatesRequest request, AsyncHandler<GetInstancePortStatesRequest,GetInstancePortStatesResult> asyncHandler)
AmazonLightsailAsync
Returns the port states for a specific virtual private server, or instance.
getInstancePortStatesAsync
in interface AmazonLightsailAsync
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 Future<GetInstanceSnapshotResult> getInstanceSnapshotAsync(GetInstanceSnapshotRequest request)
AmazonLightsailAsync
Returns information about a specific instance snapshot.
getInstanceSnapshotAsync
in interface AmazonLightsailAsync
public Future<GetInstanceSnapshotResult> getInstanceSnapshotAsync(GetInstanceSnapshotRequest request, AsyncHandler<GetInstanceSnapshotRequest,GetInstanceSnapshotResult> asyncHandler)
AmazonLightsailAsync
Returns information about a specific instance snapshot.
getInstanceSnapshotAsync
in interface AmazonLightsailAsync
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 Future<GetInstanceSnapshotsResult> getInstanceSnapshotsAsync(GetInstanceSnapshotsRequest request)
AmazonLightsailAsync
Returns all instance snapshots for the user's account.
getInstanceSnapshotsAsync
in interface AmazonLightsailAsync
public Future<GetInstanceSnapshotsResult> getInstanceSnapshotsAsync(GetInstanceSnapshotsRequest request, AsyncHandler<GetInstanceSnapshotsRequest,GetInstanceSnapshotsResult> asyncHandler)
AmazonLightsailAsync
Returns all instance snapshots for the user's account.
getInstanceSnapshotsAsync
in interface AmazonLightsailAsync
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 Future<GetInstanceStateResult> getInstanceStateAsync(GetInstanceStateRequest request)
AmazonLightsailAsync
Returns the state of a specific instance. Works on one instance at a time.
getInstanceStateAsync
in interface AmazonLightsailAsync
public Future<GetInstanceStateResult> getInstanceStateAsync(GetInstanceStateRequest request, AsyncHandler<GetInstanceStateRequest,GetInstanceStateResult> asyncHandler)
AmazonLightsailAsync
Returns the state of a specific instance. Works on one instance at a time.
getInstanceStateAsync
in interface AmazonLightsailAsync
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 Future<GetInstancesResult> getInstancesAsync(GetInstancesRequest request)
AmazonLightsailAsync
Returns information about all Amazon Lightsail virtual private servers, or instances.
getInstancesAsync
in interface AmazonLightsailAsync
public Future<GetInstancesResult> getInstancesAsync(GetInstancesRequest request, AsyncHandler<GetInstancesRequest,GetInstancesResult> asyncHandler)
AmazonLightsailAsync
Returns information about all Amazon Lightsail virtual private servers, or instances.
getInstancesAsync
in interface AmazonLightsailAsync
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 Future<GetKeyPairResult> getKeyPairAsync(GetKeyPairRequest request)
AmazonLightsailAsync
Returns information about a specific key pair.
getKeyPairAsync
in interface AmazonLightsailAsync
public Future<GetKeyPairResult> getKeyPairAsync(GetKeyPairRequest request, AsyncHandler<GetKeyPairRequest,GetKeyPairResult> asyncHandler)
AmazonLightsailAsync
Returns information about a specific key pair.
getKeyPairAsync
in interface AmazonLightsailAsync
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 Future<GetKeyPairsResult> getKeyPairsAsync(GetKeyPairsRequest request)
AmazonLightsailAsync
Returns information about all key pairs in the user's account.
getKeyPairsAsync
in interface AmazonLightsailAsync
public Future<GetKeyPairsResult> getKeyPairsAsync(GetKeyPairsRequest request, AsyncHandler<GetKeyPairsRequest,GetKeyPairsResult> asyncHandler)
AmazonLightsailAsync
Returns information about all key pairs in the user's account.
getKeyPairsAsync
in interface AmazonLightsailAsync
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 Future<GetOperationResult> getOperationAsync(GetOperationRequest request)
AmazonLightsailAsync
Returns information about a specific operation. Operations include events such as when you create an instance, allocate a static IP, attach a static IP, and so on.
getOperationAsync
in interface AmazonLightsailAsync
public Future<GetOperationResult> getOperationAsync(GetOperationRequest request, AsyncHandler<GetOperationRequest,GetOperationResult> asyncHandler)
AmazonLightsailAsync
Returns information about a specific operation. Operations include events such as when you create an instance, allocate a static IP, attach a static IP, and so on.
getOperationAsync
in interface AmazonLightsailAsync
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 Future<GetOperationsResult> getOperationsAsync(GetOperationsRequest request)
AmazonLightsailAsync
Returns information about all operations.
Results are returned from oldest to newest, up to a maximum of 200. Results can be paged by making each
subsequent call to GetOperations
use the maximum (last) statusChangedAt
value from the
previous request.
getOperationsAsync
in interface AmazonLightsailAsync
public Future<GetOperationsResult> getOperationsAsync(GetOperationsRequest request, AsyncHandler<GetOperationsRequest,GetOperationsResult> asyncHandler)
AmazonLightsailAsync
Returns information about all operations.
Results are returned from oldest to newest, up to a maximum of 200. Results can be paged by making each
subsequent call to GetOperations
use the maximum (last) statusChangedAt
value from the
previous request.
getOperationsAsync
in interface AmazonLightsailAsync
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 Future<GetOperationsForResourceResult> getOperationsForResourceAsync(GetOperationsForResourceRequest request)
AmazonLightsailAsync
Gets operations for a specific resource (e.g., an instance or a static IP).
getOperationsForResourceAsync
in interface AmazonLightsailAsync
public Future<GetOperationsForResourceResult> getOperationsForResourceAsync(GetOperationsForResourceRequest request, AsyncHandler<GetOperationsForResourceRequest,GetOperationsForResourceResult> asyncHandler)
AmazonLightsailAsync
Gets operations for a specific resource (e.g., an instance or a static IP).
getOperationsForResourceAsync
in interface AmazonLightsailAsync
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 Future<GetRegionsResult> getRegionsAsync(GetRegionsRequest request)
AmazonLightsailAsync
Returns a list of all valid regions for Amazon Lightsail. Use the include availability zones
parameter to also return the availability zones in a region.
getRegionsAsync
in interface AmazonLightsailAsync
public Future<GetRegionsResult> getRegionsAsync(GetRegionsRequest request, AsyncHandler<GetRegionsRequest,GetRegionsResult> asyncHandler)
AmazonLightsailAsync
Returns a list of all valid regions for Amazon Lightsail. Use the include availability zones
parameter to also return the availability zones in a region.
getRegionsAsync
in interface AmazonLightsailAsync
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 Future<GetStaticIpResult> getStaticIpAsync(GetStaticIpRequest request)
AmazonLightsailAsync
Returns information about a specific static IP.
getStaticIpAsync
in interface AmazonLightsailAsync
public Future<GetStaticIpResult> getStaticIpAsync(GetStaticIpRequest request, AsyncHandler<GetStaticIpRequest,GetStaticIpResult> asyncHandler)
AmazonLightsailAsync
Returns information about a specific static IP.
getStaticIpAsync
in interface AmazonLightsailAsync
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 Future<GetStaticIpsResult> getStaticIpsAsync(GetStaticIpsRequest request)
AmazonLightsailAsync
Returns information about all static IPs in the user's account.
getStaticIpsAsync
in interface AmazonLightsailAsync
public Future<GetStaticIpsResult> getStaticIpsAsync(GetStaticIpsRequest request, AsyncHandler<GetStaticIpsRequest,GetStaticIpsResult> asyncHandler)
AmazonLightsailAsync
Returns information about all static IPs in the user's account.
getStaticIpsAsync
in interface AmazonLightsailAsync
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 Future<ImportKeyPairResult> importKeyPairAsync(ImportKeyPairRequest request)
AmazonLightsailAsync
Imports a public SSH key from a specific key pair.
importKeyPairAsync
in interface AmazonLightsailAsync
public Future<ImportKeyPairResult> importKeyPairAsync(ImportKeyPairRequest request, AsyncHandler<ImportKeyPairRequest,ImportKeyPairResult> asyncHandler)
AmazonLightsailAsync
Imports a public SSH key from a specific key pair.
importKeyPairAsync
in interface AmazonLightsailAsync
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 Future<IsVpcPeeredResult> isVpcPeeredAsync(IsVpcPeeredRequest request)
AmazonLightsailAsync
Returns a Boolean value indicating whether your Lightsail VPC is peered.
isVpcPeeredAsync
in interface AmazonLightsailAsync
public Future<IsVpcPeeredResult> isVpcPeeredAsync(IsVpcPeeredRequest request, AsyncHandler<IsVpcPeeredRequest,IsVpcPeeredResult> asyncHandler)
AmazonLightsailAsync
Returns a Boolean value indicating whether your Lightsail VPC is peered.
isVpcPeeredAsync
in interface AmazonLightsailAsync
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 Future<OpenInstancePublicPortsResult> openInstancePublicPortsAsync(OpenInstancePublicPortsRequest request)
AmazonLightsailAsync
Adds public ports to an Amazon Lightsail instance.
openInstancePublicPortsAsync
in interface AmazonLightsailAsync
public Future<OpenInstancePublicPortsResult> openInstancePublicPortsAsync(OpenInstancePublicPortsRequest request, AsyncHandler<OpenInstancePublicPortsRequest,OpenInstancePublicPortsResult> asyncHandler)
AmazonLightsailAsync
Adds public ports to an Amazon Lightsail instance.
openInstancePublicPortsAsync
in interface AmazonLightsailAsync
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 Future<PeerVpcResult> peerVpcAsync(PeerVpcRequest request)
AmazonLightsailAsync
Tries to peer the Lightsail VPC with the user's default VPC.
peerVpcAsync
in interface AmazonLightsailAsync
public Future<PeerVpcResult> peerVpcAsync(PeerVpcRequest request, AsyncHandler<PeerVpcRequest,PeerVpcResult> asyncHandler)
AmazonLightsailAsync
Tries to peer the Lightsail VPC with the user's default VPC.
peerVpcAsync
in interface AmazonLightsailAsync
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 Future<PutInstancePublicPortsResult> putInstancePublicPortsAsync(PutInstancePublicPortsRequest request)
AmazonLightsailAsync
Sets the specified open ports for an Amazon Lightsail instance, and closes all ports for every protocol not included in the current request.
putInstancePublicPortsAsync
in interface AmazonLightsailAsync
public Future<PutInstancePublicPortsResult> putInstancePublicPortsAsync(PutInstancePublicPortsRequest request, AsyncHandler<PutInstancePublicPortsRequest,PutInstancePublicPortsResult> asyncHandler)
AmazonLightsailAsync
Sets the specified open ports for an Amazon Lightsail instance, and closes all ports for every protocol not included in the current request.
putInstancePublicPortsAsync
in interface AmazonLightsailAsync
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 Future<RebootInstanceResult> rebootInstanceAsync(RebootInstanceRequest request)
AmazonLightsailAsync
Restarts a specific instance. When your Amazon Lightsail instance is finished rebooting, Lightsail assigns a new public IP address. To use the same IP address after restarting, create a static IP address and attach it to the instance.
rebootInstanceAsync
in interface AmazonLightsailAsync
public Future<RebootInstanceResult> rebootInstanceAsync(RebootInstanceRequest request, AsyncHandler<RebootInstanceRequest,RebootInstanceResult> asyncHandler)
AmazonLightsailAsync
Restarts a specific instance. When your Amazon Lightsail instance is finished rebooting, Lightsail assigns a new public IP address. To use the same IP address after restarting, create a static IP address and attach it to the instance.
rebootInstanceAsync
in interface AmazonLightsailAsync
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 Future<ReleaseStaticIpResult> releaseStaticIpAsync(ReleaseStaticIpRequest request)
AmazonLightsailAsync
Deletes a specific static IP from your account.
releaseStaticIpAsync
in interface AmazonLightsailAsync
public Future<ReleaseStaticIpResult> releaseStaticIpAsync(ReleaseStaticIpRequest request, AsyncHandler<ReleaseStaticIpRequest,ReleaseStaticIpResult> asyncHandler)
AmazonLightsailAsync
Deletes a specific static IP from your account.
releaseStaticIpAsync
in interface AmazonLightsailAsync
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 Future<StartInstanceResult> startInstanceAsync(StartInstanceRequest request)
AmazonLightsailAsync
Starts a specific Amazon Lightsail instance from a stopped state. To restart an instance, use the reboot instance operation.
startInstanceAsync
in interface AmazonLightsailAsync
public Future<StartInstanceResult> startInstanceAsync(StartInstanceRequest request, AsyncHandler<StartInstanceRequest,StartInstanceResult> asyncHandler)
AmazonLightsailAsync
Starts a specific Amazon Lightsail instance from a stopped state. To restart an instance, use the reboot instance operation.
startInstanceAsync
in interface AmazonLightsailAsync
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 Future<StopInstanceResult> stopInstanceAsync(StopInstanceRequest request)
AmazonLightsailAsync
Stops a specific Amazon Lightsail instance that is currently running.
stopInstanceAsync
in interface AmazonLightsailAsync
public Future<StopInstanceResult> stopInstanceAsync(StopInstanceRequest request, AsyncHandler<StopInstanceRequest,StopInstanceResult> asyncHandler)
AmazonLightsailAsync
Stops a specific Amazon Lightsail instance that is currently running.
stopInstanceAsync
in interface AmazonLightsailAsync
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 Future<UnpeerVpcResult> unpeerVpcAsync(UnpeerVpcRequest request)
AmazonLightsailAsync
Attempts to unpeer the Lightsail VPC from the user's default VPC.
unpeerVpcAsync
in interface AmazonLightsailAsync
public Future<UnpeerVpcResult> unpeerVpcAsync(UnpeerVpcRequest request, AsyncHandler<UnpeerVpcRequest,UnpeerVpcResult> asyncHandler)
AmazonLightsailAsync
Attempts to unpeer the Lightsail VPC from the user's default VPC.
unpeerVpcAsync
in interface AmazonLightsailAsync
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 Future<UpdateDomainEntryResult> updateDomainEntryAsync(UpdateDomainEntryRequest request)
AmazonLightsailAsync
Updates a domain recordset after it is created.
updateDomainEntryAsync
in interface AmazonLightsailAsync
public Future<UpdateDomainEntryResult> updateDomainEntryAsync(UpdateDomainEntryRequest request, AsyncHandler<UpdateDomainEntryRequest,UpdateDomainEntryResult> asyncHandler)
AmazonLightsailAsync
Updates a domain recordset after it is created.
updateDomainEntryAsync
in interface AmazonLightsailAsync
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 AmazonLightsail
shutdown
in class AmazonWebServiceClient
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.