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, beforeMarshalling, configSigner, configSigner, configureRegion, createExecutionContext, createExecutionContext, createExecutionContext, endClientExecution, endClientExecution, findRequestMetricCollector, getRequestMetricsCollector, getServiceAbbreviation, getServiceName, getServiceNameIntern, getSigner, getSignerByURI, getSignerRegionOverride, getTimeOffset, isProfilingEnabled, isRequestMetricsEnabled, removeRequestHandler, removeRequestHandler, requestMetricCollector, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, shutdown, withEndpoint, withRegion, withRegion, withTimeOffsetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetEndpoint, setRegion, shutdownprotected 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.
DefaultAWSCredentialsProviderChainpublic 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.).DefaultAWSCredentialsProviderChainpublic 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 deleteDistribution(DeleteDistributionRequest deleteDistributionRequest)
Delete a distribution.
deleteDistribution in interface AmazonCloudFrontdeleteDistributionRequest - Container for the necessary
parameters to execute the DeleteDistribution service method on
AmazonCloudFront.InvalidIfMatchVersionExceptionNoSuchDistributionExceptionDistributionNotDisabledExceptionPreconditionFailedExceptionAccessDeniedExceptionAmazonClientException - 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 AmazonCloudFrontupdateDistributionRequest - Container for the necessary
parameters to execute the UpdateDistribution service method on
AmazonCloudFront.TooManyCookieNamesInWhiteListExceptionInvalidGeoRestrictionParameterExceptionInvalidResponseCodeExceptionTooManyHeadersInForwardedValuesExceptionMissingBodyExceptionTooManyDistributionCNAMEsExceptionInvalidLocationCodeExceptionNoSuchOriginExceptionPreconditionFailedExceptionCNAMEAlreadyExistsExceptionInvalidArgumentExceptionInconsistentQuantitiesExceptionInvalidOriginAccessIdentityExceptionTooManyCacheBehaviorsExceptionTooManyTrustedSignersExceptionNoSuchDistributionExceptionInvalidViewerCertificateExceptionTooManyOriginsExceptionInvalidRequiredProtocolExceptionInvalidDefaultRootObjectExceptionInvalidIfMatchVersionExceptionIllegalUpdateExceptionInvalidForwardCookiesExceptionInvalidHeadersForS3OriginExceptionTrustedSignerDoesNotExistExceptionTooManyCertificatesExceptionInvalidRelativePathExceptionInvalidErrorCodeExceptionAccessDeniedExceptionAmazonClientException - 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 AmazonCloudFrontlistInvalidationsRequest - Container for the necessary parameters
to execute the ListInvalidations service method on AmazonCloudFront.NoSuchDistributionExceptionInvalidArgumentExceptionAccessDeniedExceptionAmazonClientException - 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 AmazonCloudFrontupdateStreamingDistributionRequest - Container for the necessary
parameters to execute the UpdateStreamingDistribution service method
on AmazonCloudFront.InvalidIfMatchVersionExceptionIllegalUpdateExceptionMissingBodyExceptionPreconditionFailedExceptionCNAMEAlreadyExistsExceptionInvalidArgumentExceptionInconsistentQuantitiesExceptionInvalidOriginAccessIdentityExceptionTrustedSignerDoesNotExistExceptionTooManyTrustedSignersExceptionNoSuchStreamingDistributionExceptionTooManyStreamingDistributionCNAMEsExceptionAccessDeniedExceptionAmazonClientException - 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 AmazonCloudFrontgetStreamingDistributionRequest - Container for the necessary
parameters to execute the GetStreamingDistribution service method on
AmazonCloudFront.NoSuchStreamingDistributionExceptionAccessDeniedExceptionAmazonClientException - 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 deleteStreamingDistribution(DeleteStreamingDistributionRequest deleteStreamingDistributionRequest)
Delete a streaming distribution.
deleteStreamingDistribution in interface AmazonCloudFrontdeleteStreamingDistributionRequest - Container for the necessary
parameters to execute the DeleteStreamingDistribution service method
on AmazonCloudFront.InvalidIfMatchVersionExceptionNoSuchStreamingDistributionExceptionStreamingDistributionNotDisabledExceptionPreconditionFailedExceptionAccessDeniedExceptionAmazonClientException - 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 AmazonCloudFrontgetCloudFrontOriginAccessIdentityRequest - Container for the
necessary parameters to execute the GetCloudFrontOriginAccessIdentity
service method on AmazonCloudFront.NoSuchCloudFrontOriginAccessIdentityExceptionAccessDeniedExceptionAmazonClientException - 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 AmazonCloudFrontcreateCloudFrontOriginAccessIdentityRequest - Container for the
necessary parameters to execute the
CreateCloudFrontOriginAccessIdentity service method on
AmazonCloudFront.TooManyCloudFrontOriginAccessIdentitiesExceptionMissingBodyExceptionInvalidArgumentExceptionInconsistentQuantitiesExceptionCloudFrontOriginAccessIdentityAlreadyExistsExceptionAmazonClientException - 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 AmazonCloudFrontgetDistributionConfigRequest - Container for the necessary
parameters to execute the GetDistributionConfig service method on
AmazonCloudFront.NoSuchDistributionExceptionAccessDeniedExceptionAmazonClientException - 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 AmazonCloudFrontupdateCloudFrontOriginAccessIdentityRequest - Container for the
necessary parameters to execute the
UpdateCloudFrontOriginAccessIdentity service method on
AmazonCloudFront.InvalidIfMatchVersionExceptionIllegalUpdateExceptionMissingBodyExceptionNoSuchCloudFrontOriginAccessIdentityExceptionPreconditionFailedExceptionAccessDeniedExceptionInvalidArgumentExceptionInconsistentQuantitiesExceptionAmazonClientException - 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 AmazonCloudFrontcreateDistributionRequest - Container for the necessary
parameters to execute the CreateDistribution service method on
AmazonCloudFront.TooManyCookieNamesInWhiteListExceptionInvalidGeoRestrictionParameterExceptionInvalidResponseCodeExceptionTooManyHeadersInForwardedValuesExceptionMissingBodyExceptionTooManyDistributionCNAMEsExceptionInvalidLocationCodeExceptionTooManyDistributionsExceptionNoSuchOriginExceptionInconsistentQuantitiesExceptionInvalidArgumentExceptionCNAMEAlreadyExistsExceptionInvalidOriginAccessIdentityExceptionTooManyCacheBehaviorsExceptionTooManyTrustedSignersExceptionInvalidViewerCertificateExceptionTooManyOriginsExceptionDistributionAlreadyExistsExceptionInvalidRequiredProtocolExceptionInvalidDefaultRootObjectExceptionInvalidProtocolSettingsExceptionInvalidForwardCookiesExceptionInvalidHeadersForS3OriginExceptionTrustedSignerDoesNotExistExceptionInvalidOriginExceptionTooManyCertificatesExceptionInvalidRelativePathExceptionInvalidErrorCodeExceptionAccessDeniedExceptionAmazonClientException - 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 AmazonCloudFrontlistCloudFrontOriginAccessIdentitiesRequest - Container for the
necessary parameters to execute the
ListCloudFrontOriginAccessIdentities service method on
AmazonCloudFront.InvalidArgumentExceptionAmazonClientException - 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 AmazonCloudFrontgetStreamingDistributionConfigRequest - Container for the
necessary parameters to execute the GetStreamingDistributionConfig
service method on AmazonCloudFront.NoSuchStreamingDistributionExceptionAccessDeniedExceptionAmazonClientException - 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 AmazonCloudFrontgetCloudFrontOriginAccessIdentityConfigRequest - Container for
the necessary parameters to execute the
GetCloudFrontOriginAccessIdentityConfig service method on
AmazonCloudFront.NoSuchCloudFrontOriginAccessIdentityExceptionAccessDeniedExceptionAmazonClientException - 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 AmazonCloudFrontcreateInvalidationRequest - Container for the necessary
parameters to execute the CreateInvalidation service method on
AmazonCloudFront.TooManyInvalidationsInProgressExceptionMissingBodyExceptionNoSuchDistributionExceptionBatchTooLargeExceptionAccessDeniedExceptionInvalidArgumentExceptionInconsistentQuantitiesExceptionAmazonClientException - 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 AmazonCloudFrontdeleteCloudFrontOriginAccessIdentityRequest - Container for the
necessary parameters to execute the
DeleteCloudFrontOriginAccessIdentity service method on
AmazonCloudFront.InvalidIfMatchVersionExceptionCloudFrontOriginAccessIdentityInUseExceptionNoSuchCloudFrontOriginAccessIdentityExceptionPreconditionFailedExceptionAccessDeniedExceptionAmazonClientException - 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 AmazonCloudFrontlistDistributionsRequest - Container for the necessary parameters
to execute the ListDistributions service method on AmazonCloudFront.InvalidArgumentExceptionAmazonClientException - 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 AmazonCloudFrontgetInvalidationRequest - Container for the necessary parameters
to execute the GetInvalidation service method on AmazonCloudFront.NoSuchInvalidationExceptionNoSuchDistributionExceptionAccessDeniedExceptionAmazonClientException - 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 AmazonCloudFrontlistStreamingDistributionsRequest - Container for the necessary
parameters to execute the ListStreamingDistributions service method on
AmazonCloudFront.InvalidArgumentExceptionAmazonClientException - 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 AmazonCloudFrontgetDistributionRequest - Container for the necessary parameters
to execute the GetDistribution service method on AmazonCloudFront.NoSuchDistributionExceptionAccessDeniedExceptionAmazonClientException - 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 AmazonCloudFrontcreateStreamingDistributionRequest - Container for the necessary
parameters to execute the CreateStreamingDistribution service method
on AmazonCloudFront.TooManyTrustedSignersExceptionMissingBodyExceptionTooManyStreamingDistributionCNAMEsExceptionStreamingDistributionAlreadyExistsExceptionCNAMEAlreadyExistsExceptionAccessDeniedExceptionTooManyStreamingDistributionsExceptionInvalidArgumentExceptionInconsistentQuantitiesExceptionInvalidOriginAccessIdentityExceptionTrustedSignerDoesNotExistExceptionInvalidOriginExceptionAmazonClientException - 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 AmazonCloudFrontrequest - The originally executed requestCopyright © 2015. All rights reserved.