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_2012_03_15;
  
  import java.net.URI;
  import java.util.List;
  
  import org.w3c.dom.Node;
  
Client for accessing AmazonCloudFront. All service calls made using this client are blocking, and will not return until the service call completes.

Deprecated:
The Amazon CloudFront client in this namespace uses an older API version. This client is available to help customers as they migrate to the new API version.
 
 public class AmazonCloudFrontClient extends AmazonWebServiceClient implements AmazonCloudFront {

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


    
AWS signer for authenticating requests.
 
     private final CloudFrontSigner signer = new CloudFrontSigner();


    
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) {
         super(clientConfiguration);
         this. = awsCredentialsProvider;
         init();
     }
 
     private void init() {
 
         setEndpoint("cloudfront.amazonaws.com/");
 
 
         HandlerChainFactory chainFactory = new HandlerChainFactory();
                 "/com/amazonaws/services.cloudfront_2012_03_15request.handlers"));
     }
     
     /* (non-Javadoc)
      * @see com.amazonaws.AmazonWebServiceClient#getServiceAbbreviation()
      */
     @Override
     protected String getServiceAbbreviation() {
         return "cloudfront";
     }

    

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_2012_03_15.model.InvalidIfMatchVersionException
com.amazonaws.services.cloudfront_2012_03_15.model.CloudFrontOriginAccessIdentityInUseException
com.amazonaws.services.cloudfront_2012_03_15.model.NoSuchCloudFrontOriginAccessIdentityException
com.amazonaws.services.cloudfront_2012_03_15.model.PreconditionFailedException
com.amazonaws.services.cloudfront_2012_03_15.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)
             throws AmazonServiceExceptionAmazonClientException {
         Request<DeleteCloudFrontOriginAccessIdentityRequestrequest = new DeleteCloudFrontOriginAccessIdentityRequestMarshaller().marshall(deleteCloudFrontOriginAccessIdentityRequest);
         invoke(requestnull);
     }

    

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_2012_03_15.model.NoSuchStreamingDistributionException
com.amazonaws.services.cloudfront_2012_03_15.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.
 
             throws AmazonServiceExceptionAmazonClientException {
         Request<GetStreamingDistributionConfigRequestrequest = new GetStreamingDistributionConfigRequestMarshaller().marshall(getStreamingDistributionConfigRequest);
         return invoke(requestnew GetStreamingDistributionConfigResultStaxUnmarshaller());
     }

    

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_2012_03_15.model.NoSuchInvalidationException
com.amazonaws.services.cloudfront_2012_03_15.model.NoSuchDistributionException
com.amazonaws.services.cloudfront_2012_03_15.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)
             throws AmazonServiceExceptionAmazonClientException {
         Request<GetInvalidationRequestrequest = new GetInvalidationRequestMarshaller().marshall(getInvalidationRequest);
         return invoke(requestnew GetInvalidationResultStaxUnmarshaller());
     }

    

Delete a streaming distribution.

