public class AmazonCloudFrontClient extends AmazonWebServiceClient implements AmazonCloudFront
Modifier and Type | Field and Description |
---|---|
protected List<com.amazonaws.transform.Unmarshaller<AmazonServiceException,Node>> |
exceptionUnmarshallers
List of exception unmarshallers for all AmazonCloudFront exceptions.
|
client, clientConfiguration, endpoint, LOGGING_AWS_REQUEST_METRIC, requestHandler2s, timeOffset
Constructor and Description |
---|
AmazonCloudFrontClient()
Constructs a new client to invoke service methods on
AmazonCloudFront.
|
AmazonCloudFrontClient(AWSCredentials awsCredentials)
Constructs a new client to invoke service methods on
AmazonCloudFront using the specified AWS account credentials.
|
AmazonCloudFrontClient(AWSCredentials awsCredentials,
ClientConfiguration clientConfiguration)
Constructs a new client to invoke service methods on
AmazonCloudFront using the specified AWS account credentials
and client configuration options.
|
AmazonCloudFrontClient(AWSCredentialsProvider awsCredentialsProvider)
Constructs a new client to invoke service methods on
AmazonCloudFront using the specified AWS account credentials provider.
|
AmazonCloudFrontClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration)
Constructs a new client to invoke service methods on
AmazonCloudFront using the specified AWS account credentials
provider and client configuration options.
|
AmazonCloudFrontClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration,
RequestMetricCollector requestMetricCollector)
Constructs a new client to invoke service methods on
AmazonCloudFront using the specified AWS account credentials
provider, client configuration options, and request metric collector.
|
AmazonCloudFrontClient(ClientConfiguration clientConfiguration)
Constructs a new client to invoke service methods on
AmazonCloudFront.
|
addRequestHandler, addRequestHandler, configSigner, configSigner, convertToHttpRequest, createExecutionContext, createExecutionContext, createExecutionContext, endClientExecution, endClientExecution, findRequestMetricCollector, getRequestMetricsCollector, getServiceAbbreviation, getServiceName, getServiceNameIntern, getSigner, getSignerByURI, getSignerRegionOverride, getTimeOffset, isProfilingEnabled, isRequestMetricsEnabled, removeRequestHandler, removeRequestHandler, requestMetricCollector, setConfiguration, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, shutdown, withTimeOffset
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setEndpoint, setRegion, shutdown
protected final List<com.amazonaws.transform.Unmarshaller<AmazonServiceException,Node>> exceptionUnmarshallers
public AmazonCloudFrontClient()
All service calls made using this new client object are blocking, and will not return until the service call completes.
DefaultAWSCredentialsProviderChain
public AmazonCloudFrontClient(ClientConfiguration clientConfiguration)
All service calls made using this new client object are blocking, and will not return until the service call completes.
clientConfiguration
- The client configuration options controlling how this
client connects to AmazonCloudFront
(ex: proxy settings, retry counts, etc.).DefaultAWSCredentialsProviderChain
public AmazonCloudFrontClient(AWSCredentials awsCredentials)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentials
- The AWS credentials (access key ID and secret key) to use
when authenticating with AWS services.public AmazonCloudFrontClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration)
All service calls made using this new client object are blocking, and will not return until the service call completes.
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(AWSCredentialsProvider awsCredentialsProvider)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider
- The AWS credentials provider which will provide credentials
to authenticate requests with AWS services.public AmazonCloudFrontClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration)
All service calls made using this new client object are blocking, and will not return until the service call completes.
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 awsCredentialsProvider, ClientConfiguration clientConfiguration, RequestMetricCollector requestMetricCollector)
All service calls made using this new client object are blocking, and will not return until the service call completes.
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 collectorpublic void deleteStreamingDistribution(DeleteStreamingDistributionRequest deleteStreamingDistributionRequest)
Delete a streaming distribution.
deleteStreamingDistribution
in interface AmazonCloudFront
deleteStreamingDistributionRequest
- Container for the necessary
parameters to execute the DeleteStreamingDistribution service method
on AmazonCloudFront.InvalidIfMatchVersionException
NoSuchStreamingDistributionException
StreamingDistributionNotDisabledException
PreconditionFailedException
AccessDeniedException
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.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 GetStreamingDistributionResult getStreamingDistribution(GetStreamingDistributionRequest getStreamingDistributionRequest)
Get the information about a streaming distribution.
getStreamingDistribution
in interface AmazonCloudFront
getStreamingDistributionRequest
- Container for the necessary
parameters to execute the GetStreamingDistribution service method on
AmazonCloudFront.NoSuchStreamingDistributionException
AccessDeniedException
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.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)
List distributions.
listDistributions
in interface AmazonCloudFront
listDistributionsRequest
- Container for the necessary parameters
to execute the ListDistributions service method on AmazonCloudFront.InvalidArgumentException
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.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)
Delete an origin access identity.
deleteCloudFrontOriginAccessIdentity
in interface AmazonCloudFront
deleteCloudFrontOriginAccessIdentityRequest
- Container for the
necessary parameters to execute the
DeleteCloudFrontOriginAccessIdentity service method on
AmazonCloudFront.InvalidIfMatchVersionException
CloudFrontOriginAccessIdentityInUseException
NoSuchCloudFrontOriginAccessIdentityException
PreconditionFailedException
AccessDeniedException
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.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)
Get the information about an invalidation.
getInvalidation
in interface AmazonCloudFront
getInvalidationRequest
- Container for the necessary parameters
to execute the GetInvalidation service method on AmazonCloudFront.NoSuchInvalidationException
NoSuchDistributionException
AccessDeniedException
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.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 UpdateStreamingDistributionResult updateStreamingDistribution(UpdateStreamingDistributionRequest updateStreamingDistributionRequest)
Update a streaming distribution.
updateStreamingDistribution
in interface AmazonCloudFront
updateStreamingDistributionRequest
- Container for the necessary
parameters to execute the UpdateStreamingDistribution service method
on AmazonCloudFront.InvalidIfMatchVersionException
IllegalUpdateException
MissingBodyException
PreconditionFailedException
CNAMEAlreadyExistsException
InvalidArgumentException
InconsistentQuantitiesException
InvalidOriginAccessIdentityException
TrustedSignerDoesNotExistException
TooManyTrustedSignersException
NoSuchStreamingDistributionException
TooManyStreamingDistributionCNAMEsException
AccessDeniedException
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.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)
Get the information about a distribution.
getDistribution
in interface AmazonCloudFront
getDistributionRequest
- Container for the necessary parameters
to execute the GetDistribution service method on AmazonCloudFront.NoSuchDistributionException
AccessDeniedException
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.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 GetStreamingDistributionConfigResult getStreamingDistributionConfig(GetStreamingDistributionConfigRequest getStreamingDistributionConfigRequest)
Get the configuration information about a streaming distribution.
getStreamingDistributionConfig
in interface AmazonCloudFront
getStreamingDistributionConfigRequest
- Container for the
necessary parameters to execute the GetStreamingDistributionConfig
service method on AmazonCloudFront.NoSuchStreamingDistributionException
AccessDeniedException
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.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 UpdateCloudFrontOriginAccessIdentityResult updateCloudFrontOriginAccessIdentity(UpdateCloudFrontOriginAccessIdentityRequest updateCloudFrontOriginAccessIdentityRequest)
Update an origin access identity.
updateCloudFrontOriginAccessIdentity
in interface AmazonCloudFront
updateCloudFrontOriginAccessIdentityRequest
- Container for the
necessary parameters to execute the
UpdateCloudFrontOriginAccessIdentity service method on
AmazonCloudFront.InvalidIfMatchVersionException
IllegalUpdateException
MissingBodyException
NoSuchCloudFrontOriginAccessIdentityException
PreconditionFailedException
AccessDeniedException
InvalidArgumentException
InconsistentQuantitiesException
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.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 CreateCloudFrontOriginAccessIdentityResult createCloudFrontOriginAccessIdentity(CreateCloudFrontOriginAccessIdentityRequest createCloudFrontOriginAccessIdentityRequest)
Create a new origin access identity.
createCloudFrontOriginAccessIdentity
in interface AmazonCloudFront
createCloudFrontOriginAccessIdentityRequest
- Container for the
necessary parameters to execute the
CreateCloudFrontOriginAccessIdentity service method on
AmazonCloudFront.TooManyCloudFrontOriginAccessIdentitiesException
MissingBodyException
InvalidArgumentException
InconsistentQuantitiesException
CloudFrontOriginAccessIdentityAlreadyExistsException
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.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 ListCloudFrontOriginAccessIdentitiesResult listCloudFrontOriginAccessIdentities(ListCloudFrontOriginAccessIdentitiesRequest listCloudFrontOriginAccessIdentitiesRequest)
List origin access identities.
listCloudFrontOriginAccessIdentities
in interface AmazonCloudFront
listCloudFrontOriginAccessIdentitiesRequest
- Container for the
necessary parameters to execute the
ListCloudFrontOriginAccessIdentities service method on
AmazonCloudFront.InvalidArgumentException
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.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 ListStreamingDistributionsResult listStreamingDistributions(ListStreamingDistributionsRequest listStreamingDistributionsRequest)
List streaming distributions.
listStreamingDistributions
in interface AmazonCloudFront
listStreamingDistributionsRequest
- Container for the necessary
parameters to execute the ListStreamingDistributions service method on
AmazonCloudFront.InvalidArgumentException
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.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)
Get the configuration information about a distribution.
getDistributionConfig
in interface AmazonCloudFront
getDistributionConfigRequest
- Container for the necessary
parameters to execute the GetDistributionConfig service method on
AmazonCloudFront.NoSuchDistributionException
AccessDeniedException
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.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)
Delete a distribution.
deleteDistribution
in interface AmazonCloudFront
deleteDistributionRequest
- Container for the necessary
parameters to execute the DeleteDistribution service method on
AmazonCloudFront.InvalidIfMatchVersionException
NoSuchDistributionException
DistributionNotDisabledException
PreconditionFailedException
AccessDeniedException
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.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)
Create a new invalidation.
createInvalidation
in interface AmazonCloudFront
createInvalidationRequest
- Container for the necessary
parameters to execute the CreateInvalidation service method on
AmazonCloudFront.TooManyInvalidationsInProgressException
MissingBodyException
NoSuchDistributionException
BatchTooLargeException
AccessDeniedException
InvalidArgumentException
InconsistentQuantitiesException
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.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 GetCloudFrontOriginAccessIdentityResult getCloudFrontOriginAccessIdentity(GetCloudFrontOriginAccessIdentityRequest getCloudFrontOriginAccessIdentityRequest)
Get the information about an origin access identity.
getCloudFrontOriginAccessIdentity
in interface AmazonCloudFront
getCloudFrontOriginAccessIdentityRequest
- Container for the
necessary parameters to execute the GetCloudFrontOriginAccessIdentity
service method on AmazonCloudFront.NoSuchCloudFrontOriginAccessIdentityException
AccessDeniedException
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.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 CreateStreamingDistributionResult createStreamingDistribution(CreateStreamingDistributionRequest createStreamingDistributionRequest)
Create a new streaming distribution.
createStreamingDistribution
in interface AmazonCloudFront
createStreamingDistributionRequest
- Container for the necessary
parameters to execute the CreateStreamingDistribution service method
on AmazonCloudFront.TooManyTrustedSignersException
MissingBodyException
TooManyStreamingDistributionCNAMEsException
StreamingDistributionAlreadyExistsException
CNAMEAlreadyExistsException
AccessDeniedException
TooManyStreamingDistributionsException
InvalidArgumentException
InconsistentQuantitiesException
InvalidOriginAccessIdentityException
TrustedSignerDoesNotExistException
InvalidOriginException
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.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 GetCloudFrontOriginAccessIdentityConfigResult getCloudFrontOriginAccessIdentityConfig(GetCloudFrontOriginAccessIdentityConfigRequest getCloudFrontOriginAccessIdentityConfigRequest)
Get the configuration information about an origin access identity.
getCloudFrontOriginAccessIdentityConfig
in interface AmazonCloudFront
getCloudFrontOriginAccessIdentityConfigRequest
- Container for
the necessary parameters to execute the
GetCloudFrontOriginAccessIdentityConfig service method on
AmazonCloudFront.NoSuchCloudFrontOriginAccessIdentityException
AccessDeniedException
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.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)
Update a distribution.
updateDistribution
in interface AmazonCloudFront
updateDistributionRequest
- Container for the necessary
parameters to execute the UpdateDistribution service method on
AmazonCloudFront.TooManyCookieNamesInWhiteListException
InvalidGeoRestrictionParameterException
InvalidResponseCodeException
TooManyHeadersInForwardedValuesException
MissingBodyException
TooManyDistributionCNAMEsException
InvalidLocationCodeException
NoSuchOriginException
PreconditionFailedException
CNAMEAlreadyExistsException
InvalidArgumentException
InconsistentQuantitiesException
InvalidOriginAccessIdentityException
TooManyCacheBehaviorsException
TooManyTrustedSignersException
NoSuchDistributionException
InvalidViewerCertificateException
TooManyOriginsException
InvalidRequiredProtocolException
InvalidDefaultRootObjectException
InvalidIfMatchVersionException
IllegalUpdateException
InvalidForwardCookiesException
InvalidHeadersForS3OriginException
TrustedSignerDoesNotExistException
TooManyCertificatesException
InvalidRelativePathException
InvalidErrorCodeException
AccessDeniedException
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.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)
Create a new distribution.
createDistribution
in interface AmazonCloudFront
createDistributionRequest
- Container for the necessary
parameters to execute the CreateDistribution service method on
AmazonCloudFront.TooManyCookieNamesInWhiteListException
InvalidGeoRestrictionParameterException
InvalidResponseCodeException
TooManyHeadersInForwardedValuesException
MissingBodyException
TooManyDistributionCNAMEsException
InvalidLocationCodeException
TooManyDistributionsException
NoSuchOriginException
InconsistentQuantitiesException
InvalidArgumentException
CNAMEAlreadyExistsException
InvalidOriginAccessIdentityException
TooManyCacheBehaviorsException
TooManyTrustedSignersException
InvalidViewerCertificateException
TooManyOriginsException
DistributionAlreadyExistsException
InvalidRequiredProtocolException
InvalidDefaultRootObjectException
InvalidForwardCookiesException
InvalidHeadersForS3OriginException
TrustedSignerDoesNotExistException
TooManyCertificatesException
InvalidOriginException
InvalidRelativePathException
InvalidErrorCodeException
AccessDeniedException
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.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)
List invalidation batches.
listInvalidations
in interface AmazonCloudFront
listInvalidationsRequest
- Container for the necessary parameters
to execute the ListInvalidations service method on AmazonCloudFront.NoSuchDistributionException
InvalidArgumentException
AccessDeniedException
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.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 ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
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.
getCachedResponseMetadata
in interface AmazonCloudFront
request
- The originally executed requestCopyright © 2014. All rights reserved.