private void init() { exceptionUnmarshallers.add(new S3LocationNotInServiceRegionExceptionUnmarshaller()); exceptionUnmarshallers.add(new InvalidRequestExceptionUnmarshaller()); exceptionUnmarshallers.add(new ManagedActionInvalidStateExceptionUnmarshaller()); exceptionUnmarshallers.add(new InsufficientPrivilegesExceptionUnmarshaller()); exceptionUnmarshallers.add(new TooManyPlatformsExceptionUnmarshaller()); exceptionUnmarshallers.add(new TooManyApplicationVersionsExceptionUnmarshaller()); exceptionUnmarshallers.add(new CodeBuildNotInServiceRegionExceptionUnmarshaller()); exceptionUnmarshallers.add(new S3SubscriptionRequiredExceptionUnmarshaller()); exceptionUnmarshallers.add(new SourceBundleDeletionExceptionUnmarshaller()); exceptionUnmarshallers.add(new TooManyConfigurationTemplatesExceptionUnmarshaller()); exceptionUnmarshallers.add(new ResourceTypeNotSupportedExceptionUnmarshaller()); exceptionUnmarshallers.add(new TooManyTagsExceptionUnmarshaller()); exceptionUnmarshallers.add(new ResourceNotFoundExceptionUnmarshaller()); exceptionUnmarshallers.add(new TooManyApplicationsExceptionUnmarshaller()); exceptionUnmarshallers.add(new OperationInProgressExceptionUnmarshaller()); exceptionUnmarshallers.add(new TooManyEnvironmentsExceptionUnmarshaller()); exceptionUnmarshallers.add(new TooManyBucketsExceptionUnmarshaller()); exceptionUnmarshallers.add(new ElasticBeanstalkServiceExceptionUnmarshaller()); exceptionUnmarshallers.add(new PlatformVersionStillReferencedExceptionUnmarshaller()); 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()); }
@Override public AWSElasticBeanstalkClient getService() { final AWSElasticBeanstalkClient service = super.getService(); if (isNotBlank(endpointUrl)) { service.setEndpoint(endpointUrl); } return service; } }
private void init() { exceptionUnmarshallers.add(new S3LocationNotInServiceRegionExceptionUnmarshaller()); exceptionUnmarshallers.add(new InvalidRequestExceptionUnmarshaller()); exceptionUnmarshallers.add(new ManagedActionInvalidStateExceptionUnmarshaller()); exceptionUnmarshallers.add(new InsufficientPrivilegesExceptionUnmarshaller()); exceptionUnmarshallers.add(new TooManyPlatformsExceptionUnmarshaller()); exceptionUnmarshallers.add(new TooManyApplicationVersionsExceptionUnmarshaller()); exceptionUnmarshallers.add(new CodeBuildNotInServiceRegionExceptionUnmarshaller()); exceptionUnmarshallers.add(new S3SubscriptionRequiredExceptionUnmarshaller()); exceptionUnmarshallers.add(new SourceBundleDeletionExceptionUnmarshaller()); exceptionUnmarshallers.add(new TooManyConfigurationTemplatesExceptionUnmarshaller()); exceptionUnmarshallers.add(new ResourceTypeNotSupportedExceptionUnmarshaller()); exceptionUnmarshallers.add(new TooManyTagsExceptionUnmarshaller()); exceptionUnmarshallers.add(new ResourceNotFoundExceptionUnmarshaller()); exceptionUnmarshallers.add(new TooManyApplicationsExceptionUnmarshaller()); exceptionUnmarshallers.add(new OperationInProgressExceptionUnmarshaller()); exceptionUnmarshallers.add(new TooManyEnvironmentsExceptionUnmarshaller()); exceptionUnmarshallers.add(new TooManyBucketsExceptionUnmarshaller()); exceptionUnmarshallers.add(new ElasticBeanstalkServiceExceptionUnmarshaller()); exceptionUnmarshallers.add(new PlatformVersionStillReferencedExceptionUnmarshaller()); 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()); }
public BeanstalkConnector(String login, String pass, String region) { awsCredentials = new BasicAWSCredentials(login, pass); beanstalkClient = new AWSElasticBeanstalkClient(awsCredentials); this.beanstalkEndpoint = String.format("elasticbeanstalk.%s.amazonaws.com", region); beanstalkClient.setEndpoint(beanstalkEndpoint); this.rdsEndpoint = String.format("rds.%s.amazonaws.com", region); rdsClient = new AmazonRDSClient(awsCredentials); rdsClient.setEndpoint(rdsEndpoint); this.sqsEndpoint = String.format("sqs.%s.amazonaws.com", region); sqsClient=new AmazonSQSAsyncClient(awsCredentials); sqsClient.setEndpoint(this.sqsEndpoint); }