public class AmazonECSAsyncClient extends AmazonECSClient implements AmazonECSAsync
Amazon EC2 Container Service (Amazon ECS) is a highly scalable, fast, container management service that makes it easy to run, stop, and manage Docker containers on a cluster of Amazon EC2 instances. Amazon ECS lets you launch and stop container-enabled applications with simple API calls, allows you to get the state of your cluster from a centralized service, and gives you access to many familiar Amazon EC2 features like security groups, Amazon EBS volumes, and IAM roles.
You can use Amazon ECS to schedule the placement of containers across your cluster based on your resource needs, isolation policies, and availability requirements. Amazon EC2 Container Service eliminates the need for you to operate your own cluster management and configuration management systems or worry about scaling your management infrastructure.
jsonErrorUnmarshallers
client, clientConfiguration, endpoint, LOGGING_AWS_REQUEST_METRIC, requestHandler2s, timeOffset
Constructor and Description |
---|
AmazonECSAsyncClient()
Constructs a new asynchronous client to invoke service methods on
AmazonECS.
|
AmazonECSAsyncClient(AWSCredentials awsCredentials)
Constructs a new asynchronous client to invoke service methods on
AmazonECS using the specified AWS account credentials.
|
AmazonECSAsyncClient(AWSCredentials awsCredentials,
ClientConfiguration clientConfiguration,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on
AmazonECS using the specified AWS account credentials,
executor service, and client configuration options.
|
AmazonECSAsyncClient(AWSCredentials awsCredentials,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on
AmazonECS using the specified AWS account credentials
and executor service.
|
AmazonECSAsyncClient(AWSCredentialsProvider awsCredentialsProvider)
Constructs a new asynchronous client to invoke service methods on
AmazonECS using the specified AWS account credentials provider.
|
AmazonECSAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration)
Constructs a new asynchronous client to invoke service methods on
AmazonECS using the specified AWS account credentials
provider and client configuration options.
|
AmazonECSAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on
AmazonECS using the specified AWS account credentials
provider, executor service, and client configuration options.
|
AmazonECSAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on
AmazonECS using the specified AWS account credentials provider
and executor service.
|
AmazonECSAsyncClient(ClientConfiguration clientConfiguration)
Constructs a new asynchronous client to invoke service methods on
AmazonECS.
|
Modifier and Type | Method and Description |
---|---|
Future<CreateClusterResult> |
createClusterAsync(CreateClusterRequest createClusterRequest)
Creates a new Amazon ECS cluster.
|
Future<CreateClusterResult> |
createClusterAsync(CreateClusterRequest createClusterRequest,
AsyncHandler<CreateClusterRequest,CreateClusterResult> asyncHandler)
Creates a new Amazon ECS cluster.
|
Future<DeleteClusterResult> |
deleteClusterAsync(DeleteClusterRequest deleteClusterRequest)
Deletes the specified cluster.
|
Future<DeleteClusterResult> |
deleteClusterAsync(DeleteClusterRequest deleteClusterRequest,
AsyncHandler<DeleteClusterRequest,DeleteClusterResult> asyncHandler)
Deletes the specified cluster.
|
Future<DeregisterContainerInstanceResult> |
deregisterContainerInstanceAsync(DeregisterContainerInstanceRequest deregisterContainerInstanceRequest)
Deregisters an Amazon ECS container instance from the specified
cluster.
|
Future<DeregisterContainerInstanceResult> |
deregisterContainerInstanceAsync(DeregisterContainerInstanceRequest deregisterContainerInstanceRequest,
AsyncHandler<DeregisterContainerInstanceRequest,DeregisterContainerInstanceResult> asyncHandler)
Deregisters an Amazon ECS container instance from the specified
cluster.
|
Future<DeregisterTaskDefinitionResult> |
deregisterTaskDefinitionAsync(DeregisterTaskDefinitionRequest deregisterTaskDefinitionRequest)
NOT YET IMPLEMENTED.
|
Future<DeregisterTaskDefinitionResult> |
deregisterTaskDefinitionAsync(DeregisterTaskDefinitionRequest deregisterTaskDefinitionRequest,
AsyncHandler<DeregisterTaskDefinitionRequest,DeregisterTaskDefinitionResult> asyncHandler)
NOT YET IMPLEMENTED.
|
Future<DescribeClustersResult> |
describeClustersAsync(DescribeClustersRequest describeClustersRequest)
Describes one or more of your clusters.
|
Future<DescribeClustersResult> |
describeClustersAsync(DescribeClustersRequest describeClustersRequest,
AsyncHandler<DescribeClustersRequest,DescribeClustersResult> asyncHandler)
Describes one or more of your clusters.
|
Future<DescribeContainerInstancesResult> |
describeContainerInstancesAsync(DescribeContainerInstancesRequest describeContainerInstancesRequest)
Describes Amazon EC2 Container Service container instances.
|
Future<DescribeContainerInstancesResult> |
describeContainerInstancesAsync(DescribeContainerInstancesRequest describeContainerInstancesRequest,
AsyncHandler<DescribeContainerInstancesRequest,DescribeContainerInstancesResult> asyncHandler)
Describes Amazon EC2 Container Service container instances.
|
Future<DescribeTaskDefinitionResult> |
describeTaskDefinitionAsync(DescribeTaskDefinitionRequest describeTaskDefinitionRequest)
Describes a task definition.
|
Future<DescribeTaskDefinitionResult> |
describeTaskDefinitionAsync(DescribeTaskDefinitionRequest describeTaskDefinitionRequest,
AsyncHandler<DescribeTaskDefinitionRequest,DescribeTaskDefinitionResult> asyncHandler)
Describes a task definition.
|
Future<DescribeTasksResult> |
describeTasksAsync(DescribeTasksRequest describeTasksRequest)
Describes a specified task or tasks.
|
Future<DescribeTasksResult> |
describeTasksAsync(DescribeTasksRequest describeTasksRequest,
AsyncHandler<DescribeTasksRequest,DescribeTasksResult> asyncHandler)
Describes a specified task or tasks.
|
Future<DiscoverPollEndpointResult> |
discoverPollEndpointAsync(DiscoverPollEndpointRequest discoverPollEndpointRequest)
NOTE: This action is only used by the Amazon EC2 Container
Service agent, and it is not intended for use outside of the agent.
|
Future<DiscoverPollEndpointResult> |
discoverPollEndpointAsync(DiscoverPollEndpointRequest discoverPollEndpointRequest,
AsyncHandler<DiscoverPollEndpointRequest,DiscoverPollEndpointResult> asyncHandler)
NOTE: This action is only used by the Amazon EC2 Container
Service agent, and it is not intended for use outside of the agent.
|
ExecutorService |
getExecutorService()
Returns the executor service used by this async client to execute
requests.
|
Future<ListClustersResult> |
listClustersAsync(ListClustersRequest listClustersRequest)
Returns a list of existing clusters.
|
Future<ListClustersResult> |
listClustersAsync(ListClustersRequest listClustersRequest,
AsyncHandler<ListClustersRequest,ListClustersResult> asyncHandler)
Returns a list of existing clusters.
|
Future<ListContainerInstancesResult> |
listContainerInstancesAsync(ListContainerInstancesRequest listContainerInstancesRequest)
Returns a list of container instances in a specified cluster.
|
Future<ListContainerInstancesResult> |
listContainerInstancesAsync(ListContainerInstancesRequest listContainerInstancesRequest,
AsyncHandler<ListContainerInstancesRequest,ListContainerInstancesResult> asyncHandler)
Returns a list of container instances in a specified cluster.
|
Future<ListTaskDefinitionFamiliesResult> |
listTaskDefinitionFamiliesAsync(ListTaskDefinitionFamiliesRequest listTaskDefinitionFamiliesRequest)
Returns a list of task definition families that are registered to
your account.
|
Future<ListTaskDefinitionFamiliesResult> |
listTaskDefinitionFamiliesAsync(ListTaskDefinitionFamiliesRequest listTaskDefinitionFamiliesRequest,
AsyncHandler<ListTaskDefinitionFamiliesRequest,ListTaskDefinitionFamiliesResult> asyncHandler)
Returns a list of task definition families that are registered to
your account.
|
Future<ListTaskDefinitionsResult> |
listTaskDefinitionsAsync(ListTaskDefinitionsRequest listTaskDefinitionsRequest)
Returns a list of task definitions that are registered to your
account.
|
Future<ListTaskDefinitionsResult> |
listTaskDefinitionsAsync(ListTaskDefinitionsRequest listTaskDefinitionsRequest,
AsyncHandler<ListTaskDefinitionsRequest,ListTaskDefinitionsResult> asyncHandler)
Returns a list of task definitions that are registered to your
account.
|
Future<ListTasksResult> |
listTasksAsync(ListTasksRequest listTasksRequest)
Returns a list of tasks for a specified cluster.
|
Future<ListTasksResult> |
listTasksAsync(ListTasksRequest listTasksRequest,
AsyncHandler<ListTasksRequest,ListTasksResult> asyncHandler)
Returns a list of tasks for a specified cluster.
|
Future<RegisterContainerInstanceResult> |
registerContainerInstanceAsync(RegisterContainerInstanceRequest registerContainerInstanceRequest)
NOTE: This action is only used by the Amazon EC2 Container
Service agent, and it is not intended for use outside of the agent.
|
Future<RegisterContainerInstanceResult> |
registerContainerInstanceAsync(RegisterContainerInstanceRequest registerContainerInstanceRequest,
AsyncHandler<RegisterContainerInstanceRequest,RegisterContainerInstanceResult> asyncHandler)
NOTE: This action is only used by the Amazon EC2 Container
Service agent, and it is not intended for use outside of the agent.
|
Future<RegisterTaskDefinitionResult> |
registerTaskDefinitionAsync(RegisterTaskDefinitionRequest registerTaskDefinitionRequest)
Registers a new task definition from the supplied
family
and containerDefinitions . |
Future<RegisterTaskDefinitionResult> |
registerTaskDefinitionAsync(RegisterTaskDefinitionRequest registerTaskDefinitionRequest,
AsyncHandler<RegisterTaskDefinitionRequest,RegisterTaskDefinitionResult> asyncHandler)
Registers a new task definition from the supplied
family
and containerDefinitions . |
Future<RunTaskResult> |
runTaskAsync(RunTaskRequest runTaskRequest)
Start a task using random placement and the default Amazon ECS
scheduler.
|
Future<RunTaskResult> |
runTaskAsync(RunTaskRequest runTaskRequest,
AsyncHandler<RunTaskRequest,RunTaskResult> asyncHandler)
Start a task using random placement and the default Amazon ECS
scheduler.
|
void |
shutdown()
Shuts down the client, releasing all managed resources.
|
Future<StartTaskResult> |
startTaskAsync(StartTaskRequest startTaskRequest)
Starts a new task from the specified task definition on the specified
container instance or instances.
|
Future<StartTaskResult> |
startTaskAsync(StartTaskRequest startTaskRequest,
AsyncHandler<StartTaskRequest,StartTaskResult> asyncHandler)
Starts a new task from the specified task definition on the specified
container instance or instances.
|
Future<StopTaskResult> |
stopTaskAsync(StopTaskRequest stopTaskRequest)
Stops a running task.
|
Future<StopTaskResult> |
stopTaskAsync(StopTaskRequest stopTaskRequest,
AsyncHandler<StopTaskRequest,StopTaskResult> asyncHandler)
Stops a running task.
|
Future<SubmitContainerStateChangeResult> |
submitContainerStateChangeAsync(SubmitContainerStateChangeRequest submitContainerStateChangeRequest)
NOTE: This action is only used by the Amazon EC2 Container
Service agent, and it is not intended for use outside of the agent.
|
Future<SubmitContainerStateChangeResult> |
submitContainerStateChangeAsync(SubmitContainerStateChangeRequest submitContainerStateChangeRequest,
AsyncHandler<SubmitContainerStateChangeRequest,SubmitContainerStateChangeResult> asyncHandler)
NOTE: This action is only used by the Amazon EC2 Container
Service agent, and it is not intended for use outside of the agent.
|
Future<SubmitTaskStateChangeResult> |
submitTaskStateChangeAsync(SubmitTaskStateChangeRequest submitTaskStateChangeRequest)
NOTE: This action is only used by the Amazon EC2 Container
Service agent, and it is not intended for use outside of the agent.
|
Future<SubmitTaskStateChangeResult> |
submitTaskStateChangeAsync(SubmitTaskStateChangeRequest submitTaskStateChangeRequest,
AsyncHandler<SubmitTaskStateChangeRequest,SubmitTaskStateChangeResult> asyncHandler)
NOTE: This action is only used by the Amazon EC2 Container
Service agent, and it is not intended for use outside of the agent.
|
createCluster, createCluster, deleteCluster, deregisterContainerInstance, deregisterTaskDefinition, describeClusters, describeClusters, describeContainerInstances, describeTaskDefinition, describeTasks, discoverPollEndpoint, discoverPollEndpoint, getCachedResponseMetadata, listClusters, listClusters, listContainerInstances, listContainerInstances, listTaskDefinitionFamilies, listTaskDefinitionFamilies, listTaskDefinitions, listTaskDefinitions, listTasks, listTasks, registerContainerInstance, registerTaskDefinition, runTask, setEndpoint, setEndpoint, startTask, stopTask, submitContainerStateChange, submitContainerStateChange, submitTaskStateChange
addRequestHandler, addRequestHandler, beforeMarshalling, configSigner, configSigner, configureRegion, convertToHttpRequest, createExecutionContext, createExecutionContext, createExecutionContext, endClientExecution, endClientExecution, findRequestMetricCollector, getRequestMetricsCollector, getServiceAbbreviation, getServiceName, getServiceNameIntern, getSigner, getSignerByURI, getSignerRegionOverride, getTimeOffset, isProfilingEnabled, isRequestMetricsEnabled, removeRequestHandler, removeRequestHandler, requestMetricCollector, setConfiguration, setRegion, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createCluster, createCluster, deleteCluster, deregisterContainerInstance, deregisterTaskDefinition, describeClusters, describeClusters, describeContainerInstances, describeTaskDefinition, describeTasks, discoverPollEndpoint, discoverPollEndpoint, getCachedResponseMetadata, listClusters, listClusters, listContainerInstances, listContainerInstances, listTaskDefinitionFamilies, listTaskDefinitionFamilies, listTaskDefinitions, listTaskDefinitions, listTasks, listTasks, registerContainerInstance, registerTaskDefinition, runTask, setEndpoint, setRegion, startTask, stopTask, submitContainerStateChange, submitContainerStateChange, submitTaskStateChange
public AmazonECSAsyncClient()
All service calls made using this new client object are blocking, and will not return until the service call completes.
DefaultAWSCredentialsProviderChain
public AmazonECSAsyncClient(ClientConfiguration clientConfiguration)
All service calls made using this new client object are blocking, and will not return until the service call completes.
clientConfiguration
- The client configuration options controlling how this
client connects to AmazonECS
(ex: proxy settings, retry counts, etc.).DefaultAWSCredentialsProviderChain
public AmazonECSAsyncClient(AWSCredentials awsCredentials)
All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.
awsCredentials
- The AWS credentials (access key ID and secret key) to use
when authenticating with AWS services.public AmazonECSAsyncClient(AWSCredentials awsCredentials, ExecutorService executorService)
All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.
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.public AmazonECSAsyncClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration, ExecutorService executorService)
All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.
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.public AmazonECSAsyncClient(AWSCredentialsProvider awsCredentialsProvider)
All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.
awsCredentialsProvider
- The AWS credentials provider which will provide credentials
to authenticate requests with AWS services.public AmazonECSAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ExecutorService executorService)
All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.
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.public AmazonECSAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration)
All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.
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).public AmazonECSAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, ExecutorService executorService)
All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.
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 ExecutorService getExecutorService()
public void shutdown()
shutdown
in interface AmazonECS
shutdown
in class AmazonWebServiceClient
public Future<SubmitTaskStateChangeResult> submitTaskStateChangeAsync(SubmitTaskStateChangeRequest submitTaskStateChangeRequest) throws AmazonServiceException, AmazonClientException
NOTE: This action is only used by the Amazon EC2 Container Service agent, and it is not intended for use outside of the agent.
Sent to acknowledge that a task changed states.
submitTaskStateChangeAsync
in interface AmazonECSAsync
submitTaskStateChangeRequest
- Container for the necessary
parameters to execute the SubmitTaskStateChange operation on
AmazonECS.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonECS indicating
either a problem with the data in the request, or a server side issue.public Future<SubmitTaskStateChangeResult> submitTaskStateChangeAsync(SubmitTaskStateChangeRequest submitTaskStateChangeRequest, AsyncHandler<SubmitTaskStateChangeRequest,SubmitTaskStateChangeResult> asyncHandler) throws AmazonServiceException, AmazonClientException
NOTE: This action is only used by the Amazon EC2 Container Service agent, and it is not intended for use outside of the agent.
Sent to acknowledge that a task changed states.
submitTaskStateChangeAsync
in interface AmazonECSAsync
submitTaskStateChangeRequest
- Container for the necessary
parameters to execute the SubmitTaskStateChange operation on
AmazonECS.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonECS indicating
either a problem with the data in the request, or a server side issue.public Future<DeleteClusterResult> deleteClusterAsync(DeleteClusterRequest deleteClusterRequest) throws AmazonServiceException, AmazonClientException
Deletes the specified cluster. You must deregister all container instances from this cluster before you may delete it. You can list the container instances in a cluster with ListContainerInstances and deregister them with DeregisterContainerInstance.
deleteClusterAsync
in interface AmazonECSAsync
deleteClusterRequest
- Container for the necessary parameters to
execute the DeleteCluster operation on AmazonECS.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonECS indicating
either a problem with the data in the request, or a server side issue.public Future<DeleteClusterResult> deleteClusterAsync(DeleteClusterRequest deleteClusterRequest, AsyncHandler<DeleteClusterRequest,DeleteClusterResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Deletes the specified cluster. You must deregister all container instances from this cluster before you may delete it. You can list the container instances in a cluster with ListContainerInstances and deregister them with DeregisterContainerInstance.
deleteClusterAsync
in interface AmazonECSAsync
deleteClusterRequest
- Container for the necessary parameters to
execute the DeleteCluster operation on AmazonECS.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonECS indicating
either a problem with the data in the request, or a server side issue.public Future<RegisterContainerInstanceResult> registerContainerInstanceAsync(RegisterContainerInstanceRequest registerContainerInstanceRequest) throws AmazonServiceException, AmazonClientException
NOTE: This action is only used by the Amazon EC2 Container Service agent, and it is not intended for use outside of the agent.
Registers an Amazon EC2 instance into the specified cluster. This instance will become available to place containers on.
registerContainerInstanceAsync
in interface AmazonECSAsync
registerContainerInstanceRequest
- Container for the necessary
parameters to execute the RegisterContainerInstance operation on
AmazonECS.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonECS indicating
either a problem with the data in the request, or a server side issue.public Future<RegisterContainerInstanceResult> registerContainerInstanceAsync(RegisterContainerInstanceRequest registerContainerInstanceRequest, AsyncHandler<RegisterContainerInstanceRequest,RegisterContainerInstanceResult> asyncHandler) throws AmazonServiceException, AmazonClientException
NOTE: This action is only used by the Amazon EC2 Container Service agent, and it is not intended for use outside of the agent.
Registers an Amazon EC2 instance into the specified cluster. This instance will become available to place containers on.
registerContainerInstanceAsync
in interface AmazonECSAsync
registerContainerInstanceRequest
- Container for the necessary
parameters to execute the RegisterContainerInstance operation on
AmazonECS.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonECS indicating
either a problem with the data in the request, or a server side issue.public Future<DescribeContainerInstancesResult> describeContainerInstancesAsync(DescribeContainerInstancesRequest describeContainerInstancesRequest) throws AmazonServiceException, AmazonClientException
Describes Amazon EC2 Container Service container instances. Returns metadata about registered and remaining resources on each container instance requested.
describeContainerInstancesAsync
in interface AmazonECSAsync
describeContainerInstancesRequest
- Container for the necessary
parameters to execute the DescribeContainerInstances operation on
AmazonECS.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonECS indicating
either a problem with the data in the request, or a server side issue.public Future<DescribeContainerInstancesResult> describeContainerInstancesAsync(DescribeContainerInstancesRequest describeContainerInstancesRequest, AsyncHandler<DescribeContainerInstancesRequest,DescribeContainerInstancesResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Describes Amazon EC2 Container Service container instances. Returns metadata about registered and remaining resources on each container instance requested.
describeContainerInstancesAsync
in interface AmazonECSAsync
describeContainerInstancesRequest
- Container for the necessary
parameters to execute the DescribeContainerInstances operation on
AmazonECS.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonECS indicating
either a problem with the data in the request, or a server side issue.public Future<SubmitContainerStateChangeResult> submitContainerStateChangeAsync(SubmitContainerStateChangeRequest submitContainerStateChangeRequest) throws AmazonServiceException, AmazonClientException
NOTE: This action is only used by the Amazon EC2 Container Service agent, and it is not intended for use outside of the agent.
Sent to acknowledge that a container changed states.
submitContainerStateChangeAsync
in interface AmazonECSAsync
submitContainerStateChangeRequest
- Container for the necessary
parameters to execute the SubmitContainerStateChange operation on
AmazonECS.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonECS indicating
either a problem with the data in the request, or a server side issue.public Future<SubmitContainerStateChangeResult> submitContainerStateChangeAsync(SubmitContainerStateChangeRequest submitContainerStateChangeRequest, AsyncHandler<SubmitContainerStateChangeRequest,SubmitContainerStateChangeResult> asyncHandler) throws AmazonServiceException, AmazonClientException
NOTE: This action is only used by the Amazon EC2 Container Service agent, and it is not intended for use outside of the agent.
Sent to acknowledge that a container changed states.
submitContainerStateChangeAsync
in interface AmazonECSAsync
submitContainerStateChangeRequest
- Container for the necessary
parameters to execute the SubmitContainerStateChange operation on
AmazonECS.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonECS indicating
either a problem with the data in the request, or a server side issue.public Future<ListTaskDefinitionsResult> listTaskDefinitionsAsync(ListTaskDefinitionsRequest listTaskDefinitionsRequest) throws AmazonServiceException, AmazonClientException
Returns a list of task definitions that are registered to your
account. You can filter the results by family name with the
familyPrefix
parameter.
listTaskDefinitionsAsync
in interface AmazonECSAsync
listTaskDefinitionsRequest
- Container for the necessary
parameters to execute the ListTaskDefinitions operation on AmazonECS.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonECS indicating
either a problem with the data in the request, or a server side issue.public Future<ListTaskDefinitionsResult> listTaskDefinitionsAsync(ListTaskDefinitionsRequest listTaskDefinitionsRequest, AsyncHandler<ListTaskDefinitionsRequest,ListTaskDefinitionsResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Returns a list of task definitions that are registered to your
account. You can filter the results by family name with the
familyPrefix
parameter.
listTaskDefinitionsAsync
in interface AmazonECSAsync
listTaskDefinitionsRequest
- Container for the necessary
parameters to execute the ListTaskDefinitions operation on AmazonECS.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonECS indicating
either a problem with the data in the request, or a server side issue.public Future<ListTaskDefinitionFamiliesResult> listTaskDefinitionFamiliesAsync(ListTaskDefinitionFamiliesRequest listTaskDefinitionFamiliesRequest) throws AmazonServiceException, AmazonClientException
Returns a list of task definition families that are registered to
your account. You can filter the results with the
familyPrefix
parameter.
listTaskDefinitionFamiliesAsync
in interface AmazonECSAsync
listTaskDefinitionFamiliesRequest
- Container for the necessary
parameters to execute the ListTaskDefinitionFamilies operation on
AmazonECS.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonECS indicating
either a problem with the data in the request, or a server side issue.public Future<ListTaskDefinitionFamiliesResult> listTaskDefinitionFamiliesAsync(ListTaskDefinitionFamiliesRequest listTaskDefinitionFamiliesRequest, AsyncHandler<ListTaskDefinitionFamiliesRequest,ListTaskDefinitionFamiliesResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Returns a list of task definition families that are registered to
your account. You can filter the results with the
familyPrefix
parameter.
listTaskDefinitionFamiliesAsync
in interface AmazonECSAsync
listTaskDefinitionFamiliesRequest
- Container for the necessary
parameters to execute the ListTaskDefinitionFamilies operation on
AmazonECS.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonECS indicating
either a problem with the data in the request, or a server side issue.public Future<DescribeTasksResult> describeTasksAsync(DescribeTasksRequest describeTasksRequest) throws AmazonServiceException, AmazonClientException
Describes a specified task or tasks.
describeTasksAsync
in interface AmazonECSAsync
describeTasksRequest
- Container for the necessary parameters to
execute the DescribeTasks operation on AmazonECS.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonECS indicating
either a problem with the data in the request, or a server side issue.public Future<DescribeTasksResult> describeTasksAsync(DescribeTasksRequest describeTasksRequest, AsyncHandler<DescribeTasksRequest,DescribeTasksResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Describes a specified task or tasks.
describeTasksAsync
in interface AmazonECSAsync
describeTasksRequest
- Container for the necessary parameters to
execute the DescribeTasks operation on AmazonECS.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonECS indicating
either a problem with the data in the request, or a server side issue.public Future<RunTaskResult> runTaskAsync(RunTaskRequest runTaskRequest) throws AmazonServiceException, AmazonClientException
Start a task using random placement and the default Amazon ECS
scheduler. If you want to use your own scheduler or place a task on a
specific container instance, use StartTask
instead.
runTaskAsync
in interface AmazonECSAsync
runTaskRequest
- Container for the necessary parameters to
execute the RunTask operation on AmazonECS.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonECS indicating
either a problem with the data in the request, or a server side issue.public Future<RunTaskResult> runTaskAsync(RunTaskRequest runTaskRequest, AsyncHandler<RunTaskRequest,RunTaskResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Start a task using random placement and the default Amazon ECS
scheduler. If you want to use your own scheduler or place a task on a
specific container instance, use StartTask
instead.
runTaskAsync
in interface AmazonECSAsync
runTaskRequest
- Container for the necessary parameters to
execute the RunTask operation on AmazonECS.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonECS indicating
either a problem with the data in the request, or a server side issue.public Future<ListClustersResult> listClustersAsync(ListClustersRequest listClustersRequest) throws AmazonServiceException, AmazonClientException
Returns a list of existing clusters.
listClustersAsync
in interface AmazonECSAsync
listClustersRequest
- Container for the necessary parameters to
execute the ListClusters operation on AmazonECS.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonECS indicating
either a problem with the data in the request, or a server side issue.public Future<ListClustersResult> listClustersAsync(ListClustersRequest listClustersRequest, AsyncHandler<ListClustersRequest,ListClustersResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Returns a list of existing clusters.
listClustersAsync
in interface AmazonECSAsync
listClustersRequest
- Container for the necessary parameters to
execute the ListClusters operation on AmazonECS.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonECS indicating
either a problem with the data in the request, or a server side issue.public Future<DiscoverPollEndpointResult> discoverPollEndpointAsync(DiscoverPollEndpointRequest discoverPollEndpointRequest) throws AmazonServiceException, AmazonClientException
NOTE: This action is only used by the Amazon EC2 Container Service agent, and it is not intended for use outside of the agent.
Returns an endpoint for the Amazon EC2 Container Service agent to poll for updates.
discoverPollEndpointAsync
in interface AmazonECSAsync
discoverPollEndpointRequest
- Container for the necessary
parameters to execute the DiscoverPollEndpoint operation on AmazonECS.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonECS indicating
either a problem with the data in the request, or a server side issue.public Future<DiscoverPollEndpointResult> discoverPollEndpointAsync(DiscoverPollEndpointRequest discoverPollEndpointRequest, AsyncHandler<DiscoverPollEndpointRequest,DiscoverPollEndpointResult> asyncHandler) throws AmazonServiceException, AmazonClientException
NOTE: This action is only used by the Amazon EC2 Container Service agent, and it is not intended for use outside of the agent.
Returns an endpoint for the Amazon EC2 Container Service agent to poll for updates.
discoverPollEndpointAsync
in interface AmazonECSAsync
discoverPollEndpointRequest
- Container for the necessary
parameters to execute the DiscoverPollEndpoint operation on AmazonECS.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonECS indicating
either a problem with the data in the request, or a server side issue.public Future<CreateClusterResult> createClusterAsync(CreateClusterRequest createClusterRequest) throws AmazonServiceException, AmazonClientException
Creates a new Amazon ECS cluster. By default, your account will
receive a default
cluster when you launch your first
container instance. However, you can create your own cluster with a
unique name with the CreateCluster
action.
IMPORTANT: During the preview, each account is limited to two clusters.
createClusterAsync
in interface AmazonECSAsync
createClusterRequest
- Container for the necessary parameters to
execute the CreateCluster operation on AmazonECS.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonECS indicating
either a problem with the data in the request, or a server side issue.public Future<CreateClusterResult> createClusterAsync(CreateClusterRequest createClusterRequest, AsyncHandler<CreateClusterRequest,CreateClusterResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Creates a new Amazon ECS cluster. By default, your account will
receive a default
cluster when you launch your first
container instance. However, you can create your own cluster with a
unique name with the CreateCluster
action.
IMPORTANT: During the preview, each account is limited to two clusters.
createClusterAsync
in interface AmazonECSAsync
createClusterRequest
- Container for the necessary parameters to
execute the CreateCluster operation on AmazonECS.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonECS indicating
either a problem with the data in the request, or a server side issue.public Future<DescribeClustersResult> describeClustersAsync(DescribeClustersRequest describeClustersRequest) throws AmazonServiceException, AmazonClientException
Describes one or more of your clusters.
describeClustersAsync
in interface AmazonECSAsync
describeClustersRequest
- Container for the necessary parameters
to execute the DescribeClusters operation on AmazonECS.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonECS indicating
either a problem with the data in the request, or a server side issue.public Future<DescribeClustersResult> describeClustersAsync(DescribeClustersRequest describeClustersRequest, AsyncHandler<DescribeClustersRequest,DescribeClustersResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Describes one or more of your clusters.
describeClustersAsync
in interface AmazonECSAsync
describeClustersRequest
- Container for the necessary parameters
to execute the DescribeClusters operation on AmazonECS.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonECS indicating
either a problem with the data in the request, or a server side issue.public Future<DeregisterTaskDefinitionResult> deregisterTaskDefinitionAsync(DeregisterTaskDefinitionRequest deregisterTaskDefinitionRequest) throws AmazonServiceException, AmazonClientException
NOT YET IMPLEMENTED.
Deregisters the specified task definition. You will no longer be able to run tasks from this definition after deregistration.
deregisterTaskDefinitionAsync
in interface AmazonECSAsync
deregisterTaskDefinitionRequest
- Container for the necessary
parameters to execute the DeregisterTaskDefinition operation on
AmazonECS.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonECS indicating
either a problem with the data in the request, or a server side issue.public Future<DeregisterTaskDefinitionResult> deregisterTaskDefinitionAsync(DeregisterTaskDefinitionRequest deregisterTaskDefinitionRequest, AsyncHandler<DeregisterTaskDefinitionRequest,DeregisterTaskDefinitionResult> asyncHandler) throws AmazonServiceException, AmazonClientException
NOT YET IMPLEMENTED.
Deregisters the specified task definition. You will no longer be able to run tasks from this definition after deregistration.
deregisterTaskDefinitionAsync
in interface AmazonECSAsync
deregisterTaskDefinitionRequest
- Container for the necessary
parameters to execute the DeregisterTaskDefinition operation on
AmazonECS.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonECS indicating
either a problem with the data in the request, or a server side issue.public Future<ListContainerInstancesResult> listContainerInstancesAsync(ListContainerInstancesRequest listContainerInstancesRequest) throws AmazonServiceException, AmazonClientException
Returns a list of container instances in a specified cluster.
listContainerInstancesAsync
in interface AmazonECSAsync
listContainerInstancesRequest
- Container for the necessary
parameters to execute the ListContainerInstances operation on
AmazonECS.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonECS indicating
either a problem with the data in the request, or a server side issue.public Future<ListContainerInstancesResult> listContainerInstancesAsync(ListContainerInstancesRequest listContainerInstancesRequest, AsyncHandler<ListContainerInstancesRequest,ListContainerInstancesResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Returns a list of container instances in a specified cluster.
listContainerInstancesAsync
in interface AmazonECSAsync
listContainerInstancesRequest
- Container for the necessary
parameters to execute the ListContainerInstances operation on
AmazonECS.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonECS indicating
either a problem with the data in the request, or a server side issue.public Future<DeregisterContainerInstanceResult> deregisterContainerInstanceAsync(DeregisterContainerInstanceRequest deregisterContainerInstanceRequest) throws AmazonServiceException, AmazonClientException
Deregisters an Amazon ECS container instance from the specified cluster. This instance will no longer be available to run tasks.
deregisterContainerInstanceAsync
in interface AmazonECSAsync
deregisterContainerInstanceRequest
- Container for the necessary
parameters to execute the DeregisterContainerInstance operation on
AmazonECS.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonECS indicating
either a problem with the data in the request, or a server side issue.public Future<DeregisterContainerInstanceResult> deregisterContainerInstanceAsync(DeregisterContainerInstanceRequest deregisterContainerInstanceRequest, AsyncHandler<DeregisterContainerInstanceRequest,DeregisterContainerInstanceResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Deregisters an Amazon ECS container instance from the specified cluster. This instance will no longer be available to run tasks.
deregisterContainerInstanceAsync
in interface AmazonECSAsync
deregisterContainerInstanceRequest
- Container for the necessary
parameters to execute the DeregisterContainerInstance operation on
AmazonECS.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonECS indicating
either a problem with the data in the request, or a server side issue.public Future<StartTaskResult> startTaskAsync(StartTaskRequest startTaskRequest) throws AmazonServiceException, AmazonClientException
Starts a new task from the specified task definition on the specified
container instance or instances. If you want to use the default Amazon
ECS scheduler to place your task, use RunTask
instead.
startTaskAsync
in interface AmazonECSAsync
startTaskRequest
- Container for the necessary parameters to
execute the StartTask operation on AmazonECS.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonECS indicating
either a problem with the data in the request, or a server side issue.public Future<StartTaskResult> startTaskAsync(StartTaskRequest startTaskRequest, AsyncHandler<StartTaskRequest,StartTaskResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Starts a new task from the specified task definition on the specified
container instance or instances. If you want to use the default Amazon
ECS scheduler to place your task, use RunTask
instead.
startTaskAsync
in interface AmazonECSAsync
startTaskRequest
- Container for the necessary parameters to
execute the StartTask operation on AmazonECS.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonECS indicating
either a problem with the data in the request, or a server side issue.public Future<DescribeTaskDefinitionResult> describeTaskDefinitionAsync(DescribeTaskDefinitionRequest describeTaskDefinitionRequest) throws AmazonServiceException, AmazonClientException
Describes a task definition. You can specify a family
and revision
to find information on a specific task
definition, or you can simply specify the family to find the latest
revision in that family.
describeTaskDefinitionAsync
in interface AmazonECSAsync
describeTaskDefinitionRequest
- Container for the necessary
parameters to execute the DescribeTaskDefinition operation on
AmazonECS.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonECS indicating
either a problem with the data in the request, or a server side issue.public Future<DescribeTaskDefinitionResult> describeTaskDefinitionAsync(DescribeTaskDefinitionRequest describeTaskDefinitionRequest, AsyncHandler<DescribeTaskDefinitionRequest,DescribeTaskDefinitionResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Describes a task definition. You can specify a family
and revision
to find information on a specific task
definition, or you can simply specify the family to find the latest
revision in that family.
describeTaskDefinitionAsync
in interface AmazonECSAsync
describeTaskDefinitionRequest
- Container for the necessary
parameters to execute the DescribeTaskDefinition operation on
AmazonECS.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonECS indicating
either a problem with the data in the request, or a server side issue.public Future<ListTasksResult> listTasksAsync(ListTasksRequest listTasksRequest) throws AmazonServiceException, AmazonClientException
Returns a list of tasks for a specified cluster. You can filter the
results by family name or by a particular container instance with the
family
and containerInstance
parameters.
listTasksAsync
in interface AmazonECSAsync
listTasksRequest
- Container for the necessary parameters to
execute the ListTasks operation on AmazonECS.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonECS indicating
either a problem with the data in the request, or a server side issue.public Future<ListTasksResult> listTasksAsync(ListTasksRequest listTasksRequest, AsyncHandler<ListTasksRequest,ListTasksResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Returns a list of tasks for a specified cluster. You can filter the
results by family name or by a particular container instance with the
family
and containerInstance
parameters.
listTasksAsync
in interface AmazonECSAsync
listTasksRequest
- Container for the necessary parameters to
execute the ListTasks operation on AmazonECS.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonECS indicating
either a problem with the data in the request, or a server side issue.public Future<RegisterTaskDefinitionResult> registerTaskDefinitionAsync(RegisterTaskDefinitionRequest registerTaskDefinitionRequest) throws AmazonServiceException, AmazonClientException
Registers a new task definition from the supplied family
and containerDefinitions
. Optionally, you can add data
volumes to your containers with the volumes
parameter.
For more information on task definition parameters and defaults, see
Amazon ECS Task Definitions
in the Amazon EC2 Container Service Developer Guide .
registerTaskDefinitionAsync
in interface AmazonECSAsync
registerTaskDefinitionRequest
- Container for the necessary
parameters to execute the RegisterTaskDefinition operation on
AmazonECS.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonECS indicating
either a problem with the data in the request, or a server side issue.public Future<RegisterTaskDefinitionResult> registerTaskDefinitionAsync(RegisterTaskDefinitionRequest registerTaskDefinitionRequest, AsyncHandler<RegisterTaskDefinitionRequest,RegisterTaskDefinitionResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Registers a new task definition from the supplied family
and containerDefinitions
. Optionally, you can add data
volumes to your containers with the volumes
parameter.
For more information on task definition parameters and defaults, see
Amazon ECS Task Definitions
in the Amazon EC2 Container Service Developer Guide .
registerTaskDefinitionAsync
in interface AmazonECSAsync
registerTaskDefinitionRequest
- Container for the necessary
parameters to execute the RegisterTaskDefinition operation on
AmazonECS.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonECS indicating
either a problem with the data in the request, or a server side issue.public Future<StopTaskResult> stopTaskAsync(StopTaskRequest stopTaskRequest) throws AmazonServiceException, AmazonClientException
Stops a running task.
stopTaskAsync
in interface AmazonECSAsync
stopTaskRequest
- Container for the necessary parameters to
execute the StopTask operation on AmazonECS.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonECS indicating
either a problem with the data in the request, or a server side issue.public Future<StopTaskResult> stopTaskAsync(StopTaskRequest stopTaskRequest, AsyncHandler<StopTaskRequest,StopTaskResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Stops a running task.
stopTaskAsync
in interface AmazonECSAsync
stopTaskRequest
- Container for the necessary parameters to
execute the StopTask operation on AmazonECS.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonECS indicating
either a problem with the data in the request, or a server side issue.Copyright © 2015. All rights reserved.