public interface AmazonECSAsync extends AmazonECS
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.
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.
|
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<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.
|
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, listTaskDefinitions, listTaskDefinitions, listTasks, listTasks, registerContainerInstance, registerTaskDefinition, runTask, setEndpoint, setRegion, shutdown, startTask, stopTask, submitContainerStateChange, submitContainerStateChange, submitTaskStateChange
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.
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.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.
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.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.
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.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.
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.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.
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.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.
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.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.
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.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.
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.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.
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.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.
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.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.
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.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.
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.Future<DescribeTasksResult> describeTasksAsync(DescribeTasksRequest describeTasksRequest) throws AmazonServiceException, AmazonClientException
Describes a specified task or tasks.
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.Future<DescribeTasksResult> describeTasksAsync(DescribeTasksRequest describeTasksRequest, AsyncHandler<DescribeTasksRequest,DescribeTasksResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Describes a specified task or tasks.
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.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.
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.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.
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.Future<ListClustersResult> listClustersAsync(ListClustersRequest listClustersRequest) throws AmazonServiceException, AmazonClientException
Returns a list of existing clusters.
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.Future<ListClustersResult> listClustersAsync(ListClustersRequest listClustersRequest, AsyncHandler<ListClustersRequest,ListClustersResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Returns a list of existing clusters.
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.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.
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.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.
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.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.
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.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.
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.Future<DescribeClustersResult> describeClustersAsync(DescribeClustersRequest describeClustersRequest) throws AmazonServiceException, AmazonClientException
Describes one or more of your clusters.
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.Future<DescribeClustersResult> describeClustersAsync(DescribeClustersRequest describeClustersRequest, AsyncHandler<DescribeClustersRequest,DescribeClustersResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Describes one or more of your clusters.
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.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.
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.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.
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.Future<ListContainerInstancesResult> listContainerInstancesAsync(ListContainerInstancesRequest listContainerInstancesRequest) throws AmazonServiceException, AmazonClientException
Returns a list of container instances in a specified cluster.
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.Future<ListContainerInstancesResult> listContainerInstancesAsync(ListContainerInstancesRequest listContainerInstancesRequest, AsyncHandler<ListContainerInstancesRequest,ListContainerInstancesResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Returns a list of container instances in a specified cluster.
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.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.
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.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.
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.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.
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.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.
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.Future<DescribeTaskDefinitionResult> describeTaskDefinitionAsync(DescribeTaskDefinitionRequest describeTaskDefinitionRequest) throws AmazonServiceException, AmazonClientException
Describes a task definition.
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.Future<DescribeTaskDefinitionResult> describeTaskDefinitionAsync(DescribeTaskDefinitionRequest describeTaskDefinitionRequest, AsyncHandler<DescribeTaskDefinitionRequest,DescribeTaskDefinitionResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Describes a task definition.
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.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.
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.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.
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.Future<RegisterTaskDefinitionResult> registerTaskDefinitionAsync(RegisterTaskDefinitionRequest registerTaskDefinitionRequest) throws AmazonServiceException, AmazonClientException
Registers a new task definition from the supplied family
and containerDefinitions
.
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.Future<RegisterTaskDefinitionResult> registerTaskDefinitionAsync(RegisterTaskDefinitionRequest registerTaskDefinitionRequest, AsyncHandler<RegisterTaskDefinitionRequest,RegisterTaskDefinitionResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Registers a new task definition from the supplied family
and containerDefinitions
.
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.Future<StopTaskResult> stopTaskAsync(StopTaskRequest stopTaskRequest) throws AmazonServiceException, AmazonClientException
Stops a running task.
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.Future<StopTaskResult> stopTaskAsync(StopTaskRequest stopTaskRequest, AsyncHandler<StopTaskRequest,StopTaskResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Stops a running task.
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.