Parameters:
deleteStreamingDistributionRequest Container for the necessary parameters to execute the DeleteStreamingDistribution service method on AmazonCloudFront.
Throws:
com.amazonaws.services.cloudfront_2012_03_15.model.InvalidIfMatchVersionException
com.amazonaws.services.cloudfront_2012_03_15.model.NoSuchStreamingDistributionException
com.amazonaws.services.cloudfront_2012_03_15.model.StreamingDistributionNotDisabledException
com.amazonaws.services.cloudfront_2012_03_15.model.PreconditionFailedException
com.amazonaws.services.cloudfront_2012_03_15.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)
             throws AmazonServiceExceptionAmazonClientException {
         Request<DeleteStreamingDistributionRequestrequest = new DeleteStreamingDistributionRequestMarshaller().marshall(deleteStreamingDistributionRequest);
         invoke(requestnull);
     }

    

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_2012_03_15.model.TooManyTrustedSignersException
com.amazonaws.services.cloudfront_2012_03_15.model.MissingBodyException
com.amazonaws.services.cloudfront_2012_03_15.model.TooManyStreamingDistributionCNAMEsException
com.amazonaws.services.cloudfront_2012_03_15.model.StreamingDistributionAlreadyExistsException
com.amazonaws.services.cloudfront_2012_03_15.model.CNAMEAlreadyExistsException
com.amazonaws.services.cloudfront_2012_03_15.model.AccessDeniedException
com.amazonaws.services.cloudfront_2012_03_15.model.TooManyStreamingDistributionsException
com.amazonaws.services.cloudfront_2012_03_15.model.InvalidArgumentException
com.amazonaws.services.cloudfront_2012_03_15.model.InvalidOriginAccessIdentityException
com.amazonaws.services.cloudfront_2012_03_15.model.TrustedSignerDoesNotExistException
com.amazonaws.services.cloudfront_2012_03_15.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.
 
             throws AmazonServiceExceptionAmazonClientException {
         Request<CreateStreamingDistributionRequestrequest = new CreateStreamingDistributionRequestMarshaller().marshall(createStreamingDistributionRequest);
         return invoke(requestnew CreateStreamingDistributionResultStaxUnmarshaller());
     }

    

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_2012_03_15.model.InvalidDefaultRootObjectException
com.amazonaws.services.cloudfront_2012_03_15.model.MissingBodyException
com.amazonaws.services.cloudfront_2012_03_15.model.TooManyDistributionCNAMEsException
com.amazonaws.services.cloudfront_2012_03_15.model.TooManyDistributionsException
com.amazonaws.services.cloudfront_2012_03_15.model.CNAMEAlreadyExistsException
com.amazonaws.services.cloudfront_2012_03_15.model.InvalidArgumentException
com.amazonaws.services.cloudfront_2012_03_15.model.InvalidOriginAccessIdentityException
com.amazonaws.services.cloudfront_2012_03_15.model.TrustedSignerDoesNotExistException
com.amazonaws.services.cloudfront_2012_03_15.model.InvalidOriginException
com.amazonaws.services.cloudfront_2012_03_15.model.TooManyTrustedSignersException
com.amazonaws.services.cloudfront_2012_03_15.model.AccessDeniedException
com.amazonaws.services.cloudfront_2012_03_15.model.DistributionAlreadyExistsException
com.amazonaws.services.cloudfront_2012_03_15.model.InvalidRequiredProtocolException
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)
             throws AmazonServiceExceptionAmazonClientException {
         Request<CreateDistributionRequestrequest = new CreateDistributionRequestMarshaller().marshall(createDistributionRequest);
         return invoke(requestnew CreateDistributionResultStaxUnmarshaller());
     }

    

Delete a distribution.

