Class AmazonCloudFrontAsyncClient
- All Implemented Interfaces:
AmazonCloudFront, AmazonCloudFrontAsync
AsyncHandler can be used to receive
notification when an asynchronous operation completes.-
Field Summary
Fields inherited from class AmazonCloudFrontClient
configFactory, exceptionUnmarshallersFields inherited from class AmazonWebServiceClient
client, clientConfiguration, endpoint, LOGGING_AWS_REQUEST_METRIC, requestHandler2s, timeOffset -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new asynchronous client to invoke service methods on CloudFront.AmazonCloudFrontAsyncClient(AWSCredentials awsCredentials) Constructs a new asynchronous client to invoke service methods on CloudFront using the specified AWS account credentials.AmazonCloudFrontAsyncClient(AWSCredentialsProvider awsCredentialsProvider) Constructs a new asynchronous client to invoke service methods on CloudFront using the specified AWS account credentials provider.AmazonCloudFrontAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration) Constructs a new asynchronous client to invoke service methods on CloudFront using the provided AWS account credentials provider and client configuration options.AmazonCloudFrontAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, ExecutorService executorService) Constructs a new asynchronous client to invoke service methods on CloudFront using the specified AWS account credentials provider, executor service, and client configuration options.AmazonCloudFrontAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ExecutorService executorService) Constructs a new asynchronous client to invoke service methods on CloudFront using the specified AWS account credentials provider and executor service.AmazonCloudFrontAsyncClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration, ExecutorService executorService) Constructs a new asynchronous client to invoke service methods on CloudFront using the specified AWS account credentials, executor service, and client configuration options.AmazonCloudFrontAsyncClient(AWSCredentials awsCredentials, ExecutorService executorService) Constructs a new asynchronous client to invoke service methods on CloudFront using the specified AWS account credentials and executor service.AmazonCloudFrontAsyncClient(ClientConfiguration clientConfiguration) Constructs a new asynchronous client to invoke service methods on CloudFront. -
Method Summary
Modifier and TypeMethodDescriptionCreate a new origin access identity.createCloudFrontOriginAccessIdentityAsync(CreateCloudFrontOriginAccessIdentityRequest request, AsyncHandler<CreateCloudFrontOriginAccessIdentityRequest, CreateCloudFrontOriginAccessIdentityResult> asyncHandler) Create a new origin access identity.Create a new distribution.createDistributionAsync(CreateDistributionRequest request, AsyncHandler<CreateDistributionRequest, CreateDistributionResult> asyncHandler) Create a new distribution.Create a new invalidation.createInvalidationAsync(CreateInvalidationRequest request, AsyncHandler<CreateInvalidationRequest, CreateInvalidationResult> asyncHandler) Create a new invalidation.Create a new streaming distribution.createStreamingDistributionAsync(CreateStreamingDistributionRequest request, AsyncHandler<CreateStreamingDistributionRequest, CreateStreamingDistributionResult> asyncHandler) Create a new streaming distribution.Delete an origin access identity.deleteCloudFrontOriginAccessIdentityAsync(DeleteCloudFrontOriginAccessIdentityRequest request, AsyncHandler<DeleteCloudFrontOriginAccessIdentityRequest, DeleteCloudFrontOriginAccessIdentityResult> asyncHandler) Delete an origin access identity.Delete a distribution.deleteDistributionAsync(DeleteDistributionRequest request, AsyncHandler<DeleteDistributionRequest, DeleteDistributionResult> asyncHandler) Delete a distribution.Delete a streaming distribution.deleteStreamingDistributionAsync(DeleteStreamingDistributionRequest request, AsyncHandler<DeleteStreamingDistributionRequest, DeleteStreamingDistributionResult> asyncHandler) Delete a streaming distribution.Get the information about an origin access identity.getCloudFrontOriginAccessIdentityAsync(GetCloudFrontOriginAccessIdentityRequest request, AsyncHandler<GetCloudFrontOriginAccessIdentityRequest, GetCloudFrontOriginAccessIdentityResult> asyncHandler) Get the information about an origin access identity.getCloudFrontOriginAccessIdentityConfigAsync(GetCloudFrontOriginAccessIdentityConfigRequest request) Get the configuration information about an origin access identity.getCloudFrontOriginAccessIdentityConfigAsync(GetCloudFrontOriginAccessIdentityConfigRequest request, AsyncHandler<GetCloudFrontOriginAccessIdentityConfigRequest, GetCloudFrontOriginAccessIdentityConfigResult> asyncHandler) Get the configuration information about an origin access identity.Get the information about a distribution.getDistributionAsync(GetDistributionRequest request, AsyncHandler<GetDistributionRequest, GetDistributionResult> asyncHandler) Get the information about a distribution.Get the configuration information about a distribution.getDistributionConfigAsync(GetDistributionConfigRequest request, AsyncHandler<GetDistributionConfigRequest, GetDistributionConfigResult> asyncHandler) Get the configuration information about a distribution.Returns the executor service used by this client to execute async requests.Get the information about an invalidation.getInvalidationAsync(GetInvalidationRequest request, AsyncHandler<GetInvalidationRequest, GetInvalidationResult> asyncHandler) Get the information about an invalidation.Get the information about a streaming distribution.getStreamingDistributionAsync(GetStreamingDistributionRequest request, AsyncHandler<GetStreamingDistributionRequest, GetStreamingDistributionResult> asyncHandler) Get the information about a streaming distribution.Get the configuration information about a streaming distribution.getStreamingDistributionConfigAsync(GetStreamingDistributionConfigRequest request, AsyncHandler<GetStreamingDistributionConfigRequest, GetStreamingDistributionConfigResult> asyncHandler) Get the configuration information about a streaming distribution.List origin access identities.listCloudFrontOriginAccessIdentitiesAsync(ListCloudFrontOriginAccessIdentitiesRequest request, AsyncHandler<ListCloudFrontOriginAccessIdentitiesRequest, ListCloudFrontOriginAccessIdentitiesResult> asyncHandler) List origin access identities.List distributions.listDistributionsAsync(ListDistributionsRequest request, AsyncHandler<ListDistributionsRequest, ListDistributionsResult> asyncHandler) List distributions.List the distributions that are associated with a specified AWS WAF web ACL.listDistributionsByWebACLIdAsync(ListDistributionsByWebACLIdRequest request, AsyncHandler<ListDistributionsByWebACLIdRequest, ListDistributionsByWebACLIdResult> asyncHandler) List the distributions that are associated with a specified AWS WAF web ACL.List invalidation batches.listInvalidationsAsync(ListInvalidationsRequest request, AsyncHandler<ListInvalidationsRequest, ListInvalidationsResult> asyncHandler) List invalidation batches.List streaming distributions.listStreamingDistributionsAsync(ListStreamingDistributionsRequest request, AsyncHandler<ListStreamingDistributionsRequest, ListStreamingDistributionsResult> asyncHandler) List streaming distributions.voidshutdown()Shuts down the client, releasing all managed resources.Update an origin access identity.updateCloudFrontOriginAccessIdentityAsync(UpdateCloudFrontOriginAccessIdentityRequest request, AsyncHandler<UpdateCloudFrontOriginAccessIdentityRequest, UpdateCloudFrontOriginAccessIdentityResult> asyncHandler) Update an origin access identity.Update a distribution.updateDistributionAsync(UpdateDistributionRequest request, AsyncHandler<UpdateDistributionRequest, UpdateDistributionResult> asyncHandler) Update a distribution.Update a streaming distribution.updateStreamingDistributionAsync(UpdateStreamingDistributionRequest request, AsyncHandler<UpdateStreamingDistributionRequest, UpdateStreamingDistributionResult> asyncHandler) Update a streaming distribution.Methods inherited from class AmazonCloudFrontClient
createCloudFrontOriginAccessIdentity, createDistribution, createInvalidation, createStreamingDistribution, deleteCloudFrontOriginAccessIdentity, deleteDistribution, deleteStreamingDistribution, getCachedResponseMetadata, getCloudFrontOriginAccessIdentity, getCloudFrontOriginAccessIdentityConfig, getDistribution, getDistributionConfig, getInvalidation, getStreamingDistribution, getStreamingDistributionConfig, listCloudFrontOriginAccessIdentities, listDistributions, listDistributionsByWebACLId, listInvalidations, listStreamingDistributions, updateCloudFrontOriginAccessIdentity, updateDistribution, updateStreamingDistributionMethods inherited from class 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, withEndpoint, withRegion, withRegion, withTimeOffsetMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AmazonCloudFront
createCloudFrontOriginAccessIdentity, createDistribution, createInvalidation, createStreamingDistribution, deleteCloudFrontOriginAccessIdentity, deleteDistribution, deleteStreamingDistribution, getCachedResponseMetadata, getCloudFrontOriginAccessIdentity, getCloudFrontOriginAccessIdentityConfig, getDistribution, getDistributionConfig, getInvalidation, getStreamingDistribution, getStreamingDistributionConfig, listCloudFrontOriginAccessIdentities, listDistributions, listDistributionsByWebACLId, listInvalidations, listStreamingDistributions, setEndpoint, setRegion, updateCloudFrontOriginAccessIdentity, updateDistribution, updateStreamingDistribution
-
Constructor Details
-
AmazonCloudFrontAsyncClient
public AmazonCloudFrontAsyncClient()Constructs a new asynchronous 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
- Credential profiles file at the default location (~/.aws/credentials) shared by all AWS SDKs and the AWS CLI
- Instance profile credentials delivered through the Amazon EC2 metadata service
Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default maximum number of concurrent connections to the service).
- See Also:
-
AmazonCloudFrontAsyncClient
Constructs a new asynchronous 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
- Credential profiles file at the default location (~/.aws/credentials) shared by all AWS SDKs and the AWS CLI
- Instance profile credentials delivered through the Amazon EC2 metadata service
Asynchronous methods are delegated to a fixed-size thread pool containing a number of threads equal to the maximum number of concurrent connections configured via
ClientConfiguration.getMaxConnections().- Parameters:
clientConfiguration- The client configuration options controlling how this client connects to CloudFront (ex: proxy settings, retry counts, etc).- See Also:
-
AmazonCloudFrontAsyncClient
Constructs a new asynchronous client to invoke service methods on CloudFront using the specified AWS account credentials.Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default maximum number of concurrent connections to the service).
- Parameters:
awsCredentials- The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.- See Also:
-
AmazonCloudFrontAsyncClient
Constructs a new asynchronous client to invoke service methods on CloudFront using the specified AWS account credentials and executor service. Default client settings will be used.- Parameters:
awsCredentials- The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.executorService- The executor service by which all asynchronous requests will be executed.
-
AmazonCloudFrontAsyncClient
public AmazonCloudFrontAsyncClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration, ExecutorService executorService) Constructs a new asynchronous client to invoke service methods on CloudFront using the specified AWS account credentials, executor service, and client configuration options.- Parameters:
awsCredentials- The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.clientConfiguration- Client configuration options (ex: max retry limit, proxy settings, etc).executorService- The executor service by which all asynchronous requests will be executed.
-
AmazonCloudFrontAsyncClient
Constructs a new asynchronous client to invoke service methods on CloudFront using the specified AWS account credentials provider. Default client settings will be used.Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default maximum number of concurrent connections to the service).
- Parameters:
awsCredentialsProvider- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.- See Also:
-
AmazonCloudFrontAsyncClient
public AmazonCloudFrontAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration) Constructs a new asynchronous client to invoke service methods on CloudFront using the provided AWS account credentials provider and client configuration options.Asynchronous methods are delegated to a fixed-size thread pool containing a number of threads equal to the maximum number of concurrent connections configured via
ClientConfiguration.getMaxConnections().- Parameters:
awsCredentialsProvider- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.clientConfiguration- Client configuration options (ex: max retry limit, proxy settings, etc).- See Also:
-
AmazonCloudFrontAsyncClient
public AmazonCloudFrontAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ExecutorService executorService) Constructs a new asynchronous client to invoke service methods on CloudFront using the specified AWS account credentials provider and executor service. Default client settings will be used.- Parameters:
awsCredentialsProvider- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.executorService- The executor service by which all asynchronous requests will be executed.
-
AmazonCloudFrontAsyncClient
public AmazonCloudFrontAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, ExecutorService executorService) Constructs a new asynchronous client to invoke service methods on CloudFront using the specified AWS account credentials provider, executor service, and client configuration options.- Parameters:
awsCredentialsProvider- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.clientConfiguration- Client configuration options (ex: max retry limit, proxy settings, etc).executorService- The executor service by which all asynchronous requests will be executed.
-
-
Method Details
-
getExecutorService
Returns the executor service used by this client to execute async requests.- Returns:
- The executor service used by this client to execute async requests.
-
createCloudFrontOriginAccessIdentityAsync
public Future<CreateCloudFrontOriginAccessIdentityResult> createCloudFrontOriginAccessIdentityAsync(CreateCloudFrontOriginAccessIdentityRequest request) Description copied from interface:AmazonCloudFrontAsyncCreate a new origin access identity.- Specified by:
createCloudFrontOriginAccessIdentityAsyncin interfaceAmazonCloudFrontAsync- Parameters:
request- The request to create a new origin access identity.- Returns:
- A Java Future containing the result of the CreateCloudFrontOriginAccessIdentity operation returned by the service.
-
createCloudFrontOriginAccessIdentityAsync
public Future<CreateCloudFrontOriginAccessIdentityResult> createCloudFrontOriginAccessIdentityAsync(CreateCloudFrontOriginAccessIdentityRequest request, AsyncHandler<CreateCloudFrontOriginAccessIdentityRequest, CreateCloudFrontOriginAccessIdentityResult> asyncHandler) Description copied from interface:AmazonCloudFrontAsyncCreate a new origin access identity.- Specified by:
createCloudFrontOriginAccessIdentityAsyncin interfaceAmazonCloudFrontAsync- Parameters:
request- The request to create a new origin access identity.asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the CreateCloudFrontOriginAccessIdentity operation returned by the service.
-
createDistributionAsync
Description copied from interface:AmazonCloudFrontAsyncCreate a new distribution.- Specified by:
createDistributionAsyncin interfaceAmazonCloudFrontAsync- Parameters:
request- The request to create a new distribution.- Returns:
- A Java Future containing the result of the CreateDistribution operation returned by the service.
-
createDistributionAsync
public Future<CreateDistributionResult> createDistributionAsync(CreateDistributionRequest request, AsyncHandler<CreateDistributionRequest, CreateDistributionResult> asyncHandler) Description copied from interface:AmazonCloudFrontAsyncCreate a new distribution.- Specified by:
createDistributionAsyncin interfaceAmazonCloudFrontAsync- Parameters:
request- The request to create a new distribution.asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the CreateDistribution operation returned by the service.
-
createInvalidationAsync
Description copied from interface:AmazonCloudFrontAsyncCreate a new invalidation.- Specified by:
createInvalidationAsyncin interfaceAmazonCloudFrontAsync- Parameters:
request- The request to create an invalidation.- Returns:
- A Java Future containing the result of the CreateInvalidation operation returned by the service.
-
createInvalidationAsync
public Future<CreateInvalidationResult> createInvalidationAsync(CreateInvalidationRequest request, AsyncHandler<CreateInvalidationRequest, CreateInvalidationResult> asyncHandler) Description copied from interface:AmazonCloudFrontAsyncCreate a new invalidation.- Specified by:
createInvalidationAsyncin interfaceAmazonCloudFrontAsync- Parameters:
request- The request to create an invalidation.asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the CreateInvalidation operation returned by the service.
-
createStreamingDistributionAsync
public Future<CreateStreamingDistributionResult> createStreamingDistributionAsync(CreateStreamingDistributionRequest request) Description copied from interface:AmazonCloudFrontAsyncCreate a new streaming distribution.- Specified by:
createStreamingDistributionAsyncin interfaceAmazonCloudFrontAsync- Parameters:
request- The request to create a new streaming distribution.- Returns:
- A Java Future containing the result of the CreateStreamingDistribution operation returned by the service.
-
createStreamingDistributionAsync
public Future<CreateStreamingDistributionResult> createStreamingDistributionAsync(CreateStreamingDistributionRequest request, AsyncHandler<CreateStreamingDistributionRequest, CreateStreamingDistributionResult> asyncHandler) Description copied from interface:AmazonCloudFrontAsyncCreate a new streaming distribution.- Specified by:
createStreamingDistributionAsyncin interfaceAmazonCloudFrontAsync- Parameters:
request- The request to create a new streaming distribution.asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the CreateStreamingDistribution operation returned by the service.
-
deleteCloudFrontOriginAccessIdentityAsync
public Future<DeleteCloudFrontOriginAccessIdentityResult> deleteCloudFrontOriginAccessIdentityAsync(DeleteCloudFrontOriginAccessIdentityRequest request) Description copied from interface:AmazonCloudFrontAsyncDelete an origin access identity.- Specified by:
deleteCloudFrontOriginAccessIdentityAsyncin interfaceAmazonCloudFrontAsync- Parameters:
request- The request to delete a origin access identity.- Returns:
- A Java Future containing the result of the DeleteCloudFrontOriginAccessIdentity operation returned by the service.
-
deleteCloudFrontOriginAccessIdentityAsync
public Future<DeleteCloudFrontOriginAccessIdentityResult> deleteCloudFrontOriginAccessIdentityAsync(DeleteCloudFrontOriginAccessIdentityRequest request, AsyncHandler<DeleteCloudFrontOriginAccessIdentityRequest, DeleteCloudFrontOriginAccessIdentityResult> asyncHandler) Description copied from interface:AmazonCloudFrontAsyncDelete an origin access identity.- Specified by:
deleteCloudFrontOriginAccessIdentityAsyncin interfaceAmazonCloudFrontAsync- Parameters:
request- The request to delete a origin access identity.asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DeleteCloudFrontOriginAccessIdentity operation returned by the service.
-
deleteDistributionAsync
Description copied from interface:AmazonCloudFrontAsyncDelete a distribution.- Specified by:
deleteDistributionAsyncin interfaceAmazonCloudFrontAsync- Parameters:
request- The request to delete a distribution.- Returns:
- A Java Future containing the result of the DeleteDistribution operation returned by the service.
-
deleteDistributionAsync
public Future<DeleteDistributionResult> deleteDistributionAsync(DeleteDistributionRequest request, AsyncHandler<DeleteDistributionRequest, DeleteDistributionResult> asyncHandler) Description copied from interface:AmazonCloudFrontAsyncDelete a distribution.- Specified by:
deleteDistributionAsyncin interfaceAmazonCloudFrontAsync- Parameters:
request- The request to delete a distribution.asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DeleteDistribution operation returned by the service.
-
deleteStreamingDistributionAsync
public Future<DeleteStreamingDistributionResult> deleteStreamingDistributionAsync(DeleteStreamingDistributionRequest request) Description copied from interface:AmazonCloudFrontAsyncDelete a streaming distribution.- Specified by:
deleteStreamingDistributionAsyncin interfaceAmazonCloudFrontAsync- Parameters:
request- The request to delete a streaming distribution.- Returns:
- A Java Future containing the result of the DeleteStreamingDistribution operation returned by the service.
-
deleteStreamingDistributionAsync
public Future<DeleteStreamingDistributionResult> deleteStreamingDistributionAsync(DeleteStreamingDistributionRequest request, AsyncHandler<DeleteStreamingDistributionRequest, DeleteStreamingDistributionResult> asyncHandler) Description copied from interface:AmazonCloudFrontAsyncDelete a streaming distribution.- Specified by:
deleteStreamingDistributionAsyncin interfaceAmazonCloudFrontAsync- Parameters:
request- The request to delete a streaming distribution.asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DeleteStreamingDistribution operation returned by the service.
-
getCloudFrontOriginAccessIdentityAsync
public Future<GetCloudFrontOriginAccessIdentityResult> getCloudFrontOriginAccessIdentityAsync(GetCloudFrontOriginAccessIdentityRequest request) Description copied from interface:AmazonCloudFrontAsyncGet the information about an origin access identity.- Specified by:
getCloudFrontOriginAccessIdentityAsyncin interfaceAmazonCloudFrontAsync- Parameters:
request- The request to get an origin access identity's information.- Returns:
- A Java Future containing the result of the GetCloudFrontOriginAccessIdentity operation returned by the service.
-
getCloudFrontOriginAccessIdentityAsync
public Future<GetCloudFrontOriginAccessIdentityResult> getCloudFrontOriginAccessIdentityAsync(GetCloudFrontOriginAccessIdentityRequest request, AsyncHandler<GetCloudFrontOriginAccessIdentityRequest, GetCloudFrontOriginAccessIdentityResult> asyncHandler) Description copied from interface:AmazonCloudFrontAsyncGet the information about an origin access identity.- Specified by:
getCloudFrontOriginAccessIdentityAsyncin interfaceAmazonCloudFrontAsync- Parameters:
request- The request to get an origin access identity's information.asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the GetCloudFrontOriginAccessIdentity operation returned by the service.
-
getCloudFrontOriginAccessIdentityConfigAsync
public Future<GetCloudFrontOriginAccessIdentityConfigResult> getCloudFrontOriginAccessIdentityConfigAsync(GetCloudFrontOriginAccessIdentityConfigRequest request) Description copied from interface:AmazonCloudFrontAsyncGet the configuration information about an origin access identity.- Specified by:
getCloudFrontOriginAccessIdentityConfigAsyncin interfaceAmazonCloudFrontAsync- Parameters:
request- The request to get an origin access identity's configuration.- Returns:
- A Java Future containing the result of the GetCloudFrontOriginAccessIdentityConfig operation returned by the service.
-
getCloudFrontOriginAccessIdentityConfigAsync
public Future<GetCloudFrontOriginAccessIdentityConfigResult> getCloudFrontOriginAccessIdentityConfigAsync(GetCloudFrontOriginAccessIdentityConfigRequest request, AsyncHandler<GetCloudFrontOriginAccessIdentityConfigRequest, GetCloudFrontOriginAccessIdentityConfigResult> asyncHandler) Description copied from interface:AmazonCloudFrontAsyncGet the configuration information about an origin access identity.- Specified by:
getCloudFrontOriginAccessIdentityConfigAsyncin interfaceAmazonCloudFrontAsync- Parameters:
request- The request to get an origin access identity's configuration.asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the GetCloudFrontOriginAccessIdentityConfig operation returned by the service.
-
getDistributionAsync
Description copied from interface:AmazonCloudFrontAsyncGet the information about a distribution.- Specified by:
getDistributionAsyncin interfaceAmazonCloudFrontAsync- Parameters:
request- The request to get a distribution's information.- Returns:
- A Java Future containing the result of the GetDistribution operation returned by the service.
-
getDistributionAsync
public Future<GetDistributionResult> getDistributionAsync(GetDistributionRequest request, AsyncHandler<GetDistributionRequest, GetDistributionResult> asyncHandler) Description copied from interface:AmazonCloudFrontAsyncGet the information about a distribution.- Specified by:
getDistributionAsyncin interfaceAmazonCloudFrontAsync- Parameters:
request- The request to get a distribution's information.asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the GetDistribution operation returned by the service.
-
getDistributionConfigAsync
public Future<GetDistributionConfigResult> getDistributionConfigAsync(GetDistributionConfigRequest request) Description copied from interface:AmazonCloudFrontAsyncGet the configuration information about a distribution.- Specified by:
getDistributionConfigAsyncin interfaceAmazonCloudFrontAsync- Parameters:
request- The request to get a distribution configuration.- Returns:
- A Java Future containing the result of the GetDistributionConfig operation returned by the service.
-
getDistributionConfigAsync
public Future<GetDistributionConfigResult> getDistributionConfigAsync(GetDistributionConfigRequest request, AsyncHandler<GetDistributionConfigRequest, GetDistributionConfigResult> asyncHandler) Description copied from interface:AmazonCloudFrontAsyncGet the configuration information about a distribution.- Specified by:
getDistributionConfigAsyncin interfaceAmazonCloudFrontAsync- Parameters:
request- The request to get a distribution configuration.asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the GetDistributionConfig operation returned by the service.
-
getInvalidationAsync
Description copied from interface:AmazonCloudFrontAsyncGet the information about an invalidation.- Specified by:
getInvalidationAsyncin interfaceAmazonCloudFrontAsync- Parameters:
request- The request to get an invalidation's information.- Returns:
- A Java Future containing the result of the GetInvalidation operation returned by the service.
-
getInvalidationAsync
public Future<GetInvalidationResult> getInvalidationAsync(GetInvalidationRequest request, AsyncHandler<GetInvalidationRequest, GetInvalidationResult> asyncHandler) Description copied from interface:AmazonCloudFrontAsyncGet the information about an invalidation.- Specified by:
getInvalidationAsyncin interfaceAmazonCloudFrontAsync- Parameters:
request- The request to get an invalidation's information.asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the GetInvalidation operation returned by the service.
-
getStreamingDistributionAsync
public Future<GetStreamingDistributionResult> getStreamingDistributionAsync(GetStreamingDistributionRequest request) Description copied from interface:AmazonCloudFrontAsyncGet the information about a streaming distribution.- Specified by:
getStreamingDistributionAsyncin interfaceAmazonCloudFrontAsync- Parameters:
request- The request to get a streaming distribution's information.- Returns:
- A Java Future containing the result of the GetStreamingDistribution operation returned by the service.
-
getStreamingDistributionAsync
public Future<GetStreamingDistributionResult> getStreamingDistributionAsync(GetStreamingDistributionRequest request, AsyncHandler<GetStreamingDistributionRequest, GetStreamingDistributionResult> asyncHandler) Description copied from interface:AmazonCloudFrontAsyncGet the information about a streaming distribution.- Specified by:
getStreamingDistributionAsyncin interfaceAmazonCloudFrontAsync- Parameters:
request- The request to get a streaming distribution's information.asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the GetStreamingDistribution operation returned by the service.
-
getStreamingDistributionConfigAsync
public Future<GetStreamingDistributionConfigResult> getStreamingDistributionConfigAsync(GetStreamingDistributionConfigRequest request) Description copied from interface:AmazonCloudFrontAsyncGet the configuration information about a streaming distribution.- Specified by:
getStreamingDistributionConfigAsyncin interfaceAmazonCloudFrontAsync- Parameters:
request- To request to get a streaming distribution configuration.- Returns:
- A Java Future containing the result of the GetStreamingDistributionConfig operation returned by the service.
-
getStreamingDistributionConfigAsync
public Future<GetStreamingDistributionConfigResult> getStreamingDistributionConfigAsync(GetStreamingDistributionConfigRequest request, AsyncHandler<GetStreamingDistributionConfigRequest, GetStreamingDistributionConfigResult> asyncHandler) Description copied from interface:AmazonCloudFrontAsyncGet the configuration information about a streaming distribution.- Specified by:
getStreamingDistributionConfigAsyncin interfaceAmazonCloudFrontAsync- Parameters:
request- To request to get a streaming distribution configuration.asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the GetStreamingDistributionConfig operation returned by the service.
-
listCloudFrontOriginAccessIdentitiesAsync
public Future<ListCloudFrontOriginAccessIdentitiesResult> listCloudFrontOriginAccessIdentitiesAsync(ListCloudFrontOriginAccessIdentitiesRequest request) Description copied from interface:AmazonCloudFrontAsyncList origin access identities.- Specified by:
listCloudFrontOriginAccessIdentitiesAsyncin interfaceAmazonCloudFrontAsync- Parameters:
request- The request to list origin access identities.- Returns:
- A Java Future containing the result of the ListCloudFrontOriginAccessIdentities operation returned by the service.
-
listCloudFrontOriginAccessIdentitiesAsync
public Future<ListCloudFrontOriginAccessIdentitiesResult> listCloudFrontOriginAccessIdentitiesAsync(ListCloudFrontOriginAccessIdentitiesRequest request, AsyncHandler<ListCloudFrontOriginAccessIdentitiesRequest, ListCloudFrontOriginAccessIdentitiesResult> asyncHandler) Description copied from interface:AmazonCloudFrontAsyncList origin access identities.- Specified by:
listCloudFrontOriginAccessIdentitiesAsyncin interfaceAmazonCloudFrontAsync- Parameters:
request- The request to list origin access identities.asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the ListCloudFrontOriginAccessIdentities operation returned by the service.
-
listDistributionsAsync
Description copied from interface:AmazonCloudFrontAsyncList distributions.- Specified by:
listDistributionsAsyncin interfaceAmazonCloudFrontAsync- Parameters:
request- The request to list your distributions.- Returns:
- A Java Future containing the result of the ListDistributions operation returned by the service.
-
listDistributionsAsync
public Future<ListDistributionsResult> listDistributionsAsync(ListDistributionsRequest request, AsyncHandler<ListDistributionsRequest, ListDistributionsResult> asyncHandler) Description copied from interface:AmazonCloudFrontAsyncList distributions.- Specified by:
listDistributionsAsyncin interfaceAmazonCloudFrontAsync- Parameters:
request- The request to list your distributions.asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the ListDistributions operation returned by the service.
-
listDistributionsByWebACLIdAsync
public Future<ListDistributionsByWebACLIdResult> listDistributionsByWebACLIdAsync(ListDistributionsByWebACLIdRequest request) Description copied from interface:AmazonCloudFrontAsyncList the distributions that are associated with a specified AWS WAF web ACL.- Specified by:
listDistributionsByWebACLIdAsyncin interfaceAmazonCloudFrontAsync- Parameters:
request- The request to list distributions that are associated with a specified AWS WAF web ACL.- Returns:
- A Java Future containing the result of the ListDistributionsByWebACLId operation returned by the service.
-
listDistributionsByWebACLIdAsync
public Future<ListDistributionsByWebACLIdResult> listDistributionsByWebACLIdAsync(ListDistributionsByWebACLIdRequest request, AsyncHandler<ListDistributionsByWebACLIdRequest, ListDistributionsByWebACLIdResult> asyncHandler) Description copied from interface:AmazonCloudFrontAsyncList the distributions that are associated with a specified AWS WAF web ACL.- Specified by:
listDistributionsByWebACLIdAsyncin interfaceAmazonCloudFrontAsync- Parameters:
request- The request to list distributions that are associated with a specified AWS WAF web ACL.asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the ListDistributionsByWebACLId operation returned by the service.
-
listInvalidationsAsync
Description copied from interface:AmazonCloudFrontAsyncList invalidation batches.- Specified by:
listInvalidationsAsyncin interfaceAmazonCloudFrontAsync- Parameters:
request- The request to list invalidations.- Returns:
- A Java Future containing the result of the ListInvalidations operation returned by the service.
-
listInvalidationsAsync
public Future<ListInvalidationsResult> listInvalidationsAsync(ListInvalidationsRequest request, AsyncHandler<ListInvalidationsRequest, ListInvalidationsResult> asyncHandler) Description copied from interface:AmazonCloudFrontAsyncList invalidation batches.- Specified by:
listInvalidationsAsyncin interfaceAmazonCloudFrontAsync- Parameters:
request- The request to list invalidations.asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the ListInvalidations operation returned by the service.
-
listStreamingDistributionsAsync
public Future<ListStreamingDistributionsResult> listStreamingDistributionsAsync(ListStreamingDistributionsRequest request) Description copied from interface:AmazonCloudFrontAsyncList streaming distributions.- Specified by:
listStreamingDistributionsAsyncin interfaceAmazonCloudFrontAsync- Parameters:
request- The request to list your streaming distributions.- Returns:
- A Java Future containing the result of the ListStreamingDistributions operation returned by the service.
-
listStreamingDistributionsAsync
public Future<ListStreamingDistributionsResult> listStreamingDistributionsAsync(ListStreamingDistributionsRequest request, AsyncHandler<ListStreamingDistributionsRequest, ListStreamingDistributionsResult> asyncHandler) Description copied from interface:AmazonCloudFrontAsyncList streaming distributions.- Specified by:
listStreamingDistributionsAsyncin interfaceAmazonCloudFrontAsync- Parameters:
request- The request to list your streaming distributions.asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the ListStreamingDistributions operation returned by the service.
-
updateCloudFrontOriginAccessIdentityAsync
public Future<UpdateCloudFrontOriginAccessIdentityResult> updateCloudFrontOriginAccessIdentityAsync(UpdateCloudFrontOriginAccessIdentityRequest request) Description copied from interface:AmazonCloudFrontAsyncUpdate an origin access identity.- Specified by:
updateCloudFrontOriginAccessIdentityAsyncin interfaceAmazonCloudFrontAsync- Parameters:
request- The request to update an origin access identity.- Returns:
- A Java Future containing the result of the UpdateCloudFrontOriginAccessIdentity operation returned by the service.
-
updateCloudFrontOriginAccessIdentityAsync
public Future<UpdateCloudFrontOriginAccessIdentityResult> updateCloudFrontOriginAccessIdentityAsync(UpdateCloudFrontOriginAccessIdentityRequest request, AsyncHandler<UpdateCloudFrontOriginAccessIdentityRequest, UpdateCloudFrontOriginAccessIdentityResult> asyncHandler) Description copied from interface:AmazonCloudFrontAsyncUpdate an origin access identity.- Specified by:
updateCloudFrontOriginAccessIdentityAsyncin interfaceAmazonCloudFrontAsync- Parameters:
request- The request to update an origin access identity.asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the UpdateCloudFrontOriginAccessIdentity operation returned by the service.
-
updateDistributionAsync
Description copied from interface:AmazonCloudFrontAsyncUpdate a distribution.- Specified by:
updateDistributionAsyncin interfaceAmazonCloudFrontAsync- Parameters:
request- The request to update a distribution.- Returns:
- A Java Future containing the result of the UpdateDistribution operation returned by the service.
-
updateDistributionAsync
public Future<UpdateDistributionResult> updateDistributionAsync(UpdateDistributionRequest request, AsyncHandler<UpdateDistributionRequest, UpdateDistributionResult> asyncHandler) Description copied from interface:AmazonCloudFrontAsyncUpdate a distribution.- Specified by:
updateDistributionAsyncin interfaceAmazonCloudFrontAsync- Parameters:
request- The request to update a distribution.asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the UpdateDistribution operation returned by the service.
-
updateStreamingDistributionAsync
public Future<UpdateStreamingDistributionResult> updateStreamingDistributionAsync(UpdateStreamingDistributionRequest request) Description copied from interface:AmazonCloudFrontAsyncUpdate a streaming distribution.- Specified by:
updateStreamingDistributionAsyncin interfaceAmazonCloudFrontAsync- Parameters:
request- The request to update a streaming distribution.- Returns:
- A Java Future containing the result of the UpdateStreamingDistribution operation returned by the service.
-
updateStreamingDistributionAsync
public Future<UpdateStreamingDistributionResult> updateStreamingDistributionAsync(UpdateStreamingDistributionRequest request, AsyncHandler<UpdateStreamingDistributionRequest, UpdateStreamingDistributionResult> asyncHandler) Description copied from interface:AmazonCloudFrontAsyncUpdate a streaming distribution.- Specified by:
updateStreamingDistributionAsyncin interfaceAmazonCloudFrontAsync- Parameters:
request- The request to update a streaming distribution.asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the UpdateStreamingDistribution operation returned by the service.
-
shutdown
public void shutdown()Shuts down the client, releasing all managed resources. This includes forcibly terminating all pending asynchronous service calls. Clients who wish to give pending asynchronous service calls time to complete should callgetExecutorService().shutdown()followed bygetExecutorService().awaitTermination()prior to calling this method.- Specified by:
shutdownin interfaceAmazonCloudFront- Overrides:
shutdownin classAmazonWebServiceClient
-