Class AmazonCloudFrontClient
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceClient
-
- com.amazonaws.services.cloudfront.AmazonCloudFrontClient
-
- All Implemented Interfaces:
AmazonCloudFront
- Direct Known Subclasses:
AmazonCloudFrontAsyncClient
@ThreadSafe public class AmazonCloudFrontClient extends AmazonWebServiceClient implements AmazonCloudFront
Client for accessing CloudFront. All service calls made using this client are blocking, and will not return until the service call completes.
-
-
Field Summary
Fields Modifier and Type Field Description protected static ClientConfigurationFactory
configFactory
Client configuration factory providing ClientConfigurations tailored to this clientprotected List<com.amazonaws.transform.Unmarshaller<AmazonServiceException,Node>>
exceptionUnmarshallers
List of exception unmarshallers for all modeled exceptions-
Fields inherited from class com.amazonaws.AmazonWebServiceClient
client, clientConfiguration, endpoint, LOGGING_AWS_REQUEST_METRIC, requestHandler2s, timeOffset
-
-
Constructor Summary
Constructors Constructor Description AmazonCloudFrontClient()
Constructs a new client to invoke service methods on CloudFront.AmazonCloudFrontClient(AWSCredentials awsCredentials)
Constructs a new client to invoke service methods on CloudFront using the specified AWS account credentials.AmazonCloudFrontClient(AWSCredentialsProvider awsCredentialsProvider)
Constructs a new client to invoke service methods on CloudFront using the specified AWS account credentials provider.AmazonCloudFrontClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration)
Constructs a new client to invoke service methods on CloudFront 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 CloudFront using the specified AWS account credentials provider, client configuration options, and request metric collector.AmazonCloudFrontClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration)
Constructs a new client to invoke service methods on CloudFront using the specified AWS account credentials and client configuration options.AmazonCloudFrontClient(ClientConfiguration clientConfiguration)
Constructs a new client to invoke service methods on CloudFront.
-
Method Summary
-
Methods inherited from class com.amazonaws.AmazonWebServiceClient
addRequestHandler, addRequestHandler, beforeMarshalling, configureRegion, createExecutionContext, createExecutionContext, createExecutionContext, endClientExecution, endClientExecution, findRequestMetricCollector, getEndpointPrefix, getRequestMetricsCollector, getServiceAbbreviation, getServiceName, getServiceNameIntern, getSigner, getSignerByURI, getSignerRegionOverride, getTimeOffset, isProfilingEnabled, isRequestMetricsEnabled, removeRequestHandler, removeRequestHandler, requestMetricCollector, setEndpoint, setEndpointPrefix, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, shutdown, withEndpoint, withRegion, withRegion, withTimeOffset
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.amazonaws.services.cloudfront.AmazonCloudFront
setEndpoint, setRegion, shutdown
-
-
-
-
Field Detail
-
configFactory
protected static final ClientConfigurationFactory configFactory
Client configuration factory providing ClientConfigurations tailored to this client
-
exceptionUnmarshallers
protected final List<com.amazonaws.transform.Unmarshaller<AmazonServiceException,Node>> exceptionUnmarshallers
List of exception unmarshallers for all modeled exceptions
-
-
Constructor Detail
-
AmazonCloudFrontClient
public AmazonCloudFrontClient()
Constructs a new client to invoke service methods on CloudFront. 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.
- See Also:
DefaultAWSCredentialsProviderChain
-
AmazonCloudFrontClient
public AmazonCloudFrontClient(ClientConfiguration clientConfiguration)
Constructs a new client to invoke service methods on CloudFront. 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 CloudFront (ex: proxy settings, retry counts, etc.).- See Also:
DefaultAWSCredentialsProviderChain
-
AmazonCloudFrontClient
public AmazonCloudFrontClient(AWSCredentials awsCredentials)
Constructs a new client to invoke service methods on CloudFront 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.
-
AmazonCloudFrontClient
public AmazonCloudFrontClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration)
Constructs a new client to invoke service methods on CloudFront 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 CloudFront (ex: proxy settings, retry counts, etc.).
-
AmazonCloudFrontClient
public AmazonCloudFrontClient(AWSCredentialsProvider awsCredentialsProvider)
Constructs a new client to invoke service methods on CloudFront 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.
-
AmazonCloudFrontClient
public AmazonCloudFrontClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration)
Constructs a new client to invoke service methods on CloudFront 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 CloudFront (ex: proxy settings, retry counts, etc.).
-
AmazonCloudFrontClient
public AmazonCloudFrontClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, RequestMetricCollector requestMetricCollector)
Constructs a new client to invoke service methods on CloudFront 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 CloudFront (ex: proxy settings, retry counts, etc.).requestMetricCollector
- optional request metric collector
-
-
Method Detail
-
createCloudFrontOriginAccessIdentity
public CreateCloudFrontOriginAccessIdentityResult createCloudFrontOriginAccessIdentity(CreateCloudFrontOriginAccessIdentityRequest createCloudFrontOriginAccessIdentityRequest)
Create a new origin access identity.- Specified by:
createCloudFrontOriginAccessIdentity
in interfaceAmazonCloudFront
- Parameters:
createCloudFrontOriginAccessIdentityRequest
- The request to create a new origin access identity.- Returns:
- Result of the CreateCloudFrontOriginAccessIdentity operation returned by the service.
- Throws:
CloudFrontOriginAccessIdentityAlreadyExistsException
- If the CallerReference is a value you already sent in a previous request to create an identity but the content of the CloudFrontOriginAccessIdentityConfig is different from the original request, CloudFront returns a CloudFrontOriginAccessIdentityAlreadyExists error.MissingBodyException
- This operation requires a body. Ensure that the body is present and the Content-Type header is set.TooManyCloudFrontOriginAccessIdentitiesException
- Processing your request would cause you to exceed the maximum number of origin access identities allowed.InvalidArgumentException
- The argument is invalid.InconsistentQuantitiesException
- The value of Quantity and the size of Items do not match.
-
createDistribution
public CreateDistributionResult createDistribution(CreateDistributionRequest createDistributionRequest)
Create a new distribution.- Specified by:
createDistribution
in interfaceAmazonCloudFront
- Parameters:
createDistributionRequest
- The request to create a new distribution.- Returns:
- Result of the CreateDistribution operation returned by the service.
- Throws:
CNAMEAlreadyExistsException
DistributionAlreadyExistsException
- The caller reference you attempted to create the distribution with is associated with another distribution.InvalidOriginException
- The Amazon S3 origin server specified does not refer to a valid Amazon S3 bucket.InvalidOriginAccessIdentityException
- The origin access identity is not valid or doesn't exist.AccessDeniedException
- Access denied.TooManyTrustedSignersException
- Your request contains more trusted signers than are allowed per distribution.TrustedSignerDoesNotExistException
- One or more of your trusted signers do not exist.InvalidViewerCertificateException
InvalidMinimumProtocolVersionException
MissingBodyException
- This operation requires a body. Ensure that the body is present and the Content-Type header is set.TooManyDistributionCNAMEsException
- Your request contains more CNAMEs than are allowed per distribution.TooManyDistributionsException
- Processing your request would cause you to exceed the maximum number of distributions allowed.InvalidDefaultRootObjectException
- The default root object file name is too big or contains an invalid character.InvalidRelativePathException
- The relative path is too big, is not URL-encoded, or does not begin with a slash (/).InvalidErrorCodeException
InvalidResponseCodeException
InvalidArgumentException
- The argument is invalid.InvalidRequiredProtocolException
- This operation requires the HTTPS protocol. Ensure that you specify the HTTPS protocol in your request, or omit the RequiredProtocols element from your distribution configuration.NoSuchOriginException
- No origin exists with the specified Origin Id.TooManyOriginsException
- You cannot create anymore origins for the distribution.TooManyCacheBehaviorsException
- You cannot create anymore cache behaviors for the distribution.TooManyCookieNamesInWhiteListException
- Your request contains more cookie names in the whitelist than are allowed per cache behavior.InvalidForwardCookiesException
- Your request contains forward cookies option which doesn't match with the expectation for the whitelisted list of cookie names. Either list of cookie names has been specified when not allowed or list of cookie names is missing when expected.TooManyHeadersInForwardedValuesException
InvalidHeadersForS3OriginException
InconsistentQuantitiesException
- The value of Quantity and the size of Items do not match.TooManyCertificatesException
- You cannot create anymore custom ssl certificates.InvalidLocationCodeException
InvalidGeoRestrictionParameterException
InvalidProtocolSettingsException
- You cannot specify SSLv3 as the minimum protocol version if you only want to support only clients that Support Server Name Indication (SNI).InvalidTTLOrderException
InvalidWebACLIdException
TooManyOriginCustomHeadersException
-
createInvalidation
public CreateInvalidationResult createInvalidation(CreateInvalidationRequest createInvalidationRequest)
Create a new invalidation.- Specified by:
createInvalidation
in interfaceAmazonCloudFront
- Parameters:
createInvalidationRequest
- The request to create an invalidation.- Returns:
- Result of the CreateInvalidation operation returned by the service.
- Throws:
AccessDeniedException
- Access denied.MissingBodyException
- This operation requires a body. Ensure that the body is present and the Content-Type header is set.InvalidArgumentException
- The argument is invalid.NoSuchDistributionException
- The specified distribution does not exist.BatchTooLargeException
TooManyInvalidationsInProgressException
- You have exceeded the maximum number of allowable InProgress invalidation batch requests, or invalidation objects.InconsistentQuantitiesException
- The value of Quantity and the size of Items do not match.
-
createStreamingDistribution
public CreateStreamingDistributionResult createStreamingDistribution(CreateStreamingDistributionRequest createStreamingDistributionRequest)
Create a new streaming distribution.- Specified by:
createStreamingDistribution
in interfaceAmazonCloudFront
- Parameters:
createStreamingDistributionRequest
- The request to create a new streaming distribution.- Returns:
- Result of the CreateStreamingDistribution operation returned by the service.
- Throws:
CNAMEAlreadyExistsException
StreamingDistributionAlreadyExistsException
InvalidOriginException
- The Amazon S3 origin server specified does not refer to a valid Amazon S3 bucket.InvalidOriginAccessIdentityException
- The origin access identity is not valid or doesn't exist.AccessDeniedException
- Access denied.TooManyTrustedSignersException
- Your request contains more trusted signers than are allowed per distribution.TrustedSignerDoesNotExistException
- One or more of your trusted signers do not exist.MissingBodyException
- This operation requires a body. Ensure that the body is present and the Content-Type header is set.TooManyStreamingDistributionCNAMEsException
TooManyStreamingDistributionsException
- Processing your request would cause you to exceed the maximum number of streaming distributions allowed.InvalidArgumentException
- The argument is invalid.InconsistentQuantitiesException
- The value of Quantity and the size of Items do not match.
-
deleteCloudFrontOriginAccessIdentity
public DeleteCloudFrontOriginAccessIdentityResult deleteCloudFrontOriginAccessIdentity(DeleteCloudFrontOriginAccessIdentityRequest deleteCloudFrontOriginAccessIdentityRequest)
Delete an origin access identity.- Specified by:
deleteCloudFrontOriginAccessIdentity
in interfaceAmazonCloudFront
- Parameters:
deleteCloudFrontOriginAccessIdentityRequest
- The request to delete a origin access identity.- Returns:
- Result of the DeleteCloudFrontOriginAccessIdentity operation returned by the service.
- Throws:
AccessDeniedException
- Access denied.InvalidIfMatchVersionException
- The If-Match version is missing or not valid for the distribution.NoSuchCloudFrontOriginAccessIdentityException
- The specified origin access identity does not exist.PreconditionFailedException
- The precondition given in one or more of the request-header fields evaluated to false.CloudFrontOriginAccessIdentityInUseException
-
deleteDistribution
public DeleteDistributionResult deleteDistribution(DeleteDistributionRequest deleteDistributionRequest)
Delete a distribution.- Specified by:
deleteDistribution
in interfaceAmazonCloudFront
- Parameters:
deleteDistributionRequest
- The request to delete a distribution.- Returns:
- Result of the DeleteDistribution operation returned by the service.
- Throws:
AccessDeniedException
- Access denied.DistributionNotDisabledException
InvalidIfMatchVersionException
- The If-Match version is missing or not valid for the distribution.NoSuchDistributionException
- The specified distribution does not exist.PreconditionFailedException
- The precondition given in one or more of the request-header fields evaluated to false.
-
deleteStreamingDistribution
public DeleteStreamingDistributionResult deleteStreamingDistribution(DeleteStreamingDistributionRequest deleteStreamingDistributionRequest)
Delete a streaming distribution.- Specified by:
deleteStreamingDistribution
in interfaceAmazonCloudFront
- Parameters:
deleteStreamingDistributionRequest
- The request to delete a streaming distribution.- Returns:
- Result of the DeleteStreamingDistribution operation returned by the service.
- Throws:
AccessDeniedException
- Access denied.StreamingDistributionNotDisabledException
InvalidIfMatchVersionException
- The If-Match version is missing or not valid for the distribution.NoSuchStreamingDistributionException
- The specified streaming distribution does not exist.PreconditionFailedException
- The precondition given in one or more of the request-header fields evaluated to false.
-
getCloudFrontOriginAccessIdentity
public GetCloudFrontOriginAccessIdentityResult getCloudFrontOriginAccessIdentity(GetCloudFrontOriginAccessIdentityRequest getCloudFrontOriginAccessIdentityRequest)
Get the information about an origin access identity.- Specified by:
getCloudFrontOriginAccessIdentity
in interfaceAmazonCloudFront
- Parameters:
getCloudFrontOriginAccessIdentityRequest
- The request to get an origin access identity's information.- Returns:
- Result of the GetCloudFrontOriginAccessIdentity operation returned by the service.
- Throws:
NoSuchCloudFrontOriginAccessIdentityException
- The specified origin access identity does not exist.AccessDeniedException
- Access denied.
-
getCloudFrontOriginAccessIdentityConfig
public GetCloudFrontOriginAccessIdentityConfigResult getCloudFrontOriginAccessIdentityConfig(GetCloudFrontOriginAccessIdentityConfigRequest getCloudFrontOriginAccessIdentityConfigRequest)
Get the configuration information about an origin access identity.- Specified by:
getCloudFrontOriginAccessIdentityConfig
in interfaceAmazonCloudFront
- Parameters:
getCloudFrontOriginAccessIdentityConfigRequest
- The request to get an origin access identity's configuration.- Returns:
- Result of the GetCloudFrontOriginAccessIdentityConfig operation returned by the service.
- Throws:
NoSuchCloudFrontOriginAccessIdentityException
- The specified origin access identity does not exist.AccessDeniedException
- Access denied.
-
getDistribution
public GetDistributionResult getDistribution(GetDistributionRequest getDistributionRequest)
Get the information about a distribution.- Specified by:
getDistribution
in interfaceAmazonCloudFront
- Parameters:
getDistributionRequest
- The request to get a distribution's information.- Returns:
- Result of the GetDistribution operation returned by the service.
- Throws:
NoSuchDistributionException
- The specified distribution does not exist.AccessDeniedException
- Access denied.
-
getDistributionConfig
public GetDistributionConfigResult getDistributionConfig(GetDistributionConfigRequest getDistributionConfigRequest)
Get the configuration information about a distribution.- Specified by:
getDistributionConfig
in interfaceAmazonCloudFront
- Parameters:
getDistributionConfigRequest
- The request to get a distribution configuration.- Returns:
- Result of the GetDistributionConfig operation returned by the service.
- Throws:
NoSuchDistributionException
- The specified distribution does not exist.AccessDeniedException
- Access denied.
-
getInvalidation
public GetInvalidationResult getInvalidation(GetInvalidationRequest getInvalidationRequest)
Get the information about an invalidation.- Specified by:
getInvalidation
in interfaceAmazonCloudFront
- Parameters:
getInvalidationRequest
- The request to get an invalidation's information.- Returns:
- Result of the GetInvalidation operation returned by the service.
- Throws:
NoSuchInvalidationException
- The specified invalidation does not exist.NoSuchDistributionException
- The specified distribution does not exist.AccessDeniedException
- Access denied.
-
getStreamingDistribution
public GetStreamingDistributionResult getStreamingDistribution(GetStreamingDistributionRequest getStreamingDistributionRequest)
Get the information about a streaming distribution.- Specified by:
getStreamingDistribution
in interfaceAmazonCloudFront
- Parameters:
getStreamingDistributionRequest
- The request to get a streaming distribution's information.- Returns:
- Result of the GetStreamingDistribution operation returned by the service.
- Throws:
NoSuchStreamingDistributionException
- The specified streaming distribution does not exist.AccessDeniedException
- Access denied.
-
getStreamingDistributionConfig
public GetStreamingDistributionConfigResult getStreamingDistributionConfig(GetStreamingDistributionConfigRequest getStreamingDistributionConfigRequest)
Get the configuration information about a streaming distribution.- Specified by:
getStreamingDistributionConfig
in interfaceAmazonCloudFront
- Parameters:
getStreamingDistributionConfigRequest
- To request to get a streaming distribution configuration.- Returns:
- Result of the GetStreamingDistributionConfig operation returned by the service.
- Throws:
NoSuchStreamingDistributionException
- The specified streaming distribution does not exist.AccessDeniedException
- Access denied.
-
listCloudFrontOriginAccessIdentities
public ListCloudFrontOriginAccessIdentitiesResult listCloudFrontOriginAccessIdentities(ListCloudFrontOriginAccessIdentitiesRequest listCloudFrontOriginAccessIdentitiesRequest)
List origin access identities.- Specified by:
listCloudFrontOriginAccessIdentities
in interfaceAmazonCloudFront
- Parameters:
listCloudFrontOriginAccessIdentitiesRequest
- The request to list origin access identities.- Returns:
- Result of the ListCloudFrontOriginAccessIdentities operation returned by the service.
- Throws:
InvalidArgumentException
- The argument is invalid.
-
listDistributions
public ListDistributionsResult listDistributions(ListDistributionsRequest listDistributionsRequest)
List distributions.- Specified by:
listDistributions
in interfaceAmazonCloudFront
- Parameters:
listDistributionsRequest
- The request to list your distributions.- Returns:
- Result of the ListDistributions operation returned by the service.
- Throws:
InvalidArgumentException
- The argument is invalid.
-
listDistributionsByWebACLId
public ListDistributionsByWebACLIdResult listDistributionsByWebACLId(ListDistributionsByWebACLIdRequest listDistributionsByWebACLIdRequest)
List the distributions that are associated with a specified AWS WAF web ACL.- Specified by:
listDistributionsByWebACLId
in interfaceAmazonCloudFront
- Parameters:
listDistributionsByWebACLIdRequest
- The request to list distributions that are associated with a specified AWS WAF web ACL.- Returns:
- Result of the ListDistributionsByWebACLId operation returned by the service.
- Throws:
InvalidArgumentException
- The argument is invalid.InvalidWebACLIdException
-
listInvalidations
public ListInvalidationsResult listInvalidations(ListInvalidationsRequest listInvalidationsRequest)
List invalidation batches.- Specified by:
listInvalidations
in interfaceAmazonCloudFront
- Parameters:
listInvalidationsRequest
- The request to list invalidations.- Returns:
- Result of the ListInvalidations operation returned by the service.
- Throws:
InvalidArgumentException
- The argument is invalid.NoSuchDistributionException
- The specified distribution does not exist.AccessDeniedException
- Access denied.
-
listStreamingDistributions
public ListStreamingDistributionsResult listStreamingDistributions(ListStreamingDistributionsRequest listStreamingDistributionsRequest)
List streaming distributions.- Specified by:
listStreamingDistributions
in interfaceAmazonCloudFront
- Parameters:
listStreamingDistributionsRequest
- The request to list your streaming distributions.- Returns:
- Result of the ListStreamingDistributions operation returned by the service.
- Throws:
InvalidArgumentException
- The argument is invalid.
-
updateCloudFrontOriginAccessIdentity
public UpdateCloudFrontOriginAccessIdentityResult updateCloudFrontOriginAccessIdentity(UpdateCloudFrontOriginAccessIdentityRequest updateCloudFrontOriginAccessIdentityRequest)
Update an origin access identity.- Specified by:
updateCloudFrontOriginAccessIdentity
in interfaceAmazonCloudFront
- Parameters:
updateCloudFrontOriginAccessIdentityRequest
- The request to update an origin access identity.- Returns:
- Result of the UpdateCloudFrontOriginAccessIdentity operation returned by the service.
- Throws:
AccessDeniedException
- Access denied.IllegalUpdateException
- Origin and CallerReference cannot be updated.InvalidIfMatchVersionException
- The If-Match version is missing or not valid for the distribution.MissingBodyException
- This operation requires a body. Ensure that the body is present and the Content-Type header is set.NoSuchCloudFrontOriginAccessIdentityException
- The specified origin access identity does not exist.PreconditionFailedException
- The precondition given in one or more of the request-header fields evaluated to false.InvalidArgumentException
- The argument is invalid.InconsistentQuantitiesException
- The value of Quantity and the size of Items do not match.
-
updateDistribution
public UpdateDistributionResult updateDistribution(UpdateDistributionRequest updateDistributionRequest)
Update a distribution.- Specified by:
updateDistribution
in interfaceAmazonCloudFront
- Parameters:
updateDistributionRequest
- The request to update a distribution.- Returns:
- Result of the UpdateDistribution operation returned by the service.
- Throws:
AccessDeniedException
- Access denied.CNAMEAlreadyExistsException
IllegalUpdateException
- Origin and CallerReference cannot be updated.InvalidIfMatchVersionException
- The If-Match version is missing or not valid for the distribution.MissingBodyException
- This operation requires a body. Ensure that the body is present and the Content-Type header is set.NoSuchDistributionException
- The specified distribution does not exist.PreconditionFailedException
- The precondition given in one or more of the request-header fields evaluated to false.TooManyDistributionCNAMEsException
- Your request contains more CNAMEs than are allowed per distribution.InvalidDefaultRootObjectException
- The default root object file name is too big or contains an invalid character.InvalidRelativePathException
- The relative path is too big, is not URL-encoded, or does not begin with a slash (/).InvalidErrorCodeException
InvalidResponseCodeException
InvalidArgumentException
- The argument is invalid.InvalidOriginAccessIdentityException
- The origin access identity is not valid or doesn't exist.TooManyTrustedSignersException
- Your request contains more trusted signers than are allowed per distribution.TrustedSignerDoesNotExistException
- One or more of your trusted signers do not exist.InvalidViewerCertificateException
InvalidMinimumProtocolVersionException
InvalidRequiredProtocolException
- This operation requires the HTTPS protocol. Ensure that you specify the HTTPS protocol in your request, or omit the RequiredProtocols element from your distribution configuration.NoSuchOriginException
- No origin exists with the specified Origin Id.TooManyOriginsException
- You cannot create anymore origins for the distribution.TooManyCacheBehaviorsException
- You cannot create anymore cache behaviors for the distribution.TooManyCookieNamesInWhiteListException
- Your request contains more cookie names in the whitelist than are allowed per cache behavior.InvalidForwardCookiesException
- Your request contains forward cookies option which doesn't match with the expectation for the whitelisted list of cookie names. Either list of cookie names has been specified when not allowed or list of cookie names is missing when expected.TooManyHeadersInForwardedValuesException
InvalidHeadersForS3OriginException
InconsistentQuantitiesException
- The value of Quantity and the size of Items do not match.TooManyCertificatesException
- You cannot create anymore custom ssl certificates.InvalidLocationCodeException
InvalidGeoRestrictionParameterException
InvalidTTLOrderException
InvalidWebACLIdException
TooManyOriginCustomHeadersException
-
updateStreamingDistribution
public UpdateStreamingDistributionResult updateStreamingDistribution(UpdateStreamingDistributionRequest updateStreamingDistributionRequest)
Update a streaming distribution.- Specified by:
updateStreamingDistribution
in interfaceAmazonCloudFront
- Parameters:
updateStreamingDistributionRequest
- The request to update a streaming distribution.- Returns:
- Result of the UpdateStreamingDistribution operation returned by the service.
- Throws:
AccessDeniedException
- Access denied.CNAMEAlreadyExistsException
IllegalUpdateException
- Origin and CallerReference cannot be updated.InvalidIfMatchVersionException
- The If-Match version is missing or not valid for the distribution.MissingBodyException
- This operation requires a body. Ensure that the body is present and the Content-Type header is set.NoSuchStreamingDistributionException
- The specified streaming distribution does not exist.PreconditionFailedException
- The precondition given in one or more of the request-header fields evaluated to false.TooManyStreamingDistributionCNAMEsException
InvalidArgumentException
- The argument is invalid.InvalidOriginAccessIdentityException
- The origin access identity is not valid or doesn't exist.TooManyTrustedSignersException
- Your request contains more trusted signers than are allowed per distribution.TrustedSignerDoesNotExistException
- One or more of your trusted signers do not exist.InconsistentQuantitiesException
- The value of Quantity and the size of Items do not match.
-
getCachedResponseMetadata
public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
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.
- Specified by:
getCachedResponseMetadata
in interfaceAmazonCloudFront
- Parameters:
request
- The originally executed request- Returns:
- The response metadata for the specified request, or null if none is available.
-
-