Parameters:
deleteDistributionRequest Container for the necessary parameters to execute the DeleteDistribution service method on AmazonCloudFront.
Throws:
com.amazonaws.services.cloudfront_2012_03_15.model.InvalidIfMatchVersionException
com.amazonaws.services.cloudfront_2012_03_15.model.NoSuchDistributionException
com.amazonaws.services.cloudfront_2012_03_15.model.DistributionNotDisabledException
com.amazonaws.services.cloudfront_2012_03_15.model.PreconditionFailedException
com.amazonaws.services.cloudfront_2012_03_15.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)
             throws AmazonServiceExceptionAmazonClientException {
         Request<DeleteDistributionRequestrequest = new DeleteDistributionRequestMarshaller().marshall(deleteDistributionRequest);
         invoke(requestnull);
     }

    

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_2012_03_15.model.InvalidDefaultRootObjectException
com.amazonaws.services.cloudfront_2012_03_15.model.InvalidIfMatchVersionException
com.amazonaws.services.cloudfront_2012_03_15.model.IllegalUpdateException
com.amazonaws.services.cloudfront_2012_03_15.model.MissingBodyException
com.amazonaws.services.cloudfront_2012_03_15.model.TooManyDistributionCNAMEsException
com.amazonaws.services.cloudfront_2012_03_15.model.PreconditionFailedException
com.amazonaws.services.cloudfront_2012_03_15.model.CNAMEAlreadyExistsException
com.amazonaws.services.cloudfront_2012_03_15.model.InvalidArgumentException
com.amazonaws.services.cloudfront_2012_03_15.model.InvalidOriginAccessIdentityException
com.amazonaws.services.cloudfront_2012_03_15.model.TrustedSignerDoesNotExistException
com.amazonaws.services.cloudfront_2012_03_15.model.TooManyTrustedSignersException
com.amazonaws.services.cloudfront_2012_03_15.model.NoSuchDistributionException
com.amazonaws.services.cloudfront_2012_03_15.model.AccessDeniedException
com.amazonaws.services.cloudfront_2012_03_15.model.InvalidRequiredProtocolException
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)
             throws AmazonServiceExceptionAmazonClientException {
         Request<UpdateDistributionRequestrequest = new UpdateDistributionRequestMarshaller().marshall(updateDistributionRequest);
         return invoke(requestnew UpdateDistributionResultStaxUnmarshaller());
     }

    

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_2012_03_15.model.TooManyTrustedSignersException
com.amazonaws.services.cloudfront_2012_03_15.model.InvalidIfMatchVersionException
com.amazonaws.services.cloudfront_2012_03_15.model.IllegalUpdateException
com.amazonaws.services.cloudfront_2012_03_15.model.MissingBodyException
com.amazonaws.services.cloudfront_2012_03_15.model.NoSuchStreamingDistributionException
com.amazonaws.services.cloudfront_2012_03_15.model.TooManyStreamingDistributionCNAMEsException
com.amazonaws.services.cloudfront_2012_03_15.model.PreconditionFailedException
com.amazonaws.services.cloudfront_2012_03_15.model.AccessDeniedException
com.amazonaws.services.cloudfront_2012_03_15.model.CNAMEAlreadyExistsException
com.amazonaws.services.cloudfront_2012_03_15.model.InvalidArgumentException
com.amazonaws.services.cloudfront_2012_03_15.model.InvalidOriginAccessIdentityException
com.amazonaws.services.cloudfront_2012_03_15.model.TrustedSignerDoesNotExistException
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.
 
             throws AmazonServiceExceptionAmazonClientException {
         Request<UpdateStreamingDistributionRequestrequest = new UpdateStreamingDistributionRequestMarshaller().marshall(updateStreamingDistributionRequest);
         return invoke(requestnew UpdateStreamingDistributionResultStaxUnmarshaller());
     }

    

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_2012_03_15.model.TooManyCloudFrontOriginAccessIdentitiesException
com.amazonaws.services.cloudfront_2012_03_15.model.MissingBodyException
com.amazonaws.services.cloudfront_2012_03_15.model.InvalidArgumentException
com.amazonaws.services.cloudfront_2012_03_15.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.
 
             throws AmazonServiceExceptionAmazonClientException {
         Request<CreateCloudFrontOriginAccessIdentityRequestrequest = new CreateCloudFrontOriginAccessIdentityRequestMarshaller().marshall(createCloudFrontOriginAccessIdentityRequest);
         return invoke(requestnew CreateCloudFrontOriginAccessIdentityResultStaxUnmarshaller());
     }

    

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_2012_03_15.model.NoSuchDistributionException
com.amazonaws.services.cloudfront_2012_03_15.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)
             throws AmazonServiceExceptionAmazonClientException {
         Request<GetDistributionRequestrequest = new GetDistributionRequestMarshaller().marshall(getDistributionRequest);
         return invoke(requestnew GetDistributionResultStaxUnmarshaller());
     }

    

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_2012_03_15.model.NoSuchCloudFrontOriginAccessIdentityException
com.amazonaws.services.cloudfront_2012_03_15.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.
 
             throws AmazonServiceExceptionAmazonClientException {
         Request<GetCloudFrontOriginAccessIdentityConfigRequestrequest = new GetCloudFrontOriginAccessIdentityConfigRequestMarshaller().marshall(getCloudFrontOriginAccessIdentityConfigRequest);
     }

    

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_2012_03_15.model.NoSuchStreamingDistributionException
com.amazonaws.services.cloudfront_2012_03_15.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.
 
             throws AmazonServiceExceptionAmazonClientException {
         Request<GetStreamingDistributionRequestrequest = new GetStreamingDistributionRequestMarshaller().marshall(getStreamingDistributionRequest);
         return invoke(requestnew GetStreamingDistributionResultStaxUnmarshaller());
     }

    

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_2012_03_15.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)
             throws AmazonServiceExceptionAmazonClientException {
         Request<ListDistributionsRequestrequest = new ListDistributionsRequestMarshaller().marshall(listDistributionsRequest);
         return invoke(requestnew ListDistributionsResultStaxUnmarshaller());
     }

    

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_2012_03_15.model.InvalidIfMatchVersionException
com.amazonaws.services.cloudfront_2012_03_15.model.IllegalUpdateException
com.amazonaws.services.cloudfront_2012_03_15.model.MissingBodyException
com.amazonaws.services.cloudfront_2012_03_15.model.NoSuchCloudFrontOriginAccessIdentityException
com.amazonaws.services.cloudfront_2012_03_15.model.PreconditionFailedException
com.amazonaws.services.cloudfront_2012_03_15.model.AccessDeniedException
com.amazonaws.services.cloudfront_2012_03_15.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.
 
             throws AmazonServiceExceptionAmazonClientException {
         Request<UpdateCloudFrontOriginAccessIdentityRequestrequest = new UpdateCloudFrontOriginAccessIdentityRequestMarshaller().marshall(updateCloudFrontOriginAccessIdentityRequest);
         return invoke(requestnew UpdateCloudFrontOriginAccessIdentityResultStaxUnmarshaller());
     }

    

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_2012_03_15.model.NoSuchDistributionException
com.amazonaws.services.cloudfront_2012_03_15.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.
 
             throws AmazonServiceExceptionAmazonClientException {
         Request<GetDistributionConfigRequestrequest = new GetDistributionConfigRequestMarshaller().marshall(getDistributionConfigRequest);
         return invoke(requestnew GetDistributionConfigResultStaxUnmarshaller());
     }

    

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_2012_03_15.model.NoSuchCloudFrontOriginAccessIdentityException
com.amazonaws.services.cloudfront_2012_03_15.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.
 
             throws AmazonServiceExceptionAmazonClientException {
         Request<GetCloudFrontOriginAccessIdentityRequestrequest = new GetCloudFrontOriginAccessIdentityRequestMarshaller().marshall(getCloudFrontOriginAccessIdentityRequest);
         return invoke(requestnew GetCloudFrontOriginAccessIdentityResultStaxUnmarshaller());
     }

    

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_2012_03_15.model.TooManyInvalidationsInProgressException
com.amazonaws.services.cloudfront_2012_03_15.model.MissingBodyException
com.amazonaws.services.cloudfront_2012_03_15.model.NoSuchDistributionException
com.amazonaws.services.cloudfront_2012_03_15.model.BatchTooLargeException
com.amazonaws.services.cloudfront_2012_03_15.model.AccessDeniedException
com.amazonaws.services.cloudfront_2012_03_15.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 CreateInvalidationResult createInvalidation(CreateInvalidationRequest createInvalidationRequest)
             throws AmazonServiceExceptionAmazonClientException {
         Request<CreateInvalidationRequestrequest = new CreateInvalidationRequestMarshaller().marshall(createInvalidationRequest);
         return invoke(requestnew CreateInvalidationResultStaxUnmarshaller());
     }

    

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_2012_03_15.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.
 
             throws AmazonServiceExceptionAmazonClientException {
         Request<ListCloudFrontOriginAccessIdentitiesRequestrequest = new ListCloudFrontOriginAccessIdentitiesRequestMarshaller().marshall(listCloudFrontOriginAccessIdentitiesRequest);
         return invoke(requestnew ListCloudFrontOriginAccessIdentitiesResultStaxUnmarshaller());
     }

    

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_2012_03_15.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.
 
             throws AmazonServiceExceptionAmazonClientException {
         Request<ListStreamingDistributionsRequestrequest = new ListStreamingDistributionsRequestMarshaller().marshall(listStreamingDistributionsRequest);
         return invoke(requestnew ListStreamingDistributionsResultStaxUnmarshaller());
     }

    

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_2012_03_15.model.NoSuchDistributionException
com.amazonaws.services.cloudfront_2012_03_15.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 ListInvalidationsResult listInvalidations(ListInvalidationsRequest listInvalidationsRequest)
             throws AmazonServiceExceptionAmazonClientException {
         Request<ListInvalidationsRequestrequest = new ListInvalidationsRequestMarshaller().marshall(listInvalidationsRequest);
         return invoke(requestnew ListInvalidationsResultStaxUnmarshaller());
     }


    
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 AmazonWebServiceRequest> X invoke(Request<Y> requestUnmarshaller<X, StaxUnmarshallerContextunmarshaller) {
        request.setEndpoint();
        for (Entry<StringStringentry : request.getOriginalRequest().copyPrivateRequestParameters().entrySet()) {
            request.addParameter(entry.getKey(), entry.getValue());
        }
        AWSCredentials credentials = .getCredentials();
        AmazonWebServiceRequest originalRequest = request.getOriginalRequest();
        if (originalRequest != null && originalRequest.getRequestCredentials() != null) {
        	credentials = originalRequest.getRequestCredentials();
        }
        ExecutionContext executionContext = createExecutionContext();
        executionContext.setSigner();
        executionContext.setCredentials(credentials);
        StaxResponseHandler<X> responseHandler = new StaxResponseHandler<X>(unmarshaller);
        Response<X> res = .execute(requestresponseHandlererrorResponseHandlerexecutionContext);
        return res.getAwsResponse();
    }

    
Always return the same AWS CloudFrontSigner for this old AWS CloudFront client.
    @Override public Signer getSignerByURI(URI uri) { return ; }
New to GrepCode? Check out our FAQ X