Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
   /*
    * Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
    * 
    * Licensed under the Apache License, Version 2.0 (the "License").
    * You may not use this file except in compliance with the License.
    * A copy of the License is located at
    * 
    *  http://aws.amazon.com/apache2.0
    * 
   * or in the "license" file accompanying this file. This file is distributed
   * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
   * express or implied. See the License for the specific language governing
   * permissions and limitations under the License.
   */
  package com.amazonaws.services.ecs;
  
  import java.net.*;
  import java.util.*;
  
  
  import com.amazonaws.*;
  
Client for accessing AmazonECS. All service calls made using this client are blocking, and will not return until the service call completes.

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.

  
  public class AmazonECSClient extends AmazonWebServiceClient implements AmazonECS {

    
Provider for AWS credentials.
  
  
      private static final Log log = LogFactory.getLog(AmazonECS.class);

    
List of exception unmarshallers for all AmazonECS exceptions.
  
      protected List<JsonErrorUnmarshallerjsonErrorUnmarshallers;

    
Constructs a new client to invoke service methods on AmazonECS. A credentials provider chain will be used that searches for credentials in this order:
  • Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY
  • Java System Properties - aws.accessKeyId and aws.secretKey
  • Instance profile credentials delivered through the Amazon EC2 metadata service

All service calls made using this new client object are blocking, and will not return until the service call completes.

  
      public AmazonECSClient() {
          this(new DefaultAWSCredentialsProviderChain(), new ClientConfiguration());
      }

    
Constructs a new client to invoke service methods on AmazonECS. A credentials provider chain will be used that searches for credentials in this order:
  • Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY
  • Java System Properties - aws.accessKeyId and aws.secretKey
  • Instance profile credentials delivered through the Amazon EC2 metadata service

All service calls made using this new client object are blocking, and will not return until the service call completes.

Parameters:
clientConfiguration The client configuration options controlling how this client connects to AmazonECS (ex: proxy settings, retry counts, etc.).
See also:
com.amazonaws.auth.DefaultAWSCredentialsProviderChain
 
     public AmazonECSClient(ClientConfiguration clientConfiguration) {
         this(new DefaultAWSCredentialsProviderChain(), clientConfiguration);
     }

    
Constructs a new client to invoke service methods on AmazonECS using the specified AWS account credentials.

All service calls made using this new client object are blocking, and will not return until the service call completes.

Parameters:
awsCredentials The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
 
     public AmazonECSClient(AWSCredentials awsCredentials) {
         this(awsCredentialsnew ClientConfiguration());
     }

    
Constructs a new client to invoke service methods on AmazonECS using the specified AWS account credentials and client configuration options.

All service calls made using this new client object are blocking, and will not return until the service call completes.

Parameters:
awsCredentials The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
clientConfiguration The client configuration options controlling how this client connects to AmazonECS (ex: proxy settings, retry counts, etc.).
 
     public AmazonECSClient(AWSCredentials awsCredentialsClientConfiguration clientConfiguration) {
         super(adjustClientConfiguration(clientConfiguration));
         
         this. = new StaticCredentialsProvider(awsCredentials);
         
         init();
     }

    
Constructs a new client to invoke service methods on AmazonECS using the specified AWS account credentials provider.

All service calls made using this new client object are blocking, and will not return until the service call completes.

Parameters:
awsCredentialsProvider The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
 
     public AmazonECSClient(AWSCredentialsProvider awsCredentialsProvider) {
         this(awsCredentialsProvidernew ClientConfiguration());
     }

    
Constructs a new client to invoke service methods on AmazonECS using the specified AWS account credentials provider and client configuration options.

All service calls made using this new client object are blocking, and will not return until the service call completes.

Parameters:
awsCredentialsProvider The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
clientConfiguration The client configuration options controlling how this client connects to AmazonECS (ex: proxy settings, retry counts, etc.).
 
     public AmazonECSClient(AWSCredentialsProvider awsCredentialsProviderClientConfiguration clientConfiguration) {
         this(awsCredentialsProviderclientConfigurationnull);
     }

    
Constructs a new client to invoke service methods on AmazonECS using the specified AWS account credentials provider, client configuration options and request metric collector.

All service calls made using this new client object are blocking, and will not return until the service call completes.

Parameters:
awsCredentialsProvider The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
clientConfiguration The client configuration options controlling how this client connects to AmazonECS (ex: proxy settings, retry counts, etc.).
requestMetricCollector optional request metric collector
 
     public AmazonECSClient(AWSCredentialsProvider awsCredentialsProvider,
             ClientConfiguration clientConfiguration,
             RequestMetricCollector requestMetricCollector) {
         super(adjustClientConfiguration(clientConfiguration), requestMetricCollector);
         
         this. = awsCredentialsProvider;
         
         init();
     }
 
     private void init() {
         
         
         // calling this.setEndPoint(...) will also modify the signer accordingly
         this.setEndpoint("ecs.us-east-1.amazonaws.com");
         
         HandlerChainFactory chainFactory = new HandlerChainFactory();
         .addAll(chainFactory.newRequestHandlerChain(
                 "/com/amazonaws/services/ecs/request.handlers"));
         .addAll(chainFactory.newRequestHandler2Chain(
                 "/com/amazonaws/services/ecs/request.handler2s"));
     }
 
         ClientConfiguration config = orig;
         
         return config;
     }

    

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.

