All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.elasticbeanstalk.AWSElasticBeanstalkClient Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Elastic Beanstalk module holds the client classes that are used for communicating with AWS Elastic Beanstalk Service

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2019-2024 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.elasticbeanstalk;

import org.w3c.dom.*;

import java.net.*;
import java.util.*;

import javax.annotation.Generated;

import org.apache.commons.logging.*;

import com.amazonaws.*;
import com.amazonaws.annotation.SdkInternalApi;
import com.amazonaws.auth.*;

import com.amazonaws.handlers.*;
import com.amazonaws.http.*;
import com.amazonaws.internal.*;
import com.amazonaws.internal.auth.*;
import com.amazonaws.metrics.*;
import com.amazonaws.regions.*;
import com.amazonaws.transform.*;
import com.amazonaws.util.*;
import com.amazonaws.protocol.json.*;
import com.amazonaws.util.AWSRequestMetrics.Field;
import com.amazonaws.annotation.ThreadSafe;
import com.amazonaws.client.AwsSyncClientParams;
import com.amazonaws.client.builder.AdvancedConfig;

import com.amazonaws.services.elasticbeanstalk.AWSElasticBeanstalkClientBuilder;
import com.amazonaws.services.elasticbeanstalk.waiters.AWSElasticBeanstalkWaiters;

import com.amazonaws.AmazonServiceException;

import com.amazonaws.services.elasticbeanstalk.model.*;

import com.amazonaws.services.elasticbeanstalk.model.transform.*;

