
software.amazon.awssdk.services.cloudfront.CloudFrontAsyncClient Maven / Gradle / Ivy
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package software.amazon.awssdk.services.cloudfront;
import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.annotations.SdkPublicApi;
import software.amazon.awssdk.annotations.ThreadSafe;
import software.amazon.awssdk.core.SdkClient;
import software.amazon.awssdk.services.cloudfront.model.AssociateAliasRequest;
import software.amazon.awssdk.services.cloudfront.model.AssociateAliasResponse;
import software.amazon.awssdk.services.cloudfront.model.CreateCachePolicyRequest;
import software.amazon.awssdk.services.cloudfront.model.CreateCachePolicyResponse;
import software.amazon.awssdk.services.cloudfront.model.CreateCloudFrontOriginAccessIdentityRequest;
import software.amazon.awssdk.services.cloudfront.model.CreateCloudFrontOriginAccessIdentityResponse;
import software.amazon.awssdk.services.cloudfront.model.CreateDistributionRequest;
import software.amazon.awssdk.services.cloudfront.model.CreateDistributionResponse;
import software.amazon.awssdk.services.cloudfront.model.CreateDistributionWithTagsRequest;
import software.amazon.awssdk.services.cloudfront.model.CreateDistributionWithTagsResponse;
import software.amazon.awssdk.services.cloudfront.model.CreateFieldLevelEncryptionConfigRequest;
import software.amazon.awssdk.services.cloudfront.model.CreateFieldLevelEncryptionConfigResponse;
import software.amazon.awssdk.services.cloudfront.model.CreateFieldLevelEncryptionProfileRequest;
import software.amazon.awssdk.services.cloudfront.model.CreateFieldLevelEncryptionProfileResponse;
import software.amazon.awssdk.services.cloudfront.model.CreateFunctionRequest;
import software.amazon.awssdk.services.cloudfront.model.CreateFunctionResponse;
import software.amazon.awssdk.services.cloudfront.model.CreateInvalidationRequest;
import software.amazon.awssdk.services.cloudfront.model.CreateInvalidationResponse;
import software.amazon.awssdk.services.cloudfront.model.CreateKeyGroupRequest;
import software.amazon.awssdk.services.cloudfront.model.CreateKeyGroupResponse;
import software.amazon.awssdk.services.cloudfront.model.CreateMonitoringSubscriptionRequest;
import software.amazon.awssdk.services.cloudfront.model.CreateMonitoringSubscriptionResponse;
import software.amazon.awssdk.services.cloudfront.model.CreateOriginRequestPolicyRequest;
import software.amazon.awssdk.services.cloudfront.model.CreateOriginRequestPolicyResponse;
import software.amazon.awssdk.services.cloudfront.model.CreatePublicKeyRequest;
import software.amazon.awssdk.services.cloudfront.model.CreatePublicKeyResponse;
import software.amazon.awssdk.services.cloudfront.model.CreateRealtimeLogConfigRequest;
import software.amazon.awssdk.services.cloudfront.model.CreateRealtimeLogConfigResponse;
import software.amazon.awssdk.services.cloudfront.model.CreateStreamingDistributionRequest;
import software.amazon.awssdk.services.cloudfront.model.CreateStreamingDistributionResponse;
import software.amazon.awssdk.services.cloudfront.model.CreateStreamingDistributionWithTagsRequest;
import software.amazon.awssdk.services.cloudfront.model.CreateStreamingDistributionWithTagsResponse;
import software.amazon.awssdk.services.cloudfront.model.DeleteCachePolicyRequest;
import software.amazon.awssdk.services.cloudfront.model.DeleteCachePolicyResponse;
import software.amazon.awssdk.services.cloudfront.model.DeleteCloudFrontOriginAccessIdentityRequest;
import software.amazon.awssdk.services.cloudfront.model.DeleteCloudFrontOriginAccessIdentityResponse;
import software.amazon.awssdk.services.cloudfront.model.DeleteDistributionRequest;
import software.amazon.awssdk.services.cloudfront.model.DeleteDistributionResponse;
import software.amazon.awssdk.services.cloudfront.model.DeleteFieldLevelEncryptionConfigRequest;
import software.amazon.awssdk.services.cloudfront.model.DeleteFieldLevelEncryptionConfigResponse;
import software.amazon.awssdk.services.cloudfront.model.DeleteFieldLevelEncryptionProfileRequest;
import software.amazon.awssdk.services.cloudfront.model.DeleteFieldLevelEncryptionProfileResponse;
import software.amazon.awssdk.services.cloudfront.model.DeleteFunctionRequest;
import software.amazon.awssdk.services.cloudfront.model.DeleteFunctionResponse;
import software.amazon.awssdk.services.cloudfront.model.DeleteKeyGroupRequest;
import software.amazon.awssdk.services.cloudfront.model.DeleteKeyGroupResponse;
import software.amazon.awssdk.services.cloudfront.model.DeleteMonitoringSubscriptionRequest;
import software.amazon.awssdk.services.cloudfront.model.DeleteMonitoringSubscriptionResponse;
import software.amazon.awssdk.services.cloudfront.model.DeleteOriginRequestPolicyRequest;
import software.amazon.awssdk.services.cloudfront.model.DeleteOriginRequestPolicyResponse;
import software.amazon.awssdk.services.cloudfront.model.DeletePublicKeyRequest;
import software.amazon.awssdk.services.cloudfront.model.DeletePublicKeyResponse;
import software.amazon.awssdk.services.cloudfront.model.DeleteRealtimeLogConfigRequest;
import software.amazon.awssdk.services.cloudfront.model.DeleteRealtimeLogConfigResponse;
import software.amazon.awssdk.services.cloudfront.model.DeleteStreamingDistributionRequest;
import software.amazon.awssdk.services.cloudfront.model.DeleteStreamingDistributionResponse;
import software.amazon.awssdk.services.cloudfront.model.DescribeFunctionRequest;
import software.amazon.awssdk.services.cloudfront.model.DescribeFunctionResponse;
import software.amazon.awssdk.services.cloudfront.model.GetCachePolicyConfigRequest;
import software.amazon.awssdk.services.cloudfront.model.GetCachePolicyConfigResponse;
import software.amazon.awssdk.services.cloudfront.model.GetCachePolicyRequest;
import software.amazon.awssdk.services.cloudfront.model.GetCachePolicyResponse;
import software.amazon.awssdk.services.cloudfront.model.GetCloudFrontOriginAccessIdentityConfigRequest;
import software.amazon.awssdk.services.cloudfront.model.GetCloudFrontOriginAccessIdentityConfigResponse;
import software.amazon.awssdk.services.cloudfront.model.GetCloudFrontOriginAccessIdentityRequest;
import software.amazon.awssdk.services.cloudfront.model.GetCloudFrontOriginAccessIdentityResponse;
import software.amazon.awssdk.services.cloudfront.model.GetDistributionConfigRequest;
import software.amazon.awssdk.services.cloudfront.model.GetDistributionConfigResponse;
import software.amazon.awssdk.services.cloudfront.model.GetDistributionRequest;
import software.amazon.awssdk.services.cloudfront.model.GetDistributionResponse;
import software.amazon.awssdk.services.cloudfront.model.GetFieldLevelEncryptionConfigRequest;
import software.amazon.awssdk.services.cloudfront.model.GetFieldLevelEncryptionConfigResponse;
import software.amazon.awssdk.services.cloudfront.model.GetFieldLevelEncryptionProfileConfigRequest;
import software.amazon.awssdk.services.cloudfront.model.GetFieldLevelEncryptionProfileConfigResponse;
import software.amazon.awssdk.services.cloudfront.model.GetFieldLevelEncryptionProfileRequest;
import software.amazon.awssdk.services.cloudfront.model.GetFieldLevelEncryptionProfileResponse;
import software.amazon.awssdk.services.cloudfront.model.GetFieldLevelEncryptionRequest;
import software.amazon.awssdk.services.cloudfront.model.GetFieldLevelEncryptionResponse;
import software.amazon.awssdk.services.cloudfront.model.GetFunctionRequest;
import software.amazon.awssdk.services.cloudfront.model.GetFunctionResponse;
import software.amazon.awssdk.services.cloudfront.model.GetInvalidationRequest;
import software.amazon.awssdk.services.cloudfront.model.GetInvalidationResponse;
import software.amazon.awssdk.services.cloudfront.model.GetKeyGroupConfigRequest;
import software.amazon.awssdk.services.cloudfront.model.GetKeyGroupConfigResponse;
import software.amazon.awssdk.services.cloudfront.model.GetKeyGroupRequest;
import software.amazon.awssdk.services.cloudfront.model.GetKeyGroupResponse;
import software.amazon.awssdk.services.cloudfront.model.GetMonitoringSubscriptionRequest;
import software.amazon.awssdk.services.cloudfront.model.GetMonitoringSubscriptionResponse;
import software.amazon.awssdk.services.cloudfront.model.GetOriginRequestPolicyConfigRequest;
import software.amazon.awssdk.services.cloudfront.model.GetOriginRequestPolicyConfigResponse;
import software.amazon.awssdk.services.cloudfront.model.GetOriginRequestPolicyRequest;
import software.amazon.awssdk.services.cloudfront.model.GetOriginRequestPolicyResponse;
import software.amazon.awssdk.services.cloudfront.model.GetPublicKeyConfigRequest;
import software.amazon.awssdk.services.cloudfront.model.GetPublicKeyConfigResponse;
import software.amazon.awssdk.services.cloudfront.model.GetPublicKeyRequest;
import software.amazon.awssdk.services.cloudfront.model.GetPublicKeyResponse;
import software.amazon.awssdk.services.cloudfront.model.GetRealtimeLogConfigRequest;
import software.amazon.awssdk.services.cloudfront.model.GetRealtimeLogConfigResponse;
import software.amazon.awssdk.services.cloudfront.model.GetStreamingDistributionConfigRequest;
import software.amazon.awssdk.services.cloudfront.model.GetStreamingDistributionConfigResponse;
import software.amazon.awssdk.services.cloudfront.model.GetStreamingDistributionRequest;
import software.amazon.awssdk.services.cloudfront.model.GetStreamingDistributionResponse;
import software.amazon.awssdk.services.cloudfront.model.ListCachePoliciesRequest;
import software.amazon.awssdk.services.cloudfront.model.ListCachePoliciesResponse;
import software.amazon.awssdk.services.cloudfront.model.ListCloudFrontOriginAccessIdentitiesRequest;
import software.amazon.awssdk.services.cloudfront.model.ListCloudFrontOriginAccessIdentitiesResponse;
import software.amazon.awssdk.services.cloudfront.model.ListConflictingAliasesRequest;
import software.amazon.awssdk.services.cloudfront.model.ListConflictingAliasesResponse;
import software.amazon.awssdk.services.cloudfront.model.ListDistributionsByCachePolicyIdRequest;
import software.amazon.awssdk.services.cloudfront.model.ListDistributionsByCachePolicyIdResponse;
import software.amazon.awssdk.services.cloudfront.model.ListDistributionsByKeyGroupRequest;
import software.amazon.awssdk.services.cloudfront.model.ListDistributionsByKeyGroupResponse;
import software.amazon.awssdk.services.cloudfront.model.ListDistributionsByOriginRequestPolicyIdRequest;
import software.amazon.awssdk.services.cloudfront.model.ListDistributionsByOriginRequestPolicyIdResponse;
import software.amazon.awssdk.services.cloudfront.model.ListDistributionsByRealtimeLogConfigRequest;
import software.amazon.awssdk.services.cloudfront.model.ListDistributionsByRealtimeLogConfigResponse;
import software.amazon.awssdk.services.cloudfront.model.ListDistributionsByWebAclIdRequest;
import software.amazon.awssdk.services.cloudfront.model.ListDistributionsByWebAclIdResponse;
import software.amazon.awssdk.services.cloudfront.model.ListDistributionsRequest;
import software.amazon.awssdk.services.cloudfront.model.ListDistributionsResponse;
import software.amazon.awssdk.services.cloudfront.model.ListFieldLevelEncryptionConfigsRequest;
import software.amazon.awssdk.services.cloudfront.model.ListFieldLevelEncryptionConfigsResponse;
import software.amazon.awssdk.services.cloudfront.model.ListFieldLevelEncryptionProfilesRequest;
import software.amazon.awssdk.services.cloudfront.model.ListFieldLevelEncryptionProfilesResponse;
import software.amazon.awssdk.services.cloudfront.model.ListFunctionsRequest;
import software.amazon.awssdk.services.cloudfront.model.ListFunctionsResponse;
import software.amazon.awssdk.services.cloudfront.model.ListInvalidationsRequest;
import software.amazon.awssdk.services.cloudfront.model.ListInvalidationsResponse;
import software.amazon.awssdk.services.cloudfront.model.ListKeyGroupsRequest;
import software.amazon.awssdk.services.cloudfront.model.ListKeyGroupsResponse;
import software.amazon.awssdk.services.cloudfront.model.ListOriginRequestPoliciesRequest;
import software.amazon.awssdk.services.cloudfront.model.ListOriginRequestPoliciesResponse;
import software.amazon.awssdk.services.cloudfront.model.ListPublicKeysRequest;
import software.amazon.awssdk.services.cloudfront.model.ListPublicKeysResponse;
import software.amazon.awssdk.services.cloudfront.model.ListRealtimeLogConfigsRequest;
import software.amazon.awssdk.services.cloudfront.model.ListRealtimeLogConfigsResponse;
import software.amazon.awssdk.services.cloudfront.model.ListStreamingDistributionsRequest;
import software.amazon.awssdk.services.cloudfront.model.ListStreamingDistributionsResponse;
import software.amazon.awssdk.services.cloudfront.model.ListTagsForResourceRequest;
import software.amazon.awssdk.services.cloudfront.model.ListTagsForResourceResponse;
import software.amazon.awssdk.services.cloudfront.model.PublishFunctionRequest;
import software.amazon.awssdk.services.cloudfront.model.PublishFunctionResponse;
import software.amazon.awssdk.services.cloudfront.model.TagResourceRequest;
import software.amazon.awssdk.services.cloudfront.model.TagResourceResponse;
import software.amazon.awssdk.services.cloudfront.model.TestFunctionRequest;
import software.amazon.awssdk.services.cloudfront.model.TestFunctionResponse;
import software.amazon.awssdk.services.cloudfront.model.UntagResourceRequest;
import software.amazon.awssdk.services.cloudfront.model.UntagResourceResponse;
import software.amazon.awssdk.services.cloudfront.model.UpdateCachePolicyRequest;
import software.amazon.awssdk.services.cloudfront.model.UpdateCachePolicyResponse;
import software.amazon.awssdk.services.cloudfront.model.UpdateCloudFrontOriginAccessIdentityRequest;
import software.amazon.awssdk.services.cloudfront.model.UpdateCloudFrontOriginAccessIdentityResponse;
import software.amazon.awssdk.services.cloudfront.model.UpdateDistributionRequest;
import software.amazon.awssdk.services.cloudfront.model.UpdateDistributionResponse;
import software.amazon.awssdk.services.cloudfront.model.UpdateFieldLevelEncryptionConfigRequest;
import software.amazon.awssdk.services.cloudfront.model.UpdateFieldLevelEncryptionConfigResponse;
import software.amazon.awssdk.services.cloudfront.model.UpdateFieldLevelEncryptionProfileRequest;
import software.amazon.awssdk.services.cloudfront.model.UpdateFieldLevelEncryptionProfileResponse;
import software.amazon.awssdk.services.cloudfront.model.UpdateFunctionRequest;
import software.amazon.awssdk.services.cloudfront.model.UpdateFunctionResponse;
import software.amazon.awssdk.services.cloudfront.model.UpdateKeyGroupRequest;
import software.amazon.awssdk.services.cloudfront.model.UpdateKeyGroupResponse;
import software.amazon.awssdk.services.cloudfront.model.UpdateOriginRequestPolicyRequest;
import software.amazon.awssdk.services.cloudfront.model.UpdateOriginRequestPolicyResponse;
import software.amazon.awssdk.services.cloudfront.model.UpdatePublicKeyRequest;
import software.amazon.awssdk.services.cloudfront.model.UpdatePublicKeyResponse;
import software.amazon.awssdk.services.cloudfront.model.UpdateRealtimeLogConfigRequest;
import software.amazon.awssdk.services.cloudfront.model.UpdateRealtimeLogConfigResponse;
import software.amazon.awssdk.services.cloudfront.model.UpdateStreamingDistributionRequest;
import software.amazon.awssdk.services.cloudfront.model.UpdateStreamingDistributionResponse;
import software.amazon.awssdk.services.cloudfront.waiters.CloudFrontAsyncWaiter;
/**
* Service client for accessing CloudFront asynchronously. This can be created using the static {@link #builder()}
* method.
*
* Amazon CloudFront
*
* This is the Amazon CloudFront API Reference. This guide is for developers who need detailed information about
* CloudFront API actions, data types, and errors. For detailed information about CloudFront features, see the Amazon
* CloudFront Developer Guide.
*
*/
@Generated("software.amazon.awssdk:codegen")
@SdkPublicApi
@ThreadSafe
public interface CloudFrontAsyncClient extends SdkClient {
String SERVICE_NAME = "cloudfront";
/**
* Value for looking up the service's metadata from the
* {@link software.amazon.awssdk.regions.ServiceMetadataProvider}.
*/
String SERVICE_METADATA_ID = "cloudfront";
/**
* Create a {@link CloudFrontAsyncClient} with the region loaded from the
* {@link software.amazon.awssdk.regions.providers.DefaultAwsRegionProviderChain} and credentials loaded from the
* {@link software.amazon.awssdk.auth.credentials.DefaultCredentialsProvider}.
*/
static CloudFrontAsyncClient create() {
return builder().build();
}
/**
* Create a builder that can be used to configure and create a {@link CloudFrontAsyncClient}.
*/
static CloudFrontAsyncClientBuilder builder() {
return new DefaultCloudFrontAsyncClientBuilder();
}
/**
*
* Associates an alias (also known as a CNAME or an alternate domain name) with a CloudFront distribution.
*
*
* With this operation you can move an alias that’s already in use on a CloudFront distribution to a different
* distribution in one step. This prevents the downtime that could occur if you first remove the alias from one
* distribution and then separately add the alias to another distribution.
*
*
* To use this operation to associate an alias with a distribution, you provide the alias and the ID of the target
* distribution for the alias. For more information, including how to set up the target distribution, prerequisites
* that you must complete, and other restrictions, see Moving an alternate domain name to a different distribution in the Amazon CloudFront Developer Guide.
*
*
* @param associateAliasRequest
* @return A Java Future containing the result of the AssociateAlias operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - InvalidArgumentException An argument is invalid.
* - NoSuchDistributionException The specified distribution does not exist.
* - TooManyDistributionCnamEsException Your request contains more CNAMEs than are allowed per
* distribution.
* - IllegalUpdateException The update contains modifications that are not allowed.
* - AccessDeniedException Access denied.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.AssociateAlias
* @see AWS API
* Documentation
*/
default CompletableFuture associateAlias(AssociateAliasRequest associateAliasRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Associates an alias (also known as a CNAME or an alternate domain name) with a CloudFront distribution.
*
*
* With this operation you can move an alias that’s already in use on a CloudFront distribution to a different
* distribution in one step. This prevents the downtime that could occur if you first remove the alias from one
* distribution and then separately add the alias to another distribution.
*
*
* To use this operation to associate an alias with a distribution, you provide the alias and the ID of the target
* distribution for the alias. For more information, including how to set up the target distribution, prerequisites
* that you must complete, and other restrictions, see Moving an alternate domain name to a different distribution in the Amazon CloudFront Developer Guide.
*
*
*
* This is a convenience which creates an instance of the {@link AssociateAliasRequest.Builder} avoiding the need to
* create one manually via {@link AssociateAliasRequest#builder()}
*
*
* @param associateAliasRequest
* A {@link Consumer} that will call methods on {@link AssociateAliasRequest.Builder} to create a request.
* @return A Java Future containing the result of the AssociateAlias operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - InvalidArgumentException An argument is invalid.
* - NoSuchDistributionException The specified distribution does not exist.
* - TooManyDistributionCnamEsException Your request contains more CNAMEs than are allowed per
* distribution.
* - IllegalUpdateException The update contains modifications that are not allowed.
* - AccessDeniedException Access denied.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.AssociateAlias
* @see AWS API
* Documentation
*/
default CompletableFuture associateAlias(Consumer associateAliasRequest) {
return associateAlias(AssociateAliasRequest.builder().applyMutation(associateAliasRequest).build());
}
/**
*
* Creates a cache policy.
*
*
* After you create a cache policy, you can attach it to one or more cache behaviors. When it’s attached to a cache
* behavior, the cache policy determines the following:
*
*
* -
*
* The values that CloudFront includes in the cache key. These values can include HTTP headers, cookies, and
* URL query strings. CloudFront uses the cache key to find an object in its cache that it can return to the viewer.
*
*
* -
*
* The default, minimum, and maximum time to live (TTL) values that you want objects to stay in the CloudFront
* cache.
*
*
*
*
* The headers, cookies, and query strings that are included in the cache key are automatically included in requests
* that CloudFront sends to the origin. CloudFront sends a request when it can’t find an object in its cache that
* matches the request’s cache key. If you want to send values to the origin but not include them in the
* cache key, use OriginRequestPolicy
.
*
*
* For more information about cache policies, see Controlling the cache key in the Amazon CloudFront Developer Guide.
*
*
* @param createCachePolicyRequest
* @return A Java Future containing the result of the CreateCachePolicy operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - InconsistentQuantitiesException The value of
Quantity
and the size of Items
* don't match.
* - InvalidArgumentException An argument is invalid.
* - CachePolicyAlreadyExistsException A cache policy with this name already exists. You must provide a
* unique name. To modify an existing cache policy, use
UpdateCachePolicy
.
* - TooManyCachePoliciesException You have reached the maximum number of cache policies for this account.
* For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - TooManyHeadersInCachePolicyException The number of headers in the cache policy exceeds the maximum.
* For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - TooManyCookiesInCachePolicyException The number of cookies in the cache policy exceeds the maximum.
* For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - TooManyQueryStringsInCachePolicyException The number of query strings in the cache policy exceeds the
* maximum. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.CreateCachePolicy
* @see AWS
* API Documentation
*/
default CompletableFuture createCachePolicy(CreateCachePolicyRequest createCachePolicyRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Creates a cache policy.
*
*
* After you create a cache policy, you can attach it to one or more cache behaviors. When it’s attached to a cache
* behavior, the cache policy determines the following:
*
*
* -
*
* The values that CloudFront includes in the cache key. These values can include HTTP headers, cookies, and
* URL query strings. CloudFront uses the cache key to find an object in its cache that it can return to the viewer.
*
*
* -
*
* The default, minimum, and maximum time to live (TTL) values that you want objects to stay in the CloudFront
* cache.
*
*
*
*
* The headers, cookies, and query strings that are included in the cache key are automatically included in requests
* that CloudFront sends to the origin. CloudFront sends a request when it can’t find an object in its cache that
* matches the request’s cache key. If you want to send values to the origin but not include them in the
* cache key, use OriginRequestPolicy
.
*
*
* For more information about cache policies, see Controlling the cache key in the Amazon CloudFront Developer Guide.
*
*
*
* This is a convenience which creates an instance of the {@link CreateCachePolicyRequest.Builder} avoiding the need
* to create one manually via {@link CreateCachePolicyRequest#builder()}
*
*
* @param createCachePolicyRequest
* A {@link Consumer} that will call methods on {@link CreateCachePolicyRequest.Builder} to create a request.
* @return A Java Future containing the result of the CreateCachePolicy operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - InconsistentQuantitiesException The value of
Quantity
and the size of Items
* don't match.
* - InvalidArgumentException An argument is invalid.
* - CachePolicyAlreadyExistsException A cache policy with this name already exists. You must provide a
* unique name. To modify an existing cache policy, use
UpdateCachePolicy
.
* - TooManyCachePoliciesException You have reached the maximum number of cache policies for this account.
* For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - TooManyHeadersInCachePolicyException The number of headers in the cache policy exceeds the maximum.
* For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - TooManyCookiesInCachePolicyException The number of cookies in the cache policy exceeds the maximum.
* For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - TooManyQueryStringsInCachePolicyException The number of query strings in the cache policy exceeds the
* maximum. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.CreateCachePolicy
* @see AWS
* API Documentation
*/
default CompletableFuture createCachePolicy(
Consumer createCachePolicyRequest) {
return createCachePolicy(CreateCachePolicyRequest.builder().applyMutation(createCachePolicyRequest).build());
}
/**
*
* Creates a new origin access identity. If you're using Amazon S3 for your origin, you can use an origin access
* identity to require users to access your content using a CloudFront URL instead of the Amazon S3 URL. For more
* information about how to use origin access identities, see Serving Private
* Content through CloudFront in the Amazon CloudFront Developer Guide.
*
*
* @param createCloudFrontOriginAccessIdentityRequest
* The request to create a new origin access identity (OAI). An origin access identity is a special
* CloudFront user that you can associate with Amazon S3 origins, so that you can secure all or just some of
* your Amazon S3 content. For more information, see Restricting Access to Amazon S3 Content by Using an Origin Access Identity in the Amazon
* CloudFront Developer Guide.
* @return A Java Future containing the result of the CreateCloudFrontOriginAccessIdentity operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - 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 An argument is invalid.
* - InconsistentQuantitiesException The value of
Quantity
and the size of Items
* don't match.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.CreateCloudFrontOriginAccessIdentity
* @see AWS API Documentation
*/
default CompletableFuture createCloudFrontOriginAccessIdentity(
CreateCloudFrontOriginAccessIdentityRequest createCloudFrontOriginAccessIdentityRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Creates a new origin access identity. If you're using Amazon S3 for your origin, you can use an origin access
* identity to require users to access your content using a CloudFront URL instead of the Amazon S3 URL. For more
* information about how to use origin access identities, see Serving Private
* Content through CloudFront in the Amazon CloudFront Developer Guide.
*
*
*
* This is a convenience which creates an instance of the
* {@link CreateCloudFrontOriginAccessIdentityRequest.Builder} avoiding the need to create one manually via
* {@link CreateCloudFrontOriginAccessIdentityRequest#builder()}
*
*
* @param createCloudFrontOriginAccessIdentityRequest
* A {@link Consumer} that will call methods on {@link CreateCloudFrontOriginAccessIdentityRequest.Builder}
* to create a request. The request to create a new origin access identity (OAI). An origin access identity
* is a special CloudFront user that you can associate with Amazon S3 origins, so that you can secure all or
* just some of your Amazon S3 content. For more information, see Restricting Access to Amazon S3 Content by Using an Origin Access Identity in the Amazon
* CloudFront Developer Guide.
* @return A Java Future containing the result of the CreateCloudFrontOriginAccessIdentity operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - 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 An argument is invalid.
* - InconsistentQuantitiesException The value of
Quantity
and the size of Items
* don't match.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.CreateCloudFrontOriginAccessIdentity
* @see AWS API Documentation
*/
default CompletableFuture createCloudFrontOriginAccessIdentity(
Consumer createCloudFrontOriginAccessIdentityRequest) {
return createCloudFrontOriginAccessIdentity(CreateCloudFrontOriginAccessIdentityRequest.builder()
.applyMutation(createCloudFrontOriginAccessIdentityRequest).build());
}
/**
*
* Creates a new web distribution. You create a CloudFront distribution to tell CloudFront where you want content to
* be delivered from, and the details about how to track and manage content delivery. Send a POST
* request to the /CloudFront API version/distribution
/distribution ID
resource.
*
*
*
* When you update a distribution, there are more required fields than when you create a distribution. When you
* update your distribution by using UpdateDistribution, follow the steps included in the documentation to get the current configuration and then
* make your updates. This helps to make sure that you include all of the required fields. To view a summary, see Required Fields for Create Distribution and Update Distribution in the Amazon CloudFront Developer
* Guide.
*
*
*
* @param createDistributionRequest
* The request to create a new distribution.
* @return A Java Future containing the result of the CreateDistribution operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - CnameAlreadyExistsException The CNAME specified is already defined for CloudFront.
* - 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 don't exist.
* - InvalidViewerCertificateException A viewer certificate specified is not valid.
* - InvalidMinimumProtocolVersionException The minimum protocol version specified is not valid.
* - 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 An invalid error code was specified.
* - InvalidResponseCodeException A response code is not valid.
* - InvalidArgumentException An 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 more origins for the distribution.
* - TooManyOriginGroupsPerDistributionException Processing your request would cause you to exceed the
* maximum number of origin groups allowed.
* - TooManyCacheBehaviorsException You cannot create more 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 Your request contains too many headers in forwarded values.
* - InvalidHeadersForS3OriginException The headers specified are not valid for an Amazon S3 origin.
* - InconsistentQuantitiesException The value of
Quantity
and the size of Items
* don't match.
* - TooManyCertificatesException You cannot create anymore custom SSL/TLS certificates.
* - InvalidLocationCodeException The location code specified is not valid.
* - InvalidGeoRestrictionParameterException The specified geo restriction parameter is not valid.
* - 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 The TTL order specified is not valid.
* - InvalidWebAclIdException A web ACL ID specified is not valid. To specify a web ACL created using the
* latest version of WAF, use the ACL ARN, for example
*
arn:aws:wafv2:us-east-1:123456789012:global/webacl/ExampleWebACL/473e64fd-f30b-4765-81a0-62ad96dd167a
* . To specify a web ACL created using WAF Classic, use the ACL ID, for example
* 473e64fd-f30b-4765-81a0-62ad96dd167a
.
* - TooManyOriginCustomHeadersException Your request contains too many origin custom headers.
* - TooManyQueryStringParametersException Your request contains too many query string parameters.
* - InvalidQueryStringParametersException The query string parameters specified are not valid.
* - TooManyDistributionsWithLambdaAssociationsException Processing your request would cause the maximum
* number of distributions with Lambda@Edge function associations per owner to be exceeded.
* - TooManyDistributionsWithSingleFunctionArnException The maximum number of distributions have been
* associated with the specified Lambda@Edge function.
* - TooManyLambdaFunctionAssociationsException Your request contains more Lambda@Edge function
* associations than are allowed per distribution.
* - InvalidLambdaFunctionAssociationException The specified Lambda@Edge function association is invalid.
* - TooManyDistributionsWithFunctionAssociationsException You have reached the maximum number of
* distributions that are associated with a CloudFront function. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - TooManyFunctionAssociationsException You have reached the maximum number of CloudFront function
* associations for this distribution. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - InvalidFunctionAssociationException A CloudFront function association is invalid.
* - InvalidOriginReadTimeoutException The read timeout specified for the origin is not valid.
* - InvalidOriginKeepaliveTimeoutException The keep alive timeout specified for the origin is not valid.
* - NoSuchFieldLevelEncryptionConfigException The specified configuration for field-level encryption
* doesn't exist.
* - IllegalFieldLevelEncryptionConfigAssociationWithCacheBehaviorException The specified configuration
* for field-level encryption can't be associated with the specified cache behavior.
* - TooManyDistributionsAssociatedToFieldLevelEncryptionConfigException The maximum number of
* distributions have been associated with the specified configuration for field-level encryption.
* - NoSuchCachePolicyException The cache policy does not exist.
* - TooManyDistributionsAssociatedToCachePolicyException The maximum number of distributions have been
* associated with the specified cache policy. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - NoSuchOriginRequestPolicyException The origin request policy does not exist.
* - TooManyDistributionsAssociatedToOriginRequestPolicyException The maximum number of distributions have
* been associated with the specified origin request policy. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - TooManyDistributionsAssociatedToKeyGroupException The number of distributions that reference this key
* group is more than the maximum allowed. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - TooManyKeyGroupsAssociatedToDistributionException The number of key groups referenced by this
* distribution is more than the maximum allowed. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - TrustedKeyGroupDoesNotExistException The specified key group does not exist.
* - NoSuchRealtimeLogConfigException The real-time log configuration does not exist.
* - RealtimeLogConfigOwnerMismatchException The specified real-time log configuration belongs to a
* different account.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.CreateDistribution
* @see AWS
* API Documentation
*/
default CompletableFuture createDistribution(CreateDistributionRequest createDistributionRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Creates a new web distribution. You create a CloudFront distribution to tell CloudFront where you want content to
* be delivered from, and the details about how to track and manage content delivery. Send a POST
* request to the /CloudFront API version/distribution
/distribution ID
resource.
*
*
*
* When you update a distribution, there are more required fields than when you create a distribution. When you
* update your distribution by using UpdateDistribution, follow the steps included in the documentation to get the current configuration and then
* make your updates. This helps to make sure that you include all of the required fields. To view a summary, see Required Fields for Create Distribution and Update Distribution in the Amazon CloudFront Developer
* Guide.
*
*
*
* This is a convenience which creates an instance of the {@link CreateDistributionRequest.Builder} avoiding the
* need to create one manually via {@link CreateDistributionRequest#builder()}
*
*
* @param createDistributionRequest
* A {@link Consumer} that will call methods on {@link CreateDistributionRequest.Builder} to create a
* request. The request to create a new distribution.
* @return A Java Future containing the result of the CreateDistribution operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - CnameAlreadyExistsException The CNAME specified is already defined for CloudFront.
* - 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 don't exist.
* - InvalidViewerCertificateException A viewer certificate specified is not valid.
* - InvalidMinimumProtocolVersionException The minimum protocol version specified is not valid.
* - 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 An invalid error code was specified.
* - InvalidResponseCodeException A response code is not valid.
* - InvalidArgumentException An 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 more origins for the distribution.
* - TooManyOriginGroupsPerDistributionException Processing your request would cause you to exceed the
* maximum number of origin groups allowed.
* - TooManyCacheBehaviorsException You cannot create more 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 Your request contains too many headers in forwarded values.
* - InvalidHeadersForS3OriginException The headers specified are not valid for an Amazon S3 origin.
* - InconsistentQuantitiesException The value of
Quantity
and the size of Items
* don't match.
* - TooManyCertificatesException You cannot create anymore custom SSL/TLS certificates.
* - InvalidLocationCodeException The location code specified is not valid.
* - InvalidGeoRestrictionParameterException The specified geo restriction parameter is not valid.
* - 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 The TTL order specified is not valid.
* - InvalidWebAclIdException A web ACL ID specified is not valid. To specify a web ACL created using the
* latest version of WAF, use the ACL ARN, for example
*
arn:aws:wafv2:us-east-1:123456789012:global/webacl/ExampleWebACL/473e64fd-f30b-4765-81a0-62ad96dd167a
* . To specify a web ACL created using WAF Classic, use the ACL ID, for example
* 473e64fd-f30b-4765-81a0-62ad96dd167a
.
* - TooManyOriginCustomHeadersException Your request contains too many origin custom headers.
* - TooManyQueryStringParametersException Your request contains too many query string parameters.
* - InvalidQueryStringParametersException The query string parameters specified are not valid.
* - TooManyDistributionsWithLambdaAssociationsException Processing your request would cause the maximum
* number of distributions with Lambda@Edge function associations per owner to be exceeded.
* - TooManyDistributionsWithSingleFunctionArnException The maximum number of distributions have been
* associated with the specified Lambda@Edge function.
* - TooManyLambdaFunctionAssociationsException Your request contains more Lambda@Edge function
* associations than are allowed per distribution.
* - InvalidLambdaFunctionAssociationException The specified Lambda@Edge function association is invalid.
* - TooManyDistributionsWithFunctionAssociationsException You have reached the maximum number of
* distributions that are associated with a CloudFront function. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - TooManyFunctionAssociationsException You have reached the maximum number of CloudFront function
* associations for this distribution. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - InvalidFunctionAssociationException A CloudFront function association is invalid.
* - InvalidOriginReadTimeoutException The read timeout specified for the origin is not valid.
* - InvalidOriginKeepaliveTimeoutException The keep alive timeout specified for the origin is not valid.
* - NoSuchFieldLevelEncryptionConfigException The specified configuration for field-level encryption
* doesn't exist.
* - IllegalFieldLevelEncryptionConfigAssociationWithCacheBehaviorException The specified configuration
* for field-level encryption can't be associated with the specified cache behavior.
* - TooManyDistributionsAssociatedToFieldLevelEncryptionConfigException The maximum number of
* distributions have been associated with the specified configuration for field-level encryption.
* - NoSuchCachePolicyException The cache policy does not exist.
* - TooManyDistributionsAssociatedToCachePolicyException The maximum number of distributions have been
* associated with the specified cache policy. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - NoSuchOriginRequestPolicyException The origin request policy does not exist.
* - TooManyDistributionsAssociatedToOriginRequestPolicyException The maximum number of distributions have
* been associated with the specified origin request policy. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - TooManyDistributionsAssociatedToKeyGroupException The number of distributions that reference this key
* group is more than the maximum allowed. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - TooManyKeyGroupsAssociatedToDistributionException The number of key groups referenced by this
* distribution is more than the maximum allowed. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - TrustedKeyGroupDoesNotExistException The specified key group does not exist.
* - NoSuchRealtimeLogConfigException The real-time log configuration does not exist.
* - RealtimeLogConfigOwnerMismatchException The specified real-time log configuration belongs to a
* different account.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.CreateDistribution
* @see AWS
* API Documentation
*/
default CompletableFuture createDistribution(
Consumer createDistributionRequest) {
return createDistribution(CreateDistributionRequest.builder().applyMutation(createDistributionRequest).build());
}
/**
*
* Create a new distribution with tags.
*
*
* @param createDistributionWithTagsRequest
* The request to create a new distribution with tags.
* @return A Java Future containing the result of the CreateDistributionWithTags operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - CnameAlreadyExistsException The CNAME specified is already defined for CloudFront.
* - 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 don't exist.
* - InvalidViewerCertificateException A viewer certificate specified is not valid.
* - InvalidMinimumProtocolVersionException The minimum protocol version specified is not valid.
* - 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 An invalid error code was specified.
* - InvalidResponseCodeException A response code is not valid.
* - InvalidArgumentException An 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 more origins for the distribution.
* - TooManyOriginGroupsPerDistributionException Processing your request would cause you to exceed the
* maximum number of origin groups allowed.
* - TooManyCacheBehaviorsException You cannot create more 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 Your request contains too many headers in forwarded values.
* - InvalidHeadersForS3OriginException The headers specified are not valid for an Amazon S3 origin.
* - InconsistentQuantitiesException The value of
Quantity
and the size of Items
* don't match.
* - TooManyCertificatesException You cannot create anymore custom SSL/TLS certificates.
* - InvalidLocationCodeException The location code specified is not valid.
* - InvalidGeoRestrictionParameterException The specified geo restriction parameter is not valid.
* - 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 The TTL order specified is not valid.
* - InvalidWebAclIdException A web ACL ID specified is not valid. To specify a web ACL created using the
* latest version of WAF, use the ACL ARN, for example
*
arn:aws:wafv2:us-east-1:123456789012:global/webacl/ExampleWebACL/473e64fd-f30b-4765-81a0-62ad96dd167a
* . To specify a web ACL created using WAF Classic, use the ACL ID, for example
* 473e64fd-f30b-4765-81a0-62ad96dd167a
.
* - TooManyOriginCustomHeadersException Your request contains too many origin custom headers.
* - InvalidTaggingException The tagging specified is not valid.
* - TooManyQueryStringParametersException Your request contains too many query string parameters.
* - InvalidQueryStringParametersException The query string parameters specified are not valid.
* - TooManyDistributionsWithLambdaAssociationsException Processing your request would cause the maximum
* number of distributions with Lambda@Edge function associations per owner to be exceeded.
* - TooManyDistributionsWithSingleFunctionArnException The maximum number of distributions have been
* associated with the specified Lambda@Edge function.
* - TooManyLambdaFunctionAssociationsException Your request contains more Lambda@Edge function
* associations than are allowed per distribution.
* - InvalidLambdaFunctionAssociationException The specified Lambda@Edge function association is invalid.
* - TooManyDistributionsWithFunctionAssociationsException You have reached the maximum number of
* distributions that are associated with a CloudFront function. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - TooManyFunctionAssociationsException You have reached the maximum number of CloudFront function
* associations for this distribution. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - InvalidFunctionAssociationException A CloudFront function association is invalid.
* - InvalidOriginReadTimeoutException The read timeout specified for the origin is not valid.
* - InvalidOriginKeepaliveTimeoutException The keep alive timeout specified for the origin is not valid.
* - NoSuchFieldLevelEncryptionConfigException The specified configuration for field-level encryption
* doesn't exist.
* - IllegalFieldLevelEncryptionConfigAssociationWithCacheBehaviorException The specified configuration
* for field-level encryption can't be associated with the specified cache behavior.
* - TooManyDistributionsAssociatedToFieldLevelEncryptionConfigException The maximum number of
* distributions have been associated with the specified configuration for field-level encryption.
* - NoSuchCachePolicyException The cache policy does not exist.
* - TooManyDistributionsAssociatedToCachePolicyException The maximum number of distributions have been
* associated with the specified cache policy. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - NoSuchOriginRequestPolicyException The origin request policy does not exist.
* - TooManyDistributionsAssociatedToOriginRequestPolicyException The maximum number of distributions have
* been associated with the specified origin request policy. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - TooManyDistributionsAssociatedToKeyGroupException The number of distributions that reference this key
* group is more than the maximum allowed. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - TooManyKeyGroupsAssociatedToDistributionException The number of key groups referenced by this
* distribution is more than the maximum allowed. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - TrustedKeyGroupDoesNotExistException The specified key group does not exist.
* - NoSuchRealtimeLogConfigException The real-time log configuration does not exist.
* - RealtimeLogConfigOwnerMismatchException The specified real-time log configuration belongs to a
* different account.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.CreateDistributionWithTags
* @see AWS API Documentation
*/
default CompletableFuture createDistributionWithTags(
CreateDistributionWithTagsRequest createDistributionWithTagsRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Create a new distribution with tags.
*
*
*
* This is a convenience which creates an instance of the {@link CreateDistributionWithTagsRequest.Builder} avoiding
* the need to create one manually via {@link CreateDistributionWithTagsRequest#builder()}
*
*
* @param createDistributionWithTagsRequest
* A {@link Consumer} that will call methods on {@link CreateDistributionWithTagsRequest.Builder} to create a
* request. The request to create a new distribution with tags.
* @return A Java Future containing the result of the CreateDistributionWithTags operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - CnameAlreadyExistsException The CNAME specified is already defined for CloudFront.
* - 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 don't exist.
* - InvalidViewerCertificateException A viewer certificate specified is not valid.
* - InvalidMinimumProtocolVersionException The minimum protocol version specified is not valid.
* - 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 An invalid error code was specified.
* - InvalidResponseCodeException A response code is not valid.
* - InvalidArgumentException An 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 more origins for the distribution.
* - TooManyOriginGroupsPerDistributionException Processing your request would cause you to exceed the
* maximum number of origin groups allowed.
* - TooManyCacheBehaviorsException You cannot create more 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 Your request contains too many headers in forwarded values.
* - InvalidHeadersForS3OriginException The headers specified are not valid for an Amazon S3 origin.
* - InconsistentQuantitiesException The value of
Quantity
and the size of Items
* don't match.
* - TooManyCertificatesException You cannot create anymore custom SSL/TLS certificates.
* - InvalidLocationCodeException The location code specified is not valid.
* - InvalidGeoRestrictionParameterException The specified geo restriction parameter is not valid.
* - 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 The TTL order specified is not valid.
* - InvalidWebAclIdException A web ACL ID specified is not valid. To specify a web ACL created using the
* latest version of WAF, use the ACL ARN, for example
*
arn:aws:wafv2:us-east-1:123456789012:global/webacl/ExampleWebACL/473e64fd-f30b-4765-81a0-62ad96dd167a
* . To specify a web ACL created using WAF Classic, use the ACL ID, for example
* 473e64fd-f30b-4765-81a0-62ad96dd167a
.
* - TooManyOriginCustomHeadersException Your request contains too many origin custom headers.
* - InvalidTaggingException The tagging specified is not valid.
* - TooManyQueryStringParametersException Your request contains too many query string parameters.
* - InvalidQueryStringParametersException The query string parameters specified are not valid.
* - TooManyDistributionsWithLambdaAssociationsException Processing your request would cause the maximum
* number of distributions with Lambda@Edge function associations per owner to be exceeded.
* - TooManyDistributionsWithSingleFunctionArnException The maximum number of distributions have been
* associated with the specified Lambda@Edge function.
* - TooManyLambdaFunctionAssociationsException Your request contains more Lambda@Edge function
* associations than are allowed per distribution.
* - InvalidLambdaFunctionAssociationException The specified Lambda@Edge function association is invalid.
* - TooManyDistributionsWithFunctionAssociationsException You have reached the maximum number of
* distributions that are associated with a CloudFront function. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - TooManyFunctionAssociationsException You have reached the maximum number of CloudFront function
* associations for this distribution. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - InvalidFunctionAssociationException A CloudFront function association is invalid.
* - InvalidOriginReadTimeoutException The read timeout specified for the origin is not valid.
* - InvalidOriginKeepaliveTimeoutException The keep alive timeout specified for the origin is not valid.
* - NoSuchFieldLevelEncryptionConfigException The specified configuration for field-level encryption
* doesn't exist.
* - IllegalFieldLevelEncryptionConfigAssociationWithCacheBehaviorException The specified configuration
* for field-level encryption can't be associated with the specified cache behavior.
* - TooManyDistributionsAssociatedToFieldLevelEncryptionConfigException The maximum number of
* distributions have been associated with the specified configuration for field-level encryption.
* - NoSuchCachePolicyException The cache policy does not exist.
* - TooManyDistributionsAssociatedToCachePolicyException The maximum number of distributions have been
* associated with the specified cache policy. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - NoSuchOriginRequestPolicyException The origin request policy does not exist.
* - TooManyDistributionsAssociatedToOriginRequestPolicyException The maximum number of distributions have
* been associated with the specified origin request policy. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - TooManyDistributionsAssociatedToKeyGroupException The number of distributions that reference this key
* group is more than the maximum allowed. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - TooManyKeyGroupsAssociatedToDistributionException The number of key groups referenced by this
* distribution is more than the maximum allowed. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - TrustedKeyGroupDoesNotExistException The specified key group does not exist.
* - NoSuchRealtimeLogConfigException The real-time log configuration does not exist.
* - RealtimeLogConfigOwnerMismatchException The specified real-time log configuration belongs to a
* different account.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.CreateDistributionWithTags
* @see AWS API Documentation
*/
default CompletableFuture createDistributionWithTags(
Consumer createDistributionWithTagsRequest) {
return createDistributionWithTags(CreateDistributionWithTagsRequest.builder()
.applyMutation(createDistributionWithTagsRequest).build());
}
/**
*
* Create a new field-level encryption configuration.
*
*
* @param createFieldLevelEncryptionConfigRequest
* @return A Java Future containing the result of the CreateFieldLevelEncryptionConfig operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - InconsistentQuantitiesException The value of
Quantity
and the size of Items
* don't match.
* - InvalidArgumentException An argument is invalid.
* - NoSuchFieldLevelEncryptionProfileException The specified profile for field-level encryption doesn't
* exist.
* - FieldLevelEncryptionConfigAlreadyExistsException The specified configuration for field-level
* encryption already exists.
* - TooManyFieldLevelEncryptionConfigsException The maximum number of configurations for field-level
* encryption have been created.
* - TooManyFieldLevelEncryptionQueryArgProfilesException The maximum number of query arg profiles for
* field-level encryption have been created.
* - TooManyFieldLevelEncryptionContentTypeProfilesException The maximum number of content type profiles
* for field-level encryption have been created.
* - QueryArgProfileEmptyException No profile specified for the field-level encryption query argument.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.CreateFieldLevelEncryptionConfig
* @see AWS API Documentation
*/
default CompletableFuture createFieldLevelEncryptionConfig(
CreateFieldLevelEncryptionConfigRequest createFieldLevelEncryptionConfigRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Create a new field-level encryption configuration.
*
*
*
* This is a convenience which creates an instance of the {@link CreateFieldLevelEncryptionConfigRequest.Builder}
* avoiding the need to create one manually via {@link CreateFieldLevelEncryptionConfigRequest#builder()}
*
*
* @param createFieldLevelEncryptionConfigRequest
* A {@link Consumer} that will call methods on {@link CreateFieldLevelEncryptionConfigRequest.Builder} to
* create a request.
* @return A Java Future containing the result of the CreateFieldLevelEncryptionConfig operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - InconsistentQuantitiesException The value of
Quantity
and the size of Items
* don't match.
* - InvalidArgumentException An argument is invalid.
* - NoSuchFieldLevelEncryptionProfileException The specified profile for field-level encryption doesn't
* exist.
* - FieldLevelEncryptionConfigAlreadyExistsException The specified configuration for field-level
* encryption already exists.
* - TooManyFieldLevelEncryptionConfigsException The maximum number of configurations for field-level
* encryption have been created.
* - TooManyFieldLevelEncryptionQueryArgProfilesException The maximum number of query arg profiles for
* field-level encryption have been created.
* - TooManyFieldLevelEncryptionContentTypeProfilesException The maximum number of content type profiles
* for field-level encryption have been created.
* - QueryArgProfileEmptyException No profile specified for the field-level encryption query argument.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.CreateFieldLevelEncryptionConfig
* @see AWS API Documentation
*/
default CompletableFuture createFieldLevelEncryptionConfig(
Consumer createFieldLevelEncryptionConfigRequest) {
return createFieldLevelEncryptionConfig(CreateFieldLevelEncryptionConfigRequest.builder()
.applyMutation(createFieldLevelEncryptionConfigRequest).build());
}
/**
*
* Create a field-level encryption profile.
*
*
* @param createFieldLevelEncryptionProfileRequest
* @return A Java Future containing the result of the CreateFieldLevelEncryptionProfile operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - InconsistentQuantitiesException The value of
Quantity
and the size of Items
* don't match.
* - InvalidArgumentException An argument is invalid.
* - NoSuchPublicKeyException The specified public key doesn't exist.
* - FieldLevelEncryptionProfileAlreadyExistsException The specified profile for field-level encryption
* already exists.
* - FieldLevelEncryptionProfileSizeExceededException The maximum size of a profile for field-level
* encryption was exceeded.
* - TooManyFieldLevelEncryptionProfilesException The maximum number of profiles for field-level
* encryption have been created.
* - TooManyFieldLevelEncryptionEncryptionEntitiesException The maximum number of encryption entities for
* field-level encryption have been created.
* - TooManyFieldLevelEncryptionFieldPatternsException The maximum number of field patterns for
* field-level encryption have been created.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.CreateFieldLevelEncryptionProfile
* @see AWS API Documentation
*/
default CompletableFuture createFieldLevelEncryptionProfile(
CreateFieldLevelEncryptionProfileRequest createFieldLevelEncryptionProfileRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Create a field-level encryption profile.
*
*
*
* This is a convenience which creates an instance of the {@link CreateFieldLevelEncryptionProfileRequest.Builder}
* avoiding the need to create one manually via {@link CreateFieldLevelEncryptionProfileRequest#builder()}
*
*
* @param createFieldLevelEncryptionProfileRequest
* A {@link Consumer} that will call methods on {@link CreateFieldLevelEncryptionProfileRequest.Builder} to
* create a request.
* @return A Java Future containing the result of the CreateFieldLevelEncryptionProfile operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - InconsistentQuantitiesException The value of
Quantity
and the size of Items
* don't match.
* - InvalidArgumentException An argument is invalid.
* - NoSuchPublicKeyException The specified public key doesn't exist.
* - FieldLevelEncryptionProfileAlreadyExistsException The specified profile for field-level encryption
* already exists.
* - FieldLevelEncryptionProfileSizeExceededException The maximum size of a profile for field-level
* encryption was exceeded.
* - TooManyFieldLevelEncryptionProfilesException The maximum number of profiles for field-level
* encryption have been created.
* - TooManyFieldLevelEncryptionEncryptionEntitiesException The maximum number of encryption entities for
* field-level encryption have been created.
* - TooManyFieldLevelEncryptionFieldPatternsException The maximum number of field patterns for
* field-level encryption have been created.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.CreateFieldLevelEncryptionProfile
* @see AWS API Documentation
*/
default CompletableFuture createFieldLevelEncryptionProfile(
Consumer createFieldLevelEncryptionProfileRequest) {
return createFieldLevelEncryptionProfile(CreateFieldLevelEncryptionProfileRequest.builder()
.applyMutation(createFieldLevelEncryptionProfileRequest).build());
}
/**
*
* Creates a CloudFront function.
*
*
* To create a function, you provide the function code and some configuration information about the function. The
* response contains an Amazon Resource Name (ARN) that uniquely identifies the function.
*
*
* When you create a function, it’s in the DEVELOPMENT
stage. In this stage, you can test the function
* with TestFunction
, and update it with UpdateFunction
.
*
*
* When you’re ready to use your function with a CloudFront distribution, use PublishFunction
to copy
* the function from the DEVELOPMENT
stage to LIVE
. When it’s live, you can attach the
* function to a distribution’s cache behavior, using the function’s ARN.
*
*
* @param createFunctionRequest
* @return A Java Future containing the result of the CreateFunction operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - TooManyFunctionsException You have reached the maximum number of CloudFront functions for this
* account. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - FunctionAlreadyExistsException A function with the same name already exists in this account. To
* create a function, you must provide a unique name. To update an existing function, use
*
UpdateFunction
.
* - FunctionSizeLimitExceededException The function is too large. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - InvalidArgumentException An argument is invalid.
* - UnsupportedOperationException This operation is not supported in this region.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.CreateFunction
* @see AWS API
* Documentation
*/
default CompletableFuture createFunction(CreateFunctionRequest createFunctionRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Creates a CloudFront function.
*
*
* To create a function, you provide the function code and some configuration information about the function. The
* response contains an Amazon Resource Name (ARN) that uniquely identifies the function.
*
*
* When you create a function, it’s in the DEVELOPMENT
stage. In this stage, you can test the function
* with TestFunction
, and update it with UpdateFunction
.
*
*
* When you’re ready to use your function with a CloudFront distribution, use PublishFunction
to copy
* the function from the DEVELOPMENT
stage to LIVE
. When it’s live, you can attach the
* function to a distribution’s cache behavior, using the function’s ARN.
*
*
*
* This is a convenience which creates an instance of the {@link CreateFunctionRequest.Builder} avoiding the need to
* create one manually via {@link CreateFunctionRequest#builder()}
*
*
* @param createFunctionRequest
* A {@link Consumer} that will call methods on {@link CreateFunctionRequest.Builder} to create a request.
* @return A Java Future containing the result of the CreateFunction operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - TooManyFunctionsException You have reached the maximum number of CloudFront functions for this
* account. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - FunctionAlreadyExistsException A function with the same name already exists in this account. To
* create a function, you must provide a unique name. To update an existing function, use
*
UpdateFunction
.
* - FunctionSizeLimitExceededException The function is too large. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - InvalidArgumentException An argument is invalid.
* - UnsupportedOperationException This operation is not supported in this region.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.CreateFunction
* @see AWS API
* Documentation
*/
default CompletableFuture createFunction(Consumer createFunctionRequest) {
return createFunction(CreateFunctionRequest.builder().applyMutation(createFunctionRequest).build());
}
/**
*
* Create a new invalidation.
*
*
* @param createInvalidationRequest
* The request to create an invalidation.
* @return A Java Future containing the result of the CreateInvalidation operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - MissingBodyException This operation requires a body. Ensure that the body is present and the
*
Content-Type
header is set.
* - InvalidArgumentException An argument is invalid.
* - NoSuchDistributionException The specified distribution does not exist.
* - BatchTooLargeException Invalidation batch specified is too large.
* - 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
* don't match.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.CreateInvalidation
* @see AWS
* API Documentation
*/
default CompletableFuture createInvalidation(CreateInvalidationRequest createInvalidationRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Create a new invalidation.
*
*
*
* This is a convenience which creates an instance of the {@link CreateInvalidationRequest.Builder} avoiding the
* need to create one manually via {@link CreateInvalidationRequest#builder()}
*
*
* @param createInvalidationRequest
* A {@link Consumer} that will call methods on {@link CreateInvalidationRequest.Builder} to create a
* request. The request to create an invalidation.
* @return A Java Future containing the result of the CreateInvalidation operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - MissingBodyException This operation requires a body. Ensure that the body is present and the
*
Content-Type
header is set.
* - InvalidArgumentException An argument is invalid.
* - NoSuchDistributionException The specified distribution does not exist.
* - BatchTooLargeException Invalidation batch specified is too large.
* - 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
* don't match.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.CreateInvalidation
* @see AWS
* API Documentation
*/
default CompletableFuture createInvalidation(
Consumer createInvalidationRequest) {
return createInvalidation(CreateInvalidationRequest.builder().applyMutation(createInvalidationRequest).build());
}
/**
*
* Creates a key group that you can use with CloudFront signed
* URLs and signed cookies.
*
*
* To create a key group, you must specify at least one public key for the key group. After you create a key group,
* you can reference it from one or more cache behaviors. When you reference a key group in a cache behavior,
* CloudFront requires signed URLs or signed cookies for all requests that match the cache behavior. The URLs or
* cookies must be signed with a private key whose corresponding public key is in the key group. The signed URL or
* cookie contains information about which public key CloudFront should use to verify the signature. For more
* information, see Serving private
* content in the Amazon CloudFront Developer Guide.
*
*
* @param createKeyGroupRequest
* @return A Java Future containing the result of the CreateKeyGroup operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - InvalidArgumentException An argument is invalid.
* - KeyGroupAlreadyExistsException A key group with this name already exists. You must provide a unique
* name. To modify an existing key group, use
UpdateKeyGroup
.
* - TooManyKeyGroupsException You have reached the maximum number of key groups for this account. For
* more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - TooManyPublicKeysInKeyGroupException The number of public keys in this key group is more than the
* maximum allowed. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.CreateKeyGroup
* @see AWS API
* Documentation
*/
default CompletableFuture createKeyGroup(CreateKeyGroupRequest createKeyGroupRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Creates a key group that you can use with CloudFront signed
* URLs and signed cookies.
*
*
* To create a key group, you must specify at least one public key for the key group. After you create a key group,
* you can reference it from one or more cache behaviors. When you reference a key group in a cache behavior,
* CloudFront requires signed URLs or signed cookies for all requests that match the cache behavior. The URLs or
* cookies must be signed with a private key whose corresponding public key is in the key group. The signed URL or
* cookie contains information about which public key CloudFront should use to verify the signature. For more
* information, see Serving private
* content in the Amazon CloudFront Developer Guide.
*
*
*
* This is a convenience which creates an instance of the {@link CreateKeyGroupRequest.Builder} avoiding the need to
* create one manually via {@link CreateKeyGroupRequest#builder()}
*
*
* @param createKeyGroupRequest
* A {@link Consumer} that will call methods on {@link CreateKeyGroupRequest.Builder} to create a request.
* @return A Java Future containing the result of the CreateKeyGroup operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - InvalidArgumentException An argument is invalid.
* - KeyGroupAlreadyExistsException A key group with this name already exists. You must provide a unique
* name. To modify an existing key group, use
UpdateKeyGroup
.
* - TooManyKeyGroupsException You have reached the maximum number of key groups for this account. For
* more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - TooManyPublicKeysInKeyGroupException The number of public keys in this key group is more than the
* maximum allowed. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.CreateKeyGroup
* @see AWS API
* Documentation
*/
default CompletableFuture createKeyGroup(Consumer createKeyGroupRequest) {
return createKeyGroup(CreateKeyGroupRequest.builder().applyMutation(createKeyGroupRequest).build());
}
/**
*
* Enables additional CloudWatch metrics for the specified CloudFront distribution. The additional metrics incur an
* additional cost.
*
*
* For more information, see Viewing additional CloudFront distribution metrics in the Amazon CloudFront Developer Guide.
*
*
* @param createMonitoringSubscriptionRequest
* @return A Java Future containing the result of the CreateMonitoringSubscription operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - NoSuchDistributionException The specified distribution does not exist.
* - UnsupportedOperationException This operation is not supported in this region.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.CreateMonitoringSubscription
* @see AWS API Documentation
*/
default CompletableFuture createMonitoringSubscription(
CreateMonitoringSubscriptionRequest createMonitoringSubscriptionRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Enables additional CloudWatch metrics for the specified CloudFront distribution. The additional metrics incur an
* additional cost.
*
*
* For more information, see Viewing additional CloudFront distribution metrics in the Amazon CloudFront Developer Guide.
*
*
*
* This is a convenience which creates an instance of the {@link CreateMonitoringSubscriptionRequest.Builder}
* avoiding the need to create one manually via {@link CreateMonitoringSubscriptionRequest#builder()}
*
*
* @param createMonitoringSubscriptionRequest
* A {@link Consumer} that will call methods on {@link CreateMonitoringSubscriptionRequest.Builder} to create
* a request.
* @return A Java Future containing the result of the CreateMonitoringSubscription operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - NoSuchDistributionException The specified distribution does not exist.
* - UnsupportedOperationException This operation is not supported in this region.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.CreateMonitoringSubscription
* @see AWS API Documentation
*/
default CompletableFuture createMonitoringSubscription(
Consumer createMonitoringSubscriptionRequest) {
return createMonitoringSubscription(CreateMonitoringSubscriptionRequest.builder()
.applyMutation(createMonitoringSubscriptionRequest).build());
}
/**
*
* Creates an origin request policy.
*
*
* After you create an origin request policy, you can attach it to one or more cache behaviors. When it’s attached
* to a cache behavior, the origin request policy determines the values that CloudFront includes in requests that it
* sends to the origin. Each request that CloudFront sends to the origin includes the following:
*
*
* -
*
* The request body and the URL path (without the domain name) from the viewer request.
*
*
* -
*
* The headers that CloudFront automatically includes in every origin request, including Host
,
* User-Agent
, and X-Amz-Cf-Id
.
*
*
* -
*
* All HTTP headers, cookies, and URL query strings that are specified in the cache policy or the origin request
* policy. These can include items from the viewer request and, in the case of headers, additional ones that are
* added by CloudFront.
*
*
*
*
* CloudFront sends a request when it can’t find a valid object in its cache that matches the request. If you want
* to send values to the origin and also include them in the cache key, use CachePolicy
.
*
*
* For more information about origin request policies, see Controlling origin requests in the Amazon CloudFront Developer Guide.
*
*
* @param createOriginRequestPolicyRequest
* @return A Java Future containing the result of the CreateOriginRequestPolicy operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - InconsistentQuantitiesException The value of
Quantity
and the size of Items
* don't match.
* - InvalidArgumentException An argument is invalid.
* - OriginRequestPolicyAlreadyExistsException An origin request policy with this name already exists. You
* must provide a unique name. To modify an existing origin request policy, use
*
UpdateOriginRequestPolicy
.
* - TooManyOriginRequestPoliciesException You have reached the maximum number of origin request policies
* for this account. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - TooManyHeadersInOriginRequestPolicyException The number of headers in the origin request policy
* exceeds the maximum. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - TooManyCookiesInOriginRequestPolicyException The number of cookies in the origin request policy
* exceeds the maximum. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - TooManyQueryStringsInOriginRequestPolicyException The number of query strings in the origin request
* policy exceeds the maximum. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.CreateOriginRequestPolicy
* @see AWS API Documentation
*/
default CompletableFuture createOriginRequestPolicy(
CreateOriginRequestPolicyRequest createOriginRequestPolicyRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Creates an origin request policy.
*
*
* After you create an origin request policy, you can attach it to one or more cache behaviors. When it’s attached
* to a cache behavior, the origin request policy determines the values that CloudFront includes in requests that it
* sends to the origin. Each request that CloudFront sends to the origin includes the following:
*
*
* -
*
* The request body and the URL path (without the domain name) from the viewer request.
*
*
* -
*
* The headers that CloudFront automatically includes in every origin request, including Host
,
* User-Agent
, and X-Amz-Cf-Id
.
*
*
* -
*
* All HTTP headers, cookies, and URL query strings that are specified in the cache policy or the origin request
* policy. These can include items from the viewer request and, in the case of headers, additional ones that are
* added by CloudFront.
*
*
*
*
* CloudFront sends a request when it can’t find a valid object in its cache that matches the request. If you want
* to send values to the origin and also include them in the cache key, use CachePolicy
.
*
*
* For more information about origin request policies, see Controlling origin requests in the Amazon CloudFront Developer Guide.
*
*
*
* This is a convenience which creates an instance of the {@link CreateOriginRequestPolicyRequest.Builder} avoiding
* the need to create one manually via {@link CreateOriginRequestPolicyRequest#builder()}
*
*
* @param createOriginRequestPolicyRequest
* A {@link Consumer} that will call methods on {@link CreateOriginRequestPolicyRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the CreateOriginRequestPolicy operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - InconsistentQuantitiesException The value of
Quantity
and the size of Items
* don't match.
* - InvalidArgumentException An argument is invalid.
* - OriginRequestPolicyAlreadyExistsException An origin request policy with this name already exists. You
* must provide a unique name. To modify an existing origin request policy, use
*
UpdateOriginRequestPolicy
.
* - TooManyOriginRequestPoliciesException You have reached the maximum number of origin request policies
* for this account. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - TooManyHeadersInOriginRequestPolicyException The number of headers in the origin request policy
* exceeds the maximum. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - TooManyCookiesInOriginRequestPolicyException The number of cookies in the origin request policy
* exceeds the maximum. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - TooManyQueryStringsInOriginRequestPolicyException The number of query strings in the origin request
* policy exceeds the maximum. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.CreateOriginRequestPolicy
* @see AWS API Documentation
*/
default CompletableFuture createOriginRequestPolicy(
Consumer createOriginRequestPolicyRequest) {
return createOriginRequestPolicy(CreateOriginRequestPolicyRequest.builder()
.applyMutation(createOriginRequestPolicyRequest).build());
}
/**
*
* Uploads a public key to CloudFront that you can use with signed URLs and
* signed cookies, or with field-level
* encryption.
*
*
* @param createPublicKeyRequest
* @return A Java Future containing the result of the CreatePublicKey operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - PublicKeyAlreadyExistsException The specified public key already exists.
* - InvalidArgumentException An argument is invalid.
* - TooManyPublicKeysException The maximum number of public keys for field-level encryption have been
* created. To create a new public key, delete one of the existing keys.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.CreatePublicKey
* @see AWS
* API Documentation
*/
default CompletableFuture createPublicKey(CreatePublicKeyRequest createPublicKeyRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Uploads a public key to CloudFront that you can use with signed URLs and
* signed cookies, or with field-level
* encryption.
*
*
*
* This is a convenience which creates an instance of the {@link CreatePublicKeyRequest.Builder} avoiding the need
* to create one manually via {@link CreatePublicKeyRequest#builder()}
*
*
* @param createPublicKeyRequest
* A {@link Consumer} that will call methods on {@link CreatePublicKeyRequest.Builder} to create a request.
* @return A Java Future containing the result of the CreatePublicKey operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - PublicKeyAlreadyExistsException The specified public key already exists.
* - InvalidArgumentException An argument is invalid.
* - TooManyPublicKeysException The maximum number of public keys for field-level encryption have been
* created. To create a new public key, delete one of the existing keys.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.CreatePublicKey
* @see AWS
* API Documentation
*/
default CompletableFuture createPublicKey(
Consumer createPublicKeyRequest) {
return createPublicKey(CreatePublicKeyRequest.builder().applyMutation(createPublicKeyRequest).build());
}
/**
*
* Creates a real-time log configuration.
*
*
* After you create a real-time log configuration, you can attach it to one or more cache behaviors to send
* real-time log data to the specified Amazon Kinesis data stream.
*
*
* For more information about real-time log configurations, see Real-time logs
* in the Amazon CloudFront Developer Guide.
*
*
* @param createRealtimeLogConfigRequest
* @return A Java Future containing the result of the CreateRealtimeLogConfig operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - RealtimeLogConfigAlreadyExistsException A real-time log configuration with this name already exists.
* You must provide a unique name. To modify an existing real-time log configuration, use
*
UpdateRealtimeLogConfig
.
* - TooManyRealtimeLogConfigsException You have reached the maximum number of real-time log
* configurations for this account. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - InvalidArgumentException An argument is invalid.
* - AccessDeniedException Access denied.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.CreateRealtimeLogConfig
* @see AWS API Documentation
*/
default CompletableFuture createRealtimeLogConfig(
CreateRealtimeLogConfigRequest createRealtimeLogConfigRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Creates a real-time log configuration.
*
*
* After you create a real-time log configuration, you can attach it to one or more cache behaviors to send
* real-time log data to the specified Amazon Kinesis data stream.
*
*
* For more information about real-time log configurations, see Real-time logs
* in the Amazon CloudFront Developer Guide.
*
*
*
* This is a convenience which creates an instance of the {@link CreateRealtimeLogConfigRequest.Builder} avoiding
* the need to create one manually via {@link CreateRealtimeLogConfigRequest#builder()}
*
*
* @param createRealtimeLogConfigRequest
* A {@link Consumer} that will call methods on {@link CreateRealtimeLogConfigRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the CreateRealtimeLogConfig operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - RealtimeLogConfigAlreadyExistsException A real-time log configuration with this name already exists.
* You must provide a unique name. To modify an existing real-time log configuration, use
*
UpdateRealtimeLogConfig
.
* - TooManyRealtimeLogConfigsException You have reached the maximum number of real-time log
* configurations for this account. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - InvalidArgumentException An argument is invalid.
* - AccessDeniedException Access denied.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.CreateRealtimeLogConfig
* @see AWS API Documentation
*/
default CompletableFuture createRealtimeLogConfig(
Consumer createRealtimeLogConfigRequest) {
return createRealtimeLogConfig(CreateRealtimeLogConfigRequest.builder().applyMutation(createRealtimeLogConfigRequest)
.build());
}
/**
*
* This API is deprecated. Amazon CloudFront is deprecating real-time messaging protocol (RTMP) distributions on
* December 31, 2020. For more information, read the
* announcement on the Amazon CloudFront discussion forum.
*
*
* @param createStreamingDistributionRequest
* The request to create a new streaming distribution.
* @return A Java Future containing the result of the CreateStreamingDistribution operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - CnameAlreadyExistsException The CNAME specified is already defined for CloudFront.
* - StreamingDistributionAlreadyExistsException The caller reference you attempted to create the
* streaming 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 don't exist.
* - MissingBodyException This operation requires a body. Ensure that the body is present and the
*
Content-Type
header is set.
* - TooManyStreamingDistributionCnamEsException Your request contains more CNAMEs than are allowed per
* distribution.
* - TooManyStreamingDistributionsException Processing your request would cause you to exceed the maximum
* number of streaming distributions allowed.
* - InvalidArgumentException An argument is invalid.
* - InconsistentQuantitiesException The value of
Quantity
and the size of Items
* don't match.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.CreateStreamingDistribution
* @see AWS API Documentation
*/
default CompletableFuture createStreamingDistribution(
CreateStreamingDistributionRequest createStreamingDistributionRequest) {
throw new UnsupportedOperationException();
}
/**
*
* This API is deprecated. Amazon CloudFront is deprecating real-time messaging protocol (RTMP) distributions on
* December 31, 2020. For more information, read the
* announcement on the Amazon CloudFront discussion forum.
*
*
*
* This is a convenience which creates an instance of the {@link CreateStreamingDistributionRequest.Builder}
* avoiding the need to create one manually via {@link CreateStreamingDistributionRequest#builder()}
*
*
* @param createStreamingDistributionRequest
* A {@link Consumer} that will call methods on {@link CreateStreamingDistributionRequest.Builder} to create
* a request. The request to create a new streaming distribution.
* @return A Java Future containing the result of the CreateStreamingDistribution operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - CnameAlreadyExistsException The CNAME specified is already defined for CloudFront.
* - StreamingDistributionAlreadyExistsException The caller reference you attempted to create the
* streaming 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 don't exist.
* - MissingBodyException This operation requires a body. Ensure that the body is present and the
*
Content-Type
header is set.
* - TooManyStreamingDistributionCnamEsException Your request contains more CNAMEs than are allowed per
* distribution.
* - TooManyStreamingDistributionsException Processing your request would cause you to exceed the maximum
* number of streaming distributions allowed.
* - InvalidArgumentException An argument is invalid.
* - InconsistentQuantitiesException The value of
Quantity
and the size of Items
* don't match.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.CreateStreamingDistribution
* @see AWS API Documentation
*/
default CompletableFuture createStreamingDistribution(
Consumer createStreamingDistributionRequest) {
return createStreamingDistribution(CreateStreamingDistributionRequest.builder()
.applyMutation(createStreamingDistributionRequest).build());
}
/**
*
* This API is deprecated. Amazon CloudFront is deprecating real-time messaging protocol (RTMP) distributions on
* December 31, 2020. For more information, read the
* announcement on the Amazon CloudFront discussion forum.
*
*
* @param createStreamingDistributionWithTagsRequest
* The request to create a new streaming distribution with tags.
* @return A Java Future containing the result of the CreateStreamingDistributionWithTags operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - CnameAlreadyExistsException The CNAME specified is already defined for CloudFront.
* - StreamingDistributionAlreadyExistsException The caller reference you attempted to create the
* streaming 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 don't exist.
* - MissingBodyException This operation requires a body. Ensure that the body is present and the
*
Content-Type
header is set.
* - TooManyStreamingDistributionCnamEsException Your request contains more CNAMEs than are allowed per
* distribution.
* - TooManyStreamingDistributionsException Processing your request would cause you to exceed the maximum
* number of streaming distributions allowed.
* - InvalidArgumentException An argument is invalid.
* - InconsistentQuantitiesException The value of
Quantity
and the size of Items
* don't match.
* - InvalidTaggingException The tagging specified is not valid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.CreateStreamingDistributionWithTags
* @see AWS API Documentation
*/
default CompletableFuture createStreamingDistributionWithTags(
CreateStreamingDistributionWithTagsRequest createStreamingDistributionWithTagsRequest) {
throw new UnsupportedOperationException();
}
/**
*
* This API is deprecated. Amazon CloudFront is deprecating real-time messaging protocol (RTMP) distributions on
* December 31, 2020. For more information, read the
* announcement on the Amazon CloudFront discussion forum.
*
*
*
* This is a convenience which creates an instance of the {@link CreateStreamingDistributionWithTagsRequest.Builder}
* avoiding the need to create one manually via {@link CreateStreamingDistributionWithTagsRequest#builder()}
*
*
* @param createStreamingDistributionWithTagsRequest
* A {@link Consumer} that will call methods on {@link CreateStreamingDistributionWithTagsRequest.Builder} to
* create a request. The request to create a new streaming distribution with tags.
* @return A Java Future containing the result of the CreateStreamingDistributionWithTags operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - CnameAlreadyExistsException The CNAME specified is already defined for CloudFront.
* - StreamingDistributionAlreadyExistsException The caller reference you attempted to create the
* streaming 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 don't exist.
* - MissingBodyException This operation requires a body. Ensure that the body is present and the
*
Content-Type
header is set.
* - TooManyStreamingDistributionCnamEsException Your request contains more CNAMEs than are allowed per
* distribution.
* - TooManyStreamingDistributionsException Processing your request would cause you to exceed the maximum
* number of streaming distributions allowed.
* - InvalidArgumentException An argument is invalid.
* - InconsistentQuantitiesException The value of
Quantity
and the size of Items
* don't match.
* - InvalidTaggingException The tagging specified is not valid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.CreateStreamingDistributionWithTags
* @see AWS API Documentation
*/
default CompletableFuture createStreamingDistributionWithTags(
Consumer createStreamingDistributionWithTagsRequest) {
return createStreamingDistributionWithTags(CreateStreamingDistributionWithTagsRequest.builder()
.applyMutation(createStreamingDistributionWithTagsRequest).build());
}
/**
*
* Deletes a cache policy.
*
*
* You cannot delete a cache policy if it’s attached to a cache behavior. First update your distributions to remove
* the cache policy from all cache behaviors, then delete the cache policy.
*
*
* To delete a cache policy, you must provide the policy’s identifier and version. To get these values, you can use
* ListCachePolicies
or GetCachePolicy
.
*
*
* @param deleteCachePolicyRequest
* @return A Java Future containing the result of the DeleteCachePolicy operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - InvalidIfMatchVersionException The
If-Match
version is missing or not valid.
* - NoSuchCachePolicyException The cache policy does not exist.
* - PreconditionFailedException The precondition in one or more of the request fields evaluated to
*
false
.
* - IllegalDeleteException You cannot delete a managed policy.
* - CachePolicyInUseException Cannot delete the cache policy because it is attached to one or more cache
* behaviors.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.DeleteCachePolicy
* @see AWS
* API Documentation
*/
default CompletableFuture deleteCachePolicy(DeleteCachePolicyRequest deleteCachePolicyRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Deletes a cache policy.
*
*
* You cannot delete a cache policy if it’s attached to a cache behavior. First update your distributions to remove
* the cache policy from all cache behaviors, then delete the cache policy.
*
*
* To delete a cache policy, you must provide the policy’s identifier and version. To get these values, you can use
* ListCachePolicies
or GetCachePolicy
.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteCachePolicyRequest.Builder} avoiding the need
* to create one manually via {@link DeleteCachePolicyRequest#builder()}
*
*
* @param deleteCachePolicyRequest
* A {@link Consumer} that will call methods on {@link DeleteCachePolicyRequest.Builder} to create a request.
* @return A Java Future containing the result of the DeleteCachePolicy operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - InvalidIfMatchVersionException The
If-Match
version is missing or not valid.
* - NoSuchCachePolicyException The cache policy does not exist.
* - PreconditionFailedException The precondition in one or more of the request fields evaluated to
*
false
.
* - IllegalDeleteException You cannot delete a managed policy.
* - CachePolicyInUseException Cannot delete the cache policy because it is attached to one or more cache
* behaviors.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.DeleteCachePolicy
* @see AWS
* API Documentation
*/
default CompletableFuture deleteCachePolicy(
Consumer deleteCachePolicyRequest) {
return deleteCachePolicy(DeleteCachePolicyRequest.builder().applyMutation(deleteCachePolicyRequest).build());
}
/**
*
* Delete an origin access identity.
*
*
* @param deleteCloudFrontOriginAccessIdentityRequest
* Deletes a origin access identity.
* @return A Java Future containing the result of the DeleteCloudFrontOriginAccessIdentity operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - InvalidIfMatchVersionException The
If-Match
version is missing or not valid.
* - NoSuchCloudFrontOriginAccessIdentityException The specified origin access identity does not exist.
* - PreconditionFailedException The precondition in one or more of the request fields evaluated to
*
false
.
* - CloudFrontOriginAccessIdentityInUseException The Origin Access Identity specified is already in use.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.DeleteCloudFrontOriginAccessIdentity
* @see AWS API Documentation
*/
default CompletableFuture deleteCloudFrontOriginAccessIdentity(
DeleteCloudFrontOriginAccessIdentityRequest deleteCloudFrontOriginAccessIdentityRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Delete an origin access identity.
*
*
*
* This is a convenience which creates an instance of the
* {@link DeleteCloudFrontOriginAccessIdentityRequest.Builder} avoiding the need to create one manually via
* {@link DeleteCloudFrontOriginAccessIdentityRequest#builder()}
*
*
* @param deleteCloudFrontOriginAccessIdentityRequest
* A {@link Consumer} that will call methods on {@link DeleteCloudFrontOriginAccessIdentityRequest.Builder}
* to create a request. Deletes a origin access identity.
* @return A Java Future containing the result of the DeleteCloudFrontOriginAccessIdentity operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - InvalidIfMatchVersionException The
If-Match
version is missing or not valid.
* - NoSuchCloudFrontOriginAccessIdentityException The specified origin access identity does not exist.
* - PreconditionFailedException The precondition in one or more of the request fields evaluated to
*
false
.
* - CloudFrontOriginAccessIdentityInUseException The Origin Access Identity specified is already in use.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.DeleteCloudFrontOriginAccessIdentity
* @see AWS API Documentation
*/
default CompletableFuture deleteCloudFrontOriginAccessIdentity(
Consumer deleteCloudFrontOriginAccessIdentityRequest) {
return deleteCloudFrontOriginAccessIdentity(DeleteCloudFrontOriginAccessIdentityRequest.builder()
.applyMutation(deleteCloudFrontOriginAccessIdentityRequest).build());
}
/**
*
* Delete a distribution.
*
*
* @param deleteDistributionRequest
* This action deletes a web distribution. To delete a web distribution using the CloudFront API, perform the
* following steps.
*
* To delete a web distribution using the CloudFront API:
*
*
* -
*
* Disable the web distribution
*
*
* -
*
* Submit a GET Distribution Config
request to get the current configuration and the
* Etag
header for the distribution.
*
*
* -
*
* Update the XML document that was returned in the response to your GET Distribution Config
* request to change the value of Enabled
to false
.
*
*
* -
*
* Submit a PUT Distribution Config
request to update the configuration for your distribution.
* In the request body, include the XML document that you updated in Step 3. Set the value of the HTTP
* If-Match
header to the value of the ETag
header that CloudFront returned when
* you submitted the GET Distribution Config
request in Step 2.
*
*
* -
*
* Review the response to the PUT Distribution Config
request to confirm that the distribution
* was successfully disabled.
*
*
* -
*
* Submit a GET Distribution
request to confirm that your changes have propagated. When
* propagation is complete, the value of Status
is Deployed
.
*
*
* -
*
* Submit a DELETE Distribution
request. Set the value of the HTTP If-Match
header
* to the value of the ETag
header that CloudFront returned when you submitted the
* GET Distribution Config
request in Step 6.
*
*
* -
*
* Review the response to your DELETE Distribution
request to confirm that the distribution was
* successfully deleted.
*
*
*
*
* For information about deleting a distribution using the CloudFront console, see Deleting a Distribution in the Amazon CloudFront Developer Guide.
* @return A Java Future containing the result of the DeleteDistribution operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
- DistributionNotDisabledException The specified
* CloudFront distribution is not disabled. You must disable the distribution before you can delete it.
* - InvalidIfMatchVersionException The
If-Match
version is missing or not valid. -
* NoSuchDistributionException The specified distribution does not exist.
-
* PreconditionFailedException The precondition in one or more of the request fields evaluated to
* false
. - SdkException Base class for all exceptions that can be thrown by the SDK (both
* service and client). Can be used for catch all scenarios.
- SdkClientException If any client side
* error occurs such as an IO related failure, failure to get credentials, etc.
- CloudFrontException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
*
*
* @sample CloudFrontAsyncClient.DeleteDistribution
* @see AWS
* API Documentation
*/
default CompletableFuture deleteDistribution(DeleteDistributionRequest deleteDistributionRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Delete a distribution.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteDistributionRequest.Builder} avoiding the
* need to create one manually via {@link DeleteDistributionRequest#builder()}
*
*
* @param deleteDistributionRequest
* A {@link Consumer} that will call methods on {@link DeleteDistributionRequest.Builder} to create a
* request. This action deletes a web distribution. To delete a web distribution using the CloudFront API,
* perform the following steps.
*
* To delete a web distribution using the CloudFront API:
*
*
* -
*
* Disable the web distribution
*
*
* -
*
* Submit a GET Distribution Config
request to get the current configuration and the
* Etag
header for the distribution.
*
*
* -
*
* Update the XML document that was returned in the response to your GET Distribution Config
* request to change the value of Enabled
to false
.
*
*
* -
*
* Submit a PUT Distribution Config
request to update the configuration for your distribution.
* In the request body, include the XML document that you updated in Step 3. Set the value of the HTTP
* If-Match
header to the value of the ETag
header that CloudFront returned when
* you submitted the GET Distribution Config
request in Step 2.
*
*
* -
*
* Review the response to the PUT Distribution Config
request to confirm that the distribution
* was successfully disabled.
*
*
* -
*
* Submit a GET Distribution
request to confirm that your changes have propagated. When
* propagation is complete, the value of Status
is Deployed
.
*
*
* -
*
* Submit a DELETE Distribution
request. Set the value of the HTTP If-Match
header
* to the value of the ETag
header that CloudFront returned when you submitted the
* GET Distribution Config
request in Step 6.
*
*
* -
*
* Review the response to your DELETE Distribution
request to confirm that the distribution was
* successfully deleted.
*
*
*
*
* For information about deleting a distribution using the CloudFront console, see Deleting a Distribution in the Amazon CloudFront Developer Guide.
* @return A Java Future containing the result of the DeleteDistribution operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
- DistributionNotDisabledException The specified
* CloudFront distribution is not disabled. You must disable the distribution before you can delete it.
* - InvalidIfMatchVersionException The
If-Match
version is missing or not valid. -
* NoSuchDistributionException The specified distribution does not exist.
-
* PreconditionFailedException The precondition in one or more of the request fields evaluated to
* false
. - SdkException Base class for all exceptions that can be thrown by the SDK (both
* service and client). Can be used for catch all scenarios.
- SdkClientException If any client side
* error occurs such as an IO related failure, failure to get credentials, etc.
- CloudFrontException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
*
*
* @sample CloudFrontAsyncClient.DeleteDistribution
* @see AWS
* API Documentation
*/
default CompletableFuture deleteDistribution(
Consumer deleteDistributionRequest) {
return deleteDistribution(DeleteDistributionRequest.builder().applyMutation(deleteDistributionRequest).build());
}
/**
*
* Remove a field-level encryption configuration.
*
*
* @param deleteFieldLevelEncryptionConfigRequest
* @return A Java Future containing the result of the DeleteFieldLevelEncryptionConfig operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - InvalidIfMatchVersionException The
If-Match
version is missing or not valid.
* - NoSuchFieldLevelEncryptionConfigException The specified configuration for field-level encryption
* doesn't exist.
* - PreconditionFailedException The precondition in one or more of the request fields evaluated to
*
false
.
* - FieldLevelEncryptionConfigInUseException The specified configuration for field-level encryption is in
* use.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.DeleteFieldLevelEncryptionConfig
* @see AWS API Documentation
*/
default CompletableFuture deleteFieldLevelEncryptionConfig(
DeleteFieldLevelEncryptionConfigRequest deleteFieldLevelEncryptionConfigRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Remove a field-level encryption configuration.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteFieldLevelEncryptionConfigRequest.Builder}
* avoiding the need to create one manually via {@link DeleteFieldLevelEncryptionConfigRequest#builder()}
*
*
* @param deleteFieldLevelEncryptionConfigRequest
* A {@link Consumer} that will call methods on {@link DeleteFieldLevelEncryptionConfigRequest.Builder} to
* create a request.
* @return A Java Future containing the result of the DeleteFieldLevelEncryptionConfig operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - InvalidIfMatchVersionException The
If-Match
version is missing or not valid.
* - NoSuchFieldLevelEncryptionConfigException The specified configuration for field-level encryption
* doesn't exist.
* - PreconditionFailedException The precondition in one or more of the request fields evaluated to
*
false
.
* - FieldLevelEncryptionConfigInUseException The specified configuration for field-level encryption is in
* use.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.DeleteFieldLevelEncryptionConfig
* @see AWS API Documentation
*/
default CompletableFuture deleteFieldLevelEncryptionConfig(
Consumer deleteFieldLevelEncryptionConfigRequest) {
return deleteFieldLevelEncryptionConfig(DeleteFieldLevelEncryptionConfigRequest.builder()
.applyMutation(deleteFieldLevelEncryptionConfigRequest).build());
}
/**
*
* Remove a field-level encryption profile.
*
*
* @param deleteFieldLevelEncryptionProfileRequest
* @return A Java Future containing the result of the DeleteFieldLevelEncryptionProfile operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - InvalidIfMatchVersionException The
If-Match
version is missing or not valid.
* - NoSuchFieldLevelEncryptionProfileException The specified profile for field-level encryption doesn't
* exist.
* - PreconditionFailedException The precondition in one or more of the request fields evaluated to
*
false
.
* - FieldLevelEncryptionProfileInUseException The specified profile for field-level encryption is in use.
*
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.DeleteFieldLevelEncryptionProfile
* @see AWS API Documentation
*/
default CompletableFuture deleteFieldLevelEncryptionProfile(
DeleteFieldLevelEncryptionProfileRequest deleteFieldLevelEncryptionProfileRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Remove a field-level encryption profile.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteFieldLevelEncryptionProfileRequest.Builder}
* avoiding the need to create one manually via {@link DeleteFieldLevelEncryptionProfileRequest#builder()}
*
*
* @param deleteFieldLevelEncryptionProfileRequest
* A {@link Consumer} that will call methods on {@link DeleteFieldLevelEncryptionProfileRequest.Builder} to
* create a request.
* @return A Java Future containing the result of the DeleteFieldLevelEncryptionProfile operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - InvalidIfMatchVersionException The
If-Match
version is missing or not valid.
* - NoSuchFieldLevelEncryptionProfileException The specified profile for field-level encryption doesn't
* exist.
* - PreconditionFailedException The precondition in one or more of the request fields evaluated to
*
false
.
* - FieldLevelEncryptionProfileInUseException The specified profile for field-level encryption is in use.
*
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.DeleteFieldLevelEncryptionProfile
* @see AWS API Documentation
*/
default CompletableFuture deleteFieldLevelEncryptionProfile(
Consumer deleteFieldLevelEncryptionProfileRequest) {
return deleteFieldLevelEncryptionProfile(DeleteFieldLevelEncryptionProfileRequest.builder()
.applyMutation(deleteFieldLevelEncryptionProfileRequest).build());
}
/**
*
* Deletes a CloudFront function.
*
*
* You cannot delete a function if it’s associated with a cache behavior. First, update your distributions to remove
* the function association from all cache behaviors, then delete the function.
*
*
* To delete a function, you must provide the function’s name and version (ETag
value). To get these
* values, you can use ListFunctions
and DescribeFunction
.
*
*
* @param deleteFunctionRequest
* @return A Java Future containing the result of the DeleteFunction operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - InvalidIfMatchVersionException The
If-Match
version is missing or not valid.
* - NoSuchFunctionExistsException The function does not exist.
* - FunctionInUseException Cannot delete the function because it’s attached to one or more cache
* behaviors.
* - PreconditionFailedException The precondition in one or more of the request fields evaluated to
*
false
.
* - UnsupportedOperationException This operation is not supported in this region.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.DeleteFunction
* @see AWS API
* Documentation
*/
default CompletableFuture deleteFunction(DeleteFunctionRequest deleteFunctionRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Deletes a CloudFront function.
*
*
* You cannot delete a function if it’s associated with a cache behavior. First, update your distributions to remove
* the function association from all cache behaviors, then delete the function.
*
*
* To delete a function, you must provide the function’s name and version (ETag
value). To get these
* values, you can use ListFunctions
and DescribeFunction
.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteFunctionRequest.Builder} avoiding the need to
* create one manually via {@link DeleteFunctionRequest#builder()}
*
*
* @param deleteFunctionRequest
* A {@link Consumer} that will call methods on {@link DeleteFunctionRequest.Builder} to create a request.
* @return A Java Future containing the result of the DeleteFunction operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - InvalidIfMatchVersionException The
If-Match
version is missing or not valid.
* - NoSuchFunctionExistsException The function does not exist.
* - FunctionInUseException Cannot delete the function because it’s attached to one or more cache
* behaviors.
* - PreconditionFailedException The precondition in one or more of the request fields evaluated to
*
false
.
* - UnsupportedOperationException This operation is not supported in this region.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.DeleteFunction
* @see AWS API
* Documentation
*/
default CompletableFuture deleteFunction(Consumer deleteFunctionRequest) {
return deleteFunction(DeleteFunctionRequest.builder().applyMutation(deleteFunctionRequest).build());
}
/**
*
* Deletes a key group.
*
*
* You cannot delete a key group that is referenced in a cache behavior. First update your distributions to remove
* the key group from all cache behaviors, then delete the key group.
*
*
* To delete a key group, you must provide the key group’s identifier and version. To get these values, use
* ListKeyGroups
followed by GetKeyGroup
or GetKeyGroupConfig
.
*
*
* @param deleteKeyGroupRequest
* @return A Java Future containing the result of the DeleteKeyGroup operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - InvalidIfMatchVersionException The
If-Match
version is missing or not valid.
* - NoSuchResourceException A resource that was specified is not valid.
* - PreconditionFailedException The precondition in one or more of the request fields evaluated to
*
false
.
* - ResourceInUseException Cannot delete this resource because it is in use.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.DeleteKeyGroup
* @see AWS API
* Documentation
*/
default CompletableFuture deleteKeyGroup(DeleteKeyGroupRequest deleteKeyGroupRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Deletes a key group.
*
*
* You cannot delete a key group that is referenced in a cache behavior. First update your distributions to remove
* the key group from all cache behaviors, then delete the key group.
*
*
* To delete a key group, you must provide the key group’s identifier and version. To get these values, use
* ListKeyGroups
followed by GetKeyGroup
or GetKeyGroupConfig
.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteKeyGroupRequest.Builder} avoiding the need to
* create one manually via {@link DeleteKeyGroupRequest#builder()}
*
*
* @param deleteKeyGroupRequest
* A {@link Consumer} that will call methods on {@link DeleteKeyGroupRequest.Builder} to create a request.
* @return A Java Future containing the result of the DeleteKeyGroup operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - InvalidIfMatchVersionException The
If-Match
version is missing or not valid.
* - NoSuchResourceException A resource that was specified is not valid.
* - PreconditionFailedException The precondition in one or more of the request fields evaluated to
*
false
.
* - ResourceInUseException Cannot delete this resource because it is in use.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.DeleteKeyGroup
* @see AWS API
* Documentation
*/
default CompletableFuture deleteKeyGroup(Consumer deleteKeyGroupRequest) {
return deleteKeyGroup(DeleteKeyGroupRequest.builder().applyMutation(deleteKeyGroupRequest).build());
}
/**
*
* Disables additional CloudWatch metrics for the specified CloudFront distribution.
*
*
* @param deleteMonitoringSubscriptionRequest
* @return A Java Future containing the result of the DeleteMonitoringSubscription operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - NoSuchDistributionException The specified distribution does not exist.
* - UnsupportedOperationException This operation is not supported in this region.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.DeleteMonitoringSubscription
* @see AWS API Documentation
*/
default CompletableFuture deleteMonitoringSubscription(
DeleteMonitoringSubscriptionRequest deleteMonitoringSubscriptionRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Disables additional CloudWatch metrics for the specified CloudFront distribution.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteMonitoringSubscriptionRequest.Builder}
* avoiding the need to create one manually via {@link DeleteMonitoringSubscriptionRequest#builder()}
*
*
* @param deleteMonitoringSubscriptionRequest
* A {@link Consumer} that will call methods on {@link DeleteMonitoringSubscriptionRequest.Builder} to create
* a request.
* @return A Java Future containing the result of the DeleteMonitoringSubscription operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - NoSuchDistributionException The specified distribution does not exist.
* - UnsupportedOperationException This operation is not supported in this region.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.DeleteMonitoringSubscription
* @see AWS API Documentation
*/
default CompletableFuture deleteMonitoringSubscription(
Consumer deleteMonitoringSubscriptionRequest) {
return deleteMonitoringSubscription(DeleteMonitoringSubscriptionRequest.builder()
.applyMutation(deleteMonitoringSubscriptionRequest).build());
}
/**
*
* Deletes an origin request policy.
*
*
* You cannot delete an origin request policy if it’s attached to any cache behaviors. First update your
* distributions to remove the origin request policy from all cache behaviors, then delete the origin request
* policy.
*
*
* To delete an origin request policy, you must provide the policy’s identifier and version. To get the identifier,
* you can use ListOriginRequestPolicies
or GetOriginRequestPolicy
.
*
*
* @param deleteOriginRequestPolicyRequest
* @return A Java Future containing the result of the DeleteOriginRequestPolicy operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - InvalidIfMatchVersionException The
If-Match
version is missing or not valid.
* - NoSuchOriginRequestPolicyException The origin request policy does not exist.
* - PreconditionFailedException The precondition in one or more of the request fields evaluated to
*
false
.
* - IllegalDeleteException You cannot delete a managed policy.
* - OriginRequestPolicyInUseException Cannot delete the origin request policy because it is attached to
* one or more cache behaviors.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.DeleteOriginRequestPolicy
* @see AWS API Documentation
*/
default CompletableFuture deleteOriginRequestPolicy(
DeleteOriginRequestPolicyRequest deleteOriginRequestPolicyRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Deletes an origin request policy.
*
*
* You cannot delete an origin request policy if it’s attached to any cache behaviors. First update your
* distributions to remove the origin request policy from all cache behaviors, then delete the origin request
* policy.
*
*
* To delete an origin request policy, you must provide the policy’s identifier and version. To get the identifier,
* you can use ListOriginRequestPolicies
or GetOriginRequestPolicy
.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteOriginRequestPolicyRequest.Builder} avoiding
* the need to create one manually via {@link DeleteOriginRequestPolicyRequest#builder()}
*
*
* @param deleteOriginRequestPolicyRequest
* A {@link Consumer} that will call methods on {@link DeleteOriginRequestPolicyRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the DeleteOriginRequestPolicy operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - InvalidIfMatchVersionException The
If-Match
version is missing or not valid.
* - NoSuchOriginRequestPolicyException The origin request policy does not exist.
* - PreconditionFailedException The precondition in one or more of the request fields evaluated to
*
false
.
* - IllegalDeleteException You cannot delete a managed policy.
* - OriginRequestPolicyInUseException Cannot delete the origin request policy because it is attached to
* one or more cache behaviors.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.DeleteOriginRequestPolicy
* @see AWS API Documentation
*/
default CompletableFuture deleteOriginRequestPolicy(
Consumer deleteOriginRequestPolicyRequest) {
return deleteOriginRequestPolicy(DeleteOriginRequestPolicyRequest.builder()
.applyMutation(deleteOriginRequestPolicyRequest).build());
}
/**
*
* Remove a public key you previously added to CloudFront.
*
*
* @param deletePublicKeyRequest
* @return A Java Future containing the result of the DeletePublicKey operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - PublicKeyInUseException The specified public key is in use.
* - InvalidIfMatchVersionException The
If-Match
version is missing or not valid.
* - NoSuchPublicKeyException The specified public key doesn't exist.
* - PreconditionFailedException The precondition in one or more of the request fields evaluated to
*
false
.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.DeletePublicKey
* @see AWS
* API Documentation
*/
default CompletableFuture deletePublicKey(DeletePublicKeyRequest deletePublicKeyRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Remove a public key you previously added to CloudFront.
*
*
*
* This is a convenience which creates an instance of the {@link DeletePublicKeyRequest.Builder} avoiding the need
* to create one manually via {@link DeletePublicKeyRequest#builder()}
*
*
* @param deletePublicKeyRequest
* A {@link Consumer} that will call methods on {@link DeletePublicKeyRequest.Builder} to create a request.
* @return A Java Future containing the result of the DeletePublicKey operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - PublicKeyInUseException The specified public key is in use.
* - InvalidIfMatchVersionException The
If-Match
version is missing or not valid.
* - NoSuchPublicKeyException The specified public key doesn't exist.
* - PreconditionFailedException The precondition in one or more of the request fields evaluated to
*
false
.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.DeletePublicKey
* @see AWS
* API Documentation
*/
default CompletableFuture deletePublicKey(
Consumer deletePublicKeyRequest) {
return deletePublicKey(DeletePublicKeyRequest.builder().applyMutation(deletePublicKeyRequest).build());
}
/**
*
* Deletes a real-time log configuration.
*
*
* You cannot delete a real-time log configuration if it’s attached to a cache behavior. First update your
* distributions to remove the real-time log configuration from all cache behaviors, then delete the real-time log
* configuration.
*
*
* To delete a real-time log configuration, you can provide the configuration’s name or its Amazon Resource Name
* (ARN). You must provide at least one. If you provide both, CloudFront uses the name to identify the real-time log
* configuration to delete.
*
*
* @param deleteRealtimeLogConfigRequest
* @return A Java Future containing the result of the DeleteRealtimeLogConfig operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - NoSuchRealtimeLogConfigException The real-time log configuration does not exist.
* - RealtimeLogConfigInUseException Cannot delete the real-time log configuration because it is attached
* to one or more cache behaviors.
* - InvalidArgumentException An argument is invalid.
* - AccessDeniedException Access denied.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.DeleteRealtimeLogConfig
* @see AWS API Documentation
*/
default CompletableFuture deleteRealtimeLogConfig(
DeleteRealtimeLogConfigRequest deleteRealtimeLogConfigRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Deletes a real-time log configuration.
*
*
* You cannot delete a real-time log configuration if it’s attached to a cache behavior. First update your
* distributions to remove the real-time log configuration from all cache behaviors, then delete the real-time log
* configuration.
*
*
* To delete a real-time log configuration, you can provide the configuration’s name or its Amazon Resource Name
* (ARN). You must provide at least one. If you provide both, CloudFront uses the name to identify the real-time log
* configuration to delete.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteRealtimeLogConfigRequest.Builder} avoiding
* the need to create one manually via {@link DeleteRealtimeLogConfigRequest#builder()}
*
*
* @param deleteRealtimeLogConfigRequest
* A {@link Consumer} that will call methods on {@link DeleteRealtimeLogConfigRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the DeleteRealtimeLogConfig operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - NoSuchRealtimeLogConfigException The real-time log configuration does not exist.
* - RealtimeLogConfigInUseException Cannot delete the real-time log configuration because it is attached
* to one or more cache behaviors.
* - InvalidArgumentException An argument is invalid.
* - AccessDeniedException Access denied.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.DeleteRealtimeLogConfig
* @see AWS API Documentation
*/
default CompletableFuture deleteRealtimeLogConfig(
Consumer deleteRealtimeLogConfigRequest) {
return deleteRealtimeLogConfig(DeleteRealtimeLogConfigRequest.builder().applyMutation(deleteRealtimeLogConfigRequest)
.build());
}
/**
*
* Delete a streaming distribution. To delete an RTMP distribution using the CloudFront API, perform the following
* steps.
*
*
* To delete an RTMP distribution using the CloudFront API:
*
*
* -
*
* Disable the RTMP distribution.
*
*
* -
*
* Submit a GET Streaming Distribution Config
request to get the current configuration and the
* Etag
header for the distribution.
*
*
* -
*
* Update the XML document that was returned in the response to your GET Streaming Distribution Config
* request to change the value of Enabled
to false
.
*
*
* -
*
* Submit a PUT Streaming Distribution Config
request to update the configuration for your
* distribution. In the request body, include the XML document that you updated in Step 3. Then set the value of the
* HTTP If-Match
header to the value of the ETag
header that CloudFront returned when you
* submitted the GET Streaming Distribution Config
request in Step 2.
*
*
* -
*
* Review the response to the PUT Streaming Distribution Config
request to confirm that the
* distribution was successfully disabled.
*
*
* -
*
* Submit a GET Streaming Distribution Config
request to confirm that your changes have propagated.
* When propagation is complete, the value of Status
is Deployed
.
*
*
* -
*
* Submit a DELETE Streaming Distribution
request. Set the value of the HTTP If-Match
* header to the value of the ETag
header that CloudFront returned when you submitted the
* GET Streaming Distribution Config
request in Step 2.
*
*
* -
*
* Review the response to your DELETE Streaming Distribution
request to confirm that the distribution
* was successfully deleted.
*
*
*
*
* For information about deleting a distribution using the CloudFront console, see Deleting a
* Distribution in the Amazon CloudFront Developer Guide.
*
*
* @param deleteStreamingDistributionRequest
* The request to delete a streaming distribution.
* @return A Java Future containing the result of the DeleteStreamingDistribution operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - StreamingDistributionNotDisabledException The specified CloudFront distribution is not disabled. You
* must disable the distribution before you can delete it.
* - InvalidIfMatchVersionException The
If-Match
version is missing or not valid.
* - NoSuchStreamingDistributionException The specified streaming distribution does not exist.
* - PreconditionFailedException The precondition in one or more of the request fields evaluated to
*
false
.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.DeleteStreamingDistribution
* @see AWS API Documentation
*/
default CompletableFuture deleteStreamingDistribution(
DeleteStreamingDistributionRequest deleteStreamingDistributionRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Delete a streaming distribution. To delete an RTMP distribution using the CloudFront API, perform the following
* steps.
*
*
* To delete an RTMP distribution using the CloudFront API:
*
*
* -
*
* Disable the RTMP distribution.
*
*
* -
*
* Submit a GET Streaming Distribution Config
request to get the current configuration and the
* Etag
header for the distribution.
*
*
* -
*
* Update the XML document that was returned in the response to your GET Streaming Distribution Config
* request to change the value of Enabled
to false
.
*
*
* -
*
* Submit a PUT Streaming Distribution Config
request to update the configuration for your
* distribution. In the request body, include the XML document that you updated in Step 3. Then set the value of the
* HTTP If-Match
header to the value of the ETag
header that CloudFront returned when you
* submitted the GET Streaming Distribution Config
request in Step 2.
*
*
* -
*
* Review the response to the PUT Streaming Distribution Config
request to confirm that the
* distribution was successfully disabled.
*
*
* -
*
* Submit a GET Streaming Distribution Config
request to confirm that your changes have propagated.
* When propagation is complete, the value of Status
is Deployed
.
*
*
* -
*
* Submit a DELETE Streaming Distribution
request. Set the value of the HTTP If-Match
* header to the value of the ETag
header that CloudFront returned when you submitted the
* GET Streaming Distribution Config
request in Step 2.
*
*
* -
*
* Review the response to your DELETE Streaming Distribution
request to confirm that the distribution
* was successfully deleted.
*
*
*
*
* For information about deleting a distribution using the CloudFront console, see Deleting a
* Distribution in the Amazon CloudFront Developer Guide.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteStreamingDistributionRequest.Builder}
* avoiding the need to create one manually via {@link DeleteStreamingDistributionRequest#builder()}
*
*
* @param deleteStreamingDistributionRequest
* A {@link Consumer} that will call methods on {@link DeleteStreamingDistributionRequest.Builder} to create
* a request. The request to delete a streaming distribution.
* @return A Java Future containing the result of the DeleteStreamingDistribution operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - StreamingDistributionNotDisabledException The specified CloudFront distribution is not disabled. You
* must disable the distribution before you can delete it.
* - InvalidIfMatchVersionException The
If-Match
version is missing or not valid.
* - NoSuchStreamingDistributionException The specified streaming distribution does not exist.
* - PreconditionFailedException The precondition in one or more of the request fields evaluated to
*
false
.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.DeleteStreamingDistribution
* @see AWS API Documentation
*/
default CompletableFuture deleteStreamingDistribution(
Consumer deleteStreamingDistributionRequest) {
return deleteStreamingDistribution(DeleteStreamingDistributionRequest.builder()
.applyMutation(deleteStreamingDistributionRequest).build());
}
/**
*
* Gets configuration information and metadata about a CloudFront function, but not the function’s code. To get a
* function’s code, use GetFunction
.
*
*
* To get configuration information and metadata about a function, you must provide the function’s name and stage.
* To get these values, you can use ListFunctions
.
*
*
* @param describeFunctionRequest
* @return A Java Future containing the result of the DescribeFunction operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - NoSuchFunctionExistsException The function does not exist.
* - UnsupportedOperationException This operation is not supported in this region.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.DescribeFunction
* @see AWS
* API Documentation
*/
default CompletableFuture describeFunction(DescribeFunctionRequest describeFunctionRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Gets configuration information and metadata about a CloudFront function, but not the function’s code. To get a
* function’s code, use GetFunction
.
*
*
* To get configuration information and metadata about a function, you must provide the function’s name and stage.
* To get these values, you can use ListFunctions
.
*
*
*
* This is a convenience which creates an instance of the {@link DescribeFunctionRequest.Builder} avoiding the need
* to create one manually via {@link DescribeFunctionRequest#builder()}
*
*
* @param describeFunctionRequest
* A {@link Consumer} that will call methods on {@link DescribeFunctionRequest.Builder} to create a request.
* @return A Java Future containing the result of the DescribeFunction operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - NoSuchFunctionExistsException The function does not exist.
* - UnsupportedOperationException This operation is not supported in this region.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.DescribeFunction
* @see AWS
* API Documentation
*/
default CompletableFuture describeFunction(
Consumer describeFunctionRequest) {
return describeFunction(DescribeFunctionRequest.builder().applyMutation(describeFunctionRequest).build());
}
/**
*
* Gets a cache policy, including the following metadata:
*
*
* -
*
* The policy’s identifier.
*
*
* -
*
* The date and time when the policy was last modified.
*
*
*
*
* To get a cache policy, you must provide the policy’s identifier. If the cache policy is attached to a
* distribution’s cache behavior, you can get the policy’s identifier using ListDistributions
or
* GetDistribution
. If the cache policy is not attached to a cache behavior, you can get the identifier
* using ListCachePolicies
.
*
*
* @param getCachePolicyRequest
* @return A Java Future containing the result of the GetCachePolicy operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - NoSuchCachePolicyException The cache policy does not exist.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.GetCachePolicy
* @see AWS API
* Documentation
*/
default CompletableFuture getCachePolicy(GetCachePolicyRequest getCachePolicyRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Gets a cache policy, including the following metadata:
*
*
* -
*
* The policy’s identifier.
*
*
* -
*
* The date and time when the policy was last modified.
*
*
*
*
* To get a cache policy, you must provide the policy’s identifier. If the cache policy is attached to a
* distribution’s cache behavior, you can get the policy’s identifier using ListDistributions
or
* GetDistribution
. If the cache policy is not attached to a cache behavior, you can get the identifier
* using ListCachePolicies
.
*
*
*
* This is a convenience which creates an instance of the {@link GetCachePolicyRequest.Builder} avoiding the need to
* create one manually via {@link GetCachePolicyRequest#builder()}
*
*
* @param getCachePolicyRequest
* A {@link Consumer} that will call methods on {@link GetCachePolicyRequest.Builder} to create a request.
* @return A Java Future containing the result of the GetCachePolicy operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - NoSuchCachePolicyException The cache policy does not exist.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.GetCachePolicy
* @see AWS API
* Documentation
*/
default CompletableFuture getCachePolicy(Consumer getCachePolicyRequest) {
return getCachePolicy(GetCachePolicyRequest.builder().applyMutation(getCachePolicyRequest).build());
}
/**
*
* Gets a cache policy configuration.
*
*
* To get a cache policy configuration, you must provide the policy’s identifier. If the cache policy is attached to
* a distribution’s cache behavior, you can get the policy’s identifier using ListDistributions
or
* GetDistribution
. If the cache policy is not attached to a cache behavior, you can get the identifier
* using ListCachePolicies
.
*
*
* @param getCachePolicyConfigRequest
* @return A Java Future containing the result of the GetCachePolicyConfig operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - NoSuchCachePolicyException The cache policy does not exist.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.GetCachePolicyConfig
* @see AWS API Documentation
*/
default CompletableFuture getCachePolicyConfig(
GetCachePolicyConfigRequest getCachePolicyConfigRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Gets a cache policy configuration.
*
*
* To get a cache policy configuration, you must provide the policy’s identifier. If the cache policy is attached to
* a distribution’s cache behavior, you can get the policy’s identifier using ListDistributions
or
* GetDistribution
. If the cache policy is not attached to a cache behavior, you can get the identifier
* using ListCachePolicies
.
*
*
*
* This is a convenience which creates an instance of the {@link GetCachePolicyConfigRequest.Builder} avoiding the
* need to create one manually via {@link GetCachePolicyConfigRequest#builder()}
*
*
* @param getCachePolicyConfigRequest
* A {@link Consumer} that will call methods on {@link GetCachePolicyConfigRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the GetCachePolicyConfig operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - NoSuchCachePolicyException The cache policy does not exist.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.GetCachePolicyConfig
* @see AWS API Documentation
*/
default CompletableFuture getCachePolicyConfig(
Consumer getCachePolicyConfigRequest) {
return getCachePolicyConfig(GetCachePolicyConfigRequest.builder().applyMutation(getCachePolicyConfigRequest).build());
}
/**
*
* Get the information about an origin access identity.
*
*
* @param getCloudFrontOriginAccessIdentityRequest
* The request to get an origin access identity's information.
* @return A Java Future containing the result of the GetCloudFrontOriginAccessIdentity operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - NoSuchCloudFrontOriginAccessIdentityException The specified origin access identity does not exist.
* - AccessDeniedException Access denied.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.GetCloudFrontOriginAccessIdentity
* @see AWS API Documentation
*/
default CompletableFuture getCloudFrontOriginAccessIdentity(
GetCloudFrontOriginAccessIdentityRequest getCloudFrontOriginAccessIdentityRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Get the information about an origin access identity.
*
*
*
* This is a convenience which creates an instance of the {@link GetCloudFrontOriginAccessIdentityRequest.Builder}
* avoiding the need to create one manually via {@link GetCloudFrontOriginAccessIdentityRequest#builder()}
*
*
* @param getCloudFrontOriginAccessIdentityRequest
* A {@link Consumer} that will call methods on {@link GetCloudFrontOriginAccessIdentityRequest.Builder} to
* create a request. The request to get an origin access identity's information.
* @return A Java Future containing the result of the GetCloudFrontOriginAccessIdentity operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - NoSuchCloudFrontOriginAccessIdentityException The specified origin access identity does not exist.
* - AccessDeniedException Access denied.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.GetCloudFrontOriginAccessIdentity
* @see AWS API Documentation
*/
default CompletableFuture getCloudFrontOriginAccessIdentity(
Consumer getCloudFrontOriginAccessIdentityRequest) {
return getCloudFrontOriginAccessIdentity(GetCloudFrontOriginAccessIdentityRequest.builder()
.applyMutation(getCloudFrontOriginAccessIdentityRequest).build());
}
/**
*
* Get the configuration information about an origin access identity.
*
*
* @param getCloudFrontOriginAccessIdentityConfigRequest
* The origin access identity's configuration information. For more information, see CloudFrontOriginAccessIdentityConfig.
* @return A Java Future containing the result of the GetCloudFrontOriginAccessIdentityConfig operation returned by
* the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - NoSuchCloudFrontOriginAccessIdentityException The specified origin access identity does not exist.
* - AccessDeniedException Access denied.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.GetCloudFrontOriginAccessIdentityConfig
* @see AWS API Documentation
*/
default CompletableFuture getCloudFrontOriginAccessIdentityConfig(
GetCloudFrontOriginAccessIdentityConfigRequest getCloudFrontOriginAccessIdentityConfigRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Get the configuration information about an origin access identity.
*
*
*
* This is a convenience which creates an instance of the
* {@link GetCloudFrontOriginAccessIdentityConfigRequest.Builder} avoiding the need to create one manually via
* {@link GetCloudFrontOriginAccessIdentityConfigRequest#builder()}
*
*
* @param getCloudFrontOriginAccessIdentityConfigRequest
* A {@link Consumer} that will call methods on
* {@link GetCloudFrontOriginAccessIdentityConfigRequest.Builder} to create a request. The origin access
* identity's configuration information. For more information, see CloudFrontOriginAccessIdentityConfig.
* @return A Java Future containing the result of the GetCloudFrontOriginAccessIdentityConfig operation returned by
* the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - NoSuchCloudFrontOriginAccessIdentityException The specified origin access identity does not exist.
* - AccessDeniedException Access denied.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.GetCloudFrontOriginAccessIdentityConfig
* @see AWS API Documentation
*/
default CompletableFuture getCloudFrontOriginAccessIdentityConfig(
Consumer getCloudFrontOriginAccessIdentityConfigRequest) {
return getCloudFrontOriginAccessIdentityConfig(GetCloudFrontOriginAccessIdentityConfigRequest.builder()
.applyMutation(getCloudFrontOriginAccessIdentityConfigRequest).build());
}
/**
*
* Get the information about a distribution.
*
*
* @param getDistributionRequest
* The request to get a distribution's information.
* @return A Java Future containing the result of the GetDistribution operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - NoSuchDistributionException The specified distribution does not exist.
* - AccessDeniedException Access denied.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.GetDistribution
* @see AWS
* API Documentation
*/
default CompletableFuture getDistribution(GetDistributionRequest getDistributionRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Get the information about a distribution.
*
*
*
* This is a convenience which creates an instance of the {@link GetDistributionRequest.Builder} avoiding the need
* to create one manually via {@link GetDistributionRequest#builder()}
*
*
* @param getDistributionRequest
* A {@link Consumer} that will call methods on {@link GetDistributionRequest.Builder} to create a request.
* The request to get a distribution's information.
* @return A Java Future containing the result of the GetDistribution operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - NoSuchDistributionException The specified distribution does not exist.
* - AccessDeniedException Access denied.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.GetDistribution
* @see AWS
* API Documentation
*/
default CompletableFuture getDistribution(
Consumer getDistributionRequest) {
return getDistribution(GetDistributionRequest.builder().applyMutation(getDistributionRequest).build());
}
/**
*
* Get the configuration information about a distribution.
*
*
* @param getDistributionConfigRequest
* The request to get a distribution configuration.
* @return A Java Future containing the result of the GetDistributionConfig operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - NoSuchDistributionException The specified distribution does not exist.
* - AccessDeniedException Access denied.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.GetDistributionConfig
* @see AWS API Documentation
*/
default CompletableFuture getDistributionConfig(
GetDistributionConfigRequest getDistributionConfigRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Get the configuration information about a distribution.
*
*
*
* This is a convenience which creates an instance of the {@link GetDistributionConfigRequest.Builder} avoiding the
* need to create one manually via {@link GetDistributionConfigRequest#builder()}
*
*
* @param getDistributionConfigRequest
* A {@link Consumer} that will call methods on {@link GetDistributionConfigRequest.Builder} to create a
* request. The request to get a distribution configuration.
* @return A Java Future containing the result of the GetDistributionConfig operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - NoSuchDistributionException The specified distribution does not exist.
* - AccessDeniedException Access denied.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.GetDistributionConfig
* @see AWS API Documentation
*/
default CompletableFuture getDistributionConfig(
Consumer getDistributionConfigRequest) {
return getDistributionConfig(GetDistributionConfigRequest.builder().applyMutation(getDistributionConfigRequest).build());
}
/**
*
* Get the field-level encryption configuration information.
*
*
* @param getFieldLevelEncryptionRequest
* @return A Java Future containing the result of the GetFieldLevelEncryption operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - NoSuchFieldLevelEncryptionConfigException The specified configuration for field-level encryption
* doesn't exist.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.GetFieldLevelEncryption
* @see AWS API Documentation
*/
default CompletableFuture getFieldLevelEncryption(
GetFieldLevelEncryptionRequest getFieldLevelEncryptionRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Get the field-level encryption configuration information.
*
*
*
* This is a convenience which creates an instance of the {@link GetFieldLevelEncryptionRequest.Builder} avoiding
* the need to create one manually via {@link GetFieldLevelEncryptionRequest#builder()}
*
*
* @param getFieldLevelEncryptionRequest
* A {@link Consumer} that will call methods on {@link GetFieldLevelEncryptionRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the GetFieldLevelEncryption operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - NoSuchFieldLevelEncryptionConfigException The specified configuration for field-level encryption
* doesn't exist.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.GetFieldLevelEncryption
* @see AWS API Documentation
*/
default CompletableFuture getFieldLevelEncryption(
Consumer getFieldLevelEncryptionRequest) {
return getFieldLevelEncryption(GetFieldLevelEncryptionRequest.builder().applyMutation(getFieldLevelEncryptionRequest)
.build());
}
/**
*
* Get the field-level encryption configuration information.
*
*
* @param getFieldLevelEncryptionConfigRequest
* @return A Java Future containing the result of the GetFieldLevelEncryptionConfig operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - NoSuchFieldLevelEncryptionConfigException The specified configuration for field-level encryption
* doesn't exist.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.GetFieldLevelEncryptionConfig
* @see AWS API Documentation
*/
default CompletableFuture getFieldLevelEncryptionConfig(
GetFieldLevelEncryptionConfigRequest getFieldLevelEncryptionConfigRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Get the field-level encryption configuration information.
*
*
*
* This is a convenience which creates an instance of the {@link GetFieldLevelEncryptionConfigRequest.Builder}
* avoiding the need to create one manually via {@link GetFieldLevelEncryptionConfigRequest#builder()}
*
*
* @param getFieldLevelEncryptionConfigRequest
* A {@link Consumer} that will call methods on {@link GetFieldLevelEncryptionConfigRequest.Builder} to
* create a request.
* @return A Java Future containing the result of the GetFieldLevelEncryptionConfig operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - NoSuchFieldLevelEncryptionConfigException The specified configuration for field-level encryption
* doesn't exist.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.GetFieldLevelEncryptionConfig
* @see AWS API Documentation
*/
default CompletableFuture getFieldLevelEncryptionConfig(
Consumer getFieldLevelEncryptionConfigRequest) {
return getFieldLevelEncryptionConfig(GetFieldLevelEncryptionConfigRequest.builder()
.applyMutation(getFieldLevelEncryptionConfigRequest).build());
}
/**
*
* Get the field-level encryption profile information.
*
*
* @param getFieldLevelEncryptionProfileRequest
* @return A Java Future containing the result of the GetFieldLevelEncryptionProfile operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - NoSuchFieldLevelEncryptionProfileException The specified profile for field-level encryption doesn't
* exist.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.GetFieldLevelEncryptionProfile
* @see AWS API Documentation
*/
default CompletableFuture getFieldLevelEncryptionProfile(
GetFieldLevelEncryptionProfileRequest getFieldLevelEncryptionProfileRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Get the field-level encryption profile information.
*
*
*
* This is a convenience which creates an instance of the {@link GetFieldLevelEncryptionProfileRequest.Builder}
* avoiding the need to create one manually via {@link GetFieldLevelEncryptionProfileRequest#builder()}
*
*
* @param getFieldLevelEncryptionProfileRequest
* A {@link Consumer} that will call methods on {@link GetFieldLevelEncryptionProfileRequest.Builder} to
* create a request.
* @return A Java Future containing the result of the GetFieldLevelEncryptionProfile operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - NoSuchFieldLevelEncryptionProfileException The specified profile for field-level encryption doesn't
* exist.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.GetFieldLevelEncryptionProfile
* @see AWS API Documentation
*/
default CompletableFuture getFieldLevelEncryptionProfile(
Consumer getFieldLevelEncryptionProfileRequest) {
return getFieldLevelEncryptionProfile(GetFieldLevelEncryptionProfileRequest.builder()
.applyMutation(getFieldLevelEncryptionProfileRequest).build());
}
/**
*
* Get the field-level encryption profile configuration information.
*
*
* @param getFieldLevelEncryptionProfileConfigRequest
* @return A Java Future containing the result of the GetFieldLevelEncryptionProfileConfig operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - NoSuchFieldLevelEncryptionProfileException The specified profile for field-level encryption doesn't
* exist.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.GetFieldLevelEncryptionProfileConfig
* @see AWS API Documentation
*/
default CompletableFuture getFieldLevelEncryptionProfileConfig(
GetFieldLevelEncryptionProfileConfigRequest getFieldLevelEncryptionProfileConfigRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Get the field-level encryption profile configuration information.
*
*
*
* This is a convenience which creates an instance of the
* {@link GetFieldLevelEncryptionProfileConfigRequest.Builder} avoiding the need to create one manually via
* {@link GetFieldLevelEncryptionProfileConfigRequest#builder()}
*
*
* @param getFieldLevelEncryptionProfileConfigRequest
* A {@link Consumer} that will call methods on {@link GetFieldLevelEncryptionProfileConfigRequest.Builder}
* to create a request.
* @return A Java Future containing the result of the GetFieldLevelEncryptionProfileConfig operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - NoSuchFieldLevelEncryptionProfileException The specified profile for field-level encryption doesn't
* exist.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.GetFieldLevelEncryptionProfileConfig
* @see AWS API Documentation
*/
default CompletableFuture getFieldLevelEncryptionProfileConfig(
Consumer getFieldLevelEncryptionProfileConfigRequest) {
return getFieldLevelEncryptionProfileConfig(GetFieldLevelEncryptionProfileConfigRequest.builder()
.applyMutation(getFieldLevelEncryptionProfileConfigRequest).build());
}
/**
*
* Gets the code of a CloudFront function. To get configuration information and metadata about a function, use
* DescribeFunction
.
*
*
* To get a function’s code, you must provide the function’s name and stage. To get these values, you can use
* ListFunctions
.
*
*
* @param getFunctionRequest
* @return A Java Future containing the result of the GetFunction operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - NoSuchFunctionExistsException The function does not exist.
* - UnsupportedOperationException This operation is not supported in this region.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.GetFunction
* @see AWS API
* Documentation
*/
default CompletableFuture getFunction(GetFunctionRequest getFunctionRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Gets the code of a CloudFront function. To get configuration information and metadata about a function, use
* DescribeFunction
.
*
*
* To get a function’s code, you must provide the function’s name and stage. To get these values, you can use
* ListFunctions
.
*
*
*
* This is a convenience which creates an instance of the {@link GetFunctionRequest.Builder} avoiding the need to
* create one manually via {@link GetFunctionRequest#builder()}
*
*
* @param getFunctionRequest
* A {@link Consumer} that will call methods on {@link GetFunctionRequest.Builder} to create a request.
* @return A Java Future containing the result of the GetFunction operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - NoSuchFunctionExistsException The function does not exist.
* - UnsupportedOperationException This operation is not supported in this region.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.GetFunction
* @see AWS API
* Documentation
*/
default CompletableFuture getFunction(Consumer getFunctionRequest) {
return getFunction(GetFunctionRequest.builder().applyMutation(getFunctionRequest).build());
}
/**
*
* Get the information about an invalidation.
*
*
* @param getInvalidationRequest
* The request to get an invalidation's information.
* @return A Java Future containing the result of the GetInvalidation operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - NoSuchInvalidationException The specified invalidation does not exist.
* - NoSuchDistributionException The specified distribution does not exist.
* - AccessDeniedException Access denied.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.GetInvalidation
* @see AWS
* API Documentation
*/
default CompletableFuture getInvalidation(GetInvalidationRequest getInvalidationRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Get the information about an invalidation.
*
*
*
* This is a convenience which creates an instance of the {@link GetInvalidationRequest.Builder} avoiding the need
* to create one manually via {@link GetInvalidationRequest#builder()}
*
*
* @param getInvalidationRequest
* A {@link Consumer} that will call methods on {@link GetInvalidationRequest.Builder} to create a request.
* The request to get an invalidation's information.
* @return A Java Future containing the result of the GetInvalidation operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - NoSuchInvalidationException The specified invalidation does not exist.
* - NoSuchDistributionException The specified distribution does not exist.
* - AccessDeniedException Access denied.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.GetInvalidation
* @see AWS
* API Documentation
*/
default CompletableFuture getInvalidation(
Consumer getInvalidationRequest) {
return getInvalidation(GetInvalidationRequest.builder().applyMutation(getInvalidationRequest).build());
}
/**
*
* Gets a key group, including the date and time when the key group was last modified.
*
*
* To get a key group, you must provide the key group’s identifier. If the key group is referenced in a
* distribution’s cache behavior, you can get the key group’s identifier using ListDistributions
or
* GetDistribution
. If the key group is not referenced in a cache behavior, you can get the identifier
* using ListKeyGroups
.
*
*
* @param getKeyGroupRequest
* @return A Java Future containing the result of the GetKeyGroup operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - NoSuchResourceException A resource that was specified is not valid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.GetKeyGroup
* @see AWS API
* Documentation
*/
default CompletableFuture getKeyGroup(GetKeyGroupRequest getKeyGroupRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Gets a key group, including the date and time when the key group was last modified.
*
*
* To get a key group, you must provide the key group’s identifier. If the key group is referenced in a
* distribution’s cache behavior, you can get the key group’s identifier using ListDistributions
or
* GetDistribution
. If the key group is not referenced in a cache behavior, you can get the identifier
* using ListKeyGroups
.
*
*
*
* This is a convenience which creates an instance of the {@link GetKeyGroupRequest.Builder} avoiding the need to
* create one manually via {@link GetKeyGroupRequest#builder()}
*
*
* @param getKeyGroupRequest
* A {@link Consumer} that will call methods on {@link GetKeyGroupRequest.Builder} to create a request.
* @return A Java Future containing the result of the GetKeyGroup operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - NoSuchResourceException A resource that was specified is not valid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.GetKeyGroup
* @see AWS API
* Documentation
*/
default CompletableFuture getKeyGroup(Consumer getKeyGroupRequest) {
return getKeyGroup(GetKeyGroupRequest.builder().applyMutation(getKeyGroupRequest).build());
}
/**
*
* Gets a key group configuration.
*
*
* To get a key group configuration, you must provide the key group’s identifier. If the key group is referenced in
* a distribution’s cache behavior, you can get the key group’s identifier using ListDistributions
or
* GetDistribution
. If the key group is not referenced in a cache behavior, you can get the identifier
* using ListKeyGroups
.
*
*
* @param getKeyGroupConfigRequest
* @return A Java Future containing the result of the GetKeyGroupConfig operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - NoSuchResourceException A resource that was specified is not valid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.GetKeyGroupConfig
* @see AWS
* API Documentation
*/
default CompletableFuture getKeyGroupConfig(GetKeyGroupConfigRequest getKeyGroupConfigRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Gets a key group configuration.
*
*
* To get a key group configuration, you must provide the key group’s identifier. If the key group is referenced in
* a distribution’s cache behavior, you can get the key group’s identifier using ListDistributions
or
* GetDistribution
. If the key group is not referenced in a cache behavior, you can get the identifier
* using ListKeyGroups
.
*
*
*
* This is a convenience which creates an instance of the {@link GetKeyGroupConfigRequest.Builder} avoiding the need
* to create one manually via {@link GetKeyGroupConfigRequest#builder()}
*
*
* @param getKeyGroupConfigRequest
* A {@link Consumer} that will call methods on {@link GetKeyGroupConfigRequest.Builder} to create a request.
* @return A Java Future containing the result of the GetKeyGroupConfig operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - NoSuchResourceException A resource that was specified is not valid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.GetKeyGroupConfig
* @see AWS
* API Documentation
*/
default CompletableFuture getKeyGroupConfig(
Consumer getKeyGroupConfigRequest) {
return getKeyGroupConfig(GetKeyGroupConfigRequest.builder().applyMutation(getKeyGroupConfigRequest).build());
}
/**
*
* Gets information about whether additional CloudWatch metrics are enabled for the specified CloudFront
* distribution.
*
*
* @param getMonitoringSubscriptionRequest
* @return A Java Future containing the result of the GetMonitoringSubscription operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - NoSuchDistributionException The specified distribution does not exist.
* - UnsupportedOperationException This operation is not supported in this region.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.GetMonitoringSubscription
* @see AWS API Documentation
*/
default CompletableFuture getMonitoringSubscription(
GetMonitoringSubscriptionRequest getMonitoringSubscriptionRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Gets information about whether additional CloudWatch metrics are enabled for the specified CloudFront
* distribution.
*
*
*
* This is a convenience which creates an instance of the {@link GetMonitoringSubscriptionRequest.Builder} avoiding
* the need to create one manually via {@link GetMonitoringSubscriptionRequest#builder()}
*
*
* @param getMonitoringSubscriptionRequest
* A {@link Consumer} that will call methods on {@link GetMonitoringSubscriptionRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the GetMonitoringSubscription operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - NoSuchDistributionException The specified distribution does not exist.
* - UnsupportedOperationException This operation is not supported in this region.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.GetMonitoringSubscription
* @see AWS API Documentation
*/
default CompletableFuture getMonitoringSubscription(
Consumer getMonitoringSubscriptionRequest) {
return getMonitoringSubscription(GetMonitoringSubscriptionRequest.builder()
.applyMutation(getMonitoringSubscriptionRequest).build());
}
/**
*
* Gets an origin request policy, including the following metadata:
*
*
* -
*
* The policy’s identifier.
*
*
* -
*
* The date and time when the policy was last modified.
*
*
*
*
* To get an origin request policy, you must provide the policy’s identifier. If the origin request policy is
* attached to a distribution’s cache behavior, you can get the policy’s identifier using
* ListDistributions
or GetDistribution
. If the origin request policy is not attached to a
* cache behavior, you can get the identifier using ListOriginRequestPolicies
.
*
*
* @param getOriginRequestPolicyRequest
* @return A Java Future containing the result of the GetOriginRequestPolicy operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - NoSuchOriginRequestPolicyException The origin request policy does not exist.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.GetOriginRequestPolicy
* @see AWS API Documentation
*/
default CompletableFuture getOriginRequestPolicy(
GetOriginRequestPolicyRequest getOriginRequestPolicyRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Gets an origin request policy, including the following metadata:
*
*
* -
*
* The policy’s identifier.
*
*
* -
*
* The date and time when the policy was last modified.
*
*
*
*
* To get an origin request policy, you must provide the policy’s identifier. If the origin request policy is
* attached to a distribution’s cache behavior, you can get the policy’s identifier using
* ListDistributions
or GetDistribution
. If the origin request policy is not attached to a
* cache behavior, you can get the identifier using ListOriginRequestPolicies
.
*
*
*
* This is a convenience which creates an instance of the {@link GetOriginRequestPolicyRequest.Builder} avoiding the
* need to create one manually via {@link GetOriginRequestPolicyRequest#builder()}
*
*
* @param getOriginRequestPolicyRequest
* A {@link Consumer} that will call methods on {@link GetOriginRequestPolicyRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the GetOriginRequestPolicy operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - NoSuchOriginRequestPolicyException The origin request policy does not exist.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.GetOriginRequestPolicy
* @see AWS API Documentation
*/
default CompletableFuture getOriginRequestPolicy(
Consumer getOriginRequestPolicyRequest) {
return getOriginRequestPolicy(GetOriginRequestPolicyRequest.builder().applyMutation(getOriginRequestPolicyRequest)
.build());
}
/**
*
* Gets an origin request policy configuration.
*
*
* To get an origin request policy configuration, you must provide the policy’s identifier. If the origin request
* policy is attached to a distribution’s cache behavior, you can get the policy’s identifier using
* ListDistributions
or GetDistribution
. If the origin request policy is not attached to a
* cache behavior, you can get the identifier using ListOriginRequestPolicies
.
*
*
* @param getOriginRequestPolicyConfigRequest
* @return A Java Future containing the result of the GetOriginRequestPolicyConfig operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - NoSuchOriginRequestPolicyException The origin request policy does not exist.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.GetOriginRequestPolicyConfig
* @see AWS API Documentation
*/
default CompletableFuture getOriginRequestPolicyConfig(
GetOriginRequestPolicyConfigRequest getOriginRequestPolicyConfigRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Gets an origin request policy configuration.
*
*
* To get an origin request policy configuration, you must provide the policy’s identifier. If the origin request
* policy is attached to a distribution’s cache behavior, you can get the policy’s identifier using
* ListDistributions
or GetDistribution
. If the origin request policy is not attached to a
* cache behavior, you can get the identifier using ListOriginRequestPolicies
.
*
*
*
* This is a convenience which creates an instance of the {@link GetOriginRequestPolicyConfigRequest.Builder}
* avoiding the need to create one manually via {@link GetOriginRequestPolicyConfigRequest#builder()}
*
*
* @param getOriginRequestPolicyConfigRequest
* A {@link Consumer} that will call methods on {@link GetOriginRequestPolicyConfigRequest.Builder} to create
* a request.
* @return A Java Future containing the result of the GetOriginRequestPolicyConfig operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - NoSuchOriginRequestPolicyException The origin request policy does not exist.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.GetOriginRequestPolicyConfig
* @see AWS API Documentation
*/
default CompletableFuture getOriginRequestPolicyConfig(
Consumer getOriginRequestPolicyConfigRequest) {
return getOriginRequestPolicyConfig(GetOriginRequestPolicyConfigRequest.builder()
.applyMutation(getOriginRequestPolicyConfigRequest).build());
}
/**
*
* Gets a public key.
*
*
* @param getPublicKeyRequest
* @return A Java Future containing the result of the GetPublicKey operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - NoSuchPublicKeyException The specified public key doesn't exist.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.GetPublicKey
* @see AWS API
* Documentation
*/
default CompletableFuture getPublicKey(GetPublicKeyRequest getPublicKeyRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Gets a public key.
*
*
*
* This is a convenience which creates an instance of the {@link GetPublicKeyRequest.Builder} avoiding the need to
* create one manually via {@link GetPublicKeyRequest#builder()}
*
*
* @param getPublicKeyRequest
* A {@link Consumer} that will call methods on {@link GetPublicKeyRequest.Builder} to create a request.
* @return A Java Future containing the result of the GetPublicKey operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - NoSuchPublicKeyException The specified public key doesn't exist.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.GetPublicKey
* @see AWS API
* Documentation
*/
default CompletableFuture getPublicKey(Consumer getPublicKeyRequest) {
return getPublicKey(GetPublicKeyRequest.builder().applyMutation(getPublicKeyRequest).build());
}
/**
*
* Gets a public key configuration.
*
*
* @param getPublicKeyConfigRequest
* @return A Java Future containing the result of the GetPublicKeyConfig operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - NoSuchPublicKeyException The specified public key doesn't exist.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.GetPublicKeyConfig
* @see AWS
* API Documentation
*/
default CompletableFuture getPublicKeyConfig(GetPublicKeyConfigRequest getPublicKeyConfigRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Gets a public key configuration.
*
*
*
* This is a convenience which creates an instance of the {@link GetPublicKeyConfigRequest.Builder} avoiding the
* need to create one manually via {@link GetPublicKeyConfigRequest#builder()}
*
*
* @param getPublicKeyConfigRequest
* A {@link Consumer} that will call methods on {@link GetPublicKeyConfigRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the GetPublicKeyConfig operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - NoSuchPublicKeyException The specified public key doesn't exist.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.GetPublicKeyConfig
* @see AWS
* API Documentation
*/
default CompletableFuture getPublicKeyConfig(
Consumer getPublicKeyConfigRequest) {
return getPublicKeyConfig(GetPublicKeyConfigRequest.builder().applyMutation(getPublicKeyConfigRequest).build());
}
/**
*
* Gets a real-time log configuration.
*
*
* To get a real-time log configuration, you can provide the configuration’s name or its Amazon Resource Name (ARN).
* You must provide at least one. If you provide both, CloudFront uses the name to identify the real-time log
* configuration to get.
*
*
* @param getRealtimeLogConfigRequest
* @return A Java Future containing the result of the GetRealtimeLogConfig operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - NoSuchRealtimeLogConfigException The real-time log configuration does not exist.
* - InvalidArgumentException An argument is invalid.
* - AccessDeniedException Access denied.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.GetRealtimeLogConfig
* @see AWS API Documentation
*/
default CompletableFuture getRealtimeLogConfig(
GetRealtimeLogConfigRequest getRealtimeLogConfigRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Gets a real-time log configuration.
*
*
* To get a real-time log configuration, you can provide the configuration’s name or its Amazon Resource Name (ARN).
* You must provide at least one. If you provide both, CloudFront uses the name to identify the real-time log
* configuration to get.
*
*
*
* This is a convenience which creates an instance of the {@link GetRealtimeLogConfigRequest.Builder} avoiding the
* need to create one manually via {@link GetRealtimeLogConfigRequest#builder()}
*
*
* @param getRealtimeLogConfigRequest
* A {@link Consumer} that will call methods on {@link GetRealtimeLogConfigRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the GetRealtimeLogConfig operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - NoSuchRealtimeLogConfigException The real-time log configuration does not exist.
* - InvalidArgumentException An argument is invalid.
* - AccessDeniedException Access denied.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.GetRealtimeLogConfig
* @see AWS API Documentation
*/
default CompletableFuture getRealtimeLogConfig(
Consumer getRealtimeLogConfigRequest) {
return getRealtimeLogConfig(GetRealtimeLogConfigRequest.builder().applyMutation(getRealtimeLogConfigRequest).build());
}
/**
*
* Gets information about a specified RTMP distribution, including the distribution configuration.
*
*
* @param getStreamingDistributionRequest
* The request to get a streaming distribution's information.
* @return A Java Future containing the result of the GetStreamingDistribution operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - NoSuchStreamingDistributionException The specified streaming distribution does not exist.
* - AccessDeniedException Access denied.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.GetStreamingDistribution
* @see AWS API Documentation
*/
default CompletableFuture getStreamingDistribution(
GetStreamingDistributionRequest getStreamingDistributionRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Gets information about a specified RTMP distribution, including the distribution configuration.
*
*
*
* This is a convenience which creates an instance of the {@link GetStreamingDistributionRequest.Builder} avoiding
* the need to create one manually via {@link GetStreamingDistributionRequest#builder()}
*
*
* @param getStreamingDistributionRequest
* A {@link Consumer} that will call methods on {@link GetStreamingDistributionRequest.Builder} to create a
* request. The request to get a streaming distribution's information.
* @return A Java Future containing the result of the GetStreamingDistribution operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - NoSuchStreamingDistributionException The specified streaming distribution does not exist.
* - AccessDeniedException Access denied.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.GetStreamingDistribution
* @see AWS API Documentation
*/
default CompletableFuture getStreamingDistribution(
Consumer getStreamingDistributionRequest) {
return getStreamingDistribution(GetStreamingDistributionRequest.builder().applyMutation(getStreamingDistributionRequest)
.build());
}
/**
*
* Get the configuration information about a streaming distribution.
*
*
* @param getStreamingDistributionConfigRequest
* To request to get a streaming distribution configuration.
* @return A Java Future containing the result of the GetStreamingDistributionConfig operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - NoSuchStreamingDistributionException The specified streaming distribution does not exist.
* - AccessDeniedException Access denied.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.GetStreamingDistributionConfig
* @see AWS API Documentation
*/
default CompletableFuture getStreamingDistributionConfig(
GetStreamingDistributionConfigRequest getStreamingDistributionConfigRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Get the configuration information about a streaming distribution.
*
*
*
* This is a convenience which creates an instance of the {@link GetStreamingDistributionConfigRequest.Builder}
* avoiding the need to create one manually via {@link GetStreamingDistributionConfigRequest#builder()}
*
*
* @param getStreamingDistributionConfigRequest
* A {@link Consumer} that will call methods on {@link GetStreamingDistributionConfigRequest.Builder} to
* create a request. To request to get a streaming distribution configuration.
* @return A Java Future containing the result of the GetStreamingDistributionConfig operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - NoSuchStreamingDistributionException The specified streaming distribution does not exist.
* - AccessDeniedException Access denied.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.GetStreamingDistributionConfig
* @see AWS API Documentation
*/
default CompletableFuture getStreamingDistributionConfig(
Consumer getStreamingDistributionConfigRequest) {
return getStreamingDistributionConfig(GetStreamingDistributionConfigRequest.builder()
.applyMutation(getStreamingDistributionConfigRequest).build());
}
/**
*
* Gets a list of cache policies.
*
*
* You can optionally apply a filter to return only the managed policies created by Amazon Web Services, or only the
* custom policies created in your account.
*
*
* You can optionally specify the maximum number of items to receive in the response. If the total number of items
* in the list exceeds the maximum that you specify, or the default maximum, the response is paginated. To get the
* next page of items, send a subsequent request that specifies the NextMarker
value from the current
* response as the Marker
value in the subsequent request.
*
*
* @param listCachePoliciesRequest
* @return A Java Future containing the result of the ListCachePolicies operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - NoSuchCachePolicyException The cache policy does not exist.
* - InvalidArgumentException An argument is invalid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.ListCachePolicies
* @see AWS
* API Documentation
*/
default CompletableFuture listCachePolicies(ListCachePoliciesRequest listCachePoliciesRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Gets a list of cache policies.
*
*
* You can optionally apply a filter to return only the managed policies created by Amazon Web Services, or only the
* custom policies created in your account.
*
*
* You can optionally specify the maximum number of items to receive in the response. If the total number of items
* in the list exceeds the maximum that you specify, or the default maximum, the response is paginated. To get the
* next page of items, send a subsequent request that specifies the NextMarker
value from the current
* response as the Marker
value in the subsequent request.
*
*
*
* This is a convenience which creates an instance of the {@link ListCachePoliciesRequest.Builder} avoiding the need
* to create one manually via {@link ListCachePoliciesRequest#builder()}
*
*
* @param listCachePoliciesRequest
* A {@link Consumer} that will call methods on {@link ListCachePoliciesRequest.Builder} to create a request.
* @return A Java Future containing the result of the ListCachePolicies operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - NoSuchCachePolicyException The cache policy does not exist.
* - InvalidArgumentException An argument is invalid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.ListCachePolicies
* @see AWS
* API Documentation
*/
default CompletableFuture listCachePolicies(
Consumer listCachePoliciesRequest) {
return listCachePolicies(ListCachePoliciesRequest.builder().applyMutation(listCachePoliciesRequest).build());
}
/**
*
* Lists origin access identities.
*
*
* @param listCloudFrontOriginAccessIdentitiesRequest
* The request to list origin access identities.
* @return A Java Future containing the result of the ListCloudFrontOriginAccessIdentities operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - InvalidArgumentException An argument is invalid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.ListCloudFrontOriginAccessIdentities
* @see AWS API Documentation
*/
default CompletableFuture listCloudFrontOriginAccessIdentities(
ListCloudFrontOriginAccessIdentitiesRequest listCloudFrontOriginAccessIdentitiesRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Lists origin access identities.
*
*
*
* This is a convenience which creates an instance of the
* {@link ListCloudFrontOriginAccessIdentitiesRequest.Builder} avoiding the need to create one manually via
* {@link ListCloudFrontOriginAccessIdentitiesRequest#builder()}
*
*
* @param listCloudFrontOriginAccessIdentitiesRequest
* A {@link Consumer} that will call methods on {@link ListCloudFrontOriginAccessIdentitiesRequest.Builder}
* to create a request. The request to list origin access identities.
* @return A Java Future containing the result of the ListCloudFrontOriginAccessIdentities operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - InvalidArgumentException An argument is invalid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.ListCloudFrontOriginAccessIdentities
* @see AWS API Documentation
*/
default CompletableFuture listCloudFrontOriginAccessIdentities(
Consumer listCloudFrontOriginAccessIdentitiesRequest) {
return listCloudFrontOriginAccessIdentities(ListCloudFrontOriginAccessIdentitiesRequest.builder()
.applyMutation(listCloudFrontOriginAccessIdentitiesRequest).build());
}
/**
*
* Lists origin access identities.
*
*
* @return A Java Future containing the result of the ListCloudFrontOriginAccessIdentities operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - InvalidArgumentException An argument is invalid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.ListCloudFrontOriginAccessIdentities
* @see AWS API Documentation
*/
default CompletableFuture listCloudFrontOriginAccessIdentities() {
return listCloudFrontOriginAccessIdentities(ListCloudFrontOriginAccessIdentitiesRequest.builder().build());
}
/**
*
* Gets a list of aliases (also called CNAMEs or alternate domain names) that conflict or overlap with the provided
* alias, and the associated CloudFront distributions and Amazon Web Services accounts for each conflicting alias.
* In the returned list, the distribution and account IDs are partially hidden, which allows you to identify the
* distributions and accounts that you own, but helps to protect the information of ones that you don’t own.
*
*
* Use this operation to find aliases that are in use in CloudFront that conflict or overlap with the provided
* alias. For example, if you provide www.example.com
as input, the returned list can include
* www.example.com
and the overlapping wildcard alternate domain name (*.example.com
), if
* they exist. If you provide *.example.com
as input, the returned list can include
* *.example.com
and any alternate domain names covered by that wildcard (for example,
* www.example.com
, test.example.com
, dev.example.com
, and so on), if they
* exist.
*
*
* To list conflicting aliases, you provide the alias to search and the ID of a distribution in your account that
* has an attached SSL/TLS certificate that includes the provided alias. For more information, including how to set
* up the distribution and certificate, see Moving an alternate domain name to a different distribution in the Amazon CloudFront Developer Guide.
*
*
* You can optionally specify the maximum number of items to receive in the response. If the total number of items
* in the list exceeds the maximum that you specify, or the default maximum, the response is paginated. To get the
* next page of items, send a subsequent request that specifies the NextMarker
value from the current
* response as the Marker
value in the subsequent request.
*
*
* @param listConflictingAliasesRequest
* @return A Java Future containing the result of the ListConflictingAliases operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - InvalidArgumentException An argument is invalid.
* - NoSuchDistributionException The specified distribution does not exist.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.ListConflictingAliases
* @see AWS API Documentation
*/
default CompletableFuture listConflictingAliases(
ListConflictingAliasesRequest listConflictingAliasesRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Gets a list of aliases (also called CNAMEs or alternate domain names) that conflict or overlap with the provided
* alias, and the associated CloudFront distributions and Amazon Web Services accounts for each conflicting alias.
* In the returned list, the distribution and account IDs are partially hidden, which allows you to identify the
* distributions and accounts that you own, but helps to protect the information of ones that you don’t own.
*
*
* Use this operation to find aliases that are in use in CloudFront that conflict or overlap with the provided
* alias. For example, if you provide www.example.com
as input, the returned list can include
* www.example.com
and the overlapping wildcard alternate domain name (*.example.com
), if
* they exist. If you provide *.example.com
as input, the returned list can include
* *.example.com
and any alternate domain names covered by that wildcard (for example,
* www.example.com
, test.example.com
, dev.example.com
, and so on), if they
* exist.
*
*
* To list conflicting aliases, you provide the alias to search and the ID of a distribution in your account that
* has an attached SSL/TLS certificate that includes the provided alias. For more information, including how to set
* up the distribution and certificate, see Moving an alternate domain name to a different distribution in the Amazon CloudFront Developer Guide.
*
*
* You can optionally specify the maximum number of items to receive in the response. If the total number of items
* in the list exceeds the maximum that you specify, or the default maximum, the response is paginated. To get the
* next page of items, send a subsequent request that specifies the NextMarker
value from the current
* response as the Marker
value in the subsequent request.
*
*
*
* This is a convenience which creates an instance of the {@link ListConflictingAliasesRequest.Builder} avoiding the
* need to create one manually via {@link ListConflictingAliasesRequest#builder()}
*
*
* @param listConflictingAliasesRequest
* A {@link Consumer} that will call methods on {@link ListConflictingAliasesRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the ListConflictingAliases operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - InvalidArgumentException An argument is invalid.
* - NoSuchDistributionException The specified distribution does not exist.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.ListConflictingAliases
* @see AWS API Documentation
*/
default CompletableFuture listConflictingAliases(
Consumer listConflictingAliasesRequest) {
return listConflictingAliases(ListConflictingAliasesRequest.builder().applyMutation(listConflictingAliasesRequest)
.build());
}
/**
*
* List CloudFront distributions.
*
*
* @param listDistributionsRequest
* The request to list your distributions.
* @return A Java Future containing the result of the ListDistributions operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - InvalidArgumentException An argument is invalid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.ListDistributions
* @see AWS
* API Documentation
*/
default CompletableFuture listDistributions(ListDistributionsRequest listDistributionsRequest) {
throw new UnsupportedOperationException();
}
/**
*
* List CloudFront distributions.
*
*
*
* This is a convenience which creates an instance of the {@link ListDistributionsRequest.Builder} avoiding the need
* to create one manually via {@link ListDistributionsRequest#builder()}
*
*
* @param listDistributionsRequest
* A {@link Consumer} that will call methods on {@link ListDistributionsRequest.Builder} to create a request.
* The request to list your distributions.
* @return A Java Future containing the result of the ListDistributions operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - InvalidArgumentException An argument is invalid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.ListDistributions
* @see AWS
* API Documentation
*/
default CompletableFuture listDistributions(
Consumer listDistributionsRequest) {
return listDistributions(ListDistributionsRequest.builder().applyMutation(listDistributionsRequest).build());
}
/**
*
* List CloudFront distributions.
*
*
* @return A Java Future containing the result of the ListDistributions operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - InvalidArgumentException An argument is invalid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.ListDistributions
* @see AWS
* API Documentation
*/
default CompletableFuture listDistributions() {
return listDistributions(ListDistributionsRequest.builder().build());
}
/**
*
* Gets a list of distribution IDs for distributions that have a cache behavior that’s associated with the specified
* cache policy.
*
*
* You can optionally specify the maximum number of items to receive in the response. If the total number of items
* in the list exceeds the maximum that you specify, or the default maximum, the response is paginated. To get the
* next page of items, send a subsequent request that specifies the NextMarker
value from the current
* response as the Marker
value in the subsequent request.
*
*
* @param listDistributionsByCachePolicyIdRequest
* @return A Java Future containing the result of the ListDistributionsByCachePolicyId operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - NoSuchCachePolicyException The cache policy does not exist.
* - InvalidArgumentException An argument is invalid.
* - AccessDeniedException Access denied.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.ListDistributionsByCachePolicyId
* @see AWS API Documentation
*/
default CompletableFuture listDistributionsByCachePolicyId(
ListDistributionsByCachePolicyIdRequest listDistributionsByCachePolicyIdRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Gets a list of distribution IDs for distributions that have a cache behavior that’s associated with the specified
* cache policy.
*
*
* You can optionally specify the maximum number of items to receive in the response. If the total number of items
* in the list exceeds the maximum that you specify, or the default maximum, the response is paginated. To get the
* next page of items, send a subsequent request that specifies the NextMarker
value from the current
* response as the Marker
value in the subsequent request.
*
*
*
* This is a convenience which creates an instance of the {@link ListDistributionsByCachePolicyIdRequest.Builder}
* avoiding the need to create one manually via {@link ListDistributionsByCachePolicyIdRequest#builder()}
*
*
* @param listDistributionsByCachePolicyIdRequest
* A {@link Consumer} that will call methods on {@link ListDistributionsByCachePolicyIdRequest.Builder} to
* create a request.
* @return A Java Future containing the result of the ListDistributionsByCachePolicyId operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - NoSuchCachePolicyException The cache policy does not exist.
* - InvalidArgumentException An argument is invalid.
* - AccessDeniedException Access denied.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.ListDistributionsByCachePolicyId
* @see AWS API Documentation
*/
default CompletableFuture listDistributionsByCachePolicyId(
Consumer listDistributionsByCachePolicyIdRequest) {
return listDistributionsByCachePolicyId(ListDistributionsByCachePolicyIdRequest.builder()
.applyMutation(listDistributionsByCachePolicyIdRequest).build());
}
/**
*
* Gets a list of distribution IDs for distributions that have a cache behavior that references the specified key
* group.
*
*
* You can optionally specify the maximum number of items to receive in the response. If the total number of items
* in the list exceeds the maximum that you specify, or the default maximum, the response is paginated. To get the
* next page of items, send a subsequent request that specifies the NextMarker
value from the current
* response as the Marker
value in the subsequent request.
*
*
* @param listDistributionsByKeyGroupRequest
* @return A Java Future containing the result of the ListDistributionsByKeyGroup operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - NoSuchResourceException A resource that was specified is not valid.
* - InvalidArgumentException An argument is invalid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.ListDistributionsByKeyGroup
* @see AWS API Documentation
*/
default CompletableFuture listDistributionsByKeyGroup(
ListDistributionsByKeyGroupRequest listDistributionsByKeyGroupRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Gets a list of distribution IDs for distributions that have a cache behavior that references the specified key
* group.
*
*
* You can optionally specify the maximum number of items to receive in the response. If the total number of items
* in the list exceeds the maximum that you specify, or the default maximum, the response is paginated. To get the
* next page of items, send a subsequent request that specifies the NextMarker
value from the current
* response as the Marker
value in the subsequent request.
*
*
*
* This is a convenience which creates an instance of the {@link ListDistributionsByKeyGroupRequest.Builder}
* avoiding the need to create one manually via {@link ListDistributionsByKeyGroupRequest#builder()}
*
*
* @param listDistributionsByKeyGroupRequest
* A {@link Consumer} that will call methods on {@link ListDistributionsByKeyGroupRequest.Builder} to create
* a request.
* @return A Java Future containing the result of the ListDistributionsByKeyGroup operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - NoSuchResourceException A resource that was specified is not valid.
* - InvalidArgumentException An argument is invalid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.ListDistributionsByKeyGroup
* @see AWS API Documentation
*/
default CompletableFuture listDistributionsByKeyGroup(
Consumer listDistributionsByKeyGroupRequest) {
return listDistributionsByKeyGroup(ListDistributionsByKeyGroupRequest.builder()
.applyMutation(listDistributionsByKeyGroupRequest).build());
}
/**
*
* Gets a list of distribution IDs for distributions that have a cache behavior that’s associated with the specified
* origin request policy.
*
*
* You can optionally specify the maximum number of items to receive in the response. If the total number of items
* in the list exceeds the maximum that you specify, or the default maximum, the response is paginated. To get the
* next page of items, send a subsequent request that specifies the NextMarker
value from the current
* response as the Marker
value in the subsequent request.
*
*
* @param listDistributionsByOriginRequestPolicyIdRequest
* @return A Java Future containing the result of the ListDistributionsByOriginRequestPolicyId operation returned by
* the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - NoSuchOriginRequestPolicyException The origin request policy does not exist.
* - InvalidArgumentException An argument is invalid.
* - AccessDeniedException Access denied.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.ListDistributionsByOriginRequestPolicyId
* @see AWS API Documentation
*/
default CompletableFuture listDistributionsByOriginRequestPolicyId(
ListDistributionsByOriginRequestPolicyIdRequest listDistributionsByOriginRequestPolicyIdRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Gets a list of distribution IDs for distributions that have a cache behavior that’s associated with the specified
* origin request policy.
*
*
* You can optionally specify the maximum number of items to receive in the response. If the total number of items
* in the list exceeds the maximum that you specify, or the default maximum, the response is paginated. To get the
* next page of items, send a subsequent request that specifies the NextMarker
value from the current
* response as the Marker
value in the subsequent request.
*
*
*
* This is a convenience which creates an instance of the
* {@link ListDistributionsByOriginRequestPolicyIdRequest.Builder} avoiding the need to create one manually via
* {@link ListDistributionsByOriginRequestPolicyIdRequest#builder()}
*
*
* @param listDistributionsByOriginRequestPolicyIdRequest
* A {@link Consumer} that will call methods on
* {@link ListDistributionsByOriginRequestPolicyIdRequest.Builder} to create a request.
* @return A Java Future containing the result of the ListDistributionsByOriginRequestPolicyId operation returned by
* the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - NoSuchOriginRequestPolicyException The origin request policy does not exist.
* - InvalidArgumentException An argument is invalid.
* - AccessDeniedException Access denied.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.ListDistributionsByOriginRequestPolicyId
* @see AWS API Documentation
*/
default CompletableFuture listDistributionsByOriginRequestPolicyId(
Consumer listDistributionsByOriginRequestPolicyIdRequest) {
return listDistributionsByOriginRequestPolicyId(ListDistributionsByOriginRequestPolicyIdRequest.builder()
.applyMutation(listDistributionsByOriginRequestPolicyIdRequest).build());
}
/**
*
* Gets a list of distributions that have a cache behavior that’s associated with the specified real-time log
* configuration.
*
*
* You can specify the real-time log configuration by its name or its Amazon Resource Name (ARN). You must provide
* at least one. If you provide both, CloudFront uses the name to identify the real-time log configuration to list
* distributions for.
*
*
* You can optionally specify the maximum number of items to receive in the response. If the total number of items
* in the list exceeds the maximum that you specify, or the default maximum, the response is paginated. To get the
* next page of items, send a subsequent request that specifies the NextMarker
value from the current
* response as the Marker
value in the subsequent request.
*
*
* @param listDistributionsByRealtimeLogConfigRequest
* @return A Java Future containing the result of the ListDistributionsByRealtimeLogConfig operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - InvalidArgumentException An argument is invalid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.ListDistributionsByRealtimeLogConfig
* @see AWS API Documentation
*/
default CompletableFuture listDistributionsByRealtimeLogConfig(
ListDistributionsByRealtimeLogConfigRequest listDistributionsByRealtimeLogConfigRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Gets a list of distributions that have a cache behavior that’s associated with the specified real-time log
* configuration.
*
*
* You can specify the real-time log configuration by its name or its Amazon Resource Name (ARN). You must provide
* at least one. If you provide both, CloudFront uses the name to identify the real-time log configuration to list
* distributions for.
*
*
* You can optionally specify the maximum number of items to receive in the response. If the total number of items
* in the list exceeds the maximum that you specify, or the default maximum, the response is paginated. To get the
* next page of items, send a subsequent request that specifies the NextMarker
value from the current
* response as the Marker
value in the subsequent request.
*
*
*
* This is a convenience which creates an instance of the
* {@link ListDistributionsByRealtimeLogConfigRequest.Builder} avoiding the need to create one manually via
* {@link ListDistributionsByRealtimeLogConfigRequest#builder()}
*
*
* @param listDistributionsByRealtimeLogConfigRequest
* A {@link Consumer} that will call methods on {@link ListDistributionsByRealtimeLogConfigRequest.Builder}
* to create a request.
* @return A Java Future containing the result of the ListDistributionsByRealtimeLogConfig operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - InvalidArgumentException An argument is invalid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.ListDistributionsByRealtimeLogConfig
* @see AWS API Documentation
*/
default CompletableFuture listDistributionsByRealtimeLogConfig(
Consumer listDistributionsByRealtimeLogConfigRequest) {
return listDistributionsByRealtimeLogConfig(ListDistributionsByRealtimeLogConfigRequest.builder()
.applyMutation(listDistributionsByRealtimeLogConfigRequest).build());
}
/**
*
* List the distributions that are associated with a specified WAF web ACL.
*
*
* @param listDistributionsByWebAclIdRequest
* The request to list distributions that are associated with a specified WAF web ACL.
* @return A Java Future containing the result of the ListDistributionsByWebACLId operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - InvalidArgumentException An argument is invalid.
* - InvalidWebAclIdException A web ACL ID specified is not valid. To specify a web ACL created using the
* latest version of WAF, use the ACL ARN, for example
*
arn:aws:wafv2:us-east-1:123456789012:global/webacl/ExampleWebACL/473e64fd-f30b-4765-81a0-62ad96dd167a
* . To specify a web ACL created using WAF Classic, use the ACL ID, for example
* 473e64fd-f30b-4765-81a0-62ad96dd167a
.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.ListDistributionsByWebACLId
* @see AWS API Documentation
*/
default CompletableFuture listDistributionsByWebACLId(
ListDistributionsByWebAclIdRequest listDistributionsByWebAclIdRequest) {
throw new UnsupportedOperationException();
}
/**
*
* List the distributions that are associated with a specified WAF web ACL.
*
*
*
* This is a convenience which creates an instance of the {@link ListDistributionsByWebAclIdRequest.Builder}
* avoiding the need to create one manually via {@link ListDistributionsByWebAclIdRequest#builder()}
*
*
* @param listDistributionsByWebAclIdRequest
* A {@link Consumer} that will call methods on {@link ListDistributionsByWebACLIdRequest.Builder} to create
* a request. The request to list distributions that are associated with a specified WAF web ACL.
* @return A Java Future containing the result of the ListDistributionsByWebACLId operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - InvalidArgumentException An argument is invalid.
* - InvalidWebAclIdException A web ACL ID specified is not valid. To specify a web ACL created using the
* latest version of WAF, use the ACL ARN, for example
*
arn:aws:wafv2:us-east-1:123456789012:global/webacl/ExampleWebACL/473e64fd-f30b-4765-81a0-62ad96dd167a
* . To specify a web ACL created using WAF Classic, use the ACL ID, for example
* 473e64fd-f30b-4765-81a0-62ad96dd167a
.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.ListDistributionsByWebACLId
* @see AWS API Documentation
*/
default CompletableFuture listDistributionsByWebACLId(
Consumer listDistributionsByWebAclIdRequest) {
return listDistributionsByWebACLId(ListDistributionsByWebAclIdRequest.builder()
.applyMutation(listDistributionsByWebAclIdRequest).build());
}
/**
*
* List all field-level encryption configurations that have been created in CloudFront for this account.
*
*
* @param listFieldLevelEncryptionConfigsRequest
* @return A Java Future containing the result of the ListFieldLevelEncryptionConfigs operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - InvalidArgumentException An argument is invalid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.ListFieldLevelEncryptionConfigs
* @see AWS API Documentation
*/
default CompletableFuture listFieldLevelEncryptionConfigs(
ListFieldLevelEncryptionConfigsRequest listFieldLevelEncryptionConfigsRequest) {
throw new UnsupportedOperationException();
}
/**
*
* List all field-level encryption configurations that have been created in CloudFront for this account.
*
*
*
* This is a convenience which creates an instance of the {@link ListFieldLevelEncryptionConfigsRequest.Builder}
* avoiding the need to create one manually via {@link ListFieldLevelEncryptionConfigsRequest#builder()}
*
*
* @param listFieldLevelEncryptionConfigsRequest
* A {@link Consumer} that will call methods on {@link ListFieldLevelEncryptionConfigsRequest.Builder} to
* create a request.
* @return A Java Future containing the result of the ListFieldLevelEncryptionConfigs operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - InvalidArgumentException An argument is invalid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.ListFieldLevelEncryptionConfigs
* @see AWS API Documentation
*/
default CompletableFuture listFieldLevelEncryptionConfigs(
Consumer listFieldLevelEncryptionConfigsRequest) {
return listFieldLevelEncryptionConfigs(ListFieldLevelEncryptionConfigsRequest.builder()
.applyMutation(listFieldLevelEncryptionConfigsRequest).build());
}
/**
*
* List all field-level encryption configurations that have been created in CloudFront for this account.
*
*
* @return A Java Future containing the result of the ListFieldLevelEncryptionConfigs operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - InvalidArgumentException An argument is invalid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.ListFieldLevelEncryptionConfigs
* @see AWS API Documentation
*/
default CompletableFuture listFieldLevelEncryptionConfigs() {
return listFieldLevelEncryptionConfigs(ListFieldLevelEncryptionConfigsRequest.builder().build());
}
/**
*
* Request a list of field-level encryption profiles that have been created in CloudFront for this account.
*
*
* @param listFieldLevelEncryptionProfilesRequest
* @return A Java Future containing the result of the ListFieldLevelEncryptionProfiles operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - InvalidArgumentException An argument is invalid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.ListFieldLevelEncryptionProfiles
* @see AWS API Documentation
*/
default CompletableFuture listFieldLevelEncryptionProfiles(
ListFieldLevelEncryptionProfilesRequest listFieldLevelEncryptionProfilesRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Request a list of field-level encryption profiles that have been created in CloudFront for this account.
*
*
*
* This is a convenience which creates an instance of the {@link ListFieldLevelEncryptionProfilesRequest.Builder}
* avoiding the need to create one manually via {@link ListFieldLevelEncryptionProfilesRequest#builder()}
*
*
* @param listFieldLevelEncryptionProfilesRequest
* A {@link Consumer} that will call methods on {@link ListFieldLevelEncryptionProfilesRequest.Builder} to
* create a request.
* @return A Java Future containing the result of the ListFieldLevelEncryptionProfiles operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - InvalidArgumentException An argument is invalid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.ListFieldLevelEncryptionProfiles
* @see AWS API Documentation
*/
default CompletableFuture listFieldLevelEncryptionProfiles(
Consumer listFieldLevelEncryptionProfilesRequest) {
return listFieldLevelEncryptionProfiles(ListFieldLevelEncryptionProfilesRequest.builder()
.applyMutation(listFieldLevelEncryptionProfilesRequest).build());
}
/**
*
* Request a list of field-level encryption profiles that have been created in CloudFront for this account.
*
*
* @return A Java Future containing the result of the ListFieldLevelEncryptionProfiles operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - InvalidArgumentException An argument is invalid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.ListFieldLevelEncryptionProfiles
* @see AWS API Documentation
*/
default CompletableFuture listFieldLevelEncryptionProfiles() {
return listFieldLevelEncryptionProfiles(ListFieldLevelEncryptionProfilesRequest.builder().build());
}
/**
*
* Gets a list of all CloudFront functions in your account.
*
*
* You can optionally apply a filter to return only the functions that are in the specified stage, either
* DEVELOPMENT
or LIVE
.
*
*
* You can optionally specify the maximum number of items to receive in the response. If the total number of items
* in the list exceeds the maximum that you specify, or the default maximum, the response is paginated. To get the
* next page of items, send a subsequent request that specifies the NextMarker
value from the current
* response as the Marker
value in the subsequent request.
*
*
* @param listFunctionsRequest
* @return A Java Future containing the result of the ListFunctions operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - InvalidArgumentException An argument is invalid.
* - UnsupportedOperationException This operation is not supported in this region.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.ListFunctions
* @see AWS API
* Documentation
*/
default CompletableFuture listFunctions(ListFunctionsRequest listFunctionsRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Gets a list of all CloudFront functions in your account.
*
*
* You can optionally apply a filter to return only the functions that are in the specified stage, either
* DEVELOPMENT
or LIVE
.
*
*
* You can optionally specify the maximum number of items to receive in the response. If the total number of items
* in the list exceeds the maximum that you specify, or the default maximum, the response is paginated. To get the
* next page of items, send a subsequent request that specifies the NextMarker
value from the current
* response as the Marker
value in the subsequent request.
*
*
*
* This is a convenience which creates an instance of the {@link ListFunctionsRequest.Builder} avoiding the need to
* create one manually via {@link ListFunctionsRequest#builder()}
*
*
* @param listFunctionsRequest
* A {@link Consumer} that will call methods on {@link ListFunctionsRequest.Builder} to create a request.
* @return A Java Future containing the result of the ListFunctions operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - InvalidArgumentException An argument is invalid.
* - UnsupportedOperationException This operation is not supported in this region.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.ListFunctions
* @see AWS API
* Documentation
*/
default CompletableFuture listFunctions(Consumer listFunctionsRequest) {
return listFunctions(ListFunctionsRequest.builder().applyMutation(listFunctionsRequest).build());
}
/**
*
* Lists invalidation batches.
*
*
* @param listInvalidationsRequest
* The request to list invalidations.
* @return A Java Future containing the result of the ListInvalidations operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - InvalidArgumentException An argument is invalid.
* - NoSuchDistributionException The specified distribution does not exist.
* - AccessDeniedException Access denied.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.ListInvalidations
* @see AWS
* API Documentation
*/
default CompletableFuture listInvalidations(ListInvalidationsRequest listInvalidationsRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Lists invalidation batches.
*
*
*
* This is a convenience which creates an instance of the {@link ListInvalidationsRequest.Builder} avoiding the need
* to create one manually via {@link ListInvalidationsRequest#builder()}
*
*
* @param listInvalidationsRequest
* A {@link Consumer} that will call methods on {@link ListInvalidationsRequest.Builder} to create a request.
* The request to list invalidations.
* @return A Java Future containing the result of the ListInvalidations operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - InvalidArgumentException An argument is invalid.
* - NoSuchDistributionException The specified distribution does not exist.
* - AccessDeniedException Access denied.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.ListInvalidations
* @see AWS
* API Documentation
*/
default CompletableFuture listInvalidations(
Consumer listInvalidationsRequest) {
return listInvalidations(ListInvalidationsRequest.builder().applyMutation(listInvalidationsRequest).build());
}
/**
*
* Gets a list of key groups.
*
*
* You can optionally specify the maximum number of items to receive in the response. If the total number of items
* in the list exceeds the maximum that you specify, or the default maximum, the response is paginated. To get the
* next page of items, send a subsequent request that specifies the NextMarker
value from the current
* response as the Marker
value in the subsequent request.
*
*
* @param listKeyGroupsRequest
* @return A Java Future containing the result of the ListKeyGroups operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - InvalidArgumentException An argument is invalid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.ListKeyGroups
* @see AWS API
* Documentation
*/
default CompletableFuture listKeyGroups(ListKeyGroupsRequest listKeyGroupsRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Gets a list of key groups.
*
*
* You can optionally specify the maximum number of items to receive in the response. If the total number of items
* in the list exceeds the maximum that you specify, or the default maximum, the response is paginated. To get the
* next page of items, send a subsequent request that specifies the NextMarker
value from the current
* response as the Marker
value in the subsequent request.
*
*
*
* This is a convenience which creates an instance of the {@link ListKeyGroupsRequest.Builder} avoiding the need to
* create one manually via {@link ListKeyGroupsRequest#builder()}
*
*
* @param listKeyGroupsRequest
* A {@link Consumer} that will call methods on {@link ListKeyGroupsRequest.Builder} to create a request.
* @return A Java Future containing the result of the ListKeyGroups operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - InvalidArgumentException An argument is invalid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.ListKeyGroups
* @see AWS API
* Documentation
*/
default CompletableFuture listKeyGroups(Consumer listKeyGroupsRequest) {
return listKeyGroups(ListKeyGroupsRequest.builder().applyMutation(listKeyGroupsRequest).build());
}
/**
*
* Gets a list of origin request policies.
*
*
* You can optionally apply a filter to return only the managed policies created by Amazon Web Services, or only the
* custom policies created in your account.
*
*
* You can optionally specify the maximum number of items to receive in the response. If the total number of items
* in the list exceeds the maximum that you specify, or the default maximum, the response is paginated. To get the
* next page of items, send a subsequent request that specifies the NextMarker
value from the current
* response as the Marker
value in the subsequent request.
*
*
* @param listOriginRequestPoliciesRequest
* @return A Java Future containing the result of the ListOriginRequestPolicies operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - NoSuchOriginRequestPolicyException The origin request policy does not exist.
* - InvalidArgumentException An argument is invalid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.ListOriginRequestPolicies
* @see AWS API Documentation
*/
default CompletableFuture listOriginRequestPolicies(
ListOriginRequestPoliciesRequest listOriginRequestPoliciesRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Gets a list of origin request policies.
*
*
* You can optionally apply a filter to return only the managed policies created by Amazon Web Services, or only the
* custom policies created in your account.
*
*
* You can optionally specify the maximum number of items to receive in the response. If the total number of items
* in the list exceeds the maximum that you specify, or the default maximum, the response is paginated. To get the
* next page of items, send a subsequent request that specifies the NextMarker
value from the current
* response as the Marker
value in the subsequent request.
*
*
*
* This is a convenience which creates an instance of the {@link ListOriginRequestPoliciesRequest.Builder} avoiding
* the need to create one manually via {@link ListOriginRequestPoliciesRequest#builder()}
*
*
* @param listOriginRequestPoliciesRequest
* A {@link Consumer} that will call methods on {@link ListOriginRequestPoliciesRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the ListOriginRequestPolicies operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - NoSuchOriginRequestPolicyException The origin request policy does not exist.
* - InvalidArgumentException An argument is invalid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.ListOriginRequestPolicies
* @see AWS API Documentation
*/
default CompletableFuture listOriginRequestPolicies(
Consumer listOriginRequestPoliciesRequest) {
return listOriginRequestPolicies(ListOriginRequestPoliciesRequest.builder()
.applyMutation(listOriginRequestPoliciesRequest).build());
}
/**
*
* List all public keys that have been added to CloudFront for this account.
*
*
* @param listPublicKeysRequest
* @return A Java Future containing the result of the ListPublicKeys operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - InvalidArgumentException An argument is invalid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.ListPublicKeys
* @see AWS API
* Documentation
*/
default CompletableFuture listPublicKeys(ListPublicKeysRequest listPublicKeysRequest) {
throw new UnsupportedOperationException();
}
/**
*
* List all public keys that have been added to CloudFront for this account.
*
*
*
* This is a convenience which creates an instance of the {@link ListPublicKeysRequest.Builder} avoiding the need to
* create one manually via {@link ListPublicKeysRequest#builder()}
*
*
* @param listPublicKeysRequest
* A {@link Consumer} that will call methods on {@link ListPublicKeysRequest.Builder} to create a request.
* @return A Java Future containing the result of the ListPublicKeys operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - InvalidArgumentException An argument is invalid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.ListPublicKeys
* @see AWS API
* Documentation
*/
default CompletableFuture listPublicKeys(Consumer listPublicKeysRequest) {
return listPublicKeys(ListPublicKeysRequest.builder().applyMutation(listPublicKeysRequest).build());
}
/**
*
* List all public keys that have been added to CloudFront for this account.
*
*
* @return A Java Future containing the result of the ListPublicKeys operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - InvalidArgumentException An argument is invalid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.ListPublicKeys
* @see AWS API
* Documentation
*/
default CompletableFuture listPublicKeys() {
return listPublicKeys(ListPublicKeysRequest.builder().build());
}
/**
*
* Gets a list of real-time log configurations.
*
*
* You can optionally specify the maximum number of items to receive in the response. If the total number of items
* in the list exceeds the maximum that you specify, or the default maximum, the response is paginated. To get the
* next page of items, send a subsequent request that specifies the NextMarker
value from the current
* response as the Marker
value in the subsequent request.
*
*
* @param listRealtimeLogConfigsRequest
* @return A Java Future containing the result of the ListRealtimeLogConfigs operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - InvalidArgumentException An argument is invalid.
* - AccessDeniedException Access denied.
* - NoSuchRealtimeLogConfigException The real-time log configuration does not exist.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.ListRealtimeLogConfigs
* @see AWS API Documentation
*/
default CompletableFuture listRealtimeLogConfigs(
ListRealtimeLogConfigsRequest listRealtimeLogConfigsRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Gets a list of real-time log configurations.
*
*
* You can optionally specify the maximum number of items to receive in the response. If the total number of items
* in the list exceeds the maximum that you specify, or the default maximum, the response is paginated. To get the
* next page of items, send a subsequent request that specifies the NextMarker
value from the current
* response as the Marker
value in the subsequent request.
*
*
*
* This is a convenience which creates an instance of the {@link ListRealtimeLogConfigsRequest.Builder} avoiding the
* need to create one manually via {@link ListRealtimeLogConfigsRequest#builder()}
*
*
* @param listRealtimeLogConfigsRequest
* A {@link Consumer} that will call methods on {@link ListRealtimeLogConfigsRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the ListRealtimeLogConfigs operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - InvalidArgumentException An argument is invalid.
* - AccessDeniedException Access denied.
* - NoSuchRealtimeLogConfigException The real-time log configuration does not exist.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.ListRealtimeLogConfigs
* @see AWS API Documentation
*/
default CompletableFuture listRealtimeLogConfigs(
Consumer listRealtimeLogConfigsRequest) {
return listRealtimeLogConfigs(ListRealtimeLogConfigsRequest.builder().applyMutation(listRealtimeLogConfigsRequest)
.build());
}
/**
*
* List streaming distributions.
*
*
* @param listStreamingDistributionsRequest
* The request to list your streaming distributions.
* @return A Java Future containing the result of the ListStreamingDistributions operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - InvalidArgumentException An argument is invalid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.ListStreamingDistributions
* @see AWS API Documentation
*/
default CompletableFuture listStreamingDistributions(
ListStreamingDistributionsRequest listStreamingDistributionsRequest) {
throw new UnsupportedOperationException();
}
/**
*
* List streaming distributions.
*
*
*
* This is a convenience which creates an instance of the {@link ListStreamingDistributionsRequest.Builder} avoiding
* the need to create one manually via {@link ListStreamingDistributionsRequest#builder()}
*
*
* @param listStreamingDistributionsRequest
* A {@link Consumer} that will call methods on {@link ListStreamingDistributionsRequest.Builder} to create a
* request. The request to list your streaming distributions.
* @return A Java Future containing the result of the ListStreamingDistributions operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - InvalidArgumentException An argument is invalid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.ListStreamingDistributions
* @see AWS API Documentation
*/
default CompletableFuture listStreamingDistributions(
Consumer listStreamingDistributionsRequest) {
return listStreamingDistributions(ListStreamingDistributionsRequest.builder()
.applyMutation(listStreamingDistributionsRequest).build());
}
/**
*
* List streaming distributions.
*
*
* @return A Java Future containing the result of the ListStreamingDistributions operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - InvalidArgumentException An argument is invalid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.ListStreamingDistributions
* @see AWS API Documentation
*/
default CompletableFuture listStreamingDistributions() {
return listStreamingDistributions(ListStreamingDistributionsRequest.builder().build());
}
/**
*
* List tags for a CloudFront resource.
*
*
* @param listTagsForResourceRequest
* The request to list tags for a CloudFront resource.
* @return A Java Future containing the result of the ListTagsForResource operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - InvalidArgumentException An argument is invalid.
* - InvalidTaggingException The tagging specified is not valid.
* - NoSuchResourceException A resource that was specified is not valid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.ListTagsForResource
* @see AWS API Documentation
*/
default CompletableFuture listTagsForResource(
ListTagsForResourceRequest listTagsForResourceRequest) {
throw new UnsupportedOperationException();
}
/**
*
* List tags for a CloudFront resource.
*
*
*
* This is a convenience which creates an instance of the {@link ListTagsForResourceRequest.Builder} avoiding the
* need to create one manually via {@link ListTagsForResourceRequest#builder()}
*
*
* @param listTagsForResourceRequest
* A {@link Consumer} that will call methods on {@link ListTagsForResourceRequest.Builder} to create a
* request. The request to list tags for a CloudFront resource.
* @return A Java Future containing the result of the ListTagsForResource operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - InvalidArgumentException An argument is invalid.
* - InvalidTaggingException The tagging specified is not valid.
* - NoSuchResourceException A resource that was specified is not valid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.ListTagsForResource
* @see AWS API Documentation
*/
default CompletableFuture listTagsForResource(
Consumer listTagsForResourceRequest) {
return listTagsForResource(ListTagsForResourceRequest.builder().applyMutation(listTagsForResourceRequest).build());
}
/**
*
* Publishes a CloudFront function by copying the function code from the DEVELOPMENT
stage to
* LIVE
. This automatically updates all cache behaviors that are using this function to use the newly
* published copy in the LIVE
stage.
*
*
* When a function is published to the LIVE
stage, you can attach the function to a distribution’s
* cache behavior, using the function’s Amazon Resource Name (ARN).
*
*
* To publish a function, you must provide the function’s name and version (ETag
value). To get these
* values, you can use ListFunctions
and DescribeFunction
.
*
*
* @param publishFunctionRequest
* @return A Java Future containing the result of the PublishFunction operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - InvalidArgumentException An argument is invalid.
* - InvalidIfMatchVersionException The
If-Match
version is missing or not valid.
* - NoSuchFunctionExistsException The function does not exist.
* - PreconditionFailedException The precondition in one or more of the request fields evaluated to
*
false
.
* - UnsupportedOperationException This operation is not supported in this region.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.PublishFunction
* @see AWS
* API Documentation
*/
default CompletableFuture publishFunction(PublishFunctionRequest publishFunctionRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Publishes a CloudFront function by copying the function code from the DEVELOPMENT
stage to
* LIVE
. This automatically updates all cache behaviors that are using this function to use the newly
* published copy in the LIVE
stage.
*
*
* When a function is published to the LIVE
stage, you can attach the function to a distribution’s
* cache behavior, using the function’s Amazon Resource Name (ARN).
*
*
* To publish a function, you must provide the function’s name and version (ETag
value). To get these
* values, you can use ListFunctions
and DescribeFunction
.
*
*
*
* This is a convenience which creates an instance of the {@link PublishFunctionRequest.Builder} avoiding the need
* to create one manually via {@link PublishFunctionRequest#builder()}
*
*
* @param publishFunctionRequest
* A {@link Consumer} that will call methods on {@link PublishFunctionRequest.Builder} to create a request.
* @return A Java Future containing the result of the PublishFunction operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - InvalidArgumentException An argument is invalid.
* - InvalidIfMatchVersionException The
If-Match
version is missing or not valid.
* - NoSuchFunctionExistsException The function does not exist.
* - PreconditionFailedException The precondition in one or more of the request fields evaluated to
*
false
.
* - UnsupportedOperationException This operation is not supported in this region.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.PublishFunction
* @see AWS
* API Documentation
*/
default CompletableFuture publishFunction(
Consumer publishFunctionRequest) {
return publishFunction(PublishFunctionRequest.builder().applyMutation(publishFunctionRequest).build());
}
/**
*
* Add tags to a CloudFront resource.
*
*
* @param tagResourceRequest
* The request to add tags to a CloudFront resource.
* @return A Java Future containing the result of the TagResource operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - InvalidArgumentException An argument is invalid.
* - InvalidTaggingException The tagging specified is not valid.
* - NoSuchResourceException A resource that was specified is not valid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.TagResource
* @see AWS API
* Documentation
*/
default CompletableFuture tagResource(TagResourceRequest tagResourceRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Add tags to a CloudFront resource.
*
*
*
* This is a convenience which creates an instance of the {@link TagResourceRequest.Builder} avoiding the need to
* create one manually via {@link TagResourceRequest#builder()}
*
*
* @param tagResourceRequest
* A {@link Consumer} that will call methods on {@link TagResourceRequest.Builder} to create a request. The
* request to add tags to a CloudFront resource.
* @return A Java Future containing the result of the TagResource operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - InvalidArgumentException An argument is invalid.
* - InvalidTaggingException The tagging specified is not valid.
* - NoSuchResourceException A resource that was specified is not valid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.TagResource
* @see AWS API
* Documentation
*/
default CompletableFuture tagResource(Consumer tagResourceRequest) {
return tagResource(TagResourceRequest.builder().applyMutation(tagResourceRequest).build());
}
/**
*
* Tests a CloudFront function.
*
*
* To test a function, you provide an event object that represents an HTTP request or response that your
* CloudFront distribution could receive in production. CloudFront runs the function, passing it the event object
* that you provided, and returns the function’s result (the modified event object) in the response. The response
* also contains function logs and error messages, if any exist. For more information about testing functions, see
* Testing functions in the Amazon CloudFront Developer Guide.
*
*
* To test a function, you provide the function’s name and version (ETag
value) along with the event
* object. To get the function’s name and version, you can use ListFunctions
and
* DescribeFunction
.
*
*
* @param testFunctionRequest
* @return A Java Future containing the result of the TestFunction operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - InvalidArgumentException An argument is invalid.
* - InvalidIfMatchVersionException The
If-Match
version is missing or not valid.
* - NoSuchFunctionExistsException The function does not exist.
* - TestFunctionFailedException The CloudFront function failed.
* - UnsupportedOperationException This operation is not supported in this region.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.TestFunction
* @see AWS API
* Documentation
*/
default CompletableFuture testFunction(TestFunctionRequest testFunctionRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Tests a CloudFront function.
*
*
* To test a function, you provide an event object that represents an HTTP request or response that your
* CloudFront distribution could receive in production. CloudFront runs the function, passing it the event object
* that you provided, and returns the function’s result (the modified event object) in the response. The response
* also contains function logs and error messages, if any exist. For more information about testing functions, see
* Testing functions in the Amazon CloudFront Developer Guide.
*
*
* To test a function, you provide the function’s name and version (ETag
value) along with the event
* object. To get the function’s name and version, you can use ListFunctions
and
* DescribeFunction
.
*
*
*
* This is a convenience which creates an instance of the {@link TestFunctionRequest.Builder} avoiding the need to
* create one manually via {@link TestFunctionRequest#builder()}
*
*
* @param testFunctionRequest
* A {@link Consumer} that will call methods on {@link TestFunctionRequest.Builder} to create a request.
* @return A Java Future containing the result of the TestFunction operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - InvalidArgumentException An argument is invalid.
* - InvalidIfMatchVersionException The
If-Match
version is missing or not valid.
* - NoSuchFunctionExistsException The function does not exist.
* - TestFunctionFailedException The CloudFront function failed.
* - UnsupportedOperationException This operation is not supported in this region.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.TestFunction
* @see AWS API
* Documentation
*/
default CompletableFuture testFunction(Consumer testFunctionRequest) {
return testFunction(TestFunctionRequest.builder().applyMutation(testFunctionRequest).build());
}
/**
*
* Remove tags from a CloudFront resource.
*
*
* @param untagResourceRequest
* The request to remove tags from a CloudFront resource.
* @return A Java Future containing the result of the UntagResource operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - InvalidArgumentException An argument is invalid.
* - InvalidTaggingException The tagging specified is not valid.
* - NoSuchResourceException A resource that was specified is not valid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.UntagResource
* @see AWS API
* Documentation
*/
default CompletableFuture untagResource(UntagResourceRequest untagResourceRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Remove tags from a CloudFront resource.
*
*
*
* This is a convenience which creates an instance of the {@link UntagResourceRequest.Builder} avoiding the need to
* create one manually via {@link UntagResourceRequest#builder()}
*
*
* @param untagResourceRequest
* A {@link Consumer} that will call methods on {@link UntagResourceRequest.Builder} to create a request. The
* request to remove tags from a CloudFront resource.
* @return A Java Future containing the result of the UntagResource operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - InvalidArgumentException An argument is invalid.
* - InvalidTaggingException The tagging specified is not valid.
* - NoSuchResourceException A resource that was specified is not valid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.UntagResource
* @see AWS API
* Documentation
*/
default CompletableFuture untagResource(Consumer untagResourceRequest) {
return untagResource(UntagResourceRequest.builder().applyMutation(untagResourceRequest).build());
}
/**
*
* Updates a cache policy configuration.
*
*
* When you update a cache policy configuration, all the fields are updated with the values provided in the request.
* You cannot update some fields independent of others. To update a cache policy configuration:
*
*
* -
*
* Use GetCachePolicyConfig
to get the current configuration.
*
*
* -
*
* Locally modify the fields in the cache policy configuration that you want to update.
*
*
* -
*
* Call UpdateCachePolicy
by providing the entire cache policy configuration, including the fields that
* you modified and those that you didn’t.
*
*
*
*
* @param updateCachePolicyRequest
* @return A Java Future containing the result of the UpdateCachePolicy operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - IllegalUpdateException The update contains modifications that are not allowed.
* - InconsistentQuantitiesException The value of
Quantity
and the size of Items
* don't match.
* - InvalidArgumentException An argument is invalid.
* - InvalidIfMatchVersionException The
If-Match
version is missing or not valid.
* - NoSuchCachePolicyException The cache policy does not exist.
* - PreconditionFailedException The precondition in one or more of the request fields evaluated to
*
false
.
* - CachePolicyAlreadyExistsException A cache policy with this name already exists. You must provide a
* unique name. To modify an existing cache policy, use
UpdateCachePolicy
.
* - TooManyHeadersInCachePolicyException The number of headers in the cache policy exceeds the maximum.
* For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - TooManyCookiesInCachePolicyException The number of cookies in the cache policy exceeds the maximum.
* For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - TooManyQueryStringsInCachePolicyException The number of query strings in the cache policy exceeds the
* maximum. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.UpdateCachePolicy
* @see AWS
* API Documentation
*/
default CompletableFuture updateCachePolicy(UpdateCachePolicyRequest updateCachePolicyRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Updates a cache policy configuration.
*
*
* When you update a cache policy configuration, all the fields are updated with the values provided in the request.
* You cannot update some fields independent of others. To update a cache policy configuration:
*
*
* -
*
* Use GetCachePolicyConfig
to get the current configuration.
*
*
* -
*
* Locally modify the fields in the cache policy configuration that you want to update.
*
*
* -
*
* Call UpdateCachePolicy
by providing the entire cache policy configuration, including the fields that
* you modified and those that you didn’t.
*
*
*
*
*
* This is a convenience which creates an instance of the {@link UpdateCachePolicyRequest.Builder} avoiding the need
* to create one manually via {@link UpdateCachePolicyRequest#builder()}
*
*
* @param updateCachePolicyRequest
* A {@link Consumer} that will call methods on {@link UpdateCachePolicyRequest.Builder} to create a request.
* @return A Java Future containing the result of the UpdateCachePolicy operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - IllegalUpdateException The update contains modifications that are not allowed.
* - InconsistentQuantitiesException The value of
Quantity
and the size of Items
* don't match.
* - InvalidArgumentException An argument is invalid.
* - InvalidIfMatchVersionException The
If-Match
version is missing or not valid.
* - NoSuchCachePolicyException The cache policy does not exist.
* - PreconditionFailedException The precondition in one or more of the request fields evaluated to
*
false
.
* - CachePolicyAlreadyExistsException A cache policy with this name already exists. You must provide a
* unique name. To modify an existing cache policy, use
UpdateCachePolicy
.
* - TooManyHeadersInCachePolicyException The number of headers in the cache policy exceeds the maximum.
* For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - TooManyCookiesInCachePolicyException The number of cookies in the cache policy exceeds the maximum.
* For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - TooManyQueryStringsInCachePolicyException The number of query strings in the cache policy exceeds the
* maximum. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.UpdateCachePolicy
* @see AWS
* API Documentation
*/
default CompletableFuture updateCachePolicy(
Consumer updateCachePolicyRequest) {
return updateCachePolicy(UpdateCachePolicyRequest.builder().applyMutation(updateCachePolicyRequest).build());
}
/**
*
* Update an origin access identity.
*
*
* @param updateCloudFrontOriginAccessIdentityRequest
* The request to update an origin access identity.
* @return A Java Future containing the result of the UpdateCloudFrontOriginAccessIdentity operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - IllegalUpdateException The update contains modifications that are not allowed.
* - InvalidIfMatchVersionException The
If-Match
version is missing or not valid.
* - 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 in one or more of the request fields evaluated to
*
false
.
* - InvalidArgumentException An argument is invalid.
* - InconsistentQuantitiesException The value of
Quantity
and the size of Items
* don't match.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.UpdateCloudFrontOriginAccessIdentity
* @see AWS API Documentation
*/
default CompletableFuture updateCloudFrontOriginAccessIdentity(
UpdateCloudFrontOriginAccessIdentityRequest updateCloudFrontOriginAccessIdentityRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Update an origin access identity.
*
*
*
* This is a convenience which creates an instance of the
* {@link UpdateCloudFrontOriginAccessIdentityRequest.Builder} avoiding the need to create one manually via
* {@link UpdateCloudFrontOriginAccessIdentityRequest#builder()}
*
*
* @param updateCloudFrontOriginAccessIdentityRequest
* A {@link Consumer} that will call methods on {@link UpdateCloudFrontOriginAccessIdentityRequest.Builder}
* to create a request. The request to update an origin access identity.
* @return A Java Future containing the result of the UpdateCloudFrontOriginAccessIdentity operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - IllegalUpdateException The update contains modifications that are not allowed.
* - InvalidIfMatchVersionException The
If-Match
version is missing or not valid.
* - 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 in one or more of the request fields evaluated to
*
false
.
* - InvalidArgumentException An argument is invalid.
* - InconsistentQuantitiesException The value of
Quantity
and the size of Items
* don't match.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.UpdateCloudFrontOriginAccessIdentity
* @see AWS API Documentation
*/
default CompletableFuture updateCloudFrontOriginAccessIdentity(
Consumer updateCloudFrontOriginAccessIdentityRequest) {
return updateCloudFrontOriginAccessIdentity(UpdateCloudFrontOriginAccessIdentityRequest.builder()
.applyMutation(updateCloudFrontOriginAccessIdentityRequest).build());
}
/**
*
* Updates the configuration for a web distribution.
*
*
*
* When you update a distribution, there are more required fields than when you create a distribution. When you
* update your distribution by using this API action, follow the steps here to get the current configuration and
* then make your updates, to make sure that you include all of the required fields. To view a summary, see Required Fields for Create Distribution and Update Distribution in the Amazon CloudFront Developer
* Guide.
*
*
*
* The update process includes getting the current distribution configuration, updating the XML document that is
* returned to make your changes, and then submitting an UpdateDistribution
request to make the
* updates.
*
*
* For information about updating a distribution using the CloudFront console instead, see Creating a Distribution in the Amazon CloudFront Developer Guide.
*
*
* To update a web distribution using the CloudFront API
*
*
* -
*
* Submit a
* GetDistributionConfig request to get the current configuration and an Etag
header for the
* distribution.
*
*
*
* If you update the distribution again, you must get a new Etag
header.
*
*
* -
*
* Update the XML document that was returned in the response to your GetDistributionConfig
request to
* include your changes.
*
*
*
* When you edit the XML file, be aware of the following:
*
*
* -
*
* You must strip out the ETag parameter that is returned.
*
*
* -
*
* Additional fields are required when you update a distribution. There may be fields included in the XML file for
* features that you haven't configured for your distribution. This is expected and required to successfully update
* the distribution.
*
*
* -
*
* You can't change the value of CallerReference
. If you try to change this value, CloudFront returns
* an IllegalUpdate
error.
*
*
* -
*
* The new configuration replaces the existing configuration; the values that you specify in an
* UpdateDistribution
request are not merged into your existing configuration. When you add, delete, or
* replace values in an element that allows multiple values (for example, CNAME
), you must specify all
* of the values that you want to appear in the updated distribution. In addition, you must update the corresponding
* Quantity
element.
*
*
*
*
* -
*
* Submit an UpdateDistribution
request to update the configuration for your distribution:
*
*
* -
*
* In the request body, include the XML document that you updated in Step 2. The request body must include an XML
* document with a DistributionConfig
element.
*
*
* -
*
* Set the value of the HTTP If-Match
header to the value of the ETag
header that
* CloudFront returned when you submitted the GetDistributionConfig
request in Step 1.
*
*
*
*
* -
*
* Review the response to the UpdateDistribution
request to confirm that the configuration was
* successfully updated.
*
*
* -
*
* Optional: Submit a GetDistribution
* request to confirm that your changes have propagated. When propagation is complete, the value of
* Status
is Deployed
.
*
*
*
*
* @param updateDistributionRequest
* The request to update a distribution.
* @return A Java Future containing the result of the UpdateDistribution operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - CnameAlreadyExistsException The CNAME specified is already defined for CloudFront.
* - IllegalUpdateException The update contains modifications that are not allowed.
* - InvalidIfMatchVersionException The
If-Match
version is missing or not valid.
* - 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 in one or more of the request 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 An invalid error code was specified.
* - InvalidResponseCodeException A response code is not valid.
* - InvalidArgumentException An 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 don't exist.
* - InvalidViewerCertificateException A viewer certificate specified is not valid.
* - InvalidMinimumProtocolVersionException The minimum protocol version specified is not valid.
* - 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 more origins for the distribution.
* - TooManyOriginGroupsPerDistributionException Processing your request would cause you to exceed the
* maximum number of origin groups allowed.
* - TooManyCacheBehaviorsException You cannot create more 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 Your request contains too many headers in forwarded values.
* - InvalidHeadersForS3OriginException The headers specified are not valid for an Amazon S3 origin.
* - InconsistentQuantitiesException The value of
Quantity
and the size of Items
* don't match.
* - TooManyCertificatesException You cannot create anymore custom SSL/TLS certificates.
* - InvalidLocationCodeException The location code specified is not valid.
* - InvalidGeoRestrictionParameterException The specified geo restriction parameter is not valid.
* - InvalidTtlOrderException The TTL order specified is not valid.
* - InvalidWebAclIdException A web ACL ID specified is not valid. To specify a web ACL created using the
* latest version of WAF, use the ACL ARN, for example
*
arn:aws:wafv2:us-east-1:123456789012:global/webacl/ExampleWebACL/473e64fd-f30b-4765-81a0-62ad96dd167a
* . To specify a web ACL created using WAF Classic, use the ACL ID, for example
* 473e64fd-f30b-4765-81a0-62ad96dd167a
.
* - TooManyOriginCustomHeadersException Your request contains too many origin custom headers.
* - TooManyQueryStringParametersException Your request contains too many query string parameters.
* - InvalidQueryStringParametersException The query string parameters specified are not valid.
* - TooManyDistributionsWithLambdaAssociationsException Processing your request would cause the maximum
* number of distributions with Lambda@Edge function associations per owner to be exceeded.
* - TooManyDistributionsWithSingleFunctionArnException The maximum number of distributions have been
* associated with the specified Lambda@Edge function.
* - TooManyLambdaFunctionAssociationsException Your request contains more Lambda@Edge function
* associations than are allowed per distribution.
* - InvalidLambdaFunctionAssociationException The specified Lambda@Edge function association is invalid.
* - TooManyDistributionsWithFunctionAssociationsException You have reached the maximum number of
* distributions that are associated with a CloudFront function. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - TooManyFunctionAssociationsException You have reached the maximum number of CloudFront function
* associations for this distribution. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - InvalidFunctionAssociationException A CloudFront function association is invalid.
* - InvalidOriginReadTimeoutException The read timeout specified for the origin is not valid.
* - InvalidOriginKeepaliveTimeoutException The keep alive timeout specified for the origin is not valid.
* - NoSuchFieldLevelEncryptionConfigException The specified configuration for field-level encryption
* doesn't exist.
* - IllegalFieldLevelEncryptionConfigAssociationWithCacheBehaviorException The specified configuration
* for field-level encryption can't be associated with the specified cache behavior.
* - TooManyDistributionsAssociatedToFieldLevelEncryptionConfigException The maximum number of
* distributions have been associated with the specified configuration for field-level encryption.
* - NoSuchCachePolicyException The cache policy does not exist.
* - TooManyDistributionsAssociatedToCachePolicyException The maximum number of distributions have been
* associated with the specified cache policy. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - NoSuchOriginRequestPolicyException The origin request policy does not exist.
* - TooManyDistributionsAssociatedToOriginRequestPolicyException The maximum number of distributions have
* been associated with the specified origin request policy. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - TooManyDistributionsAssociatedToKeyGroupException The number of distributions that reference this key
* group is more than the maximum allowed. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - TooManyKeyGroupsAssociatedToDistributionException The number of key groups referenced by this
* distribution is more than the maximum allowed. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - TrustedKeyGroupDoesNotExistException The specified key group does not exist.
* - NoSuchRealtimeLogConfigException The real-time log configuration does not exist.
* - RealtimeLogConfigOwnerMismatchException The specified real-time log configuration belongs to a
* different account.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.UpdateDistribution
* @see AWS
* API Documentation
*/
default CompletableFuture updateDistribution(UpdateDistributionRequest updateDistributionRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Updates the configuration for a web distribution.
*
*
*
* When you update a distribution, there are more required fields than when you create a distribution. When you
* update your distribution by using this API action, follow the steps here to get the current configuration and
* then make your updates, to make sure that you include all of the required fields. To view a summary, see Required Fields for Create Distribution and Update Distribution in the Amazon CloudFront Developer
* Guide.
*
*
*
* The update process includes getting the current distribution configuration, updating the XML document that is
* returned to make your changes, and then submitting an UpdateDistribution
request to make the
* updates.
*
*
* For information about updating a distribution using the CloudFront console instead, see Creating a Distribution in the Amazon CloudFront Developer Guide.
*
*
* To update a web distribution using the CloudFront API
*
*
* -
*
* Submit a
* GetDistributionConfig request to get the current configuration and an Etag
header for the
* distribution.
*
*
*
* If you update the distribution again, you must get a new Etag
header.
*
*
* -
*
* Update the XML document that was returned in the response to your GetDistributionConfig
request to
* include your changes.
*
*
*
* When you edit the XML file, be aware of the following:
*
*
* -
*
* You must strip out the ETag parameter that is returned.
*
*
* -
*
* Additional fields are required when you update a distribution. There may be fields included in the XML file for
* features that you haven't configured for your distribution. This is expected and required to successfully update
* the distribution.
*
*
* -
*
* You can't change the value of CallerReference
. If you try to change this value, CloudFront returns
* an IllegalUpdate
error.
*
*
* -
*
* The new configuration replaces the existing configuration; the values that you specify in an
* UpdateDistribution
request are not merged into your existing configuration. When you add, delete, or
* replace values in an element that allows multiple values (for example, CNAME
), you must specify all
* of the values that you want to appear in the updated distribution. In addition, you must update the corresponding
* Quantity
element.
*
*
*
*
* -
*
* Submit an UpdateDistribution
request to update the configuration for your distribution:
*
*
* -
*
* In the request body, include the XML document that you updated in Step 2. The request body must include an XML
* document with a DistributionConfig
element.
*
*
* -
*
* Set the value of the HTTP If-Match
header to the value of the ETag
header that
* CloudFront returned when you submitted the GetDistributionConfig
request in Step 1.
*
*
*
*
* -
*
* Review the response to the UpdateDistribution
request to confirm that the configuration was
* successfully updated.
*
*
* -
*
* Optional: Submit a GetDistribution
* request to confirm that your changes have propagated. When propagation is complete, the value of
* Status
is Deployed
.
*
*
*
*
*
* This is a convenience which creates an instance of the {@link UpdateDistributionRequest.Builder} avoiding the
* need to create one manually via {@link UpdateDistributionRequest#builder()}
*
*
* @param updateDistributionRequest
* A {@link Consumer} that will call methods on {@link UpdateDistributionRequest.Builder} to create a
* request. The request to update a distribution.
* @return A Java Future containing the result of the UpdateDistribution operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - CnameAlreadyExistsException The CNAME specified is already defined for CloudFront.
* - IllegalUpdateException The update contains modifications that are not allowed.
* - InvalidIfMatchVersionException The
If-Match
version is missing or not valid.
* - 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 in one or more of the request 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 An invalid error code was specified.
* - InvalidResponseCodeException A response code is not valid.
* - InvalidArgumentException An 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 don't exist.
* - InvalidViewerCertificateException A viewer certificate specified is not valid.
* - InvalidMinimumProtocolVersionException The minimum protocol version specified is not valid.
* - 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 more origins for the distribution.
* - TooManyOriginGroupsPerDistributionException Processing your request would cause you to exceed the
* maximum number of origin groups allowed.
* - TooManyCacheBehaviorsException You cannot create more 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 Your request contains too many headers in forwarded values.
* - InvalidHeadersForS3OriginException The headers specified are not valid for an Amazon S3 origin.
* - InconsistentQuantitiesException The value of
Quantity
and the size of Items
* don't match.
* - TooManyCertificatesException You cannot create anymore custom SSL/TLS certificates.
* - InvalidLocationCodeException The location code specified is not valid.
* - InvalidGeoRestrictionParameterException The specified geo restriction parameter is not valid.
* - InvalidTtlOrderException The TTL order specified is not valid.
* - InvalidWebAclIdException A web ACL ID specified is not valid. To specify a web ACL created using the
* latest version of WAF, use the ACL ARN, for example
*
arn:aws:wafv2:us-east-1:123456789012:global/webacl/ExampleWebACL/473e64fd-f30b-4765-81a0-62ad96dd167a
* . To specify a web ACL created using WAF Classic, use the ACL ID, for example
* 473e64fd-f30b-4765-81a0-62ad96dd167a
.
* - TooManyOriginCustomHeadersException Your request contains too many origin custom headers.
* - TooManyQueryStringParametersException Your request contains too many query string parameters.
* - InvalidQueryStringParametersException The query string parameters specified are not valid.
* - TooManyDistributionsWithLambdaAssociationsException Processing your request would cause the maximum
* number of distributions with Lambda@Edge function associations per owner to be exceeded.
* - TooManyDistributionsWithSingleFunctionArnException The maximum number of distributions have been
* associated with the specified Lambda@Edge function.
* - TooManyLambdaFunctionAssociationsException Your request contains more Lambda@Edge function
* associations than are allowed per distribution.
* - InvalidLambdaFunctionAssociationException The specified Lambda@Edge function association is invalid.
* - TooManyDistributionsWithFunctionAssociationsException You have reached the maximum number of
* distributions that are associated with a CloudFront function. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - TooManyFunctionAssociationsException You have reached the maximum number of CloudFront function
* associations for this distribution. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - InvalidFunctionAssociationException A CloudFront function association is invalid.
* - InvalidOriginReadTimeoutException The read timeout specified for the origin is not valid.
* - InvalidOriginKeepaliveTimeoutException The keep alive timeout specified for the origin is not valid.
* - NoSuchFieldLevelEncryptionConfigException The specified configuration for field-level encryption
* doesn't exist.
* - IllegalFieldLevelEncryptionConfigAssociationWithCacheBehaviorException The specified configuration
* for field-level encryption can't be associated with the specified cache behavior.
* - TooManyDistributionsAssociatedToFieldLevelEncryptionConfigException The maximum number of
* distributions have been associated with the specified configuration for field-level encryption.
* - NoSuchCachePolicyException The cache policy does not exist.
* - TooManyDistributionsAssociatedToCachePolicyException The maximum number of distributions have been
* associated with the specified cache policy. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - NoSuchOriginRequestPolicyException The origin request policy does not exist.
* - TooManyDistributionsAssociatedToOriginRequestPolicyException The maximum number of distributions have
* been associated with the specified origin request policy. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - TooManyDistributionsAssociatedToKeyGroupException The number of distributions that reference this key
* group is more than the maximum allowed. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - TooManyKeyGroupsAssociatedToDistributionException The number of key groups referenced by this
* distribution is more than the maximum allowed. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - TrustedKeyGroupDoesNotExistException The specified key group does not exist.
* - NoSuchRealtimeLogConfigException The real-time log configuration does not exist.
* - RealtimeLogConfigOwnerMismatchException The specified real-time log configuration belongs to a
* different account.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.UpdateDistribution
* @see AWS
* API Documentation
*/
default CompletableFuture updateDistribution(
Consumer updateDistributionRequest) {
return updateDistribution(UpdateDistributionRequest.builder().applyMutation(updateDistributionRequest).build());
}
/**
*
* Update a field-level encryption configuration.
*
*
* @param updateFieldLevelEncryptionConfigRequest
* @return A Java Future containing the result of the UpdateFieldLevelEncryptionConfig operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - IllegalUpdateException The update contains modifications that are not allowed.
* - InconsistentQuantitiesException The value of
Quantity
and the size of Items
* don't match.
* - InvalidArgumentException An argument is invalid.
* - InvalidIfMatchVersionException The
If-Match
version is missing or not valid.
* - NoSuchFieldLevelEncryptionProfileException The specified profile for field-level encryption doesn't
* exist.
* - NoSuchFieldLevelEncryptionConfigException The specified configuration for field-level encryption
* doesn't exist.
* - PreconditionFailedException The precondition in one or more of the request fields evaluated to
*
false
.
* - TooManyFieldLevelEncryptionQueryArgProfilesException The maximum number of query arg profiles for
* field-level encryption have been created.
* - TooManyFieldLevelEncryptionContentTypeProfilesException The maximum number of content type profiles
* for field-level encryption have been created.
* - QueryArgProfileEmptyException No profile specified for the field-level encryption query argument.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.UpdateFieldLevelEncryptionConfig
* @see AWS API Documentation
*/
default CompletableFuture updateFieldLevelEncryptionConfig(
UpdateFieldLevelEncryptionConfigRequest updateFieldLevelEncryptionConfigRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Update a field-level encryption configuration.
*
*
*
* This is a convenience which creates an instance of the {@link UpdateFieldLevelEncryptionConfigRequest.Builder}
* avoiding the need to create one manually via {@link UpdateFieldLevelEncryptionConfigRequest#builder()}
*
*
* @param updateFieldLevelEncryptionConfigRequest
* A {@link Consumer} that will call methods on {@link UpdateFieldLevelEncryptionConfigRequest.Builder} to
* create a request.
* @return A Java Future containing the result of the UpdateFieldLevelEncryptionConfig operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - IllegalUpdateException The update contains modifications that are not allowed.
* - InconsistentQuantitiesException The value of
Quantity
and the size of Items
* don't match.
* - InvalidArgumentException An argument is invalid.
* - InvalidIfMatchVersionException The
If-Match
version is missing or not valid.
* - NoSuchFieldLevelEncryptionProfileException The specified profile for field-level encryption doesn't
* exist.
* - NoSuchFieldLevelEncryptionConfigException The specified configuration for field-level encryption
* doesn't exist.
* - PreconditionFailedException The precondition in one or more of the request fields evaluated to
*
false
.
* - TooManyFieldLevelEncryptionQueryArgProfilesException The maximum number of query arg profiles for
* field-level encryption have been created.
* - TooManyFieldLevelEncryptionContentTypeProfilesException The maximum number of content type profiles
* for field-level encryption have been created.
* - QueryArgProfileEmptyException No profile specified for the field-level encryption query argument.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.UpdateFieldLevelEncryptionConfig
* @see AWS API Documentation
*/
default CompletableFuture updateFieldLevelEncryptionConfig(
Consumer updateFieldLevelEncryptionConfigRequest) {
return updateFieldLevelEncryptionConfig(UpdateFieldLevelEncryptionConfigRequest.builder()
.applyMutation(updateFieldLevelEncryptionConfigRequest).build());
}
/**
*
* Update a field-level encryption profile.
*
*
* @param updateFieldLevelEncryptionProfileRequest
* @return A Java Future containing the result of the UpdateFieldLevelEncryptionProfile operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - FieldLevelEncryptionProfileAlreadyExistsException The specified profile for field-level encryption
* already exists.
* - IllegalUpdateException The update contains modifications that are not allowed.
* - InconsistentQuantitiesException The value of
Quantity
and the size of Items
* don't match.
* - InvalidArgumentException An argument is invalid.
* - InvalidIfMatchVersionException The
If-Match
version is missing or not valid.
* - NoSuchPublicKeyException The specified public key doesn't exist.
* - NoSuchFieldLevelEncryptionProfileException The specified profile for field-level encryption doesn't
* exist.
* - PreconditionFailedException The precondition in one or more of the request fields evaluated to
*
false
.
* - FieldLevelEncryptionProfileSizeExceededException The maximum size of a profile for field-level
* encryption was exceeded.
* - TooManyFieldLevelEncryptionEncryptionEntitiesException The maximum number of encryption entities for
* field-level encryption have been created.
* - TooManyFieldLevelEncryptionFieldPatternsException The maximum number of field patterns for
* field-level encryption have been created.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.UpdateFieldLevelEncryptionProfile
* @see AWS API Documentation
*/
default CompletableFuture updateFieldLevelEncryptionProfile(
UpdateFieldLevelEncryptionProfileRequest updateFieldLevelEncryptionProfileRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Update a field-level encryption profile.
*
*
*
* This is a convenience which creates an instance of the {@link UpdateFieldLevelEncryptionProfileRequest.Builder}
* avoiding the need to create one manually via {@link UpdateFieldLevelEncryptionProfileRequest#builder()}
*
*
* @param updateFieldLevelEncryptionProfileRequest
* A {@link Consumer} that will call methods on {@link UpdateFieldLevelEncryptionProfileRequest.Builder} to
* create a request.
* @return A Java Future containing the result of the UpdateFieldLevelEncryptionProfile operation returned by the
* service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - AccessDeniedException Access denied.
* - FieldLevelEncryptionProfileAlreadyExistsException The specified profile for field-level encryption
* already exists.
* - IllegalUpdateException The update contains modifications that are not allowed.
* - InconsistentQuantitiesException The value of
Quantity
and the size of Items
* don't match.
* - InvalidArgumentException An argument is invalid.
* - InvalidIfMatchVersionException The
If-Match
version is missing or not valid.
* - NoSuchPublicKeyException The specified public key doesn't exist.
* - NoSuchFieldLevelEncryptionProfileException The specified profile for field-level encryption doesn't
* exist.
* - PreconditionFailedException The precondition in one or more of the request fields evaluated to
*
false
.
* - FieldLevelEncryptionProfileSizeExceededException The maximum size of a profile for field-level
* encryption was exceeded.
* - TooManyFieldLevelEncryptionEncryptionEntitiesException The maximum number of encryption entities for
* field-level encryption have been created.
* - TooManyFieldLevelEncryptionFieldPatternsException The maximum number of field patterns for
* field-level encryption have been created.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.UpdateFieldLevelEncryptionProfile
* @see AWS API Documentation
*/
default CompletableFuture updateFieldLevelEncryptionProfile(
Consumer updateFieldLevelEncryptionProfileRequest) {
return updateFieldLevelEncryptionProfile(UpdateFieldLevelEncryptionProfileRequest.builder()
.applyMutation(updateFieldLevelEncryptionProfileRequest).build());
}
/**
*
* Updates a CloudFront function.
*
*
* You can update a function’s code or the comment that describes the function. You cannot update a function’s name.
*
*
* To update a function, you provide the function’s name and version (ETag
value) along with the
* updated function code. To get the name and version, you can use ListFunctions
and
* DescribeFunction
.
*
*
* @param updateFunctionRequest
* @return A Java Future containing the result of the UpdateFunction operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - InvalidArgumentException An argument is invalid.
* - InvalidIfMatchVersionException The
If-Match
version is missing or not valid.
* - NoSuchFunctionExistsException The function does not exist.
* - PreconditionFailedException The precondition in one or more of the request fields evaluated to
*
false
.
* - FunctionSizeLimitExceededException The function is too large. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - UnsupportedOperationException This operation is not supported in this region.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.UpdateFunction
* @see AWS API
* Documentation
*/
default CompletableFuture updateFunction(UpdateFunctionRequest updateFunctionRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Updates a CloudFront function.
*
*
* You can update a function’s code or the comment that describes the function. You cannot update a function’s name.
*
*
* To update a function, you provide the function’s name and version (ETag
value) along with the
* updated function code. To get the name and version, you can use ListFunctions
and
* DescribeFunction
.
*
*
*
* This is a convenience which creates an instance of the {@link UpdateFunctionRequest.Builder} avoiding the need to
* create one manually via {@link UpdateFunctionRequest#builder()}
*
*
* @param updateFunctionRequest
* A {@link Consumer} that will call methods on {@link UpdateFunctionRequest.Builder} to create a request.
* @return A Java Future containing the result of the UpdateFunction operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - InvalidArgumentException An argument is invalid.
* - InvalidIfMatchVersionException The
If-Match
version is missing or not valid.
* - NoSuchFunctionExistsException The function does not exist.
* - PreconditionFailedException The precondition in one or more of the request fields evaluated to
*
false
.
* - FunctionSizeLimitExceededException The function is too large. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - UnsupportedOperationException This operation is not supported in this region.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.UpdateFunction
* @see AWS API
* Documentation
*/
default CompletableFuture updateFunction(Consumer updateFunctionRequest) {
return updateFunction(UpdateFunctionRequest.builder().applyMutation(updateFunctionRequest).build());
}
/**
*
* Updates a key group.
*
*
* When you update a key group, all the fields are updated with the values provided in the request. You cannot
* update some fields independent of others. To update a key group:
*
*
* -
*
* Get the current key group with GetKeyGroup
or GetKeyGroupConfig
.
*
*
* -
*
* Locally modify the fields in the key group that you want to update. For example, add or remove public key IDs.
*
*
* -
*
* Call UpdateKeyGroup
with the entire key group object, including the fields that you modified and
* those that you didn’t.
*
*
*
*
* @param updateKeyGroupRequest
* @return A Java Future containing the result of the UpdateKeyGroup operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions.
*
* - InvalidIfMatchVersionException The
If-Match
version is missing or not valid.
* - NoSuchResourceException A resource that was specified is not valid.
* - PreconditionFailedException The precondition in one or more of the request fields evaluated to
*
false
.
* - KeyGroupAlreadyExistsException A key group with this name already exists. You must provide a unique
* name. To modify an existing key group, use
UpdateKeyGroup
.
* - InvalidArgumentException An argument is invalid.
* - TooManyPublicKeysInKeyGroupException The number of public keys in this key group is more than the
* maximum allowed. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - CloudFrontException Base class for all service exceptions. Unknown exceptions will be thrown as an
* instance of this type.
*
* @sample CloudFrontAsyncClient.UpdateKeyGroup
* @see AWS API
* Documentation
*/
default CompletableFuture updateKeyGroup(UpdateKeyGroupRequest updateKeyGroupRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Updates a key group.
*
*
* When you update a key group, all the fields are updated with the values provided in the request. You cannot
* update some fields independent of others. To update a key group:
*
*
* -
*
* Get the current key group with