Parameters:
deleteClusterRequest Container for the necessary parameters to execute the DeleteCluster service method on AmazonECS.
Returns:
The response from the DeleteCluster service method, as returned by AmazonECS.
Throws:
com.amazonaws.services.ecs.model.InvalidParameterException
com.amazonaws.services.ecs.model.ClusterContainsContainerInstancesException
com.amazonaws.services.ecs.model.ClusterNotFoundException
com.amazonaws.services.ecs.model.ServerException
com.amazonaws.services.ecs.model.ClientException
com.amazonaws.services.ecs.model.ClusterContainsServicesException
com.amazonaws.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.
com.amazonaws.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 DeleteClusterResult deleteCluster(DeleteClusterRequest deleteClusterRequest) {
         ExecutionContext executionContext = createExecutionContext(deleteClusterRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<DeleteClusterRequestrequest = null;
         Response<DeleteClusterResultresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new DeleteClusterRequestMarshaller().marshall(super.beforeMarshalling(deleteClusterRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             Unmarshaller<DeleteClusterResultJsonUnmarshallerContextunmarshaller =
                 new DeleteClusterResultJsonUnmarshaller();
             JsonResponseHandler<DeleteClusterResultresponseHandler =
                 new JsonResponseHandler<DeleteClusterResult>(unmarshaller);
 
             response = invoke(requestresponseHandlerexecutionContext);
 
             return response.getAwsResponse();
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }

    

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.

Parameters:
submitContainerStateChangeRequest Container for the necessary parameters to execute the SubmitContainerStateChange service method on AmazonECS.
Returns:
The response from the SubmitContainerStateChange service method, as returned by AmazonECS.
Throws:
com.amazonaws.services.ecs.model.ServerException
com.amazonaws.services.ecs.model.ClientException
com.amazonaws.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.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonECS indicating either a problem with the data in the request, or a server side issue.
 
         ExecutionContext executionContext = createExecutionContext(submitContainerStateChangeRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<SubmitContainerStateChangeRequestrequest = null;
         Response<SubmitContainerStateChangeResultresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new SubmitContainerStateChangeRequestMarshaller().marshall(super.beforeMarshalling(submitContainerStateChangeRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             Unmarshaller<SubmitContainerStateChangeResultJsonUnmarshallerContextunmarshaller =
                 new SubmitContainerStateChangeResultJsonUnmarshaller();
             JsonResponseHandler<SubmitContainerStateChangeResultresponseHandler =
                 new JsonResponseHandler<SubmitContainerStateChangeResult>(unmarshaller);
 
             response = invoke(requestresponseHandlerexecutionContext);
 
             return response.getAwsResponse();
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }

    

Deletes a specified service within a cluster.

Parameters:
deleteServiceRequest Container for the necessary parameters to execute the DeleteService service method on AmazonECS.
Returns:
The response from the DeleteService service method, as returned by AmazonECS.
Throws:
com.amazonaws.services.ecs.model.InvalidParameterException
com.amazonaws.services.ecs.model.ClusterNotFoundException
com.amazonaws.services.ecs.model.ServerException
com.amazonaws.services.ecs.model.ClientException
com.amazonaws.services.ecs.model.ServiceNotFoundException
com.amazonaws.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.
com.amazonaws.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 DeleteServiceResult deleteService(DeleteServiceRequest deleteServiceRequest) {
         ExecutionContext executionContext = createExecutionContext(deleteServiceRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<DeleteServiceRequestrequest = null;
         Response<DeleteServiceResultresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new DeleteServiceRequestMarshaller().marshall(super.beforeMarshalling(deleteServiceRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             Unmarshaller<DeleteServiceResultJsonUnmarshallerContextunmarshaller =
                 new DeleteServiceResultJsonUnmarshaller();
             JsonResponseHandler<DeleteServiceResultresponseHandler =
                 new JsonResponseHandler<DeleteServiceResult>(unmarshaller);
 
             response = invoke(requestresponseHandlerexecutionContext);
 
             return response.getAwsResponse();
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }

    

Returns a list of task definitions that are registered to your account. You can filter the results by family name with the familyPrefix parameter.

Parameters:
listTaskDefinitionsRequest Container for the necessary parameters to execute the ListTaskDefinitions service method on AmazonECS.
Returns:
The response from the ListTaskDefinitions service method, as returned by AmazonECS.
Throws:
com.amazonaws.services.ecs.model.InvalidParameterException
com.amazonaws.services.ecs.model.ServerException
com.amazonaws.services.ecs.model.ClientException
com.amazonaws.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.
com.amazonaws.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 ListTaskDefinitionsResult listTaskDefinitions(ListTaskDefinitionsRequest listTaskDefinitionsRequest) {
         ExecutionContext executionContext = createExecutionContext(listTaskDefinitionsRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<ListTaskDefinitionsRequestrequest = null;
         Response<ListTaskDefinitionsResultresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new ListTaskDefinitionsRequestMarshaller().marshall(super.beforeMarshalling(listTaskDefinitionsRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             Unmarshaller<ListTaskDefinitionsResultJsonUnmarshallerContextunmarshaller =
                 new ListTaskDefinitionsResultJsonUnmarshaller();
             JsonResponseHandler<ListTaskDefinitionsResultresponseHandler =
                 new JsonResponseHandler<ListTaskDefinitionsResult>(unmarshaller);
 
             response = invoke(requestresponseHandlerexecutionContext);
 
             return response.getAwsResponse();
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }

    

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.

IMPORTANT: The count parameter is limited to 10 tasks per call.

Parameters:
runTaskRequest Container for the necessary parameters to execute the RunTask service method on AmazonECS.
Returns:
The response from the RunTask service method, as returned by AmazonECS.
Throws:
com.amazonaws.services.ecs.model.InvalidParameterException
com.amazonaws.services.ecs.model.ClusterNotFoundException
com.amazonaws.services.ecs.model.ServerException
com.amazonaws.services.ecs.model.ClientException
com.amazonaws.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.
com.amazonaws.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 RunTaskResult runTask(RunTaskRequest runTaskRequest) {
         ExecutionContext executionContext = createExecutionContext(runTaskRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<RunTaskRequestrequest = null;
         Response<RunTaskResultresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new RunTaskRequestMarshaller().marshall(super.beforeMarshalling(runTaskRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             Unmarshaller<RunTaskResultJsonUnmarshallerContextunmarshaller =
                 new RunTaskResultJsonUnmarshaller();
             JsonResponseHandler<RunTaskResultresponseHandler =
                 new JsonResponseHandler<RunTaskResult>(unmarshaller);
 
             response = invoke(requestresponseHandlerexecutionContext);
 
             return response.getAwsResponse();
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }

    

Returns a list of existing clusters.

Parameters:
listClustersRequest Container for the necessary parameters to execute the ListClusters service method on AmazonECS.
Returns:
The response from the ListClusters service method, as returned by AmazonECS.
Throws:
com.amazonaws.services.ecs.model.InvalidParameterException
com.amazonaws.services.ecs.model.ServerException
com.amazonaws.services.ecs.model.ClientException
com.amazonaws.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.
com.amazonaws.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 ListClustersResult listClusters(ListClustersRequest listClustersRequest) {
         ExecutionContext executionContext = createExecutionContext(listClustersRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<ListClustersRequestrequest = null;
         Response<ListClustersResultresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new ListClustersRequestMarshaller().marshall(super.beforeMarshalling(listClustersRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             Unmarshaller<ListClustersResultJsonUnmarshallerContextunmarshaller =
                 new ListClustersResultJsonUnmarshaller();
             JsonResponseHandler<ListClustersResultresponseHandler =
                 new JsonResponseHandler<ListClustersResult>(unmarshaller);
 
             response = invoke(requestresponseHandlerexecutionContext);
 
             return response.getAwsResponse();
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }

    

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.

Parameters:
createClusterRequest Container for the necessary parameters to execute the CreateCluster service method on AmazonECS.
Returns:
The response from the CreateCluster service method, as returned by AmazonECS.
Throws:
com.amazonaws.services.ecs.model.InvalidParameterException
com.amazonaws.services.ecs.model.ServerException
com.amazonaws.services.ecs.model.ClientException
com.amazonaws.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.
com.amazonaws.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 CreateClusterResult createCluster(CreateClusterRequest createClusterRequest) {
         ExecutionContext executionContext = createExecutionContext(createClusterRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<CreateClusterRequestrequest = null;
         Response<CreateClusterResultresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new CreateClusterRequestMarshaller().marshall(super.beforeMarshalling(createClusterRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             Unmarshaller<CreateClusterResultJsonUnmarshallerContextunmarshaller =
                 new CreateClusterResultJsonUnmarshaller();
             JsonResponseHandler<CreateClusterResultresponseHandler =
                 new JsonResponseHandler<CreateClusterResult>(unmarshaller);
 
             response = invoke(requestresponseHandlerexecutionContext);
 
             return response.getAwsResponse();
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }

    

Describes one or more of your clusters.

Parameters:
describeClustersRequest Container for the necessary parameters to execute the DescribeClusters service method on AmazonECS.
Returns:
The response from the DescribeClusters service method, as returned by AmazonECS.
Throws:
com.amazonaws.services.ecs.model.InvalidParameterException
com.amazonaws.services.ecs.model.ServerException
com.amazonaws.services.ecs.model.ClientException
com.amazonaws.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.
com.amazonaws.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 DescribeClustersResult describeClusters(DescribeClustersRequest describeClustersRequest) {
         ExecutionContext executionContext = createExecutionContext(describeClustersRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<DescribeClustersRequestrequest = null;
         Response<DescribeClustersResultresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new DescribeClustersRequestMarshaller().marshall(super.beforeMarshalling(describeClustersRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             Unmarshaller<DescribeClustersResultJsonUnmarshallerContextunmarshaller =
                 new DescribeClustersResultJsonUnmarshaller();
             JsonResponseHandler<DescribeClustersResultresponseHandler =
                 new JsonResponseHandler<DescribeClustersResult>(unmarshaller);
 
             response = invoke(requestresponseHandlerexecutionContext);
 
             return response.getAwsResponse();
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }

    

Deregisters an Amazon ECS container instance from the specified cluster. This instance will no longer be available to run tasks.

Parameters:
deregisterContainerInstanceRequest Container for the necessary parameters to execute the DeregisterContainerInstance service method on AmazonECS.
Returns:
The response from the DeregisterContainerInstance service method, as returned by AmazonECS.
Throws:
com.amazonaws.services.ecs.model.InvalidParameterException
com.amazonaws.services.ecs.model.ClusterNotFoundException
com.amazonaws.services.ecs.model.ServerException
com.amazonaws.services.ecs.model.ClientException
com.amazonaws.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.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonECS indicating either a problem with the data in the request, or a server side issue.
 
         ExecutionContext executionContext = createExecutionContext(deregisterContainerInstanceRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<DeregisterContainerInstanceRequestrequest = null;
         Response<DeregisterContainerInstanceResultresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new DeregisterContainerInstanceRequestMarshaller().marshall(super.beforeMarshalling(deregisterContainerInstanceRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             Unmarshaller<DeregisterContainerInstanceResultJsonUnmarshallerContextunmarshaller =
                 new DeregisterContainerInstanceResultJsonUnmarshaller();
             JsonResponseHandler<DeregisterContainerInstanceResultresponseHandler =
                 new JsonResponseHandler<DeregisterContainerInstanceResult>(unmarshaller);
 
             response = invoke(requestresponseHandlerexecutionContext);
 
             return response.getAwsResponse();
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }

    

Returns a list of container instances in a specified cluster.

Parameters:
listContainerInstancesRequest Container for the necessary parameters to execute the ListContainerInstances service method on AmazonECS.
Returns:
The response from the ListContainerInstances service method, as returned by AmazonECS.
Throws:
com.amazonaws.services.ecs.model.InvalidParameterException
com.amazonaws.services.ecs.model.ClusterNotFoundException
com.amazonaws.services.ecs.model.ServerException
com.amazonaws.services.ecs.model.ClientException
com.amazonaws.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.
com.amazonaws.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 ListContainerInstancesResult listContainerInstances(ListContainerInstancesRequest listContainerInstancesRequest) {
         ExecutionContext executionContext = createExecutionContext(listContainerInstancesRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<ListContainerInstancesRequestrequest = null;
         Response<ListContainerInstancesResultresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new ListContainerInstancesRequestMarshaller().marshall(super.beforeMarshalling(listContainerInstancesRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             Unmarshaller<ListContainerInstancesResultJsonUnmarshallerContextunmarshaller =
                 new ListContainerInstancesResultJsonUnmarshaller();
             JsonResponseHandler<ListContainerInstancesResultresponseHandler =
                 new JsonResponseHandler<ListContainerInstancesResult>(unmarshaller);
 
             response = invoke(requestresponseHandlerexecutionContext);
 
             return response.getAwsResponse();
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }

    

NOT YET IMPLEMENTED.

Deregisters the specified task definition. You will no longer be able to run tasks from this definition after deregistration.

Parameters:
deregisterTaskDefinitionRequest Container for the necessary parameters to execute the DeregisterTaskDefinition service method on AmazonECS.
Returns:
The response from the DeregisterTaskDefinition service method, as returned by AmazonECS.
Throws:
com.amazonaws.services.ecs.model.InvalidParameterException
com.amazonaws.services.ecs.model.ServerException
com.amazonaws.services.ecs.model.ClientException
com.amazonaws.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.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonECS indicating either a problem with the data in the request, or a server side issue.
 
         ExecutionContext executionContext = createExecutionContext(deregisterTaskDefinitionRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<DeregisterTaskDefinitionRequestrequest = null;
         Response<DeregisterTaskDefinitionResultresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new DeregisterTaskDefinitionRequestMarshaller().marshall(super.beforeMarshalling(deregisterTaskDefinitionRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             Unmarshaller<DeregisterTaskDefinitionResultJsonUnmarshallerContextunmarshaller =
                 new DeregisterTaskDefinitionResultJsonUnmarshaller();
             JsonResponseHandler<DeregisterTaskDefinitionResultresponseHandler =
                 new JsonResponseHandler<DeregisterTaskDefinitionResult>(unmarshaller);
 
             response = invoke(requestresponseHandlerexecutionContext);
 
             return response.getAwsResponse();
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }

    

Updates the Amazon ECS container agent on a specified container instance.

Parameters:
updateContainerAgentRequest Container for the necessary parameters to execute the UpdateContainerAgent service method on AmazonECS.
Returns:
The response from the UpdateContainerAgent service method, as returned by AmazonECS.
Throws:
com.amazonaws.services.ecs.model.InvalidParameterException
com.amazonaws.services.ecs.model.ClusterNotFoundException
com.amazonaws.services.ecs.model.ServerException
com.amazonaws.services.ecs.model.NoUpdateAvailableException
com.amazonaws.services.ecs.model.ClientException
com.amazonaws.services.ecs.model.MissingVersionException
com.amazonaws.services.ecs.model.UpdateInProgressException
com.amazonaws.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.
com.amazonaws.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 UpdateContainerAgentResult updateContainerAgent(UpdateContainerAgentRequest updateContainerAgentRequest) {
         ExecutionContext executionContext = createExecutionContext(updateContainerAgentRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<UpdateContainerAgentRequestrequest = null;
         Response<UpdateContainerAgentResultresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new UpdateContainerAgentRequestMarshaller().marshall(super.beforeMarshalling(updateContainerAgentRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             Unmarshaller<UpdateContainerAgentResultJsonUnmarshallerContextunmarshaller =
                 new UpdateContainerAgentResultJsonUnmarshaller();
             JsonResponseHandler<UpdateContainerAgentResultresponseHandler =
                 new JsonResponseHandler<UpdateContainerAgentResult>(unmarshaller);
 
             response = invoke(requestresponseHandlerexecutionContext);
 
             return response.getAwsResponse();
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }

    

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.

Parameters:
describeTaskDefinitionRequest Container for the necessary parameters to execute the DescribeTaskDefinition service method on AmazonECS.
Returns:
The response from the DescribeTaskDefinition service method, as returned by AmazonECS.
Throws:
com.amazonaws.services.ecs.model.InvalidParameterException
com.amazonaws.services.ecs.model.ServerException
com.amazonaws.services.ecs.model.ClientException
com.amazonaws.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.
com.amazonaws.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 DescribeTaskDefinitionResult describeTaskDefinition(DescribeTaskDefinitionRequest describeTaskDefinitionRequest) {
         ExecutionContext executionContext = createExecutionContext(describeTaskDefinitionRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<DescribeTaskDefinitionRequestrequest = null;
         Response<DescribeTaskDefinitionResultresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new DescribeTaskDefinitionRequestMarshaller().marshall(super.beforeMarshalling(describeTaskDefinitionRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             Unmarshaller<DescribeTaskDefinitionResultJsonUnmarshallerContextunmarshaller =
                 new DescribeTaskDefinitionResultJsonUnmarshaller();
             JsonResponseHandler<DescribeTaskDefinitionResultresponseHandler =
                 new JsonResponseHandler<DescribeTaskDefinitionResult>(unmarshaller);
 
             response = invoke(requestresponseHandlerexecutionContext);
 
             return response.getAwsResponse();
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }

    

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 .

Parameters:
registerTaskDefinitionRequest Container for the necessary parameters to execute the RegisterTaskDefinition service method on AmazonECS.
Returns:
The response from the RegisterTaskDefinition service method, as returned by AmazonECS.
Throws:
com.amazonaws.services.ecs.model.InvalidParameterException
com.amazonaws.services.ecs.model.ServerException
com.amazonaws.services.ecs.model.ClientException
com.amazonaws.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.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonECS indicating either a problem with the data in the request, or a server side issue.
        ExecutionContext executionContext = createExecutionContext(registerTaskDefinitionRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(.);
        Request<RegisterTaskDefinitionRequestrequest = null;
        Response<RegisterTaskDefinitionResultresponse = null;
        
        try {
            awsRequestMetrics.startEvent(.);
            try {
                request = new RegisterTaskDefinitionRequestMarshaller().marshall(super.beforeMarshalling(registerTaskDefinitionRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
            } finally {
                awsRequestMetrics.endEvent(.);
            }
            Unmarshaller<RegisterTaskDefinitionResultJsonUnmarshallerContextunmarshaller =
                new RegisterTaskDefinitionResultJsonUnmarshaller();
            JsonResponseHandler<RegisterTaskDefinitionResultresponseHandler =
                new JsonResponseHandler<RegisterTaskDefinitionResult>(unmarshaller);
            response = invoke(requestresponseHandlerexecutionContext);
            return response.getAwsResponse();
        } finally {
            
            endClientExecution(awsRequestMetricsrequestresponse);
        }
    }

    

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.

Parameters:
submitTaskStateChangeRequest Container for the necessary parameters to execute the SubmitTaskStateChange service method on AmazonECS.
Returns:
The response from the SubmitTaskStateChange service method, as returned by AmazonECS.
Throws:
com.amazonaws.services.ecs.model.ServerException
com.amazonaws.services.ecs.model.ClientException
com.amazonaws.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.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonECS indicating either a problem with the data in the request, or a server side issue.
        ExecutionContext executionContext = createExecutionContext(submitTaskStateChangeRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(.);
        Request<SubmitTaskStateChangeRequestrequest = null;
        Response<SubmitTaskStateChangeResultresponse = null;
        
        try {
            awsRequestMetrics.startEvent(.);
            try {
                request = new SubmitTaskStateChangeRequestMarshaller().marshall(super.beforeMarshalling(submitTaskStateChangeRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
            } finally {
                awsRequestMetrics.endEvent(.);
            }
            Unmarshaller<SubmitTaskStateChangeResultJsonUnmarshallerContextunmarshaller =
                new SubmitTaskStateChangeResultJsonUnmarshaller();
            JsonResponseHandler<SubmitTaskStateChangeResultresponseHandler =
                new JsonResponseHandler<SubmitTaskStateChangeResult>(unmarshaller);
            response = invoke(requestresponseHandlerexecutionContext);
            return response.getAwsResponse();
        } finally {
            
            endClientExecution(awsRequestMetricsrequestresponse);
        }
    }

    

Describes Amazon EC2 Container Service container instances. Returns metadata about registered and remaining resources on each container instance requested.

Parameters:
describeContainerInstancesRequest Container for the necessary parameters to execute the DescribeContainerInstances service method on AmazonECS.
Returns:
The response from the DescribeContainerInstances service method, as returned by AmazonECS.
Throws:
com.amazonaws.services.ecs.model.InvalidParameterException
com.amazonaws.services.ecs.model.ClusterNotFoundException
com.amazonaws.services.ecs.model.ServerException
com.amazonaws.services.ecs.model.ClientException
com.amazonaws.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.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonECS indicating either a problem with the data in the request, or a server side issue.
        ExecutionContext executionContext = createExecutionContext(describeContainerInstancesRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(.);
        Request<DescribeContainerInstancesRequestrequest = null;
        Response<DescribeContainerInstancesResultresponse = null;
        
        try {
            awsRequestMetrics.startEvent(.);
            try {
                request = new DescribeContainerInstancesRequestMarshaller().marshall(super.beforeMarshalling(describeContainerInstancesRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
            } finally {
                awsRequestMetrics.endEvent(.);
            }
                new DescribeContainerInstancesResultJsonUnmarshaller();
            JsonResponseHandler<DescribeContainerInstancesResultresponseHandler =
                new JsonResponseHandler<DescribeContainerInstancesResult>(unmarshaller);
            response = invoke(requestresponseHandlerexecutionContext);
            return response.getAwsResponse();
        } finally {
            
            endClientExecution(awsRequestMetricsrequestresponse);
        }
    }

    

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.

Parameters:
registerContainerInstanceRequest Container for the necessary parameters to execute the RegisterContainerInstance service method on AmazonECS.
Returns:
The response from the RegisterContainerInstance service method, as returned by AmazonECS.
Throws:
com.amazonaws.services.ecs.model.ServerException
com.amazonaws.services.ecs.model.ClientException
com.amazonaws.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.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonECS indicating either a problem with the data in the request, or a server side issue.
        ExecutionContext executionContext = createExecutionContext(registerContainerInstanceRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(.);
        Request<RegisterContainerInstanceRequestrequest = null;
        Response<RegisterContainerInstanceResultresponse = null;
        
        try {
            awsRequestMetrics.startEvent(.);
            try {
                request = new RegisterContainerInstanceRequestMarshaller().marshall(super.beforeMarshalling(registerContainerInstanceRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
            } finally {
                awsRequestMetrics.endEvent(.);
            }
                new RegisterContainerInstanceResultJsonUnmarshaller();
            JsonResponseHandler<RegisterContainerInstanceResultresponseHandler =
                new JsonResponseHandler<RegisterContainerInstanceResult>(unmarshaller);
            response = invoke(requestresponseHandlerexecutionContext);
            return response.getAwsResponse();
        } finally {
            
            endClientExecution(awsRequestMetricsrequestresponse);
        }
    }

    

Describes the specified services running in your cluster.

Parameters:
describeServicesRequest Container for the necessary parameters to execute the DescribeServices service method on AmazonECS.
Returns:
The response from the DescribeServices service method, as returned by AmazonECS.
Throws:
com.amazonaws.services.ecs.model.InvalidParameterException
com.amazonaws.services.ecs.model.ClusterNotFoundException
com.amazonaws.services.ecs.model.ServerException
com.amazonaws.services.ecs.model.ClientException
com.amazonaws.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.
com.amazonaws.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 DescribeServicesResult describeServices(DescribeServicesRequest describeServicesRequest) {
        ExecutionContext executionContext = createExecutionContext(describeServicesRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(.);
        Request<DescribeServicesRequestrequest = null;
        Response<DescribeServicesResultresponse = null;
        
        try {
            awsRequestMetrics.startEvent(.);
            try {
                request = new DescribeServicesRequestMarshaller().marshall(super.beforeMarshalling(describeServicesRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
            } finally {
                awsRequestMetrics.endEvent(.);
            }
            Unmarshaller<DescribeServicesResultJsonUnmarshallerContextunmarshaller =
                new DescribeServicesResultJsonUnmarshaller();
            JsonResponseHandler<DescribeServicesResultresponseHandler =
                new JsonResponseHandler<DescribeServicesResult>(unmarshaller);
            response = invoke(requestresponseHandlerexecutionContext);
            return response.getAwsResponse();
        } finally {
            
            endClientExecution(awsRequestMetricsrequestresponse);
        }
    }

    

Runs and maintains a desired number of tasks from a specified task definition. If the number of tasks running in a service drops below desiredCount , Amazon ECS will spawn another instantiation of the task in the specified cluster.

Parameters:
createServiceRequest Container for the necessary parameters to execute the CreateService service method on AmazonECS.
Returns:
The response from the CreateService service method, as returned by AmazonECS.
Throws:
com.amazonaws.services.ecs.model.InvalidParameterException
com.amazonaws.services.ecs.model.ClusterNotFoundException
com.amazonaws.services.ecs.model.ServerException
com.amazonaws.services.ecs.model.ClientException
com.amazonaws.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.
com.amazonaws.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 CreateServiceResult createService(CreateServiceRequest createServiceRequest) {
        ExecutionContext executionContext = createExecutionContext(createServiceRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(.);
        Request<CreateServiceRequestrequest = null;
        Response<CreateServiceResultresponse = null;
        
        try {
            awsRequestMetrics.startEvent(.);
            try {
                request = new CreateServiceRequestMarshaller().marshall(super.beforeMarshalling(createServiceRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
            } finally {
                awsRequestMetrics.endEvent(.);
            }
            Unmarshaller<CreateServiceResultJsonUnmarshallerContextunmarshaller =
                new CreateServiceResultJsonUnmarshaller();
            JsonResponseHandler<CreateServiceResultresponseHandler =
                new JsonResponseHandler<CreateServiceResult>(unmarshaller);
            response = invoke(requestresponseHandlerexecutionContext);
            return response.getAwsResponse();
        } finally {
            
            endClientExecution(awsRequestMetricsrequestresponse);
        }
    }

    

Lists the services that are running in a specified cluster.

Parameters:
listServicesRequest Container for the necessary parameters to execute the ListServices service method on AmazonECS.
Returns:
The response from the ListServices service method, as returned by AmazonECS.
Throws:
com.amazonaws.services.ecs.model.InvalidParameterException
com.amazonaws.services.ecs.model.ClusterNotFoundException
com.amazonaws.services.ecs.model.ServerException
com.amazonaws.services.ecs.model.ClientException
com.amazonaws.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.
com.amazonaws.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 ListServicesResult listServices(ListServicesRequest listServicesRequest) {
        ExecutionContext executionContext = createExecutionContext(listServicesRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(.);
        Request<ListServicesRequestrequest = null;
        Response<ListServicesResultresponse = null;
        
        try {
            awsRequestMetrics.startEvent(.);
            try {
                request = new ListServicesRequestMarshaller().marshall(super.beforeMarshalling(listServicesRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
            } finally {
                awsRequestMetrics.endEvent(.);
            }
            Unmarshaller<ListServicesResultJsonUnmarshallerContextunmarshaller =
                new ListServicesResultJsonUnmarshaller();
            JsonResponseHandler<ListServicesResultresponseHandler =
                new JsonResponseHandler<ListServicesResult>(unmarshaller);
            response = invoke(requestresponseHandlerexecutionContext);
            return response.getAwsResponse();
        } finally {
            
            endClientExecution(awsRequestMetricsrequestresponse);
        }
    }

    

Modify the desired count or task definition used in a service.

You can add to or subtract from the number of instantiations of a task definition in a service by specifying the cluster that the service is running in and a new desiredCount parameter.

You can use UpdateService to modify your task definition and deploy a new version of your service, one task at a time. If you modify the task definition with UpdateService , Amazon ECS spawns a task with the new version of the task definition and then stops an old task after the new version is running. Because UpdateService starts a new version of the task before stopping an old version, your cluster must have capacity to support one more instantiation of the task when UpdateService is run. If your cluster cannot support another instantiation of the task used in your service, you can reduce the desired count of your service by one before modifying the task definition.

Parameters:
updateServiceRequest Container for the necessary parameters to execute the UpdateService service method on AmazonECS.
Returns:
The response from the UpdateService service method, as returned by AmazonECS.
Throws:
com.amazonaws.services.ecs.model.InvalidParameterException
com.amazonaws.services.ecs.model.ServiceNotActiveException
com.amazonaws.services.ecs.model.ClusterNotFoundException
com.amazonaws.services.ecs.model.ServerException
com.amazonaws.services.ecs.model.ClientException
com.amazonaws.services.ecs.model.ServiceNotFoundException
com.amazonaws.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.
com.amazonaws.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 UpdateServiceResult updateService(UpdateServiceRequest updateServiceRequest) {
        ExecutionContext executionContext = createExecutionContext(updateServiceRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(.);
        Request<UpdateServiceRequestrequest = null;
        Response<UpdateServiceResultresponse = null;
        
        try {
            awsRequestMetrics.startEvent(.);
            try {
                request = new UpdateServiceRequestMarshaller().marshall(super.beforeMarshalling(updateServiceRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
            } finally {
                awsRequestMetrics.endEvent(.);
            }
            Unmarshaller<UpdateServiceResultJsonUnmarshallerContextunmarshaller =
                new UpdateServiceResultJsonUnmarshaller();
            JsonResponseHandler<UpdateServiceResultresponseHandler =
                new JsonResponseHandler<UpdateServiceResult>(unmarshaller);
            response = invoke(requestresponseHandlerexecutionContext);
            return response.getAwsResponse();
        } finally {
            
            endClientExecution(awsRequestMetricsrequestresponse);
        }
    }

    

Returns a list of task definition families that are registered to your account. You can filter the results with the familyPrefix parameter.

Parameters:
listTaskDefinitionFamiliesRequest Container for the necessary parameters to execute the ListTaskDefinitionFamilies service method on AmazonECS.
Returns:
The response from the ListTaskDefinitionFamilies service method, as returned by AmazonECS.
Throws:
com.amazonaws.services.ecs.model.InvalidParameterException
com.amazonaws.services.ecs.model.ServerException
com.amazonaws.services.ecs.model.ClientException
com.amazonaws.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.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonECS indicating either a problem with the data in the request, or a server side issue.
        ExecutionContext executionContext = createExecutionContext(listTaskDefinitionFamiliesRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(.);
        Request<ListTaskDefinitionFamiliesRequestrequest = null;
        Response<ListTaskDefinitionFamiliesResultresponse = null;
        
        try {
            awsRequestMetrics.startEvent(.);
            try {
                request = new ListTaskDefinitionFamiliesRequestMarshaller().marshall(super.beforeMarshalling(listTaskDefinitionFamiliesRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
            } finally {
                awsRequestMetrics.endEvent(.);
            }
                new ListTaskDefinitionFamiliesResultJsonUnmarshaller();
            JsonResponseHandler<ListTaskDefinitionFamiliesResultresponseHandler =
                new JsonResponseHandler<ListTaskDefinitionFamiliesResult>(unmarshaller);
            response = invoke(requestresponseHandlerexecutionContext);
            return response.getAwsResponse();
        } finally {
            
            endClientExecution(awsRequestMetricsrequestresponse);
        }
    }

    

Describes a specified task or tasks.

Parameters:
describeTasksRequest Container for the necessary parameters to execute the DescribeTasks service method on AmazonECS.
Returns:
The response from the DescribeTasks service method, as returned by AmazonECS.
Throws:
com.amazonaws.services.ecs.model.InvalidParameterException
com.amazonaws.services.ecs.model.ClusterNotFoundException
com.amazonaws.services.ecs.model.ServerException
com.amazonaws.services.ecs.model.ClientException
com.amazonaws.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.
com.amazonaws.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 DescribeTasksResult describeTasks(DescribeTasksRequest describeTasksRequest) {
        ExecutionContext executionContext = createExecutionContext(describeTasksRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(.);
        Request<DescribeTasksRequestrequest = null;
        Response<DescribeTasksResultresponse = null;
        
        try {
            awsRequestMetrics.startEvent(.);
            try {
                request = new DescribeTasksRequestMarshaller().marshall(super.beforeMarshalling(describeTasksRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
            } finally {
                awsRequestMetrics.endEvent(.);
            }
            Unmarshaller<DescribeTasksResultJsonUnmarshallerContextunmarshaller =
                new DescribeTasksResultJsonUnmarshaller();
            JsonResponseHandler<DescribeTasksResultresponseHandler =
                new JsonResponseHandler<DescribeTasksResult>(unmarshaller);
            response = invoke(requestresponseHandlerexecutionContext);
            return response.getAwsResponse();
        } finally {
            
            endClientExecution(awsRequestMetricsrequestresponse);
        }
    }

    

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.

Parameters:
discoverPollEndpointRequest Container for the necessary parameters to execute the DiscoverPollEndpoint service method on AmazonECS.
Returns:
The response from the DiscoverPollEndpoint service method, as returned by AmazonECS.
Throws:
com.amazonaws.services.ecs.model.ServerException
com.amazonaws.services.ecs.model.ClientException
com.amazonaws.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.
com.amazonaws.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 DiscoverPollEndpointResult discoverPollEndpoint(DiscoverPollEndpointRequest discoverPollEndpointRequest) {
        ExecutionContext executionContext = createExecutionContext(discoverPollEndpointRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(.);
        Request<DiscoverPollEndpointRequestrequest = null;
        Response<DiscoverPollEndpointResultresponse = null;