Start line:  
End line:  

Snippet Preview

Snippet HTML Code

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

  
  public class AmazonCloudFrontClient extends AmazonWebServiceClient implements AmazonCloudFront {

    
Provider for AWS credentials.
  
      private AWSCredentialsProvider awsCredentialsProvider;

    
List of exception unmarshallers for all AmazonCloudFront exceptions.
  
              = new ArrayList<Unmarshaller<AmazonServiceExceptionNode>>();

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    

Delete a distribution.

Parameters:
deleteDistributionRequest Container for the necessary parameters to execute the DeleteDistribution service method on AmazonCloudFront.
Throws:
com.amazonaws.services.cloudfront.model.InvalidIfMatchVersionException
com.amazonaws.services.cloudfront.model.NoSuchDistributionException
com.amazonaws.services.cloudfront.model.DistributionNotDisabledException
com.amazonaws.services.cloudfront.model.PreconditionFailedException
com.amazonaws.services.cloudfront.model.AccessDeniedException
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
 
     public void deleteDistribution(DeleteDistributionRequest deleteDistributionRequest) {
         ExecutionContext executionContext = createExecutionContext(deleteDistributionRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         Request<DeleteDistributionRequestrequest = null;
         awsRequestMetrics.startEvent(.);
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new DeleteDistributionRequestMarshaller().marshall(super.beforeMarshalling(deleteDistributionRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             invoke(requestnullexecutionContext);
 
         } finally {
             
             endClientExecution(awsRequestMetricsrequestnull);
         }
     }
    
    

Update a distribution.

Parameters:
updateDistributionRequest Container for the necessary parameters to execute the UpdateDistribution service method on AmazonCloudFront.
Returns:
The response from the UpdateDistribution service method, as returned by AmazonCloudFront.
Throws:
com.amazonaws.services.cloudfront.model.TooManyCookieNamesInWhiteListException
com.amazonaws.services.cloudfront.model.InvalidGeoRestrictionParameterException
com.amazonaws.services.cloudfront.model.InvalidResponseCodeException
com.amazonaws.services.cloudfront.model.TooManyHeadersInForwardedValuesException
com.amazonaws.services.cloudfront.model.MissingBodyException
com.amazonaws.services.cloudfront.model.TooManyDistributionCNAMEsException
com.amazonaws.services.cloudfront.model.InvalidLocationCodeException
com.amazonaws.services.cloudfront.model.NoSuchOriginException
com.amazonaws.services.cloudfront.model.PreconditionFailedException
com.amazonaws.services.cloudfront.model.CNAMEAlreadyExistsException
com.amazonaws.services.cloudfront.model.InvalidArgumentException
com.amazonaws.services.cloudfront.model.InconsistentQuantitiesException
com.amazonaws.services.cloudfront.model.InvalidOriginAccessIdentityException
com.amazonaws.services.cloudfront.model.TooManyCacheBehaviorsException
com.amazonaws.services.cloudfront.model.TooManyTrustedSignersException
com.amazonaws.services.cloudfront.model.NoSuchDistributionException
com.amazonaws.services.cloudfront.model.InvalidViewerCertificateException
com.amazonaws.services.cloudfront.model.TooManyOriginsException
com.amazonaws.services.cloudfront.model.InvalidRequiredProtocolException
com.amazonaws.services.cloudfront.model.InvalidDefaultRootObjectException
com.amazonaws.services.cloudfront.model.InvalidIfMatchVersionException
com.amazonaws.services.cloudfront.model.IllegalUpdateException
com.amazonaws.services.cloudfront.model.InvalidForwardCookiesException
com.amazonaws.services.cloudfront.model.InvalidHeadersForS3OriginException
com.amazonaws.services.cloudfront.model.TrustedSignerDoesNotExistException
com.amazonaws.services.cloudfront.model.TooManyCertificatesException
com.amazonaws.services.cloudfront.model.InvalidRelativePathException
com.amazonaws.services.cloudfront.model.InvalidErrorCodeException
com.amazonaws.services.cloudfront.model.AccessDeniedException
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
 
     public UpdateDistributionResult updateDistribution(UpdateDistributionRequest updateDistributionRequest) {
         ExecutionContext executionContext = createExecutionContext(updateDistributionRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<UpdateDistributionRequestrequest = null;
         Response<UpdateDistributionResultresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new UpdateDistributionRequestMarshaller().marshall(super.beforeMarshalling(updateDistributionRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             response = invoke(requestnew UpdateDistributionResultStaxUnmarshaller(), executionContext);
             return response.getAwsResponse();
 
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }
    
    

List invalidation batches.

Parameters:
listInvalidationsRequest Container for the necessary parameters to execute the ListInvalidations service method on AmazonCloudFront.
Returns:
The response from the ListInvalidations service method, as returned by AmazonCloudFront.
Throws:
com.amazonaws.services.cloudfront.model.NoSuchDistributionException
com.amazonaws.services.cloudfront.model.InvalidArgumentException
com.amazonaws.services.cloudfront.model.AccessDeniedException
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
 
     public ListInvalidationsResult listInvalidations(ListInvalidationsRequest listInvalidationsRequest) {
         ExecutionContext executionContext = createExecutionContext(listInvalidationsRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<ListInvalidationsRequestrequest = null;
         Response<ListInvalidationsResultresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new ListInvalidationsRequestMarshaller().marshall(super.beforeMarshalling(listInvalidationsRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             response = invoke(requestnew ListInvalidationsResultStaxUnmarshaller(), executionContext);
             return response.getAwsResponse();
 
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }
    
    

Update a streaming distribution.

Parameters:
updateStreamingDistributionRequest Container for the necessary parameters to execute the UpdateStreamingDistribution service method on AmazonCloudFront.
Returns:
The response from the UpdateStreamingDistribution service method, as returned by AmazonCloudFront.
Throws:
com.amazonaws.services.cloudfront.model.InvalidIfMatchVersionException
com.amazonaws.services.cloudfront.model.IllegalUpdateException
com.amazonaws.services.cloudfront.model.MissingBodyException
com.amazonaws.services.cloudfront.model.PreconditionFailedException
com.amazonaws.services.cloudfront.model.CNAMEAlreadyExistsException
com.amazonaws.services.cloudfront.model.InvalidArgumentException
com.amazonaws.services.cloudfront.model.InconsistentQuantitiesException
com.amazonaws.services.cloudfront.model.InvalidOriginAccessIdentityException
com.amazonaws.services.cloudfront.model.TrustedSignerDoesNotExistException
com.amazonaws.services.cloudfront.model.TooManyTrustedSignersException
com.amazonaws.services.cloudfront.model.NoSuchStreamingDistributionException
com.amazonaws.services.cloudfront.model.TooManyStreamingDistributionCNAMEsException
com.amazonaws.services.cloudfront.model.AccessDeniedException
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
 
         ExecutionContext executionContext = createExecutionContext(updateStreamingDistributionRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<UpdateStreamingDistributionRequestrequest = null;
         Response<UpdateStreamingDistributionResultresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new UpdateStreamingDistributionRequestMarshaller().marshall(super.beforeMarshalling(updateStreamingDistributionRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             response = invoke(requestnew UpdateStreamingDistributionResultStaxUnmarshaller(), executionContext);
             return response.getAwsResponse();
 
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }
    
    

Get the information about a streaming distribution.

Parameters:
getStreamingDistributionRequest Container for the necessary parameters to execute the GetStreamingDistribution service method on AmazonCloudFront.
Returns:
The response from the GetStreamingDistribution service method, as returned by AmazonCloudFront.
Throws:
com.amazonaws.services.cloudfront.model.NoSuchStreamingDistributionException
com.amazonaws.services.cloudfront.model.AccessDeniedException
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
 
         ExecutionContext executionContext = createExecutionContext(getStreamingDistributionRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<GetStreamingDistributionRequestrequest = null;
         Response<GetStreamingDistributionResultresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new GetStreamingDistributionRequestMarshaller().marshall(super.beforeMarshalling(getStreamingDistributionRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             response = invoke(requestnew GetStreamingDistributionResultStaxUnmarshaller(), executionContext);
             return response.getAwsResponse();
 
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }
    
    

Delete a streaming distribution.

Parameters:
deleteStreamingDistributionRequest Container for the necessary parameters to execute the DeleteStreamingDistribution service method on AmazonCloudFront.
Throws:
com.amazonaws.services.cloudfront.model.InvalidIfMatchVersionException
com.amazonaws.services.cloudfront.model.NoSuchStreamingDistributionException
com.amazonaws.services.cloudfront.model.StreamingDistributionNotDisabledException
com.amazonaws.services.cloudfront.model.PreconditionFailedException
com.amazonaws.services.cloudfront.model.AccessDeniedException
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
 
     public void deleteStreamingDistribution(DeleteStreamingDistributionRequest deleteStreamingDistributionRequest) {
         ExecutionContext executionContext = createExecutionContext(deleteStreamingDistributionRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         Request<DeleteStreamingDistributionRequestrequest = null;
         awsRequestMetrics.startEvent(.);
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new DeleteStreamingDistributionRequestMarshaller().marshall(super.beforeMarshalling(deleteStreamingDistributionRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             invoke(requestnullexecutionContext);
 
         } finally {
             
             endClientExecution(awsRequestMetricsrequestnull);
         }
     }
    
    

Get the information about an origin access identity.

Parameters:
getCloudFrontOriginAccessIdentityRequest Container for the necessary parameters to execute the GetCloudFrontOriginAccessIdentity service method on AmazonCloudFront.
Returns:
The response from the GetCloudFrontOriginAccessIdentity service method, as returned by AmazonCloudFront.
Throws:
com.amazonaws.services.cloudfront.model.NoSuchCloudFrontOriginAccessIdentityException
com.amazonaws.services.cloudfront.model.AccessDeniedException
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
 
         ExecutionContext executionContext = createExecutionContext(getCloudFrontOriginAccessIdentityRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<GetCloudFrontOriginAccessIdentityRequestrequest = null;
         Response<GetCloudFrontOriginAccessIdentityResultresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new GetCloudFrontOriginAccessIdentityRequestMarshaller().marshall(super.beforeMarshalling(getCloudFrontOriginAccessIdentityRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             response = invoke(requestnew GetCloudFrontOriginAccessIdentityResultStaxUnmarshaller(), executionContext);
             return response.getAwsResponse();
 
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }
    
    

Create a new origin access identity.

Parameters:
createCloudFrontOriginAccessIdentityRequest Container for the necessary parameters to execute the CreateCloudFrontOriginAccessIdentity service method on AmazonCloudFront.
Returns:
The response from the CreateCloudFrontOriginAccessIdentity service method, as returned by AmazonCloudFront.
Throws:
com.amazonaws.services.cloudfront.model.TooManyCloudFrontOriginAccessIdentitiesException
com.amazonaws.services.cloudfront.model.MissingBodyException
com.amazonaws.services.cloudfront.model.InvalidArgumentException
com.amazonaws.services.cloudfront.model.InconsistentQuantitiesException
com.amazonaws.services.cloudfront.model.CloudFrontOriginAccessIdentityAlreadyExistsException
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
 
         ExecutionContext executionContext = createExecutionContext(createCloudFrontOriginAccessIdentityRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<CreateCloudFrontOriginAccessIdentityRequestrequest = null;
         Response<CreateCloudFrontOriginAccessIdentityResultresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new CreateCloudFrontOriginAccessIdentityRequestMarshaller().marshall(super.beforeMarshalling(createCloudFrontOriginAccessIdentityRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             response = invoke(requestnew CreateCloudFrontOriginAccessIdentityResultStaxUnmarshaller(), executionContext);
             return response.getAwsResponse();
 
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }
    
    

Get the configuration information about a distribution.

Parameters:
getDistributionConfigRequest Container for the necessary parameters to execute the GetDistributionConfig service method on AmazonCloudFront.
Returns:
The response from the GetDistributionConfig service method, as returned by AmazonCloudFront.
Throws:
com.amazonaws.services.cloudfront.model.NoSuchDistributionException
com.amazonaws.services.cloudfront.model.AccessDeniedException
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
 
     public GetDistributionConfigResult getDistributionConfig(GetDistributionConfigRequest getDistributionConfigRequest) {
         ExecutionContext executionContext = createExecutionContext(getDistributionConfigRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<GetDistributionConfigRequestrequest = null;
         Response<GetDistributionConfigResultresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new GetDistributionConfigRequestMarshaller().marshall(super.beforeMarshalling(getDistributionConfigRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             response = invoke(requestnew GetDistributionConfigResultStaxUnmarshaller(), executionContext);
             return response.getAwsResponse();
 
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }
    
    

Update an origin access identity.

Parameters:
updateCloudFrontOriginAccessIdentityRequest Container for the necessary parameters to execute the UpdateCloudFrontOriginAccessIdentity service method on AmazonCloudFront.
Returns:
The response from the UpdateCloudFrontOriginAccessIdentity service method, as returned by AmazonCloudFront.
Throws:
com.amazonaws.services.cloudfront.model.InvalidIfMatchVersionException
com.amazonaws.services.cloudfront.model.IllegalUpdateException
com.amazonaws.services.cloudfront.model.MissingBodyException
com.amazonaws.services.cloudfront.model.NoSuchCloudFrontOriginAccessIdentityException
com.amazonaws.services.cloudfront.model.PreconditionFailedException
com.amazonaws.services.cloudfront.model.AccessDeniedException
com.amazonaws.services.cloudfront.model.InvalidArgumentException
com.amazonaws.services.cloudfront.model.InconsistentQuantitiesException
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
 
         ExecutionContext executionContext = createExecutionContext(updateCloudFrontOriginAccessIdentityRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<UpdateCloudFrontOriginAccessIdentityRequestrequest = null;
         Response<UpdateCloudFrontOriginAccessIdentityResultresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new UpdateCloudFrontOriginAccessIdentityRequestMarshaller().marshall(super.beforeMarshalling(updateCloudFrontOriginAccessIdentityRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             response = invoke(requestnew UpdateCloudFrontOriginAccessIdentityResultStaxUnmarshaller(), executionContext);
             return response.getAwsResponse();
 
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }
    
    

Create a new distribution.

Parameters:
createDistributionRequest Container for the necessary parameters to execute the CreateDistribution service method on AmazonCloudFront.
Returns:
The response from the CreateDistribution service method, as returned by AmazonCloudFront.
Throws:
com.amazonaws.services.cloudfront.model.TooManyCookieNamesInWhiteListException
com.amazonaws.services.cloudfront.model.InvalidGeoRestrictionParameterException
com.amazonaws.services.cloudfront.model.InvalidResponseCodeException
com.amazonaws.services.cloudfront.model.TooManyHeadersInForwardedValuesException
com.amazonaws.services.cloudfront.model.MissingBodyException
com.amazonaws.services.cloudfront.model.TooManyDistributionCNAMEsException
com.amazonaws.services.cloudfront.model.InvalidLocationCodeException
com.amazonaws.services.cloudfront.model.TooManyDistributionsException
com.amazonaws.services.cloudfront.model.NoSuchOriginException
com.amazonaws.services.cloudfront.model.InconsistentQuantitiesException
com.amazonaws.services.cloudfront.model.InvalidArgumentException
com.amazonaws.services.cloudfront.model.CNAMEAlreadyExistsException
com.amazonaws.services.cloudfront.model.InvalidOriginAccessIdentityException
com.amazonaws.services.cloudfront.model.TooManyCacheBehaviorsException
com.amazonaws.services.cloudfront.model.TooManyTrustedSignersException
com.amazonaws.services.cloudfront.model.InvalidViewerCertificateException
com.amazonaws.services.cloudfront.model.TooManyOriginsException
com.amazonaws.services.cloudfront.model.DistributionAlreadyExistsException
com.amazonaws.services.cloudfront.model.InvalidRequiredProtocolException
com.amazonaws.services.cloudfront.model.InvalidDefaultRootObjectException
com.amazonaws.services.cloudfront.model.InvalidProtocolSettingsException
com.amazonaws.services.cloudfront.model.InvalidForwardCookiesException
com.amazonaws.services.cloudfront.model.InvalidHeadersForS3OriginException
com.amazonaws.services.cloudfront.model.TrustedSignerDoesNotExistException
com.amazonaws.services.cloudfront.model.InvalidOriginException
com.amazonaws.services.cloudfront.model.TooManyCertificatesException
com.amazonaws.services.cloudfront.model.InvalidRelativePathException
com.amazonaws.services.cloudfront.model.InvalidErrorCodeException
com.amazonaws.services.cloudfront.model.AccessDeniedException
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
 
     public CreateDistributionResult createDistribution(CreateDistributionRequest createDistributionRequest) {
         ExecutionContext executionContext = createExecutionContext(createDistributionRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<CreateDistributionRequestrequest = null;
         Response<CreateDistributionResultresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new CreateDistributionRequestMarshaller().marshall(super.beforeMarshalling(createDistributionRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             response = invoke(requestnew CreateDistributionResultStaxUnmarshaller(), executionContext);
             return response.getAwsResponse();
 
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }
    
    

List origin access identities.

Parameters:
listCloudFrontOriginAccessIdentitiesRequest Container for the necessary parameters to execute the ListCloudFrontOriginAccessIdentities service method on AmazonCloudFront.
Returns:
The response from the ListCloudFrontOriginAccessIdentities service method, as returned by AmazonCloudFront.
Throws:
com.amazonaws.services.cloudfront.model.InvalidArgumentException
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
 
         ExecutionContext executionContext = createExecutionContext(listCloudFrontOriginAccessIdentitiesRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<ListCloudFrontOriginAccessIdentitiesRequestrequest = null;
         Response<ListCloudFrontOriginAccessIdentitiesResultresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new ListCloudFrontOriginAccessIdentitiesRequestMarshaller().marshall(super.beforeMarshalling(listCloudFrontOriginAccessIdentitiesRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             response = invoke(requestnew ListCloudFrontOriginAccessIdentitiesResultStaxUnmarshaller(), executionContext);
             return response.getAwsResponse();
 
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }
    
    

Get the configuration information about a streaming distribution.

Parameters:
getStreamingDistributionConfigRequest Container for the necessary parameters to execute the GetStreamingDistributionConfig service method on AmazonCloudFront.
Returns:
The response from the GetStreamingDistributionConfig service method, as returned by AmazonCloudFront.
Throws:
com.amazonaws.services.cloudfront.model.NoSuchStreamingDistributionException
com.amazonaws.services.cloudfront.model.AccessDeniedException
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
 
         ExecutionContext executionContext = createExecutionContext(getStreamingDistributionConfigRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<GetStreamingDistributionConfigRequestrequest = null;
         Response<GetStreamingDistributionConfigResultresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new GetStreamingDistributionConfigRequestMarshaller().marshall(super.beforeMarshalling(getStreamingDistributionConfigRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             response = invoke(requestnew GetStreamingDistributionConfigResultStaxUnmarshaller(), executionContext);
             return response.getAwsResponse();
 
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }
    
    

Get the configuration information about an origin access identity.

Parameters:
getCloudFrontOriginAccessIdentityConfigRequest Container for the necessary parameters to execute the GetCloudFrontOriginAccessIdentityConfig service method on AmazonCloudFront.
Returns:
The response from the GetCloudFrontOriginAccessIdentityConfig service method, as returned by AmazonCloudFront.
Throws:
com.amazonaws.services.cloudfront.model.NoSuchCloudFrontOriginAccessIdentityException
com.amazonaws.services.cloudfront.model.AccessDeniedException
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
 
         ExecutionContext executionContext = createExecutionContext(getCloudFrontOriginAccessIdentityConfigRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<GetCloudFrontOriginAccessIdentityConfigRequestrequest = null;
         Response<GetCloudFrontOriginAccessIdentityConfigResultresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
            try {
                request = new GetCloudFrontOriginAccessIdentityConfigRequestMarshaller().marshall(super.beforeMarshalling(getCloudFrontOriginAccessIdentityConfigRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
            } finally {
                awsRequestMetrics.endEvent(.);
            }
            response = invoke(requestnew GetCloudFrontOriginAccessIdentityConfigResultStaxUnmarshaller(), executionContext);
            return response.getAwsResponse();
        } finally {
            
            endClientExecution(awsRequestMetricsrequestresponse);
        }
    }
    
    

Create a new invalidation.

Parameters:
createInvalidationRequest Container for the necessary parameters to execute the CreateInvalidation service method on AmazonCloudFront.
Returns:
The response from the CreateInvalidation service method, as returned by AmazonCloudFront.
Throws:
com.amazonaws.services.cloudfront.model.TooManyInvalidationsInProgressException
com.amazonaws.services.cloudfront.model.MissingBodyException
com.amazonaws.services.cloudfront.model.NoSuchDistributionException
com.amazonaws.services.cloudfront.model.BatchTooLargeException
com.amazonaws.services.cloudfront.model.AccessDeniedException
com.amazonaws.services.cloudfront.model.InvalidArgumentException
com.amazonaws.services.cloudfront.model.InconsistentQuantitiesException
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
    public CreateInvalidationResult createInvalidation(CreateInvalidationRequest createInvalidationRequest) {
        ExecutionContext executionContext = createExecutionContext(createInvalidationRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(.);
        Request<CreateInvalidationRequestrequest = null;
        Response<CreateInvalidationResultresponse = null;
        
        try {
            awsRequestMetrics.startEvent(.);
            try {
                request = new CreateInvalidationRequestMarshaller().marshall(super.beforeMarshalling(createInvalidationRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
            } finally {
                awsRequestMetrics.endEvent(.);
            }
            response = invoke(requestnew CreateInvalidationResultStaxUnmarshaller(), executionContext);
            return response.getAwsResponse();
        } finally {
            
            endClientExecution(awsRequestMetricsrequestresponse);
        }
    }
    
    

Delete an origin access identity.

Parameters:
deleteCloudFrontOriginAccessIdentityRequest Container for the necessary parameters to execute the DeleteCloudFrontOriginAccessIdentity service method on AmazonCloudFront.
Throws:
com.amazonaws.services.cloudfront.model.InvalidIfMatchVersionException
com.amazonaws.services.cloudfront.model.CloudFrontOriginAccessIdentityInUseException
com.amazonaws.services.cloudfront.model.NoSuchCloudFrontOriginAccessIdentityException
com.amazonaws.services.cloudfront.model.PreconditionFailedException
com.amazonaws.services.cloudfront.model.AccessDeniedException
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
    public void deleteCloudFrontOriginAccessIdentity(DeleteCloudFrontOriginAccessIdentityRequest deleteCloudFrontOriginAccessIdentityRequest) {
        ExecutionContext executionContext = createExecutionContext(deleteCloudFrontOriginAccessIdentityRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        Request<DeleteCloudFrontOriginAccessIdentityRequestrequest = null;
        awsRequestMetrics.startEvent(.);
        
        try {
            awsRequestMetrics.startEvent(.);
            try {
                request = new DeleteCloudFrontOriginAccessIdentityRequestMarshaller().marshall(super.beforeMarshalling(deleteCloudFrontOriginAccessIdentityRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
            } finally {
                awsRequestMetrics.endEvent(.);
            }
            invoke(requestnullexecutionContext);
        } finally {
            
            endClientExecution(awsRequestMetricsrequestnull);
        }
    }
    
    

List distributions.

Parameters:
listDistributionsRequest Container for the necessary parameters to execute the ListDistributions service method on AmazonCloudFront.
Returns:
The response from the ListDistributions service method, as returned by AmazonCloudFront.
Throws:
com.amazonaws.services.cloudfront.model.InvalidArgumentException
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
    public ListDistributionsResult listDistributions(ListDistributionsRequest listDistributionsRequest) {
        ExecutionContext executionContext = createExecutionContext(listDistributionsRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(.);
        Request<ListDistributionsRequestrequest = null;
        Response<ListDistributionsResultresponse = null;
        
        try {
            awsRequestMetrics.startEvent(.);
            try {
                request = new ListDistributionsRequestMarshaller().marshall(super.beforeMarshalling(listDistributionsRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
            } finally {
                awsRequestMetrics.endEvent(.);
            }
            response = invoke(requestnew ListDistributionsResultStaxUnmarshaller(), executionContext);
            return response.getAwsResponse();
        } finally {
            
            endClientExecution(awsRequestMetricsrequestresponse);
        }
    }
    
    

Get the information about an invalidation.

Parameters:
getInvalidationRequest Container for the necessary parameters to execute the GetInvalidation service method on AmazonCloudFront.
Returns:
The response from the GetInvalidation service method, as returned by AmazonCloudFront.
Throws:
com.amazonaws.services.cloudfront.model.NoSuchInvalidationException
com.amazonaws.services.cloudfront.model.NoSuchDistributionException
com.amazonaws.services.cloudfront.model.AccessDeniedException
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
    public GetInvalidationResult getInvalidation(GetInvalidationRequest getInvalidationRequest) {
        ExecutionContext executionContext = createExecutionContext(getInvalidationRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(.);
        Request<GetInvalidationRequestrequest = null;
        Response<GetInvalidationResultresponse = null;
        
        try {
            awsRequestMetrics.startEvent(.);
            try {
                request = new GetInvalidationRequestMarshaller().marshall(super.beforeMarshalling(getInvalidationRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
            } finally {
                awsRequestMetrics.endEvent(.);
            }
            response = invoke(requestnew GetInvalidationResultStaxUnmarshaller(), executionContext);
            return response.getAwsResponse();
        } finally {
            
            endClientExecution(awsRequestMetricsrequestresponse);
        }
    }
    
    

List streaming distributions.

Parameters:
listStreamingDistributionsRequest Container for the necessary parameters to execute the ListStreamingDistributions service method on AmazonCloudFront.
Returns:
The response from the ListStreamingDistributions service method, as returned by AmazonCloudFront.
Throws:
com.amazonaws.services.cloudfront.model.InvalidArgumentException
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
        ExecutionContext executionContext = createExecutionContext(listStreamingDistributionsRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(.);
        Request<ListStreamingDistributionsRequestrequest = null;
        Response<ListStreamingDistributionsResultresponse = null;
        
        try {
            awsRequestMetrics.startEvent(.);
            try {
                request = new ListStreamingDistributionsRequestMarshaller().marshall(super.beforeMarshalling(listStreamingDistributionsRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
            } finally {
                awsRequestMetrics.endEvent(.);
            }
            response = invoke(requestnew ListStreamingDistributionsResultStaxUnmarshaller(), executionContext);
            return response.getAwsResponse();
        } finally {
            
            endClientExecution(awsRequestMetricsrequestresponse);
        }
    }
    
    

Get the information about a distribution.

Parameters:
getDistributionRequest Container for the necessary parameters to execute the GetDistribution service method on AmazonCloudFront.
Returns:
The response from the GetDistribution service method, as returned by AmazonCloudFront.
Throws:
com.amazonaws.services.cloudfront.model.NoSuchDistributionException
com.amazonaws.services.cloudfront.model.AccessDeniedException
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
    public GetDistributionResult getDistribution(GetDistributionRequest getDistributionRequest) {
        ExecutionContext executionContext = createExecutionContext(getDistributionRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(.);
        Request<GetDistributionRequestrequest = null;
        Response<GetDistributionResultresponse = null;
        
        try {
            awsRequestMetrics.startEvent(.);
            try {
                request = new GetDistributionRequestMarshaller().marshall(super.beforeMarshalling(getDistributionRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
            } finally {
                awsRequestMetrics.endEvent(.);
            }
            response = invoke(requestnew GetDistributionResultStaxUnmarshaller(), executionContext);
            return response.getAwsResponse();
        } finally {
            
            endClientExecution(awsRequestMetricsrequestresponse);
        }
    }
    
    

Create a new streaming distribution.

Parameters:
createStreamingDistributionRequest Container for the necessary parameters to execute the CreateStreamingDistribution service method on AmazonCloudFront.
Returns:
The response from the CreateStreamingDistribution service method, as returned by AmazonCloudFront.
Throws:
com.amazonaws.services.cloudfront.model.TooManyTrustedSignersException
com.amazonaws.services.cloudfront.model.MissingBodyException
com.amazonaws.services.cloudfront.model.TooManyStreamingDistributionCNAMEsException
com.amazonaws.services.cloudfront.model.StreamingDistributionAlreadyExistsException
com.amazonaws.services.cloudfront.model.CNAMEAlreadyExistsException
com.amazonaws.services.cloudfront.model.AccessDeniedException
com.amazonaws.services.cloudfront.model.TooManyStreamingDistributionsException
com.amazonaws.services.cloudfront.model.InvalidArgumentException
com.amazonaws.services.cloudfront.model.InconsistentQuantitiesException
com.amazonaws.services.cloudfront.model.InvalidOriginAccessIdentityException
com.amazonaws.services.cloudfront.model.TrustedSignerDoesNotExistException
com.amazonaws.services.cloudfront.model.InvalidOriginException
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonCloudFront indicating either a problem with the data in the request, or a server side issue.
        ExecutionContext executionContext = createExecutionContext(createStreamingDistributionRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(.);
        Request<CreateStreamingDistributionRequestrequest = null;
        Response<CreateStreamingDistributionResultresponse = null;
        
        try {
            awsRequestMetrics.startEvent(.);
            try {
                request = new CreateStreamingDistributionRequestMarshaller().marshall(super.beforeMarshalling(createStreamingDistributionRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
            } finally {
                awsRequestMetrics.endEvent(.);
            }
            response = invoke(requestnew CreateStreamingDistributionResultStaxUnmarshaller(), executionContext);
            return response.getAwsResponse();
        } finally {
            
            endClientExecution(awsRequestMetricsrequestresponse);
        }
    }

    
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.

Parameters:
request The originally executed request
Returns:
The response metadata for the specified request, or null if none is available.
        return .getResponseMetadataForRequest(request);
    }
    private <X, Y extends AmazonWebServiceRequestResponse<X> invoke(Request<Y> request,
            Unmarshaller<X, StaxUnmarshallerContextunmarshaller,
            ExecutionContext executionContext)
    {
        request.setEndpoint();
        request.setTimeOffset();
        AmazonWebServiceRequest originalRequest = request.getOriginalRequest();
        for (Entry<StringStringentry : originalRequest.copyPrivateRequestParameters().entrySet()) {
            request.addParameter(entry.getKey(), entry.getValue());
        }
        AWSCredentials credentials = .getCredentials();
        if (originalRequest.getRequestCredentials() != null) {
            credentials = originalRequest.getRequestCredentials();
        }
        executionContext.setCredentials(credentials);
        
        StaxResponseHandler<X> responseHandler = new StaxResponseHandler<X>(unmarshaller);
        return .execute(requestresponseHandlererrorResponseHandlerexecutionContext);
    }
}