/**
 * Client for accessing Elastic Beanstalk. All service calls made using this client are blocking, and will not return
 * until the service call completes.
 * 

* AWS Elastic Beanstalk *

* AWS Elastic Beanstalk makes it easy for you to create, deploy, and manage scalable, fault-tolerant applications * running on the Amazon Web Services cloud. *

*

* For more information about this product, go to the AWS Elastic * Beanstalk details page. The location of the latest AWS Elastic Beanstalk WSDL is https://elasticbeanstalk.s3.amazonaws.com/doc/2010-12-01/AWSElasticBeanstalk.wsdl. To install the Software * Development Kits (SDKs), Integrated Development Environment (IDE) Toolkits, and command line tools that enable you to * access the API, go to Tools for Amazon Web Services. *

*

* Endpoints *

*

* For a list of region-specific endpoints that AWS Elastic Beanstalk supports, go to Regions and Endpoints in * the Amazon Web Services Glossary. *

*/ @ThreadSafe @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AWSElasticBeanstalkClient extends AmazonWebServiceClient implements AWSElasticBeanstalk { /** Provider for AWS credentials. */ private final AWSCredentialsProvider awsCredentialsProvider; private static final Log log = LogFactory.getLog(AWSElasticBeanstalk.class); /** Default signing name for the service. */ private static final String DEFAULT_SIGNING_NAME = "elasticbeanstalk"; private volatile AWSElasticBeanstalkWaiters waiters; /** Client configuration factory providing ClientConfigurations tailored to this client */ protected static final ClientConfigurationFactory configFactory = new ClientConfigurationFactory(); private final AdvancedConfig advancedConfig; /** * Map of exception unmarshallers for all modeled exceptions */ private final Map> exceptionUnmarshallersMap = new HashMap>(); /** * List of exception unmarshallers for all modeled exceptions Even though this exceptionUnmarshallers is not used in * Clients, this is not removed since this was directly used by Client extended classes. Using this list can cause * performance impact. */ protected final List> exceptionUnmarshallers = new ArrayList>(); protected Unmarshaller defaultUnmarshaller; /** * Constructs a new client to invoke service methods on Elastic Beanstalk. 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. * * @see DefaultAWSCredentialsProviderChain * @deprecated use {@link AWSElasticBeanstalkClientBuilder#defaultClient()} */ @Deprecated public AWSElasticBeanstalkClient() { this(DefaultAWSCredentialsProviderChain.getInstance(), configFactory.getConfig()); } /** * Constructs a new client to invoke service methods on Elastic Beanstalk. 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. * * @param clientConfiguration * The client configuration options controlling how this client connects to Elastic Beanstalk (ex: proxy * settings, retry counts, etc.). * * @see DefaultAWSCredentialsProviderChain * @deprecated use {@link AWSElasticBeanstalkClientBuilder#withClientConfiguration(ClientConfiguration)} */ @Deprecated public AWSElasticBeanstalkClient(ClientConfiguration clientConfiguration) { this(DefaultAWSCredentialsProviderChain.getInstance(), clientConfiguration); } /** * Constructs a new client to invoke service methods on Elastic Beanstalk 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. * * @param awsCredentials * The AWS credentials (access key ID and secret key) to use when authenticating with AWS services. * @deprecated use {@link AWSElasticBeanstalkClientBuilder#withCredentials(AWSCredentialsProvider)} for example: * {@code AWSElasticBeanstalkClientBuilder.standard().withCredentials(new AWSStaticCredentialsProvider(awsCredentials)).build();} */ @Deprecated public AWSElasticBeanstalkClient(AWSCredentials awsCredentials) { this(awsCredentials, configFactory.getConfig()); } /** * Constructs a new client to invoke service methods on Elastic Beanstalk 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. * * @param awsCredentials * The AWS credentials (access key ID and secret key) to use when authenticating with AWS services. * @param clientConfiguration * The client configuration options controlling how this client connects to Elastic Beanstalk (ex: proxy * settings, retry counts, etc.). * @deprecated use {@link AWSElasticBeanstalkClientBuilder#withCredentials(AWSCredentialsProvider)} and * {@link AWSElasticBeanstalkClientBuilder#withClientConfiguration(ClientConfiguration)} */ @Deprecated public AWSElasticBeanstalkClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration) { super(clientConfiguration); this.awsCredentialsProvider = new StaticCredentialsProvider(awsCredentials); this.advancedConfig = AdvancedConfig.EMPTY; init(); } /** * Constructs a new client to invoke service methods on Elastic Beanstalk 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. * * @param awsCredentialsProvider * The AWS credentials provider which will provide credentials to authenticate requests with AWS services. * @deprecated use {@link AWSElasticBeanstalkClientBuilder#withCredentials(AWSCredentialsProvider)} */ @Deprecated public AWSElasticBeanstalkClient(AWSCredentialsProvider awsCredentialsProvider) { this(awsCredentialsProvider, configFactory.getConfig()); } /** * Constructs a new client to invoke service methods on Elastic Beanstalk 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. * * @param awsCredentialsProvider * The AWS credentials provider which will provide credentials to authenticate requests with AWS services. * @param clientConfiguration * The client configuration options controlling how this client connects to Elastic Beanstalk (ex: proxy * settings, retry counts, etc.). * @deprecated use {@link AWSElasticBeanstalkClientBuilder#withCredentials(AWSCredentialsProvider)} and * {@link AWSElasticBeanstalkClientBuilder#withClientConfiguration(ClientConfiguration)} */ @Deprecated public AWSElasticBeanstalkClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration) { this(awsCredentialsProvider, clientConfiguration, null); } /** * Constructs a new client to invoke service methods on Elastic Beanstalk 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. * * @param awsCredentialsProvider * The AWS credentials provider which will provide credentials to authenticate requests with AWS services. * @param clientConfiguration * The client configuration options controlling how this client connects to Elastic Beanstalk (ex: proxy * settings, retry counts, etc.). * @param requestMetricCollector * optional request metric collector * @deprecated use {@link AWSElasticBeanstalkClientBuilder#withCredentials(AWSCredentialsProvider)} and * {@link AWSElasticBeanstalkClientBuilder#withClientConfiguration(ClientConfiguration)} and * {@link AWSElasticBeanstalkClientBuilder#withMetricsCollector(RequestMetricCollector)} */ @Deprecated public AWSElasticBeanstalkClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, RequestMetricCollector requestMetricCollector) { super(clientConfiguration, requestMetricCollector); this.awsCredentialsProvider = awsCredentialsProvider; this.advancedConfig = AdvancedConfig.EMPTY; init(); } public static AWSElasticBeanstalkClientBuilder builder() { return AWSElasticBeanstalkClientBuilder.standard(); } /** * Constructs a new client to invoke service methods on Elastic Beanstalk using the specified parameters. * *

* All service calls made using this new client object are blocking, and will not return until the service call * completes. * * @param clientParams * Object providing client parameters. */ AWSElasticBeanstalkClient(AwsSyncClientParams clientParams) { this(clientParams, false); } /** * Constructs a new client to invoke service methods on Elastic Beanstalk using the specified parameters. * *

* All service calls made using this new client object are blocking, and will not return until the service call * completes. * * @param clientParams * Object providing client parameters. */ AWSElasticBeanstalkClient(AwsSyncClientParams clientParams, boolean endpointDiscoveryEnabled) { super(clientParams); this.awsCredentialsProvider = clientParams.getCredentialsProvider(); this.advancedConfig = clientParams.getAdvancedConfig(); init(); } private void init() { if (exceptionUnmarshallersMap.get("S3LocationNotInServiceRegionException") == null) { exceptionUnmarshallersMap.put("S3LocationNotInServiceRegionException", new S3LocationNotInServiceRegionExceptionUnmarshaller()); } exceptionUnmarshallers.add(new S3LocationNotInServiceRegionExceptionUnmarshaller()); if (exceptionUnmarshallersMap.get("InvalidRequestException") == null) { exceptionUnmarshallersMap.put("InvalidRequestException", new InvalidRequestExceptionUnmarshaller()); } exceptionUnmarshallers.add(new InvalidRequestExceptionUnmarshaller()); if (exceptionUnmarshallersMap.get("ManagedActionInvalidStateException") == null) { exceptionUnmarshallersMap.put("ManagedActionInvalidStateException", new ManagedActionInvalidStateExceptionUnmarshaller()); } exceptionUnmarshallers.add(new ManagedActionInvalidStateExceptionUnmarshaller()); if (exceptionUnmarshallersMap.get("InsufficientPrivilegesException") == null) { exceptionUnmarshallersMap.put("InsufficientPrivilegesException", new InsufficientPrivilegesExceptionUnmarshaller()); } exceptionUnmarshallers.add(new InsufficientPrivilegesExceptionUnmarshaller()); if (exceptionUnmarshallersMap.get("TooManyPlatformsException") == null) { exceptionUnmarshallersMap.put("TooManyPlatformsException", new TooManyPlatformsExceptionUnmarshaller()); } exceptionUnmarshallers.add(new TooManyPlatformsExceptionUnmarshaller()); if (exceptionUnmarshallersMap.get("TooManyApplicationVersionsException") == null) { exceptionUnmarshallersMap.put("TooManyApplicationVersionsException", new TooManyApplicationVersionsExceptionUnmarshaller()); } exceptionUnmarshallers.add(new TooManyApplicationVersionsExceptionUnmarshaller()); if (exceptionUnmarshallersMap.get("CodeBuildNotInServiceRegionException") == null) { exceptionUnmarshallersMap.put("CodeBuildNotInServiceRegionException", new CodeBuildNotInServiceRegionExceptionUnmarshaller()); } exceptionUnmarshallers.add(new CodeBuildNotInServiceRegionExceptionUnmarshaller()); if (exceptionUnmarshallersMap.get("S3SubscriptionRequiredException") == null) { exceptionUnmarshallersMap.put("S3SubscriptionRequiredException", new S3SubscriptionRequiredExceptionUnmarshaller()); } exceptionUnmarshallers.add(new S3SubscriptionRequiredExceptionUnmarshaller()); if (exceptionUnmarshallersMap.get("SourceBundleDeletionFailure") == null) { exceptionUnmarshallersMap.put("SourceBundleDeletionFailure", new SourceBundleDeletionExceptionUnmarshaller()); } exceptionUnmarshallers.add(new SourceBundleDeletionExceptionUnmarshaller()); if (exceptionUnmarshallersMap.get("TooManyConfigurationTemplatesException") == null) { exceptionUnmarshallersMap.put("TooManyConfigurationTemplatesException", new TooManyConfigurationTemplatesExceptionUnmarshaller()); } exceptionUnmarshallers.add(new TooManyConfigurationTemplatesExceptionUnmarshaller()); if (exceptionUnmarshallersMap.get("ResourceTypeNotSupportedException") == null) { exceptionUnmarshallersMap.put("ResourceTypeNotSupportedException", new ResourceTypeNotSupportedExceptionUnmarshaller()); } exceptionUnmarshallers.add(new ResourceTypeNotSupportedExceptionUnmarshaller()); if (exceptionUnmarshallersMap.get("TooManyTagsException") == null) { exceptionUnmarshallersMap.put("TooManyTagsException", new TooManyTagsExceptionUnmarshaller()); } exceptionUnmarshallers.add(new TooManyTagsExceptionUnmarshaller()); if (exceptionUnmarshallersMap.get("ResourceNotFoundException") == null) { exceptionUnmarshallersMap.put("ResourceNotFoundException", new ResourceNotFoundExceptionUnmarshaller()); } exceptionUnmarshallers.add(new ResourceNotFoundExceptionUnmarshaller()); if (exceptionUnmarshallersMap.get("TooManyApplicationsException") == null) { exceptionUnmarshallersMap.put("TooManyApplicationsException", new TooManyApplicationsExceptionUnmarshaller()); } exceptionUnmarshallers.add(new TooManyApplicationsExceptionUnmarshaller()); if (exceptionUnmarshallersMap.get("OperationInProgressFailure") == null) { exceptionUnmarshallersMap.put("OperationInProgressFailure", new OperationInProgressExceptionUnmarshaller()); } exceptionUnmarshallers.add(new OperationInProgressExceptionUnmarshaller()); if (exceptionUnmarshallersMap.get("TooManyEnvironmentsException") == null) { exceptionUnmarshallersMap.put("TooManyEnvironmentsException", new TooManyEnvironmentsExceptionUnmarshaller()); } exceptionUnmarshallers.add(new TooManyEnvironmentsExceptionUnmarshaller()); if (exceptionUnmarshallersMap.get("TooManyBucketsException") == null) { exceptionUnmarshallersMap.put("TooManyBucketsException", new TooManyBucketsExceptionUnmarshaller()); } exceptionUnmarshallers.add(new TooManyBucketsExceptionUnmarshaller()); if (exceptionUnmarshallersMap.get("ElasticBeanstalkServiceException") == null) { exceptionUnmarshallersMap.put("ElasticBeanstalkServiceException", new ElasticBeanstalkServiceExceptionUnmarshaller()); } exceptionUnmarshallers.add(new ElasticBeanstalkServiceExceptionUnmarshaller()); if (exceptionUnmarshallersMap.get("PlatformVersionStillReferencedException") == null) { exceptionUnmarshallersMap.put("PlatformVersionStillReferencedException", new PlatformVersionStillReferencedExceptionUnmarshaller()); } exceptionUnmarshallers.add(new PlatformVersionStillReferencedExceptionUnmarshaller()); defaultUnmarshaller = new StandardErrorUnmarshaller(com.amazonaws.services.elasticbeanstalk.model.AWSElasticBeanstalkException.class); exceptionUnmarshallers.add(new StandardErrorUnmarshaller(com.amazonaws.services.elasticbeanstalk.model.AWSElasticBeanstalkException.class)); setServiceNameIntern(DEFAULT_SIGNING_NAME); setEndpointPrefix(ENDPOINT_PREFIX); // calling this.setEndPoint(...) will also modify the signer accordingly this.setEndpoint("https://elasticbeanstalk.us-east-1.amazonaws.com"); HandlerChainFactory chainFactory = new HandlerChainFactory(); requestHandler2s.addAll(chainFactory.newRequestHandlerChain("/com/amazonaws/services/elasticbeanstalk/request.handlers")); requestHandler2s.addAll(chainFactory.newRequestHandler2Chain("/com/amazonaws/services/elasticbeanstalk/request.handler2s")); requestHandler2s.addAll(chainFactory.getGlobalHandlers()); } /** *

* Cancels in-progress environment configuration update or application version deployment. *

* * @param abortEnvironmentUpdateRequest * @return Result of the AbortEnvironmentUpdate operation returned by the service. * @throws InsufficientPrivilegesException * The specified account does not have sufficient privileges for one or more AWS services. * @sample AWSElasticBeanstalk.AbortEnvironmentUpdate * @see AWS API Documentation */ @Override public AbortEnvironmentUpdateResult abortEnvironmentUpdate(AbortEnvironmentUpdateRequest request) { request = beforeClientExecution(request); return executeAbortEnvironmentUpdate(request); } @SdkInternalApi final AbortEnvironmentUpdateResult executeAbortEnvironmentUpdate(AbortEnvironmentUpdateRequest abortEnvironmentUpdateRequest) { ExecutionContext executionContext = createExecutionContext(abortEnvironmentUpdateRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new AbortEnvironmentUpdateRequestMarshaller().marshall(super.beforeMarshalling(abortEnvironmentUpdateRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Elastic Beanstalk"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "AbortEnvironmentUpdate"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } StaxResponseHandler responseHandler = new StaxResponseHandler( new AbortEnvironmentUpdateResultStaxUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } @Override public AbortEnvironmentUpdateResult abortEnvironmentUpdate() { return abortEnvironmentUpdate(new AbortEnvironmentUpdateRequest()); } /** *

* Applies a scheduled managed action immediately. A managed action can be applied only if its status is * Scheduled. Get the status and action ID of a managed action with * DescribeEnvironmentManagedActions. *

* * @param applyEnvironmentManagedActionRequest * Request to execute a scheduled managed action immediately. * @return Result of the ApplyEnvironmentManagedAction operation returned by the service. * @throws ElasticBeanstalkServiceException * A generic service exception has occurred. * @throws ManagedActionInvalidStateException * Cannot modify the managed action in its current state. * @sample AWSElasticBeanstalk.ApplyEnvironmentManagedAction * @see AWS API Documentation */ @Override public ApplyEnvironmentManagedActionResult applyEnvironmentManagedAction(ApplyEnvironmentManagedActionRequest request) { request = beforeClientExecution(request); return executeApplyEnvironmentManagedAction(request); } @SdkInternalApi final ApplyEnvironmentManagedActionResult executeApplyEnvironmentManagedAction(ApplyEnvironmentManagedActionRequest applyEnvironmentManagedActionRequest) { ExecutionContext executionContext = createExecutionContext(applyEnvironmentManagedActionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ApplyEnvironmentManagedActionRequestMarshaller().marshall(super.beforeMarshalling(applyEnvironmentManagedActionRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Elastic Beanstalk"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ApplyEnvironmentManagedAction"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } StaxResponseHandler responseHandler = new StaxResponseHandler( new ApplyEnvironmentManagedActionResultStaxUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Add or change the operations role used by an environment. After this call is made, Elastic Beanstalk uses the * associated operations role for permissions to downstream services during subsequent calls acting on this * environment. For more information, see Operations roles in the * AWS Elastic Beanstalk Developer Guide. *

* * @param associateEnvironmentOperationsRoleRequest * Request to add or change the operations role used by an environment. * @return Result of the AssociateEnvironmentOperationsRole operation returned by the service. * @throws InsufficientPrivilegesException * The specified account does not have sufficient privileges for one or more AWS services. * @sample AWSElasticBeanstalk.AssociateEnvironmentOperationsRole * @see AWS API Documentation */ @Override public AssociateEnvironmentOperationsRoleResult associateEnvironmentOperationsRole(AssociateEnvironmentOperationsRoleRequest request) { request = beforeClientExecution(request); return executeAssociateEnvironmentOperationsRole(request); } @SdkInternalApi final AssociateEnvironmentOperationsRoleResult executeAssociateEnvironmentOperationsRole( AssociateEnvironmentOperationsRoleRequest associateEnvironmentOperationsRoleRequest) { ExecutionContext executionContext = createExecutionContext(associateEnvironmentOperationsRoleRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new AssociateEnvironmentOperationsRoleRequestMarshaller() .marshall(super.beforeMarshalling(associateEnvironmentOperationsRoleRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Elastic Beanstalk"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "AssociateEnvironmentOperationsRole"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } StaxResponseHandler responseHandler = new StaxResponseHandler( new AssociateEnvironmentOperationsRoleResultStaxUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Checks if the specified CNAME is available. *

* * @param checkDNSAvailabilityRequest * Results message indicating whether a CNAME is available. * @return Result of the CheckDNSAvailability operation returned by the service. * @sample AWSElasticBeanstalk.CheckDNSAvailability * @see AWS API Documentation */ @Override public CheckDNSAvailabilityResult checkDNSAvailability(CheckDNSAvailabilityRequest request) { request = beforeClientExecution(request); return executeCheckDNSAvailability(request); } @SdkInternalApi final CheckDNSAvailabilityResult executeCheckDNSAvailability(CheckDNSAvailabilityRequest checkDNSAvailabilityRequest) { ExecutionContext executionContext = createExecutionContext(checkDNSAvailabilityRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CheckDNSAvailabilityRequestMarshaller().marshall(super.beforeMarshalling(checkDNSAvailabilityRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Elastic Beanstalk"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CheckDNSAvailability"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } StaxResponseHandler responseHandler = new StaxResponseHandler( new CheckDNSAvailabilityResultStaxUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Create or update a group of environments that each run a separate component of a single application. Takes a list * of version labels that specify application source bundles for each of the environments to create or update. The * name of each environment and other required information must be included in the source bundles in an environment * manifest named env.yaml. See Compose * Environments for details. *

* * @param composeEnvironmentsRequest * Request to create or update a group of environments. * @return Result of the ComposeEnvironments operation returned by the service. * @throws TooManyEnvironmentsException * The specified account has reached its limit of environments. * @throws InsufficientPrivilegesException * The specified account does not have sufficient privileges for one or more AWS services. * @sample AWSElasticBeanstalk.ComposeEnvironments * @see AWS API Documentation */ @Override public ComposeEnvironmentsResult composeEnvironments(ComposeEnvironmentsRequest request) { request = beforeClientExecution(request); return executeComposeEnvironments(request); } @SdkInternalApi final ComposeEnvironmentsResult executeComposeEnvironments(ComposeEnvironmentsRequest composeEnvironmentsRequest) { ExecutionContext executionContext = createExecutionContext(composeEnvironmentsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ComposeEnvironmentsRequestMarshaller().marshall(super.beforeMarshalling(composeEnvironmentsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Elastic Beanstalk"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ComposeEnvironments"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } StaxResponseHandler responseHandler = new StaxResponseHandler( new ComposeEnvironmentsResultStaxUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates an application that has one configuration template named default and no application * versions. *

* * @param createApplicationRequest * Request to create an application. * @return Result of the CreateApplication operation returned by the service. * @throws TooManyApplicationsException * The specified account has reached its limit of applications. * @sample AWSElasticBeanstalk.CreateApplication * @see AWS API Documentation */ @Override public CreateApplicationResult createApplication(CreateApplicationRequest request) { request = beforeClientExecution(request); return executeCreateApplication(request); } @SdkInternalApi final CreateApplicationResult executeCreateApplication(CreateApplicationRequest createApplicationRequest) { ExecutionContext executionContext = createExecutionContext(createApplicationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateApplicationRequestMarshaller().marshall(super.beforeMarshalling(createApplicationRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Elastic Beanstalk"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateApplication"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } StaxResponseHandler responseHandler = new StaxResponseHandler( new CreateApplicationResultStaxUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates an application version for the specified application. You can create an application version from a source * bundle in Amazon S3, a commit in AWS CodeCommit, or the output of an AWS CodeBuild build as follows: *

*

* Specify a commit in an AWS CodeCommit repository with SourceBuildInformation. *

*

* Specify a build in an AWS CodeBuild with SourceBuildInformation and BuildConfiguration. *

*

* Specify a source bundle in S3 with SourceBundle *

*

* Omit both SourceBuildInformation and SourceBundle to use the default sample * application. *

* *

* After you create an application version with a specified Amazon S3 bucket and key location, you can't change that * Amazon S3 location. If you change the Amazon S3 location, you receive an exception when you attempt to launch an * environment from the application version. *

*
* * @param createApplicationVersionRequest * @return Result of the CreateApplicationVersion operation returned by the service. * @throws TooManyApplicationsException * The specified account has reached its limit of applications. * @throws TooManyApplicationVersionsException * The specified account has reached its limit of application versions. * @throws InsufficientPrivilegesException * The specified account does not have sufficient privileges for one or more AWS services. * @throws S3LocationNotInServiceRegionException * The specified S3 bucket does not belong to the S3 region in which the service is running. The following * regions are supported:

*
    *
  • *

    * IAD/us-east-1 *

    *
  • *
  • *

    * PDX/us-west-2 *

    *
  • *
  • *

    * DUB/eu-west-1 *

    *
  • * @throws CodeBuildNotInServiceRegionException * AWS CodeBuild is not available in the specified region. * @sample AWSElasticBeanstalk.CreateApplicationVersion * @see AWS API Documentation */ @Override public CreateApplicationVersionResult createApplicationVersion(CreateApplicationVersionRequest request) { request = beforeClientExecution(request); return executeCreateApplicationVersion(request); } @SdkInternalApi final CreateApplicationVersionResult executeCreateApplicationVersion(CreateApplicationVersionRequest createApplicationVersionRequest) { ExecutionContext executionContext = createExecutionContext(createApplicationVersionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateApplicationVersionRequestMarshaller().marshall(super.beforeMarshalling(createApplicationVersionRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Elastic Beanstalk"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateApplicationVersion"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } StaxResponseHandler responseHandler = new StaxResponseHandler( new CreateApplicationVersionResultStaxUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

    * Creates an AWS Elastic Beanstalk configuration template, associated with a specific Elastic Beanstalk * application. You define application configuration settings in a configuration template. You can then use the * configuration template to deploy different versions of the application with the same configuration settings. *

    *

    * Templates aren't associated with any environment. The EnvironmentName response element is always * null. *

    *

    * Related Topics *

    * * * @param createConfigurationTemplateRequest * Request to create a configuration template. * @return Result of the CreateConfigurationTemplate operation returned by the service. * @throws InsufficientPrivilegesException * The specified account does not have sufficient privileges for one or more AWS services. * @throws TooManyBucketsException * The specified account has reached its limit of Amazon S3 buckets. * @throws TooManyConfigurationTemplatesException * The specified account has reached its limit of configuration templates. * @sample AWSElasticBeanstalk.CreateConfigurationTemplate * @see AWS API Documentation */ @Override public CreateConfigurationTemplateResult createConfigurationTemplate(CreateConfigurationTemplateRequest request) { request = beforeClientExecution(request); return executeCreateConfigurationTemplate(request); } @SdkInternalApi final CreateConfigurationTemplateResult executeCreateConfigurationTemplate(CreateConfigurationTemplateRequest createConfigurationTemplateRequest) { ExecutionContext executionContext = createExecutionContext(createConfigurationTemplateRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateConfigurationTemplateRequestMarshaller().marshall(super.beforeMarshalling(createConfigurationTemplateRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Elastic Beanstalk"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateConfigurationTemplate"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } StaxResponseHandler responseHandler = new StaxResponseHandler( new CreateConfigurationTemplateResultStaxUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

    * Launches an AWS Elastic Beanstalk environment for the specified application using the specified configuration. *

    * * @param createEnvironmentRequest * @return Result of the CreateEnvironment operation returned by the service. * @throws TooManyEnvironmentsException * The specified account has reached its limit of environments. * @throws InsufficientPrivilegesException * The specified account does not have sufficient privileges for one or more AWS services. * @sample AWSElasticBeanstalk.CreateEnvironment * @see AWS API Documentation */ @Override public CreateEnvironmentResult createEnvironment(CreateEnvironmentRequest request) { request = beforeClientExecution(request); return executeCreateEnvironment(request); } @SdkInternalApi final CreateEnvironmentResult executeCreateEnvironment(CreateEnvironmentRequest createEnvironmentRequest) { ExecutionContext executionContext = createExecutionContext(createEnvironmentRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateEnvironmentRequestMarshaller().marshall(super.beforeMarshalling(createEnvironmentRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Elastic Beanstalk"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateEnvironment"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } StaxResponseHandler responseHandler = new StaxResponseHandler( new CreateEnvironmentResultStaxUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

    * Create a new version of your custom platform. *

    * * @param createPlatformVersionRequest * Request to create a new platform version. * @return Result of the CreatePlatformVersion operation returned by the service. * @throws InsufficientPrivilegesException * The specified account does not have sufficient privileges for one or more AWS services. * @throws ElasticBeanstalkServiceException * A generic service exception has occurred. * @throws TooManyPlatformsException * You have exceeded the maximum number of allowed platforms associated with the account. * @sample AWSElasticBeanstalk.CreatePlatformVersion * @see AWS API Documentation */ @Override public CreatePlatformVersionResult createPlatformVersion(CreatePlatformVersionRequest request) { request = beforeClientExecution(request); return executeCreatePlatformVersion(request); } @SdkInternalApi final CreatePlatformVersionResult executeCreatePlatformVersion(CreatePlatformVersionRequest createPlatformVersionRequest) { ExecutionContext executionContext = createExecutionContext(createPlatformVersionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreatePlatformVersionRequestMarshaller().marshall(super.beforeMarshalling(createPlatformVersionRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Elastic Beanstalk"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreatePlatformVersion"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } StaxResponseHandler responseHandler = new StaxResponseHandler( new CreatePlatformVersionResultStaxUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

    * Creates a bucket in Amazon S3 to store application versions, logs, and other files used by Elastic Beanstalk * environments. The Elastic Beanstalk console and EB CLI call this API the first time you create an environment in * a region. If the storage location already exists, CreateStorageLocation still returns the bucket * name but does not create a new bucket. *

    * * @param createStorageLocationRequest * @return Result of the CreateStorageLocation operation returned by the service. * @throws TooManyBucketsException * The specified account has reached its limit of Amazon S3 buckets. * @throws S3SubscriptionRequiredException * The specified account does not have a subscription to Amazon S3. * @throws InsufficientPrivilegesException * The specified account does not have sufficient privileges for one or more AWS services. * @sample AWSElasticBeanstalk.CreateStorageLocation * @see AWS API Documentation */ @Override public CreateStorageLocationResult createStorageLocation(CreateStorageLocationRequest request) { request = beforeClientExecution(request); return executeCreateStorageLocation(request); } @SdkInternalApi final CreateStorageLocationResult executeCreateStorageLocation(CreateStorageLocationRequest createStorageLocationRequest) { ExecutionContext executionContext = createExecutionContext(createStorageLocationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateStorageLocationRequestMarshaller().marshall(super.beforeMarshalling(createStorageLocationRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Elastic Beanstalk"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateStorageLocation"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } StaxResponseHandler responseHandler = new StaxResponseHandler( new CreateStorageLocationResultStaxUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } @Override public CreateStorageLocationResult createStorageLocation() { return createStorageLocation(new CreateStorageLocationRequest()); } /** *

    * Deletes the specified application along with all associated versions and configurations. The application versions * will not be deleted from your Amazon S3 bucket. *

    * *

    * You cannot delete an application that has a running environment. *

    *
    * * @param deleteApplicationRequest * Request to delete an application. * @return Result of the DeleteApplication operation returned by the service. * @throws OperationInProgressException * Unable to perform the specified operation because another operation that effects an element in this * activity is already in progress. * @sample AWSElasticBeanstalk.DeleteApplication * @see AWS API Documentation */ @Override public DeleteApplicationResult deleteApplication(DeleteApplicationRequest request) { request = beforeClientExecution(request); return executeDeleteApplication(request); } @SdkInternalApi final DeleteApplicationResult executeDeleteApplication(DeleteApplicationRequest deleteApplicationRequest) { ExecutionContext executionContext = createExecutionContext(deleteApplicationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteApplicationRequestMarshaller().marshall(super.beforeMarshalling(deleteApplicationRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Elastic Beanstalk"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteApplication"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } StaxResponseHandler responseHandler = new StaxResponseHandler( new DeleteApplicationResultStaxUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

    * Deletes the specified version from the specified application. *

    * *

    * You cannot delete an application version that is associated with a running environment. *

    *
    * * @param deleteApplicationVersionRequest * Request to delete an application version. * @return Result of the DeleteApplicationVersion operation returned by the service. * @throws SourceBundleDeletionException * Unable to delete the Amazon S3 source bundle associated with the application version. The application * version was deleted successfully. * @throws InsufficientPrivilegesException * The specified account does not have sufficient privileges for one or more AWS services. * @throws OperationInProgressException * Unable to perform the specified operation because another operation that effects an element in this * activity is already in progress. * @throws S3LocationNotInServiceRegionException * The specified S3 bucket does not belong to the S3 region in which the service is running. The following * regions are supported:

    *
      *
    • *

      * IAD/us-east-1 *

      *
    • *
    • *

      * PDX/us-west-2 *

      *
    • *
    • *

      * DUB/eu-west-1 *

      *
    • * @sample AWSElasticBeanstalk.DeleteApplicationVersion * @see AWS API Documentation */ @Override public DeleteApplicationVersionResult deleteApplicationVersion(DeleteApplicationVersionRequest request) { request = beforeClientExecution(request); return executeDeleteApplicationVersion(request); } @SdkInternalApi final DeleteApplicationVersionResult executeDeleteApplicationVersion(DeleteApplicationVersionRequest deleteApplicationVersionRequest) { ExecutionContext executionContext = createExecutionContext(deleteApplicationVersionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteApplicationVersionRequestMarshaller().marshall(super.beforeMarshalling(deleteApplicationVersionRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Elastic Beanstalk"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteApplicationVersion"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } StaxResponseHandler responseHandler = new StaxResponseHandler( new DeleteApplicationVersionResultStaxUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

      * Deletes the specified configuration template. *

      * *

      * When you launch an environment using a configuration template, the environment gets a copy of the template. You * can delete or modify the environment's copy of the template without affecting the running environment. *

      *
      * * @param deleteConfigurationTemplateRequest * Request to delete a configuration template. * @return Result of the DeleteConfigurationTemplate operation returned by the service. * @throws OperationInProgressException * Unable to perform the specified operation because another operation that effects an element in this * activity is already in progress. * @sample AWSElasticBeanstalk.DeleteConfigurationTemplate * @see AWS API Documentation */ @Override public DeleteConfigurationTemplateResult deleteConfigurationTemplate(DeleteConfigurationTemplateRequest request) { request = beforeClientExecution(request); return executeDeleteConfigurationTemplate(request); } @SdkInternalApi final DeleteConfigurationTemplateResult executeDeleteConfigurationTemplate(DeleteConfigurationTemplateRequest deleteConfigurationTemplateRequest) { ExecutionContext executionContext = createExecutionContext(deleteConfigurationTemplateRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteConfigurationTemplateRequestMarshaller().marshall(super.beforeMarshalling(deleteConfigurationTemplateRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Elastic Beanstalk"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteConfigurationTemplate"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } StaxResponseHandler responseHandler = new StaxResponseHandler( new DeleteConfigurationTemplateResultStaxUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

      * Deletes the draft configuration associated with the running environment. *

      *

      * Updating a running environment with any configuration changes creates a draft configuration set. You can get the * draft configuration using DescribeConfigurationSettings while the update is in progress or if the update * fails. The DeploymentStatus for the draft configuration indicates whether the deployment is in * process or has failed. The draft configuration remains in existence until it is deleted with this action. *

      * * @param deleteEnvironmentConfigurationRequest * Request to delete a draft environment configuration. * @return Result of the DeleteEnvironmentConfiguration operation returned by the service. * @sample AWSElasticBeanstalk.DeleteEnvironmentConfiguration * @see AWS API Documentation */ @Override public DeleteEnvironmentConfigurationResult deleteEnvironmentConfiguration(DeleteEnvironmentConfigurationRequest request) { request = beforeClientExecution(request); return executeDeleteEnvironmentConfiguration(request); } @SdkInternalApi final DeleteEnvironmentConfigurationResult executeDeleteEnvironmentConfiguration(DeleteEnvironmentConfigurationRequest deleteEnvironmentConfigurationRequest) { ExecutionContext executionContext = createExecutionContext(deleteEnvironmentConfigurationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteEnvironmentConfigurationRequestMarshaller().marshall(super.beforeMarshalling(deleteEnvironmentConfigurationRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Elastic Beanstalk"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteEnvironmentConfiguration"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } StaxResponseHandler responseHandler = new StaxResponseHandler( new DeleteEnvironmentConfigurationResultStaxUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

      * Deletes the specified version of a custom platform. *

      * * @param deletePlatformVersionRequest * @return Result of the DeletePlatformVersion operation returned by the service. * @throws OperationInProgressException * Unable to perform the specified operation because another operation that effects an element in this * activity is already in progress. * @throws InsufficientPrivilegesException * The specified account does not have sufficient privileges for one or more AWS services. * @throws ElasticBeanstalkServiceException * A generic service exception has occurred. * @throws PlatformVersionStillReferencedException * You cannot delete the platform version because there are still environments running on it. * @sample AWSElasticBeanstalk.DeletePlatformVersion * @see AWS API Documentation */ @Override public DeletePlatformVersionResult deletePlatformVersion(DeletePlatformVersionRequest request) { request = beforeClientExecution(request); return executeDeletePlatformVersion(request); } @SdkInternalApi final DeletePlatformVersionResult executeDeletePlatformVersion(DeletePlatformVersionRequest deletePlatformVersionRequest) { ExecutionContext executionContext = createExecutionContext(deletePlatformVersionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeletePlatformVersionRequestMarshaller().marshall(super.beforeMarshalling(deletePlatformVersionRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Elastic Beanstalk"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeletePlatformVersion"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } StaxResponseHandler responseHandler = new StaxResponseHandler( new DeletePlatformVersionResultStaxUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

      * Returns attributes related to AWS Elastic Beanstalk that are associated with the calling AWS account. *

      *

      * The result currently has one set of attributes—resource quotas. *

      * * @param describeAccountAttributesRequest * @return Result of the DescribeAccountAttributes operation returned by the service. * @throws InsufficientPrivilegesException * The specified account does not have sufficient privileges for one or more AWS services. * @sample AWSElasticBeanstalk.DescribeAccountAttributes * @see AWS API Documentation */ @Override public DescribeAccountAttributesResult describeAccountAttributes(DescribeAccountAttributesRequest request) { request = beforeClientExecution(request); return executeDescribeAccountAttributes(request); } @SdkInternalApi final DescribeAccountAttributesResult executeDescribeAccountAttributes(DescribeAccountAttributesRequest describeAccountAttributesRequest) { ExecutionContext executionContext = createExecutionContext(describeAccountAttributesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeAccountAttributesRequestMarshaller().marshall(super.beforeMarshalling(describeAccountAttributesRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Elastic Beanstalk"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeAccountAttributes"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } StaxResponseHandler responseHandler = new StaxResponseHandler( new DescribeAccountAttributesResultStaxUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

      * Retrieve a list of application versions. *

      * * @param describeApplicationVersionsRequest * Request to describe application versions. * @return Result of the DescribeApplicationVersions operation returned by the service. * @sample AWSElasticBeanstalk.DescribeApplicationVersions * @see AWS API Documentation */ @Override public DescribeApplicationVersionsResult describeApplicationVersions(DescribeApplicationVersionsRequest request) { request = beforeClientExecution(request); return executeDescribeApplicationVersions(request); } @SdkInternalApi final DescribeApplicationVersionsResult executeDescribeApplicationVersions(DescribeApplicationVersionsRequest describeApplicationVersionsRequest) { ExecutionContext executionContext = createExecutionContext(describeApplicationVersionsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeApplicationVersionsRequestMarshaller().marshall(super.beforeMarshalling(describeApplicationVersionsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Elastic Beanstalk"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeApplicationVersions"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } StaxResponseHandler responseHandler = new StaxResponseHandler( new DescribeApplicationVersionsResultStaxUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } @Override public DescribeApplicationVersionsResult describeApplicationVersions() { return describeApplicationVersions(new DescribeApplicationVersionsRequest()); } /** *

      * Returns the descriptions of existing applications. *

      * * @param describeApplicationsRequest * Request to describe one or more applications. * @return Result of the DescribeApplications operation returned by the service. * @sample AWSElasticBeanstalk.DescribeApplications * @see AWS API Documentation */ @Override public DescribeApplicationsResult describeApplications(DescribeApplicationsRequest request) { request = beforeClientExecution(request); return executeDescribeApplications(request); } @SdkInternalApi final DescribeApplicationsResult executeDescribeApplications(DescribeApplicationsRequest describeApplicationsRequest) { ExecutionContext executionContext = createExecutionContext(describeApplicationsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeApplicationsRequestMarshaller().marshall(super.beforeMarshalling(describeApplicationsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Elastic Beanstalk"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeApplications"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } StaxResponseHandler responseHandler = new StaxResponseHandler( new DescribeApplicationsResultStaxUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } @Override public DescribeApplicationsResult describeApplications() { return describeApplications(new DescribeApplicationsRequest()); } /** *

      * Describes the configuration options that are used in a particular configuration template or environment, or that * a specified solution stack defines. The description includes the values the options, their default values, and an * indication of the required action on a running environment if an option value is changed. *

      * * @param describeConfigurationOptionsRequest * Result message containing a list of application version descriptions. * @return Result of the DescribeConfigurationOptions operation returned by the service. * @throws TooManyBucketsException * The specified account has reached its limit of Amazon S3 buckets. * @sample AWSElasticBeanstalk.DescribeConfigurationOptions * @see AWS API Documentation */ @Override public DescribeConfigurationOptionsResult describeConfigurationOptions(DescribeConfigurationOptionsRequest request) { request = beforeClientExecution(request); return executeDescribeConfigurationOptions(request); } @SdkInternalApi final DescribeConfigurationOptionsResult executeDescribeConfigurationOptions(DescribeConfigurationOptionsRequest describeConfigurationOptionsRequest) { ExecutionContext executionContext = createExecutionContext(describeConfigurationOptionsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeConfigurationOptionsRequestMarshaller().marshall(super.beforeMarshalling(describeConfigurationOptionsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Elastic Beanstalk"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeConfigurationOptions"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } StaxResponseHandler responseHandler = new StaxResponseHandler( new DescribeConfigurationOptionsResultStaxUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

      * Returns a description of the settings for the specified configuration set, that is, either a configuration * template or the configuration set associated with a running environment. *

      *

      * When describing the settings for the configuration set associated with a running environment, it is possible to * receive two sets of setting descriptions. One is the deployed configuration set, and the other is a draft * configuration of an environment that is either in the process of deployment or that failed to deploy. *

      *

      * Related Topics *

      * * * @param describeConfigurationSettingsRequest * Result message containing all of the configuration settings for a specified solution stack or * configuration template. * @return Result of the DescribeConfigurationSettings operation returned by the service. * @throws TooManyBucketsException * The specified account has reached its limit of Amazon S3 buckets. * @sample AWSElasticBeanstalk.DescribeConfigurationSettings * @see AWS API Documentation */ @Override public DescribeConfigurationSettingsResult describeConfigurationSettings(DescribeConfigurationSettingsRequest request) { request = beforeClientExecution(request); return executeDescribeConfigurationSettings(request); } @SdkInternalApi final DescribeConfigurationSettingsResult executeDescribeConfigurationSettings(DescribeConfigurationSettingsRequest describeConfigurationSettingsRequest) { ExecutionContext executionContext = createExecutionContext(describeConfigurationSettingsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeConfigurationSettingsRequestMarshaller().marshall(super.beforeMarshalling(describeConfigurationSettingsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Elastic Beanstalk"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeConfigurationSettings"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } StaxResponseHandler responseHandler = new StaxResponseHandler( new DescribeConfigurationSettingsResultStaxUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

      * Returns information about the overall health of the specified environment. The DescribeEnvironmentHealth * operation is only available with AWS Elastic Beanstalk Enhanced Health. *

      * * @param describeEnvironmentHealthRequest * See the example below to learn how to create a request body. * @return Result of the DescribeEnvironmentHealth operation returned by the service. * @throws InvalidRequestException * One or more input parameters is not valid. Please correct the input parameters and try the operation * again. * @throws ElasticBeanstalkServiceException * A generic service exception has occurred. * @sample AWSElasticBeanstalk.DescribeEnvironmentHealth * @see AWS API Documentation */ @Override public DescribeEnvironmentHealthResult describeEnvironmentHealth(DescribeEnvironmentHealthRequest request) { request = beforeClientExecution(request); return executeDescribeEnvironmentHealth(request); } @SdkInternalApi final DescribeEnvironmentHealthResult executeDescribeEnvironmentHealth(DescribeEnvironmentHealthRequest describeEnvironmentHealthRequest) { ExecutionContext executionContext = createExecutionContext(describeEnvironmentHealthRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeEnvironmentHealthRequestMarshaller().marshall(super.beforeMarshalling(describeEnvironmentHealthRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Elastic Beanstalk"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeEnvironmentHealth"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } StaxResponseHandler responseHandler = new StaxResponseHandler( new DescribeEnvironmentHealthResultStaxUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

      * Lists an environment's completed and failed managed actions. *

      * * @param describeEnvironmentManagedActionHistoryRequest * Request to list completed and failed managed actions. * @return Result of the DescribeEnvironmentManagedActionHistory operation returned by the service. * @throws ElasticBeanstalkServiceException * A generic service exception has occurred. * @sample AWSElasticBeanstalk.DescribeEnvironmentManagedActionHistory * @see AWS API Documentation */ @Override public DescribeEnvironmentManagedActionHistoryResult describeEnvironmentManagedActionHistory(DescribeEnvironmentManagedActionHistoryRequest request) { request = beforeClientExecution(request); return executeDescribeEnvironmentManagedActionHistory(request); } @SdkInternalApi final DescribeEnvironmentManagedActionHistoryResult executeDescribeEnvironmentManagedActionHistory( DescribeEnvironmentManagedActionHistoryRequest describeEnvironmentManagedActionHistoryRequest) { ExecutionContext executionContext = createExecutionContext(describeEnvironmentManagedActionHistoryRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeEnvironmentManagedActionHistoryRequestMarshaller().marshall(super .beforeMarshalling(describeEnvironmentManagedActionHistoryRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Elastic Beanstalk"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeEnvironmentManagedActionHistory"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } StaxResponseHandler responseHandler = new StaxResponseHandler( new DescribeEnvironmentManagedActionHistoryResultStaxUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

      * Lists an environment's upcoming and in-progress managed actions. *

      * * @param describeEnvironmentManagedActionsRequest * Request to list an environment's upcoming and in-progress managed actions. * @return Result of the DescribeEnvironmentManagedActions operation returned by the service. * @throws ElasticBeanstalkServiceException * A generic service exception has occurred. * @sample AWSElasticBeanstalk.DescribeEnvironmentManagedActions * @see AWS API Documentation */ @Override public DescribeEnvironmentManagedActionsResult describeEnvironmentManagedActions(DescribeEnvironmentManagedActionsRequest request) { request = beforeClientExecution(request); return executeDescribeEnvironmentManagedActions(request); } @SdkInternalApi final DescribeEnvironmentManagedActionsResult executeDescribeEnvironmentManagedActions( DescribeEnvironmentManagedActionsRequest describeEnvironmentManagedActionsRequest) { ExecutionContext executionContext = createExecutionContext(describeEnvironmentManagedActionsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeEnvironmentManagedActionsRequestMarshaller().marshall(super.beforeMarshalling(describeEnvironmentManagedActionsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Elastic Beanstalk"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeEnvironmentManagedActions"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } StaxResponseHandler responseHandler = new StaxResponseHandler( new DescribeEnvironmentManagedActionsResultStaxUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

      * Returns AWS resources for this environment. *

      * * @param describeEnvironmentResourcesRequest * Request to describe the resources in an environment. * @return Result of the DescribeEnvironmentResources operation returned by the service. * @throws InsufficientPrivilegesException * The specified account does not have sufficient privileges for one or more AWS services. * @sample AWSElasticBeanstalk.DescribeEnvironmentResources * @see AWS API Documentation */ @Override public DescribeEnvironmentResourcesResult describeEnvironmentResources(DescribeEnvironmentResourcesRequest request) { request = beforeClientExecution(request); return executeDescribeEnvironmentResources(request); } @SdkInternalApi final DescribeEnvironmentResourcesResult executeDescribeEnvironmentResources(DescribeEnvironmentResourcesRequest describeEnvironmentResourcesRequest) { ExecutionContext executionContext = createExecutionContext(describeEnvironmentResourcesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeEnvironmentResourcesRequestMarshaller().marshall(super.beforeMarshalling(describeEnvironmentResourcesRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Elastic Beanstalk"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeEnvironmentResources"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } StaxResponseHandler responseHandler = new StaxResponseHandler( new DescribeEnvironmentResourcesResultStaxUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

      * Returns descriptions for existing environments. *

      * * @param describeEnvironmentsRequest * Request to describe one or more environments. * @return Result of the DescribeEnvironments operation returned by the service. * @sample AWSElasticBeanstalk.DescribeEnvironments * @see AWS API Documentation */ @Override public DescribeEnvironmentsResult describeEnvironments(DescribeEnvironmentsRequest request) { request = beforeClientExecution(request); return executeDescribeEnvironments(request); } @SdkInternalApi final DescribeEnvironmentsResult executeDescribeEnvironments(DescribeEnvironmentsRequest describeEnvironmentsRequest) { ExecutionContext executionContext = createExecutionContext(describeEnvironmentsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeEnvironmentsRequestMarshaller().marshall(super.beforeMarshalling(describeEnvironmentsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Elastic Beanstalk"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeEnvironments"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } StaxResponseHandler responseHandler = new StaxResponseHandler( new DescribeEnvironmentsResultStaxUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } @Override public DescribeEnvironmentsResult describeEnvironments() { return describeEnvironments(new DescribeEnvironmentsRequest()); } /** *

      * Returns list of event descriptions matching criteria up to the last 6 weeks. *

      * *

      * This action returns the most recent 1,000 events from the specified NextToken. *

      *
      * * @param describeEventsRequest * Request to retrieve a list of events for an environment. * @return Result of the DescribeEvents operation returned by the service. * @sample AWSElasticBeanstalk.DescribeEvents * @see AWS API Documentation */ @Override public DescribeEventsResult describeEvents(DescribeEventsRequest request) { request = beforeClientExecution(request); return executeDescribeEvents(request); } @SdkInternalApi final DescribeEventsResult executeDescribeEvents(DescribeEventsRequest describeEventsRequest) { ExecutionContext executionContext = createExecutionContext(describeEventsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeEventsRequestMarshaller().marshall(super.beforeMarshalling(describeEventsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Elastic Beanstalk"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeEvents"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } StaxResponseHandler responseHandler = new StaxResponseHandler( new DescribeEventsResultStaxUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } @Override public DescribeEventsResult describeEvents() { return describeEvents(new DescribeEventsRequest()); } /** *

      * Retrieves detailed information about the health of instances in your AWS Elastic Beanstalk. This operation * requires enhanced health * reporting. *

      * * @param describeInstancesHealthRequest * Parameters for a call to DescribeInstancesHealth. * @return Result of the DescribeInstancesHealth operation returned by the service. * @throws InvalidRequestException * One or more input parameters is not valid. Please correct the input parameters and try the operation * again. * @throws ElasticBeanstalkServiceException * A generic service exception has occurred. * @sample AWSElasticBeanstalk.DescribeInstancesHealth * @see AWS API Documentation */ @Override public DescribeInstancesHealthResult describeInstancesHealth(DescribeInstancesHealthRequest request) { request = beforeClientExecution(request); return executeDescribeInstancesHealth(request); } @SdkInternalApi final DescribeInstancesHealthResult executeDescribeInstancesHealth(DescribeInstancesHealthRequest describeInstancesHealthRequest) { ExecutionContext executionContext = createExecutionContext(describeInstancesHealthRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeInstancesHealthRequestMarshaller().marshall(super.beforeMarshalling(describeInstancesHealthRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Elastic Beanstalk"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeInstancesHealth"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } StaxResponseHandler responseHandler = new StaxResponseHandler( new DescribeInstancesHealthResultStaxUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

      * Describes a platform version. Provides full details. Compare to ListPlatformVersions, which provides * summary information about a list of platform versions. *

      *

      * For definitions of platform version and other platform-related terms, see AWS Elastic Beanstalk * Platforms Glossary. *

      * * @param describePlatformVersionRequest * @return Result of the DescribePlatformVersion operation returned by the service. * @throws InsufficientPrivilegesException * The specified account does not have sufficient privileges for one or more AWS services. * @throws ElasticBeanstalkServiceException * A generic service exception has occurred. * @sample AWSElasticBeanstalk.DescribePlatformVersion * @see AWS API Documentation */ @Override public DescribePlatformVersionResult describePlatformVersion(DescribePlatformVersionRequest request) { request = beforeClientExecution(request); return executeDescribePlatformVersion(request); } @SdkInternalApi final DescribePlatformVersionResult executeDescribePlatformVersion(DescribePlatformVersionRequest describePlatformVersionRequest) { ExecutionContext executionContext = createExecutionContext(describePlatformVersionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribePlatformVersionRequestMarshaller().marshall(super.beforeMarshalling(describePlatformVersionRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Elastic Beanstalk"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribePlatformVersion"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } StaxResponseHandler responseHandler = new StaxResponseHandler( new DescribePlatformVersionResultStaxUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

      * Disassociate the operations role from an environment. After this call is made, Elastic Beanstalk uses the * caller's permissions for permissions to downstream services during subsequent calls acting on this environment. * For more information, see Operations roles in the * AWS Elastic Beanstalk Developer Guide. *

      * * @param disassociateEnvironmentOperationsRoleRequest * Request to disassociate the operations role from an environment. * @return Result of the DisassociateEnvironmentOperationsRole operation returned by the service. * @throws InsufficientPrivilegesException * The specified account does not have sufficient privileges for one or more AWS services. * @sample AWSElasticBeanstalk.DisassociateEnvironmentOperationsRole * @see AWS API Documentation */ @Override public DisassociateEnvironmentOperationsRoleResult disassociateEnvironmentOperationsRole(DisassociateEnvironmentOperationsRoleRequest request) { request = beforeClientExecution(request); return executeDisassociateEnvironmentOperationsRole(request); } @SdkInternalApi final DisassociateEnvironmentOperationsRoleResult executeDisassociateEnvironmentOperationsRole( DisassociateEnvironmentOperationsRoleRequest disassociateEnvironmentOperationsRoleRequest) { ExecutionContext executionContext = createExecutionContext(disassociateEnvironmentOperationsRoleRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DisassociateEnvironmentOperationsRoleRequestMarshaller().marshall(super .beforeMarshalling(disassociateEnvironmentOperationsRoleRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Elastic Beanstalk"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DisassociateEnvironmentOperationsRole"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } StaxResponseHandler responseHandler = new StaxResponseHandler( new DisassociateEnvironmentOperationsRoleResultStaxUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

      * Returns a list of the available solution stack names, with the public version first and then in reverse * chronological order. *

      * * @param listAvailableSolutionStacksRequest * @return Result of the ListAvailableSolutionStacks operation returned by the service. * @sample AWSElasticBeanstalk.ListAvailableSolutionStacks * @see AWS API Documentation */ @Override public ListAvailableSolutionStacksResult listAvailableSolutionStacks(ListAvailableSolutionStacksRequest request) { request = beforeClientExecution(request); return executeListAvailableSolutionStacks(request); } @SdkInternalApi final ListAvailableSolutionStacksResult executeListAvailableSolutionStacks(ListAvailableSolutionStacksRequest listAvailableSolutionStacksRequest) { ExecutionContext executionContext = createExecutionContext(listAvailableSolutionStacksRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListAvailableSolutionStacksRequestMarshaller().marshall(super.beforeMarshalling(listAvailableSolutionStacksRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Elastic Beanstalk"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListAvailableSolutionStacks"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } StaxResponseHandler responseHandler = new StaxResponseHandler( new ListAvailableSolutionStacksResultStaxUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } @Override public ListAvailableSolutionStacksResult listAvailableSolutionStacks() { return listAvailableSolutionStacks(new ListAvailableSolutionStacksRequest()); } /** *

      * Lists the platform branches available for your account in an AWS Region. Provides summary information about each * platform branch. *

      *

      * For definitions of platform branch and other platform-related terms, see AWS Elastic Beanstalk * Platforms Glossary. *

      * * @param listPlatformBranchesRequest * @return Result of the ListPlatformBranches operation returned by the service. * @sample AWSElasticBeanstalk.ListPlatformBranches * @see AWS API Documentation */ @Override public ListPlatformBranchesResult listPlatformBranches(ListPlatformBranchesRequest request) { request = beforeClientExecution(request); return executeListPlatformBranches(request); } @SdkInternalApi final ListPlatformBranchesResult executeListPlatformBranches(ListPlatformBranchesRequest listPlatformBranchesRequest) { ExecutionContext executionContext = createExecutionContext(listPlatformBranchesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListPlatformBranchesRequestMarshaller().marshall(super.beforeMarshalling(listPlatformBranchesRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Elastic Beanstalk"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListPlatformBranches"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } StaxResponseHandler responseHandler = new StaxResponseHandler( new ListPlatformBranchesResultStaxUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

      * Lists the platform versions available for your account in an AWS Region. Provides summary information about each * platform version. Compare to DescribePlatformVersion, which provides full details about a single platform * version. *

      *

      * For definitions of platform version and other platform-related terms, see AWS Elastic Beanstalk * Platforms Glossary. *

      * * @param listPlatformVersionsRequest * @return Result of the ListPlatformVersions operation returned by the service. * @throws InsufficientPrivilegesException * The specified account does not have sufficient privileges for one or more AWS services. * @throws ElasticBeanstalkServiceException * A generic service exception has occurred. * @sample AWSElasticBeanstalk.ListPlatformVersions * @see AWS API Documentation */ @Override public ListPlatformVersionsResult listPlatformVersions(ListPlatformVersionsRequest request) { request = beforeClientExecution(request); return executeListPlatformVersions(request); } @SdkInternalApi final ListPlatformVersionsResult executeListPlatformVersions(ListPlatformVersionsRequest listPlatformVersionsRequest) { ExecutionContext executionContext = createExecutionContext(listPlatformVersionsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListPlatformVersionsRequestMarshaller().marshall(super.beforeMarshalling(listPlatformVersionsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Elastic Beanstalk"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListPlatformVersions"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } StaxResponseHandler responseHandler = new StaxResponseHandler( new ListPlatformVersionsResultStaxUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

      * Return the tags applied to an AWS Elastic Beanstalk resource. The response contains a list of tag key-value * pairs. *

      *

      * Elastic Beanstalk supports tagging of all of its resources. For details about resource tagging, see Tagging * Application Resources. *

      * * @param listTagsForResourceRequest * @return Result of the ListTagsForResource operation returned by the service. * @throws InsufficientPrivilegesException * The specified account does not have sufficient privileges for one or more AWS services. * @throws ResourceNotFoundException * A resource doesn't exist for the specified Amazon Resource Name (ARN). * @throws ResourceTypeNotSupportedException * The type of the specified Amazon Resource Name (ARN) isn't supported for this operation. * @sample AWSElasticBeanstalk.ListTagsForResource * @see AWS API Documentation */ @Override public ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest request) { request = beforeClientExecution(request); return executeListTagsForResource(request); } @SdkInternalApi final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) { ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListTagsForResourceRequestMarshaller().marshall(super.beforeMarshalling(listTagsForResourceRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Elastic Beanstalk"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListTagsForResource"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } StaxResponseHandler responseHandler = new StaxResponseHandler( new ListTagsForResourceResultStaxUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

      * Deletes and recreates all of the AWS resources (for example: the Auto Scaling group, load balancer, etc.) for a * specified environment and forces a restart. *

      * * @param rebuildEnvironmentRequest * @return Result of the RebuildEnvironment operation returned by the service. * @throws InsufficientPrivilegesException * The specified account does not have sufficient privileges for one or more AWS services. * @sample AWSElasticBeanstalk.RebuildEnvironment * @see AWS API Documentation */ @Override public RebuildEnvironmentResult rebuildEnvironment(RebuildEnvironmentRequest request) { request = beforeClientExecution(request); return executeRebuildEnvironment(request); } @SdkInternalApi final RebuildEnvironmentResult executeRebuildEnvironment(RebuildEnvironmentRequest rebuildEnvironmentRequest) { ExecutionContext executionContext = createExecutionContext(rebuildEnvironmentRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new RebuildEnvironmentRequestMarshaller().marshall(super.beforeMarshalling(rebuildEnvironmentRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Elastic Beanstalk"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "RebuildEnvironment"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } StaxResponseHandler responseHandler = new StaxResponseHandler( new RebuildEnvironmentResultStaxUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

      * Initiates a request to compile the specified type of information of the deployed environment. *

      *

      * Setting the InfoType to tail compiles the last lines from the application server log * files of every Amazon EC2 instance in your environment. *

      *

      * Setting the InfoType to bundle compresses the application server log files for every * Amazon EC2 instance into a .zip file. Legacy and .NET containers do not support bundle logs. *

      *

      * Use RetrieveEnvironmentInfo to obtain the set of logs. *

      *

      * Related Topics *

      * * * @param requestEnvironmentInfoRequest * Request to retrieve logs from an environment and store them in your Elastic Beanstalk storage bucket. * @return Result of the RequestEnvironmentInfo operation returned by the service. * @sample AWSElasticBeanstalk.RequestEnvironmentInfo * @see AWS API Documentation */ @Override public RequestEnvironmentInfoResult requestEnvironmentInfo(RequestEnvironmentInfoRequest request) { request = beforeClientExecution(request); return executeRequestEnvironmentInfo(request); } @SdkInternalApi final RequestEnvironmentInfoResult executeRequestEnvironmentInfo(RequestEnvironmentInfoRequest requestEnvironmentInfoRequest) { ExecutionContext executionContext = createExecutionContext(requestEnvironmentInfoRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new RequestEnvironmentInfoRequestMarshaller().marshall(super.beforeMarshalling(requestEnvironmentInfoRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Elastic Beanstalk"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "RequestEnvironmentInfo"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } StaxResponseHandler responseHandler = new StaxResponseHandler( new RequestEnvironmentInfoResultStaxUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

      * Causes the environment to restart the application container server running on each Amazon EC2 instance. *

      * * @param restartAppServerRequest * @return Result of the RestartAppServer operation returned by the service. * @sample AWSElasticBeanstalk.RestartAppServer * @see AWS API Documentation */ @Override public RestartAppServerResult restartAppServer(RestartAppServerRequest request) { request = beforeClientExecution(request); return executeRestartAppServer(request); } @SdkInternalApi final RestartAppServerResult executeRestartAppServer(RestartAppServerRequest restartAppServerRequest) { ExecutionContext executionContext = createExecutionContext(restartAppServerRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new RestartAppServerRequestMarshaller().marshall(super.beforeMarshalling(restartAppServerRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Elastic Beanstalk"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "RestartAppServer"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } StaxResponseHandler responseHandler = new StaxResponseHandler( new RestartAppServerResultStaxUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

      * Retrieves the compiled information from a RequestEnvironmentInfo request. *

      *

      * Related Topics *

      * * * @param retrieveEnvironmentInfoRequest * Request to download logs retrieved with RequestEnvironmentInfo. * @return Result of the RetrieveEnvironmentInfo operation returned by the service. * @sample AWSElasticBeanstalk.RetrieveEnvironmentInfo * @see AWS API Documentation */ @Override public RetrieveEnvironmentInfoResult retrieveEnvironmentInfo(RetrieveEnvironmentInfoRequest request) { request = beforeClientExecution(request); return executeRetrieveEnvironmentInfo(request); } @SdkInternalApi final RetrieveEnvironmentInfoResult executeRetrieveEnvironmentInfo(RetrieveEnvironmentInfoRequest retrieveEnvironmentInfoRequest) { ExecutionContext executionContext = createExecutionContext(retrieveEnvironmentInfoRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new RetrieveEnvironmentInfoRequestMarshaller().marshall(super.beforeMarshalling(retrieveEnvironmentInfoRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Elastic Beanstalk"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "RetrieveEnvironmentInfo"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } StaxResponseHandler responseHandler = new StaxResponseHandler( new RetrieveEnvironmentInfoResultStaxUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

      * Swaps the CNAMEs of two environments. *

      * * @param swapEnvironmentCNAMEsRequest * Swaps the CNAMEs of two environments. * @return Result of the SwapEnvironmentCNAMEs operation returned by the service. * @sample AWSElasticBeanstalk.SwapEnvironmentCNAMEs * @see AWS API Documentation */ @Override public SwapEnvironmentCNAMEsResult swapEnvironmentCNAMEs(SwapEnvironmentCNAMEsRequest request) { request = beforeClientExecution(request); return executeSwapEnvironmentCNAMEs(request); } @SdkInternalApi final SwapEnvironmentCNAMEsResult executeSwapEnvironmentCNAMEs(SwapEnvironmentCNAMEsRequest swapEnvironmentCNAMEsRequest) { ExecutionContext executionContext = createExecutionContext(swapEnvironmentCNAMEsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new SwapEnvironmentCNAMEsRequestMarshaller().marshall(super.beforeMarshalling(swapEnvironmentCNAMEsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Elastic Beanstalk"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "SwapEnvironmentCNAMEs"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } StaxResponseHandler responseHandler = new StaxResponseHandler( new SwapEnvironmentCNAMEsResultStaxUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } @Override public SwapEnvironmentCNAMEsResult swapEnvironmentCNAMEs() { return swapEnvironmentCNAMEs(new SwapEnvironmentCNAMEsRequest()); } /** *

      * Terminates the specified environment. *

      * * @param terminateEnvironmentRequest * Request to terminate an environment. * @return Result of the TerminateEnvironment operation returned by the service. * @throws InsufficientPrivilegesException * The specified account does not have sufficient privileges for one or more AWS services. * @sample AWSElasticBeanstalk.TerminateEnvironment * @see AWS API Documentation */ @Override public TerminateEnvironmentResult terminateEnvironment(TerminateEnvironmentRequest request) { request = beforeClientExecution(request); return executeTerminateEnvironment(request); } @SdkInternalApi final TerminateEnvironmentResult executeTerminateEnvironment(TerminateEnvironmentRequest terminateEnvironmentRequest) { ExecutionContext executionContext = createExecutionContext(terminateEnvironmentRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new TerminateEnvironmentRequestMarshaller().marshall(super.beforeMarshalling(terminateEnvironmentRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Elastic Beanstalk"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "TerminateEnvironment"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } StaxResponseHandler responseHandler = new StaxResponseHandler( new TerminateEnvironmentResultStaxUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

      * Updates the specified application to have the specified properties. *

      * *

      * If a property (for example, description) is not provided, the value remains unchanged. To clear * these properties, specify an empty string. *

      *
      * * @param updateApplicationRequest * Request to update an application. * @return Result of the UpdateApplication operation returned by the service. * @sample AWSElasticBeanstalk.UpdateApplication * @see AWS API Documentation */ @Override public UpdateApplicationResult updateApplication(UpdateApplicationRequest request) { request = beforeClientExecution(request); return executeUpdateApplication(request); } @SdkInternalApi final UpdateApplicationResult executeUpdateApplication(UpdateApplicationRequest updateApplicationRequest) { ExecutionContext executionContext = createExecutionContext(updateApplicationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateApplicationRequestMarshaller().marshall(super.beforeMarshalling(updateApplicationRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Elastic Beanstalk"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateApplication"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } StaxResponseHandler responseHandler = new StaxResponseHandler( new UpdateApplicationResultStaxUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

      * Modifies lifecycle settings for an application. *

      * * @param updateApplicationResourceLifecycleRequest * @return Result of the UpdateApplicationResourceLifecycle operation returned by the service. * @throws InsufficientPrivilegesException * The specified account does not have sufficient privileges for one or more AWS services. * @sample AWSElasticBeanstalk.UpdateApplicationResourceLifecycle * @see AWS API Documentation */ @Override public UpdateApplicationResourceLifecycleResult updateApplicationResourceLifecycle(UpdateApplicationResourceLifecycleRequest request) { request = beforeClientExecution(request); return executeUpdateApplicationResourceLifecycle(request); } @SdkInternalApi final UpdateApplicationResourceLifecycleResult executeUpdateApplicationResourceLifecycle( UpdateApplicationResourceLifecycleRequest updateApplicationResourceLifecycleRequest) { ExecutionContext executionContext = createExecutionContext(updateApplicationResourceLifecycleRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateApplicationResourceLifecycleRequestMarshaller() .marshall(super.beforeMarshalling(updateApplicationResourceLifecycleRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Elastic Beanstalk"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateApplicationResourceLifecycle"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } StaxResponseHandler responseHandler = new StaxResponseHandler( new UpdateApplicationResourceLifecycleResultStaxUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

      * Updates the specified application version to have the specified properties. *

      * *

      * If a property (for example, description) is not provided, the value remains unchanged. To clear * properties, specify an empty string. *

      *
      * * @param updateApplicationVersionRequest * @return Result of the UpdateApplicationVersion operation returned by the service. * @sample AWSElasticBeanstalk.UpdateApplicationVersion * @see AWS API Documentation */ @Override public UpdateApplicationVersionResult updateApplicationVersion(UpdateApplicationVersionRequest request) { request = beforeClientExecution(request); return executeUpdateApplicationVersion(request); } @SdkInternalApi final UpdateApplicationVersionResult executeUpdateApplicationVersion(UpdateApplicationVersionRequest updateApplicationVersionRequest) { ExecutionContext executionContext = createExecutionContext(updateApplicationVersionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateApplicationVersionRequestMarshaller().marshall(super.beforeMarshalling(updateApplicationVersionRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Elastic Beanstalk"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateApplicationVersion"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } StaxResponseHandler responseHandler = new StaxResponseHandler( new UpdateApplicationVersionResultStaxUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

      * Updates the specified configuration template to have the specified properties or configuration option values. *

      * *

      * If a property (for example, ApplicationName) is not provided, its value remains unchanged. To clear * such properties, specify an empty string. *

      *
      *

      * Related Topics *

      * * * @param updateConfigurationTemplateRequest * The result message containing the options for the specified solution stack. * @return Result of the UpdateConfigurationTemplate operation returned by the service. * @throws InsufficientPrivilegesException * The specified account does not have sufficient privileges for one or more AWS services. * @throws TooManyBucketsException * The specified account has reached its limit of Amazon S3 buckets. * @sample AWSElasticBeanstalk.UpdateConfigurationTemplate * @see AWS API Documentation */ @Override public UpdateConfigurationTemplateResult updateConfigurationTemplate(UpdateConfigurationTemplateRequest request) { request = beforeClientExecution(request); return executeUpdateConfigurationTemplate(request); } @SdkInternalApi final UpdateConfigurationTemplateResult executeUpdateConfigurationTemplate(UpdateConfigurationTemplateRequest updateConfigurationTemplateRequest) { ExecutionContext executionContext = createExecutionContext(updateConfigurationTemplateRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateConfigurationTemplateRequestMarshaller().marshall(super.beforeMarshalling(updateConfigurationTemplateRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Elastic Beanstalk"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateConfigurationTemplate"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } StaxResponseHandler responseHandler = new StaxResponseHandler( new UpdateConfigurationTemplateResultStaxUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

      * Updates the environment description, deploys a new application version, updates the configuration settings to an * entirely new configuration template, or updates select configuration option values in the running environment. *

      *

      * Attempting to update both the release and configuration is not allowed and AWS Elastic Beanstalk returns an * InvalidParameterCombination error. *

      *

      * When updating the configuration settings to a new template or individual settings, a draft configuration is * created and DescribeConfigurationSettings for this environment returns two setting descriptions with * different DeploymentStatus values. *

      * * @param updateEnvironmentRequest * Request to update an environment. * @return Result of the UpdateEnvironment operation returned by the service. * @throws InsufficientPrivilegesException * The specified account does not have sufficient privileges for one or more AWS services. * @throws TooManyBucketsException * The specified account has reached its limit of Amazon S3 buckets. * @sample AWSElasticBeanstalk.UpdateEnvironment * @see AWS API Documentation */ @Override public UpdateEnvironmentResult updateEnvironment(UpdateEnvironmentRequest request) { request = beforeClientExecution(request); return executeUpdateEnvironment(request); } @SdkInternalApi final UpdateEnvironmentResult executeUpdateEnvironment(UpdateEnvironmentRequest updateEnvironmentRequest) { ExecutionContext executionContext = createExecutionContext(updateEnvironmentRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateEnvironmentRequestMarshaller().marshall(super.beforeMarshalling(updateEnvironmentRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Elastic Beanstalk"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateEnvironment"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } StaxResponseHandler responseHandler = new StaxResponseHandler( new UpdateEnvironmentResultStaxUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

      * Update the list of tags applied to an AWS Elastic Beanstalk resource. Two lists can be passed: * TagsToAdd for tags to add or update, and TagsToRemove. *

      *

      * Elastic Beanstalk supports tagging of all of its resources. For details about resource tagging, see Tagging * Application Resources. *

      *

      * If you create a custom IAM user policy to control permission to this operation, specify one of the following two * virtual actions (or both) instead of the API operation name: *

      *
      *
      elasticbeanstalk:AddTags
      *
      *

      * Controls permission to call UpdateTagsForResource and pass a list of tags to add in the * TagsToAdd parameter. *

      *
      *
      elasticbeanstalk:RemoveTags
      *
      *

      * Controls permission to call UpdateTagsForResource and pass a list of tag keys to remove in the * TagsToRemove parameter. *

      *
      *
      *

      * For details about creating a custom user policy, see Creating a Custom User Policy. *

      * * @param updateTagsForResourceRequest * @return Result of the UpdateTagsForResource operation returned by the service. * @throws InsufficientPrivilegesException * The specified account does not have sufficient privileges for one or more AWS services. * @throws OperationInProgressException * Unable to perform the specified operation because another operation that effects an element in this * activity is already in progress. * @throws TooManyTagsException * The number of tags in the resource would exceed the number of tags that each resource can have.

      *

      * To calculate this, the operation considers both the number of tags the resource already has and the tags * this operation would add if it succeeded. * @throws ResourceNotFoundException * A resource doesn't exist for the specified Amazon Resource Name (ARN). * @throws ResourceTypeNotSupportedException * The type of the specified Amazon Resource Name (ARN) isn't supported for this operation. * @sample AWSElasticBeanstalk.UpdateTagsForResource * @see AWS API Documentation */ @Override public UpdateTagsForResourceResult updateTagsForResource(UpdateTagsForResourceRequest request) { request = beforeClientExecution(request); return executeUpdateTagsForResource(request); } @SdkInternalApi final UpdateTagsForResourceResult executeUpdateTagsForResource(UpdateTagsForResourceRequest updateTagsForResourceRequest) { ExecutionContext executionContext = createExecutionContext(updateTagsForResourceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateTagsForResourceRequestMarshaller().marshall(super.beforeMarshalling(updateTagsForResourceRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Elastic Beanstalk"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateTagsForResource"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } StaxResponseHandler responseHandler = new StaxResponseHandler( new UpdateTagsForResourceResultStaxUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

      * Takes a set of configuration settings and either a configuration template or environment, and determines whether * those values are valid. *

      *

      * This action returns a list of messages indicating any errors or warnings associated with the selection of option * values. *

      * * @param validateConfigurationSettingsRequest * A list of validation messages for a specified configuration template. * @return Result of the ValidateConfigurationSettings operation returned by the service. * @throws InsufficientPrivilegesException * The specified account does not have sufficient privileges for one or more AWS services. * @throws TooManyBucketsException * The specified account has reached its limit of Amazon S3 buckets. * @sample AWSElasticBeanstalk.ValidateConfigurationSettings * @see AWS API Documentation */ @Override public ValidateConfigurationSettingsResult validateConfigurationSettings(ValidateConfigurationSettingsRequest request) { request = beforeClientExecution(request); return executeValidateConfigurationSettings(request); } @SdkInternalApi final ValidateConfigurationSettingsResult executeValidateConfigurationSettings(ValidateConfigurationSettingsRequest validateConfigurationSettingsRequest) { ExecutionContext executionContext = createExecutionContext(validateConfigurationSettingsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ValidateConfigurationSettingsRequestMarshaller().marshall(super.beforeMarshalling(validateConfigurationSettingsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Elastic Beanstalk"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ValidateConfigurationSettings"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } StaxResponseHandler responseHandler = new StaxResponseHandler( new ValidateConfigurationSettingsResultStaxUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** * Returns additional metadata for a previously executed successful, request, typically used for debugging issues * where a service isn't acting as expected. This data isn't considered part of the result data returned by an * operation, so it's available through this separate, diagnostic interface. *

      * Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic * information for an executed request, you should use this method to retrieve it as soon as possible after * executing the request. * * @param request * The originally executed request * * @return The response metadata for the specified request, or null if none is available. */ public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request) { return client.getResponseMetadataForRequest(request); } /** * Normal invoke with authentication. Credentials are required and may be overriden at the request level. **/ private Response invoke(Request request, HttpResponseHandler> responseHandler, ExecutionContext executionContext) { return invoke(request, responseHandler, executionContext, null, null); } /** * Normal invoke with authentication. Credentials are required and may be overriden at the request level. **/ private Response invoke(Request request, HttpResponseHandler> responseHandler, ExecutionContext executionContext, URI cachedEndpoint, URI uriFromEndpointTrait) { executionContext.setCredentialsProvider(CredentialUtils.getCredentialsProvider(request.getOriginalRequest(), awsCredentialsProvider)); return doInvoke(request, responseHandler, executionContext, cachedEndpoint, uriFromEndpointTrait); } /** * Invoke with no authentication. Credentials are not required and any credentials set on the client or request will * be ignored for this operation. **/ private Response anonymousInvoke(Request request, HttpResponseHandler> responseHandler, ExecutionContext executionContext) { return doInvoke(request, responseHandler, executionContext, null, null); } /** * Invoke the request using the http client. Assumes credentials (or lack thereof) have been configured in the * ExecutionContext beforehand. **/ private Response doInvoke(Request request, HttpResponseHandler> responseHandler, ExecutionContext executionContext, URI discoveredEndpoint, URI uriFromEndpointTrait) { if (discoveredEndpoint != null) { request.setEndpoint(discoveredEndpoint); request.getOriginalRequest().getRequestClientOptions().appendUserAgent("endpoint-discovery"); } else if (uriFromEndpointTrait != null) { request.setEndpoint(uriFromEndpointTrait); } else { request.setEndpoint(endpoint); } request.setTimeOffset(timeOffset); DefaultErrorResponseHandler errorResponseHandler = new DefaultErrorResponseHandler(exceptionUnmarshallersMap, defaultUnmarshaller); return client.execute(request, responseHandler, errorResponseHandler, executionContext); } @Override public AWSElasticBeanstalkWaiters waiters() { if (waiters == null) { synchronized (this) { if (waiters == null) { waiters = new AWSElasticBeanstalkWaiters(this); } } } return waiters; } @Override public void shutdown() { super.shutdown(); if (waiters != null) { waiters.shutdown(); } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy