All Downloads are FREE. Search and download functionalities are using the official Maven repository.

software.amazon.awssdk.services.cloudfront.CloudFrontClient 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.function.Consumer;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.annotations.SdkPublicApi;
import software.amazon.awssdk.annotations.ThreadSafe;
import software.amazon.awssdk.awscore.exception.AwsServiceException;
import software.amazon.awssdk.core.SdkClient;
import software.amazon.awssdk.core.exception.SdkClientException;
import software.amazon.awssdk.regions.ServiceMetadata;
import software.amazon.awssdk.services.cloudfront.model.AccessDeniedException;
import software.amazon.awssdk.services.cloudfront.model.BatchTooLargeException;
import software.amazon.awssdk.services.cloudfront.model.CachePolicyAlreadyExistsException;
import software.amazon.awssdk.services.cloudfront.model.CachePolicyInUseException;
import software.amazon.awssdk.services.cloudfront.model.CannotChangeImmutablePublicKeyFieldsException;
import software.amazon.awssdk.services.cloudfront.model.CloudFrontException;
import software.amazon.awssdk.services.cloudfront.model.CloudFrontOriginAccessIdentityAlreadyExistsException;
import software.amazon.awssdk.services.cloudfront.model.CloudFrontOriginAccessIdentityInUseException;
import software.amazon.awssdk.services.cloudfront.model.CnameAlreadyExistsException;
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.DistributionAlreadyExistsException;
import software.amazon.awssdk.services.cloudfront.model.DistributionNotDisabledException;
import software.amazon.awssdk.services.cloudfront.model.FieldLevelEncryptionConfigAlreadyExistsException;
import software.amazon.awssdk.services.cloudfront.model.FieldLevelEncryptionConfigInUseException;
import software.amazon.awssdk.services.cloudfront.model.FieldLevelEncryptionProfileAlreadyExistsException;
import software.amazon.awssdk.services.cloudfront.model.FieldLevelEncryptionProfileInUseException;
import software.amazon.awssdk.services.cloudfront.model.FieldLevelEncryptionProfileSizeExceededException;
import software.amazon.awssdk.services.cloudfront.model.FunctionAlreadyExistsException;
import software.amazon.awssdk.services.cloudfront.model.FunctionInUseException;
import software.amazon.awssdk.services.cloudfront.model.FunctionSizeLimitExceededException;
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.IllegalDeleteException;
import software.amazon.awssdk.services.cloudfront.model.IllegalFieldLevelEncryptionConfigAssociationWithCacheBehaviorException;
import software.amazon.awssdk.services.cloudfront.model.IllegalUpdateException;
import software.amazon.awssdk.services.cloudfront.model.InconsistentQuantitiesException;
import software.amazon.awssdk.services.cloudfront.model.InvalidArgumentException;
import software.amazon.awssdk.services.cloudfront.model.InvalidDefaultRootObjectException;
import software.amazon.awssdk.services.cloudfront.model.InvalidErrorCodeException;
import software.amazon.awssdk.services.cloudfront.model.InvalidForwardCookiesException;
import software.amazon.awssdk.services.cloudfront.model.InvalidFunctionAssociationException;
import software.amazon.awssdk.services.cloudfront.model.InvalidGeoRestrictionParameterException;
import software.amazon.awssdk.services.cloudfront.model.InvalidHeadersForS3OriginException;
import software.amazon.awssdk.services.cloudfront.model.InvalidIfMatchVersionException;
import software.amazon.awssdk.services.cloudfront.model.InvalidLambdaFunctionAssociationException;
import software.amazon.awssdk.services.cloudfront.model.InvalidLocationCodeException;
import software.amazon.awssdk.services.cloudfront.model.InvalidMinimumProtocolVersionException;
import software.amazon.awssdk.services.cloudfront.model.InvalidOriginAccessIdentityException;
import software.amazon.awssdk.services.cloudfront.model.InvalidOriginException;
import software.amazon.awssdk.services.cloudfront.model.InvalidOriginKeepaliveTimeoutException;
import software.amazon.awssdk.services.cloudfront.model.InvalidOriginReadTimeoutException;
import software.amazon.awssdk.services.cloudfront.model.InvalidProtocolSettingsException;
import software.amazon.awssdk.services.cloudfront.model.InvalidQueryStringParametersException;
import software.amazon.awssdk.services.cloudfront.model.InvalidRelativePathException;
import software.amazon.awssdk.services.cloudfront.model.InvalidRequiredProtocolException;
import software.amazon.awssdk.services.cloudfront.model.InvalidResponseCodeException;
import software.amazon.awssdk.services.cloudfront.model.InvalidTaggingException;
import software.amazon.awssdk.services.cloudfront.model.InvalidTtlOrderException;
import software.amazon.awssdk.services.cloudfront.model.InvalidViewerCertificateException;
import software.amazon.awssdk.services.cloudfront.model.InvalidWebAclIdException;
import software.amazon.awssdk.services.cloudfront.model.KeyGroupAlreadyExistsException;
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.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.MissingBodyException;
import software.amazon.awssdk.services.cloudfront.model.NoSuchCachePolicyException;
import software.amazon.awssdk.services.cloudfront.model.NoSuchCloudFrontOriginAccessIdentityException;
import software.amazon.awssdk.services.cloudfront.model.NoSuchDistributionException;
import software.amazon.awssdk.services.cloudfront.model.NoSuchFieldLevelEncryptionConfigException;
import software.amazon.awssdk.services.cloudfront.model.NoSuchFieldLevelEncryptionProfileException;
import software.amazon.awssdk.services.cloudfront.model.NoSuchFunctionExistsException;
import software.amazon.awssdk.services.cloudfront.model.NoSuchInvalidationException;
import software.amazon.awssdk.services.cloudfront.model.NoSuchOriginException;
import software.amazon.awssdk.services.cloudfront.model.NoSuchOriginRequestPolicyException;
import software.amazon.awssdk.services.cloudfront.model.NoSuchPublicKeyException;
import software.amazon.awssdk.services.cloudfront.model.NoSuchRealtimeLogConfigException;
import software.amazon.awssdk.services.cloudfront.model.NoSuchResourceException;
import software.amazon.awssdk.services.cloudfront.model.NoSuchStreamingDistributionException;
import software.amazon.awssdk.services.cloudfront.model.OriginRequestPolicyAlreadyExistsException;
import software.amazon.awssdk.services.cloudfront.model.OriginRequestPolicyInUseException;
import software.amazon.awssdk.services.cloudfront.model.PreconditionFailedException;
import software.amazon.awssdk.services.cloudfront.model.PublicKeyAlreadyExistsException;
import software.amazon.awssdk.services.cloudfront.model.PublicKeyInUseException;
import software.amazon.awssdk.services.cloudfront.model.PublishFunctionRequest;
import software.amazon.awssdk.services.cloudfront.model.PublishFunctionResponse;
import software.amazon.awssdk.services.cloudfront.model.QueryArgProfileEmptyException;
import software.amazon.awssdk.services.cloudfront.model.RealtimeLogConfigAlreadyExistsException;
import software.amazon.awssdk.services.cloudfront.model.RealtimeLogConfigInUseException;
import software.amazon.awssdk.services.cloudfront.model.RealtimeLogConfigOwnerMismatchException;
import software.amazon.awssdk.services.cloudfront.model.ResourceInUseException;
import software.amazon.awssdk.services.cloudfront.model.StreamingDistributionAlreadyExistsException;
import software.amazon.awssdk.services.cloudfront.model.StreamingDistributionNotDisabledException;
import software.amazon.awssdk.services.cloudfront.model.TagResourceRequest;
import software.amazon.awssdk.services.cloudfront.model.TagResourceResponse;
import software.amazon.awssdk.services.cloudfront.model.TestFunctionFailedException;
import software.amazon.awssdk.services.cloudfront.model.TestFunctionRequest;
import software.amazon.awssdk.services.cloudfront.model.TestFunctionResponse;
import software.amazon.awssdk.services.cloudfront.model.TooManyCacheBehaviorsException;
import software.amazon.awssdk.services.cloudfront.model.TooManyCachePoliciesException;
import software.amazon.awssdk.services.cloudfront.model.TooManyCertificatesException;
import software.amazon.awssdk.services.cloudfront.model.TooManyCloudFrontOriginAccessIdentitiesException;
import software.amazon.awssdk.services.cloudfront.model.TooManyCookieNamesInWhiteListException;
import software.amazon.awssdk.services.cloudfront.model.TooManyCookiesInCachePolicyException;
import software.amazon.awssdk.services.cloudfront.model.TooManyCookiesInOriginRequestPolicyException;
import software.amazon.awssdk.services.cloudfront.model.TooManyDistributionCnamEsException;
import software.amazon.awssdk.services.cloudfront.model.TooManyDistributionsAssociatedToCachePolicyException;
import software.amazon.awssdk.services.cloudfront.model.TooManyDistributionsAssociatedToFieldLevelEncryptionConfigException;
import software.amazon.awssdk.services.cloudfront.model.TooManyDistributionsAssociatedToKeyGroupException;
import software.amazon.awssdk.services.cloudfront.model.TooManyDistributionsAssociatedToOriginRequestPolicyException;
import software.amazon.awssdk.services.cloudfront.model.TooManyDistributionsException;
import software.amazon.awssdk.services.cloudfront.model.TooManyDistributionsWithFunctionAssociationsException;
import software.amazon.awssdk.services.cloudfront.model.TooManyDistributionsWithLambdaAssociationsException;
import software.amazon.awssdk.services.cloudfront.model.TooManyDistributionsWithSingleFunctionArnException;
import software.amazon.awssdk.services.cloudfront.model.TooManyFieldLevelEncryptionConfigsException;
import software.amazon.awssdk.services.cloudfront.model.TooManyFieldLevelEncryptionContentTypeProfilesException;
import software.amazon.awssdk.services.cloudfront.model.TooManyFieldLevelEncryptionEncryptionEntitiesException;
import software.amazon.awssdk.services.cloudfront.model.TooManyFieldLevelEncryptionFieldPatternsException;
import software.amazon.awssdk.services.cloudfront.model.TooManyFieldLevelEncryptionProfilesException;
import software.amazon.awssdk.services.cloudfront.model.TooManyFieldLevelEncryptionQueryArgProfilesException;
import software.amazon.awssdk.services.cloudfront.model.TooManyFunctionAssociationsException;
import software.amazon.awssdk.services.cloudfront.model.TooManyFunctionsException;
import software.amazon.awssdk.services.cloudfront.model.TooManyHeadersInCachePolicyException;
import software.amazon.awssdk.services.cloudfront.model.TooManyHeadersInForwardedValuesException;
import software.amazon.awssdk.services.cloudfront.model.TooManyHeadersInOriginRequestPolicyException;
import software.amazon.awssdk.services.cloudfront.model.TooManyInvalidationsInProgressException;
import software.amazon.awssdk.services.cloudfront.model.TooManyKeyGroupsAssociatedToDistributionException;
import software.amazon.awssdk.services.cloudfront.model.TooManyKeyGroupsException;
import software.amazon.awssdk.services.cloudfront.model.TooManyLambdaFunctionAssociationsException;
import software.amazon.awssdk.services.cloudfront.model.TooManyOriginCustomHeadersException;
import software.amazon.awssdk.services.cloudfront.model.TooManyOriginGroupsPerDistributionException;
import software.amazon.awssdk.services.cloudfront.model.TooManyOriginRequestPoliciesException;
import software.amazon.awssdk.services.cloudfront.model.TooManyOriginsException;
import software.amazon.awssdk.services.cloudfront.model.TooManyPublicKeysException;
import software.amazon.awssdk.services.cloudfront.model.TooManyPublicKeysInKeyGroupException;
import software.amazon.awssdk.services.cloudfront.model.TooManyQueryStringParametersException;
import software.amazon.awssdk.services.cloudfront.model.TooManyQueryStringsInCachePolicyException;
import software.amazon.awssdk.services.cloudfront.model.TooManyQueryStringsInOriginRequestPolicyException;
import software.amazon.awssdk.services.cloudfront.model.TooManyRealtimeLogConfigsException;
import software.amazon.awssdk.services.cloudfront.model.TooManyStreamingDistributionCnamEsException;
import software.amazon.awssdk.services.cloudfront.model.TooManyStreamingDistributionsException;
import software.amazon.awssdk.services.cloudfront.model.TooManyTrustedSignersException;
import software.amazon.awssdk.services.cloudfront.model.TrustedKeyGroupDoesNotExistException;
import software.amazon.awssdk.services.cloudfront.model.TrustedSignerDoesNotExistException;
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.CloudFrontWaiter;

/**
 * Service client for accessing CloudFront. 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 CloudFrontClient 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 CloudFrontClient} 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 CloudFrontClient create() { return builder().build(); } /** * Create a builder that can be used to configure and create a {@link CloudFrontClient}. */ static CloudFrontClientBuilder builder() { return new DefaultCloudFrontClientBuilder(); } /** *

* 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 Result of the CreateCachePolicy operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws InconsistentQuantitiesException * The value of Quantity and the size of Items don't match. * @throws InvalidArgumentException * An argument is invalid. * @throws CachePolicyAlreadyExistsException * A cache policy with this name already exists. You must provide a unique name. To modify an existing cache * policy, use UpdateCachePolicy. * @throws TooManyCachePoliciesException * You have reached the maximum number of cache policies for this AWS account. For more information, see Quotas * (formerly known as limits) in the Amazon CloudFront Developer Guide. * @throws 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. * @throws 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. * @throws 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. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.CreateCachePolicy * @see AWS * API Documentation */ default CreateCachePolicyResponse createCachePolicy(CreateCachePolicyRequest createCachePolicyRequest) throws AccessDeniedException, InconsistentQuantitiesException, InvalidArgumentException, CachePolicyAlreadyExistsException, TooManyCachePoliciesException, TooManyHeadersInCachePolicyException, TooManyCookiesInCachePolicyException, TooManyQueryStringsInCachePolicyException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the CreateCachePolicy operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws InconsistentQuantitiesException * The value of Quantity and the size of Items don't match. * @throws InvalidArgumentException * An argument is invalid. * @throws CachePolicyAlreadyExistsException * A cache policy with this name already exists. You must provide a unique name. To modify an existing cache * policy, use UpdateCachePolicy. * @throws TooManyCachePoliciesException * You have reached the maximum number of cache policies for this AWS account. For more information, see Quotas * (formerly known as limits) in the Amazon CloudFront Developer Guide. * @throws 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. * @throws 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. * @throws 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. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.CreateCachePolicy * @see AWS * API Documentation */ default CreateCachePolicyResponse createCachePolicy(Consumer createCachePolicyRequest) throws AccessDeniedException, InconsistentQuantitiesException, InvalidArgumentException, CachePolicyAlreadyExistsException, TooManyCachePoliciesException, TooManyHeadersInCachePolicyException, TooManyCookiesInCachePolicyException, TooManyQueryStringsInCachePolicyException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the CreateCloudFrontOriginAccessIdentity operation returned by the service. * @throws CloudFrontOriginAccessIdentityAlreadyExistsException * If the CallerReference is a value you already sent in a previous request to create an * identity but the content of the CloudFrontOriginAccessIdentityConfig is different from the * original request, CloudFront returns a CloudFrontOriginAccessIdentityAlreadyExists error. * @throws MissingBodyException * This operation requires a body. Ensure that the body is present and the Content-Type header * is set. * @throws TooManyCloudFrontOriginAccessIdentitiesException * Processing your request would cause you to exceed the maximum number of origin access identities allowed. * @throws InvalidArgumentException * An argument is invalid. * @throws InconsistentQuantitiesException * The value of Quantity and the size of Items don't match. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.CreateCloudFrontOriginAccessIdentity * @see AWS API Documentation */ default CreateCloudFrontOriginAccessIdentityResponse createCloudFrontOriginAccessIdentity( CreateCloudFrontOriginAccessIdentityRequest createCloudFrontOriginAccessIdentityRequest) throws CloudFrontOriginAccessIdentityAlreadyExistsException, MissingBodyException, TooManyCloudFrontOriginAccessIdentitiesException, InvalidArgumentException, InconsistentQuantitiesException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the CreateCloudFrontOriginAccessIdentity operation returned by the service. * @throws CloudFrontOriginAccessIdentityAlreadyExistsException * If the CallerReference is a value you already sent in a previous request to create an * identity but the content of the CloudFrontOriginAccessIdentityConfig is different from the * original request, CloudFront returns a CloudFrontOriginAccessIdentityAlreadyExists error. * @throws MissingBodyException * This operation requires a body. Ensure that the body is present and the Content-Type header * is set. * @throws TooManyCloudFrontOriginAccessIdentitiesException * Processing your request would cause you to exceed the maximum number of origin access identities allowed. * @throws InvalidArgumentException * An argument is invalid. * @throws InconsistentQuantitiesException * The value of Quantity and the size of Items don't match. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.CreateCloudFrontOriginAccessIdentity * @see AWS API Documentation */ default CreateCloudFrontOriginAccessIdentityResponse createCloudFrontOriginAccessIdentity( Consumer createCloudFrontOriginAccessIdentityRequest) throws CloudFrontOriginAccessIdentityAlreadyExistsException, MissingBodyException, TooManyCloudFrontOriginAccessIdentitiesException, InvalidArgumentException, InconsistentQuantitiesException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the CreateDistribution operation returned by the service. * @throws CnameAlreadyExistsException * The CNAME specified is already defined for CloudFront. * @throws DistributionAlreadyExistsException * The caller reference you attempted to create the distribution with is associated with another * distribution. * @throws InvalidOriginException * The Amazon S3 origin server specified does not refer to a valid Amazon S3 bucket. * @throws InvalidOriginAccessIdentityException * The origin access identity is not valid or doesn't exist. * @throws AccessDeniedException * Access denied. * @throws TooManyTrustedSignersException * Your request contains more trusted signers than are allowed per distribution. * @throws TrustedSignerDoesNotExistException * One or more of your trusted signers don't exist. * @throws InvalidViewerCertificateException * A viewer certificate specified is not valid. * @throws InvalidMinimumProtocolVersionException * The minimum protocol version specified is not valid. * @throws MissingBodyException * This operation requires a body. Ensure that the body is present and the Content-Type header * is set. * @throws TooManyDistributionCnamEsException * Your request contains more CNAMEs than are allowed per distribution. * @throws TooManyDistributionsException * Processing your request would cause you to exceed the maximum number of distributions allowed. * @throws InvalidDefaultRootObjectException * The default root object file name is too big or contains an invalid character. * @throws InvalidRelativePathException * The relative path is too big, is not URL-encoded, or does not begin with a slash (/). * @throws InvalidErrorCodeException * An invalid error code was specified. * @throws InvalidResponseCodeException * A response code is not valid. * @throws InvalidArgumentException * An argument is invalid. * @throws 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. * @throws NoSuchOriginException * No origin exists with the specified Origin Id. * @throws TooManyOriginsException * You cannot create more origins for the distribution. * @throws TooManyOriginGroupsPerDistributionException * Processing your request would cause you to exceed the maximum number of origin groups allowed. * @throws TooManyCacheBehaviorsException * You cannot create more cache behaviors for the distribution. * @throws TooManyCookieNamesInWhiteListException * Your request contains more cookie names in the whitelist than are allowed per cache behavior. * @throws 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. * @throws TooManyHeadersInForwardedValuesException * Your request contains too many headers in forwarded values. * @throws InvalidHeadersForS3OriginException * The headers specified are not valid for an Amazon S3 origin. * @throws InconsistentQuantitiesException * The value of Quantity and the size of Items don't match. * @throws TooManyCertificatesException * You cannot create anymore custom SSL/TLS certificates. * @throws InvalidLocationCodeException * The location code specified is not valid. * @throws InvalidGeoRestrictionParameterException * The specified geo restriction parameter is not valid. * @throws InvalidProtocolSettingsException * You cannot specify SSLv3 as the minimum protocol version if you only want to support only clients that * support Server Name Indication (SNI). * @throws InvalidTtlOrderException * The TTL order specified is not valid. * @throws InvalidWebAclIdException * A web ACL ID specified is not valid. To specify a web ACL created using the latest version of AWS 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 AWS WAF Classic, use the ACL ID, for example * 473e64fd-f30b-4765-81a0-62ad96dd167a. * @throws TooManyOriginCustomHeadersException * Your request contains too many origin custom headers. * @throws TooManyQueryStringParametersException * Your request contains too many query string parameters. * @throws InvalidQueryStringParametersException * The query string parameters specified are not valid. * @throws TooManyDistributionsWithLambdaAssociationsException * Processing your request would cause the maximum number of distributions with Lambda function associations * per owner to be exceeded. * @throws TooManyDistributionsWithSingleFunctionArnException * The maximum number of distributions have been associated with the specified Lambda function. * @throws TooManyLambdaFunctionAssociationsException * Your request contains more Lambda function associations than are allowed per distribution. * @throws InvalidLambdaFunctionAssociationException * The specified Lambda function association is invalid. * @throws 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. * @throws 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. * @throws InvalidFunctionAssociationException * A CloudFront function association is invalid. * @throws InvalidOriginReadTimeoutException * The read timeout specified for the origin is not valid. * @throws InvalidOriginKeepaliveTimeoutException * The keep alive timeout specified for the origin is not valid. * @throws NoSuchFieldLevelEncryptionConfigException * The specified configuration for field-level encryption doesn't exist. * @throws IllegalFieldLevelEncryptionConfigAssociationWithCacheBehaviorException * The specified configuration for field-level encryption can't be associated with the specified cache * behavior. * @throws TooManyDistributionsAssociatedToFieldLevelEncryptionConfigException * The maximum number of distributions have been associated with the specified configuration for field-level * encryption. * @throws NoSuchCachePolicyException * The cache policy does not exist. * @throws 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. * @throws NoSuchOriginRequestPolicyException * The origin request policy does not exist. * @throws 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. * @throws 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. * @throws 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. * @throws TrustedKeyGroupDoesNotExistException * The specified key group does not exist. * @throws NoSuchRealtimeLogConfigException * The real-time log configuration does not exist. * @throws RealtimeLogConfigOwnerMismatchException * The specified real-time log configuration belongs to a different AWS account. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.CreateDistribution * @see AWS * API Documentation */ default CreateDistributionResponse createDistribution(CreateDistributionRequest createDistributionRequest) throws CnameAlreadyExistsException, DistributionAlreadyExistsException, InvalidOriginException, InvalidOriginAccessIdentityException, AccessDeniedException, TooManyTrustedSignersException, TrustedSignerDoesNotExistException, InvalidViewerCertificateException, InvalidMinimumProtocolVersionException, MissingBodyException, TooManyDistributionCnamEsException, TooManyDistributionsException, InvalidDefaultRootObjectException, InvalidRelativePathException, InvalidErrorCodeException, InvalidResponseCodeException, InvalidArgumentException, InvalidRequiredProtocolException, NoSuchOriginException, TooManyOriginsException, TooManyOriginGroupsPerDistributionException, TooManyCacheBehaviorsException, TooManyCookieNamesInWhiteListException, InvalidForwardCookiesException, TooManyHeadersInForwardedValuesException, InvalidHeadersForS3OriginException, InconsistentQuantitiesException, TooManyCertificatesException, InvalidLocationCodeException, InvalidGeoRestrictionParameterException, InvalidProtocolSettingsException, InvalidTtlOrderException, InvalidWebAclIdException, TooManyOriginCustomHeadersException, TooManyQueryStringParametersException, InvalidQueryStringParametersException, TooManyDistributionsWithLambdaAssociationsException, TooManyDistributionsWithSingleFunctionArnException, TooManyLambdaFunctionAssociationsException, InvalidLambdaFunctionAssociationException, TooManyDistributionsWithFunctionAssociationsException, TooManyFunctionAssociationsException, InvalidFunctionAssociationException, InvalidOriginReadTimeoutException, InvalidOriginKeepaliveTimeoutException, NoSuchFieldLevelEncryptionConfigException, IllegalFieldLevelEncryptionConfigAssociationWithCacheBehaviorException, TooManyDistributionsAssociatedToFieldLevelEncryptionConfigException, NoSuchCachePolicyException, TooManyDistributionsAssociatedToCachePolicyException, NoSuchOriginRequestPolicyException, TooManyDistributionsAssociatedToOriginRequestPolicyException, TooManyDistributionsAssociatedToKeyGroupException, TooManyKeyGroupsAssociatedToDistributionException, TrustedKeyGroupDoesNotExistException, NoSuchRealtimeLogConfigException, RealtimeLogConfigOwnerMismatchException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the CreateDistribution operation returned by the service. * @throws CnameAlreadyExistsException * The CNAME specified is already defined for CloudFront. * @throws DistributionAlreadyExistsException * The caller reference you attempted to create the distribution with is associated with another * distribution. * @throws InvalidOriginException * The Amazon S3 origin server specified does not refer to a valid Amazon S3 bucket. * @throws InvalidOriginAccessIdentityException * The origin access identity is not valid or doesn't exist. * @throws AccessDeniedException * Access denied. * @throws TooManyTrustedSignersException * Your request contains more trusted signers than are allowed per distribution. * @throws TrustedSignerDoesNotExistException * One or more of your trusted signers don't exist. * @throws InvalidViewerCertificateException * A viewer certificate specified is not valid. * @throws InvalidMinimumProtocolVersionException * The minimum protocol version specified is not valid. * @throws MissingBodyException * This operation requires a body. Ensure that the body is present and the Content-Type header * is set. * @throws TooManyDistributionCnamEsException * Your request contains more CNAMEs than are allowed per distribution. * @throws TooManyDistributionsException * Processing your request would cause you to exceed the maximum number of distributions allowed. * @throws InvalidDefaultRootObjectException * The default root object file name is too big or contains an invalid character. * @throws InvalidRelativePathException * The relative path is too big, is not URL-encoded, or does not begin with a slash (/). * @throws InvalidErrorCodeException * An invalid error code was specified. * @throws InvalidResponseCodeException * A response code is not valid. * @throws InvalidArgumentException * An argument is invalid. * @throws 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. * @throws NoSuchOriginException * No origin exists with the specified Origin Id. * @throws TooManyOriginsException * You cannot create more origins for the distribution. * @throws TooManyOriginGroupsPerDistributionException * Processing your request would cause you to exceed the maximum number of origin groups allowed. * @throws TooManyCacheBehaviorsException * You cannot create more cache behaviors for the distribution. * @throws TooManyCookieNamesInWhiteListException * Your request contains more cookie names in the whitelist than are allowed per cache behavior. * @throws 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. * @throws TooManyHeadersInForwardedValuesException * Your request contains too many headers in forwarded values. * @throws InvalidHeadersForS3OriginException * The headers specified are not valid for an Amazon S3 origin. * @throws InconsistentQuantitiesException * The value of Quantity and the size of Items don't match. * @throws TooManyCertificatesException * You cannot create anymore custom SSL/TLS certificates. * @throws InvalidLocationCodeException * The location code specified is not valid. * @throws InvalidGeoRestrictionParameterException * The specified geo restriction parameter is not valid. * @throws InvalidProtocolSettingsException * You cannot specify SSLv3 as the minimum protocol version if you only want to support only clients that * support Server Name Indication (SNI). * @throws InvalidTtlOrderException * The TTL order specified is not valid. * @throws InvalidWebAclIdException * A web ACL ID specified is not valid. To specify a web ACL created using the latest version of AWS 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 AWS WAF Classic, use the ACL ID, for example * 473e64fd-f30b-4765-81a0-62ad96dd167a. * @throws TooManyOriginCustomHeadersException * Your request contains too many origin custom headers. * @throws TooManyQueryStringParametersException * Your request contains too many query string parameters. * @throws InvalidQueryStringParametersException * The query string parameters specified are not valid. * @throws TooManyDistributionsWithLambdaAssociationsException * Processing your request would cause the maximum number of distributions with Lambda function associations * per owner to be exceeded. * @throws TooManyDistributionsWithSingleFunctionArnException * The maximum number of distributions have been associated with the specified Lambda function. * @throws TooManyLambdaFunctionAssociationsException * Your request contains more Lambda function associations than are allowed per distribution. * @throws InvalidLambdaFunctionAssociationException * The specified Lambda function association is invalid. * @throws 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. * @throws 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. * @throws InvalidFunctionAssociationException * A CloudFront function association is invalid. * @throws InvalidOriginReadTimeoutException * The read timeout specified for the origin is not valid. * @throws InvalidOriginKeepaliveTimeoutException * The keep alive timeout specified for the origin is not valid. * @throws NoSuchFieldLevelEncryptionConfigException * The specified configuration for field-level encryption doesn't exist. * @throws IllegalFieldLevelEncryptionConfigAssociationWithCacheBehaviorException * The specified configuration for field-level encryption can't be associated with the specified cache * behavior. * @throws TooManyDistributionsAssociatedToFieldLevelEncryptionConfigException * The maximum number of distributions have been associated with the specified configuration for field-level * encryption. * @throws NoSuchCachePolicyException * The cache policy does not exist. * @throws 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. * @throws NoSuchOriginRequestPolicyException * The origin request policy does not exist. * @throws 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. * @throws 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. * @throws 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. * @throws TrustedKeyGroupDoesNotExistException * The specified key group does not exist. * @throws NoSuchRealtimeLogConfigException * The real-time log configuration does not exist. * @throws RealtimeLogConfigOwnerMismatchException * The specified real-time log configuration belongs to a different AWS account. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.CreateDistribution * @see AWS * API Documentation */ default CreateDistributionResponse createDistribution(Consumer createDistributionRequest) throws CnameAlreadyExistsException, DistributionAlreadyExistsException, InvalidOriginException, InvalidOriginAccessIdentityException, AccessDeniedException, TooManyTrustedSignersException, TrustedSignerDoesNotExistException, InvalidViewerCertificateException, InvalidMinimumProtocolVersionException, MissingBodyException, TooManyDistributionCnamEsException, TooManyDistributionsException, InvalidDefaultRootObjectException, InvalidRelativePathException, InvalidErrorCodeException, InvalidResponseCodeException, InvalidArgumentException, InvalidRequiredProtocolException, NoSuchOriginException, TooManyOriginsException, TooManyOriginGroupsPerDistributionException, TooManyCacheBehaviorsException, TooManyCookieNamesInWhiteListException, InvalidForwardCookiesException, TooManyHeadersInForwardedValuesException, InvalidHeadersForS3OriginException, InconsistentQuantitiesException, TooManyCertificatesException, InvalidLocationCodeException, InvalidGeoRestrictionParameterException, InvalidProtocolSettingsException, InvalidTtlOrderException, InvalidWebAclIdException, TooManyOriginCustomHeadersException, TooManyQueryStringParametersException, InvalidQueryStringParametersException, TooManyDistributionsWithLambdaAssociationsException, TooManyDistributionsWithSingleFunctionArnException, TooManyLambdaFunctionAssociationsException, InvalidLambdaFunctionAssociationException, TooManyDistributionsWithFunctionAssociationsException, TooManyFunctionAssociationsException, InvalidFunctionAssociationException, InvalidOriginReadTimeoutException, InvalidOriginKeepaliveTimeoutException, NoSuchFieldLevelEncryptionConfigException, IllegalFieldLevelEncryptionConfigAssociationWithCacheBehaviorException, TooManyDistributionsAssociatedToFieldLevelEncryptionConfigException, NoSuchCachePolicyException, TooManyDistributionsAssociatedToCachePolicyException, NoSuchOriginRequestPolicyException, TooManyDistributionsAssociatedToOriginRequestPolicyException, TooManyDistributionsAssociatedToKeyGroupException, TooManyKeyGroupsAssociatedToDistributionException, TrustedKeyGroupDoesNotExistException, NoSuchRealtimeLogConfigException, RealtimeLogConfigOwnerMismatchException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the CreateDistributionWithTags operation returned by the service. * @throws CnameAlreadyExistsException * The CNAME specified is already defined for CloudFront. * @throws DistributionAlreadyExistsException * The caller reference you attempted to create the distribution with is associated with another * distribution. * @throws InvalidOriginException * The Amazon S3 origin server specified does not refer to a valid Amazon S3 bucket. * @throws InvalidOriginAccessIdentityException * The origin access identity is not valid or doesn't exist. * @throws AccessDeniedException * Access denied. * @throws TooManyTrustedSignersException * Your request contains more trusted signers than are allowed per distribution. * @throws TrustedSignerDoesNotExistException * One or more of your trusted signers don't exist. * @throws InvalidViewerCertificateException * A viewer certificate specified is not valid. * @throws InvalidMinimumProtocolVersionException * The minimum protocol version specified is not valid. * @throws MissingBodyException * This operation requires a body. Ensure that the body is present and the Content-Type header * is set. * @throws TooManyDistributionCnamEsException * Your request contains more CNAMEs than are allowed per distribution. * @throws TooManyDistributionsException * Processing your request would cause you to exceed the maximum number of distributions allowed. * @throws InvalidDefaultRootObjectException * The default root object file name is too big or contains an invalid character. * @throws InvalidRelativePathException * The relative path is too big, is not URL-encoded, or does not begin with a slash (/). * @throws InvalidErrorCodeException * An invalid error code was specified. * @throws InvalidResponseCodeException * A response code is not valid. * @throws InvalidArgumentException * An argument is invalid. * @throws 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. * @throws NoSuchOriginException * No origin exists with the specified Origin Id. * @throws TooManyOriginsException * You cannot create more origins for the distribution. * @throws TooManyOriginGroupsPerDistributionException * Processing your request would cause you to exceed the maximum number of origin groups allowed. * @throws TooManyCacheBehaviorsException * You cannot create more cache behaviors for the distribution. * @throws TooManyCookieNamesInWhiteListException * Your request contains more cookie names in the whitelist than are allowed per cache behavior. * @throws 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. * @throws TooManyHeadersInForwardedValuesException * Your request contains too many headers in forwarded values. * @throws InvalidHeadersForS3OriginException * The headers specified are not valid for an Amazon S3 origin. * @throws InconsistentQuantitiesException * The value of Quantity and the size of Items don't match. * @throws TooManyCertificatesException * You cannot create anymore custom SSL/TLS certificates. * @throws InvalidLocationCodeException * The location code specified is not valid. * @throws InvalidGeoRestrictionParameterException * The specified geo restriction parameter is not valid. * @throws InvalidProtocolSettingsException * You cannot specify SSLv3 as the minimum protocol version if you only want to support only clients that * support Server Name Indication (SNI). * @throws InvalidTtlOrderException * The TTL order specified is not valid. * @throws InvalidWebAclIdException * A web ACL ID specified is not valid. To specify a web ACL created using the latest version of AWS 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 AWS WAF Classic, use the ACL ID, for example * 473e64fd-f30b-4765-81a0-62ad96dd167a. * @throws TooManyOriginCustomHeadersException * Your request contains too many origin custom headers. * @throws InvalidTaggingException * The tagging specified is not valid. * @throws TooManyQueryStringParametersException * Your request contains too many query string parameters. * @throws InvalidQueryStringParametersException * The query string parameters specified are not valid. * @throws TooManyDistributionsWithLambdaAssociationsException * Processing your request would cause the maximum number of distributions with Lambda function associations * per owner to be exceeded. * @throws TooManyDistributionsWithSingleFunctionArnException * The maximum number of distributions have been associated with the specified Lambda function. * @throws TooManyLambdaFunctionAssociationsException * Your request contains more Lambda function associations than are allowed per distribution. * @throws InvalidLambdaFunctionAssociationException * The specified Lambda function association is invalid. * @throws 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. * @throws 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. * @throws InvalidFunctionAssociationException * A CloudFront function association is invalid. * @throws InvalidOriginReadTimeoutException * The read timeout specified for the origin is not valid. * @throws InvalidOriginKeepaliveTimeoutException * The keep alive timeout specified for the origin is not valid. * @throws NoSuchFieldLevelEncryptionConfigException * The specified configuration for field-level encryption doesn't exist. * @throws IllegalFieldLevelEncryptionConfigAssociationWithCacheBehaviorException * The specified configuration for field-level encryption can't be associated with the specified cache * behavior. * @throws TooManyDistributionsAssociatedToFieldLevelEncryptionConfigException * The maximum number of distributions have been associated with the specified configuration for field-level * encryption. * @throws NoSuchCachePolicyException * The cache policy does not exist. * @throws 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. * @throws NoSuchOriginRequestPolicyException * The origin request policy does not exist. * @throws 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. * @throws 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. * @throws 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. * @throws TrustedKeyGroupDoesNotExistException * The specified key group does not exist. * @throws NoSuchRealtimeLogConfigException * The real-time log configuration does not exist. * @throws RealtimeLogConfigOwnerMismatchException * The specified real-time log configuration belongs to a different AWS account. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.CreateDistributionWithTags * @see AWS API Documentation */ default CreateDistributionWithTagsResponse createDistributionWithTags( CreateDistributionWithTagsRequest createDistributionWithTagsRequest) throws CnameAlreadyExistsException, DistributionAlreadyExistsException, InvalidOriginException, InvalidOriginAccessIdentityException, AccessDeniedException, TooManyTrustedSignersException, TrustedSignerDoesNotExistException, InvalidViewerCertificateException, InvalidMinimumProtocolVersionException, MissingBodyException, TooManyDistributionCnamEsException, TooManyDistributionsException, InvalidDefaultRootObjectException, InvalidRelativePathException, InvalidErrorCodeException, InvalidResponseCodeException, InvalidArgumentException, InvalidRequiredProtocolException, NoSuchOriginException, TooManyOriginsException, TooManyOriginGroupsPerDistributionException, TooManyCacheBehaviorsException, TooManyCookieNamesInWhiteListException, InvalidForwardCookiesException, TooManyHeadersInForwardedValuesException, InvalidHeadersForS3OriginException, InconsistentQuantitiesException, TooManyCertificatesException, InvalidLocationCodeException, InvalidGeoRestrictionParameterException, InvalidProtocolSettingsException, InvalidTtlOrderException, InvalidWebAclIdException, TooManyOriginCustomHeadersException, InvalidTaggingException, TooManyQueryStringParametersException, InvalidQueryStringParametersException, TooManyDistributionsWithLambdaAssociationsException, TooManyDistributionsWithSingleFunctionArnException, TooManyLambdaFunctionAssociationsException, InvalidLambdaFunctionAssociationException, TooManyDistributionsWithFunctionAssociationsException, TooManyFunctionAssociationsException, InvalidFunctionAssociationException, InvalidOriginReadTimeoutException, InvalidOriginKeepaliveTimeoutException, NoSuchFieldLevelEncryptionConfigException, IllegalFieldLevelEncryptionConfigAssociationWithCacheBehaviorException, TooManyDistributionsAssociatedToFieldLevelEncryptionConfigException, NoSuchCachePolicyException, TooManyDistributionsAssociatedToCachePolicyException, NoSuchOriginRequestPolicyException, TooManyDistributionsAssociatedToOriginRequestPolicyException, TooManyDistributionsAssociatedToKeyGroupException, TooManyKeyGroupsAssociatedToDistributionException, TrustedKeyGroupDoesNotExistException, NoSuchRealtimeLogConfigException, RealtimeLogConfigOwnerMismatchException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the CreateDistributionWithTags operation returned by the service. * @throws CnameAlreadyExistsException * The CNAME specified is already defined for CloudFront. * @throws DistributionAlreadyExistsException * The caller reference you attempted to create the distribution with is associated with another * distribution. * @throws InvalidOriginException * The Amazon S3 origin server specified does not refer to a valid Amazon S3 bucket. * @throws InvalidOriginAccessIdentityException * The origin access identity is not valid or doesn't exist. * @throws AccessDeniedException * Access denied. * @throws TooManyTrustedSignersException * Your request contains more trusted signers than are allowed per distribution. * @throws TrustedSignerDoesNotExistException * One or more of your trusted signers don't exist. * @throws InvalidViewerCertificateException * A viewer certificate specified is not valid. * @throws InvalidMinimumProtocolVersionException * The minimum protocol version specified is not valid. * @throws MissingBodyException * This operation requires a body. Ensure that the body is present and the Content-Type header * is set. * @throws TooManyDistributionCnamEsException * Your request contains more CNAMEs than are allowed per distribution. * @throws TooManyDistributionsException * Processing your request would cause you to exceed the maximum number of distributions allowed. * @throws InvalidDefaultRootObjectException * The default root object file name is too big or contains an invalid character. * @throws InvalidRelativePathException * The relative path is too big, is not URL-encoded, or does not begin with a slash (/). * @throws InvalidErrorCodeException * An invalid error code was specified. * @throws InvalidResponseCodeException * A response code is not valid. * @throws InvalidArgumentException * An argument is invalid. * @throws 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. * @throws NoSuchOriginException * No origin exists with the specified Origin Id. * @throws TooManyOriginsException * You cannot create more origins for the distribution. * @throws TooManyOriginGroupsPerDistributionException * Processing your request would cause you to exceed the maximum number of origin groups allowed. * @throws TooManyCacheBehaviorsException * You cannot create more cache behaviors for the distribution. * @throws TooManyCookieNamesInWhiteListException * Your request contains more cookie names in the whitelist than are allowed per cache behavior. * @throws 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. * @throws TooManyHeadersInForwardedValuesException * Your request contains too many headers in forwarded values. * @throws InvalidHeadersForS3OriginException * The headers specified are not valid for an Amazon S3 origin. * @throws InconsistentQuantitiesException * The value of Quantity and the size of Items don't match. * @throws TooManyCertificatesException * You cannot create anymore custom SSL/TLS certificates. * @throws InvalidLocationCodeException * The location code specified is not valid. * @throws InvalidGeoRestrictionParameterException * The specified geo restriction parameter is not valid. * @throws InvalidProtocolSettingsException * You cannot specify SSLv3 as the minimum protocol version if you only want to support only clients that * support Server Name Indication (SNI). * @throws InvalidTtlOrderException * The TTL order specified is not valid. * @throws InvalidWebAclIdException * A web ACL ID specified is not valid. To specify a web ACL created using the latest version of AWS 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 AWS WAF Classic, use the ACL ID, for example * 473e64fd-f30b-4765-81a0-62ad96dd167a. * @throws TooManyOriginCustomHeadersException * Your request contains too many origin custom headers. * @throws InvalidTaggingException * The tagging specified is not valid. * @throws TooManyQueryStringParametersException * Your request contains too many query string parameters. * @throws InvalidQueryStringParametersException * The query string parameters specified are not valid. * @throws TooManyDistributionsWithLambdaAssociationsException * Processing your request would cause the maximum number of distributions with Lambda function associations * per owner to be exceeded. * @throws TooManyDistributionsWithSingleFunctionArnException * The maximum number of distributions have been associated with the specified Lambda function. * @throws TooManyLambdaFunctionAssociationsException * Your request contains more Lambda function associations than are allowed per distribution. * @throws InvalidLambdaFunctionAssociationException * The specified Lambda function association is invalid. * @throws 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. * @throws 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. * @throws InvalidFunctionAssociationException * A CloudFront function association is invalid. * @throws InvalidOriginReadTimeoutException * The read timeout specified for the origin is not valid. * @throws InvalidOriginKeepaliveTimeoutException * The keep alive timeout specified for the origin is not valid. * @throws NoSuchFieldLevelEncryptionConfigException * The specified configuration for field-level encryption doesn't exist. * @throws IllegalFieldLevelEncryptionConfigAssociationWithCacheBehaviorException * The specified configuration for field-level encryption can't be associated with the specified cache * behavior. * @throws TooManyDistributionsAssociatedToFieldLevelEncryptionConfigException * The maximum number of distributions have been associated with the specified configuration for field-level * encryption. * @throws NoSuchCachePolicyException * The cache policy does not exist. * @throws 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. * @throws NoSuchOriginRequestPolicyException * The origin request policy does not exist. * @throws 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. * @throws 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. * @throws 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. * @throws TrustedKeyGroupDoesNotExistException * The specified key group does not exist. * @throws NoSuchRealtimeLogConfigException * The real-time log configuration does not exist. * @throws RealtimeLogConfigOwnerMismatchException * The specified real-time log configuration belongs to a different AWS account. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.CreateDistributionWithTags * @see AWS API Documentation */ default CreateDistributionWithTagsResponse createDistributionWithTags( Consumer createDistributionWithTagsRequest) throws CnameAlreadyExistsException, DistributionAlreadyExistsException, InvalidOriginException, InvalidOriginAccessIdentityException, AccessDeniedException, TooManyTrustedSignersException, TrustedSignerDoesNotExistException, InvalidViewerCertificateException, InvalidMinimumProtocolVersionException, MissingBodyException, TooManyDistributionCnamEsException, TooManyDistributionsException, InvalidDefaultRootObjectException, InvalidRelativePathException, InvalidErrorCodeException, InvalidResponseCodeException, InvalidArgumentException, InvalidRequiredProtocolException, NoSuchOriginException, TooManyOriginsException, TooManyOriginGroupsPerDistributionException, TooManyCacheBehaviorsException, TooManyCookieNamesInWhiteListException, InvalidForwardCookiesException, TooManyHeadersInForwardedValuesException, InvalidHeadersForS3OriginException, InconsistentQuantitiesException, TooManyCertificatesException, InvalidLocationCodeException, InvalidGeoRestrictionParameterException, InvalidProtocolSettingsException, InvalidTtlOrderException, InvalidWebAclIdException, TooManyOriginCustomHeadersException, InvalidTaggingException, TooManyQueryStringParametersException, InvalidQueryStringParametersException, TooManyDistributionsWithLambdaAssociationsException, TooManyDistributionsWithSingleFunctionArnException, TooManyLambdaFunctionAssociationsException, InvalidLambdaFunctionAssociationException, TooManyDistributionsWithFunctionAssociationsException, TooManyFunctionAssociationsException, InvalidFunctionAssociationException, InvalidOriginReadTimeoutException, InvalidOriginKeepaliveTimeoutException, NoSuchFieldLevelEncryptionConfigException, IllegalFieldLevelEncryptionConfigAssociationWithCacheBehaviorException, TooManyDistributionsAssociatedToFieldLevelEncryptionConfigException, NoSuchCachePolicyException, TooManyDistributionsAssociatedToCachePolicyException, NoSuchOriginRequestPolicyException, TooManyDistributionsAssociatedToOriginRequestPolicyException, TooManyDistributionsAssociatedToKeyGroupException, TooManyKeyGroupsAssociatedToDistributionException, TrustedKeyGroupDoesNotExistException, NoSuchRealtimeLogConfigException, RealtimeLogConfigOwnerMismatchException, AwsServiceException, SdkClientException, CloudFrontException { return createDistributionWithTags(CreateDistributionWithTagsRequest.builder() .applyMutation(createDistributionWithTagsRequest).build()); } /** *

* Create a new field-level encryption configuration. *

* * @param createFieldLevelEncryptionConfigRequest * @return Result of the CreateFieldLevelEncryptionConfig operation returned by the service. * @throws InconsistentQuantitiesException * The value of Quantity and the size of Items don't match. * @throws InvalidArgumentException * An argument is invalid. * @throws NoSuchFieldLevelEncryptionProfileException * The specified profile for field-level encryption doesn't exist. * @throws FieldLevelEncryptionConfigAlreadyExistsException * The specified configuration for field-level encryption already exists. * @throws TooManyFieldLevelEncryptionConfigsException * The maximum number of configurations for field-level encryption have been created. * @throws TooManyFieldLevelEncryptionQueryArgProfilesException * The maximum number of query arg profiles for field-level encryption have been created. * @throws TooManyFieldLevelEncryptionContentTypeProfilesException * The maximum number of content type profiles for field-level encryption have been created. * @throws QueryArgProfileEmptyException * No profile specified for the field-level encryption query argument. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.CreateFieldLevelEncryptionConfig * @see AWS API Documentation */ default CreateFieldLevelEncryptionConfigResponse createFieldLevelEncryptionConfig( CreateFieldLevelEncryptionConfigRequest createFieldLevelEncryptionConfigRequest) throws InconsistentQuantitiesException, InvalidArgumentException, NoSuchFieldLevelEncryptionProfileException, FieldLevelEncryptionConfigAlreadyExistsException, TooManyFieldLevelEncryptionConfigsException, TooManyFieldLevelEncryptionQueryArgProfilesException, TooManyFieldLevelEncryptionContentTypeProfilesException, QueryArgProfileEmptyException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the CreateFieldLevelEncryptionConfig operation returned by the service. * @throws InconsistentQuantitiesException * The value of Quantity and the size of Items don't match. * @throws InvalidArgumentException * An argument is invalid. * @throws NoSuchFieldLevelEncryptionProfileException * The specified profile for field-level encryption doesn't exist. * @throws FieldLevelEncryptionConfigAlreadyExistsException * The specified configuration for field-level encryption already exists. * @throws TooManyFieldLevelEncryptionConfigsException * The maximum number of configurations for field-level encryption have been created. * @throws TooManyFieldLevelEncryptionQueryArgProfilesException * The maximum number of query arg profiles for field-level encryption have been created. * @throws TooManyFieldLevelEncryptionContentTypeProfilesException * The maximum number of content type profiles for field-level encryption have been created. * @throws QueryArgProfileEmptyException * No profile specified for the field-level encryption query argument. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.CreateFieldLevelEncryptionConfig * @see AWS API Documentation */ default CreateFieldLevelEncryptionConfigResponse createFieldLevelEncryptionConfig( Consumer createFieldLevelEncryptionConfigRequest) throws InconsistentQuantitiesException, InvalidArgumentException, NoSuchFieldLevelEncryptionProfileException, FieldLevelEncryptionConfigAlreadyExistsException, TooManyFieldLevelEncryptionConfigsException, TooManyFieldLevelEncryptionQueryArgProfilesException, TooManyFieldLevelEncryptionContentTypeProfilesException, QueryArgProfileEmptyException, AwsServiceException, SdkClientException, CloudFrontException { return createFieldLevelEncryptionConfig(CreateFieldLevelEncryptionConfigRequest.builder() .applyMutation(createFieldLevelEncryptionConfigRequest).build()); } /** *

* Create a field-level encryption profile. *

* * @param createFieldLevelEncryptionProfileRequest * @return Result of the CreateFieldLevelEncryptionProfile operation returned by the service. * @throws InconsistentQuantitiesException * The value of Quantity and the size of Items don't match. * @throws InvalidArgumentException * An argument is invalid. * @throws NoSuchPublicKeyException * The specified public key doesn't exist. * @throws FieldLevelEncryptionProfileAlreadyExistsException * The specified profile for field-level encryption already exists. * @throws FieldLevelEncryptionProfileSizeExceededException * The maximum size of a profile for field-level encryption was exceeded. * @throws TooManyFieldLevelEncryptionProfilesException * The maximum number of profiles for field-level encryption have been created. * @throws TooManyFieldLevelEncryptionEncryptionEntitiesException * The maximum number of encryption entities for field-level encryption have been created. * @throws TooManyFieldLevelEncryptionFieldPatternsException * The maximum number of field patterns for field-level encryption have been created. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.CreateFieldLevelEncryptionProfile * @see AWS API Documentation */ default CreateFieldLevelEncryptionProfileResponse createFieldLevelEncryptionProfile( CreateFieldLevelEncryptionProfileRequest createFieldLevelEncryptionProfileRequest) throws InconsistentQuantitiesException, InvalidArgumentException, NoSuchPublicKeyException, FieldLevelEncryptionProfileAlreadyExistsException, FieldLevelEncryptionProfileSizeExceededException, TooManyFieldLevelEncryptionProfilesException, TooManyFieldLevelEncryptionEncryptionEntitiesException, TooManyFieldLevelEncryptionFieldPatternsException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the CreateFieldLevelEncryptionProfile operation returned by the service. * @throws InconsistentQuantitiesException * The value of Quantity and the size of Items don't match. * @throws InvalidArgumentException * An argument is invalid. * @throws NoSuchPublicKeyException * The specified public key doesn't exist. * @throws FieldLevelEncryptionProfileAlreadyExistsException * The specified profile for field-level encryption already exists. * @throws FieldLevelEncryptionProfileSizeExceededException * The maximum size of a profile for field-level encryption was exceeded. * @throws TooManyFieldLevelEncryptionProfilesException * The maximum number of profiles for field-level encryption have been created. * @throws TooManyFieldLevelEncryptionEncryptionEntitiesException * The maximum number of encryption entities for field-level encryption have been created. * @throws TooManyFieldLevelEncryptionFieldPatternsException * The maximum number of field patterns for field-level encryption have been created. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.CreateFieldLevelEncryptionProfile * @see AWS API Documentation */ default CreateFieldLevelEncryptionProfileResponse createFieldLevelEncryptionProfile( Consumer createFieldLevelEncryptionProfileRequest) throws InconsistentQuantitiesException, InvalidArgumentException, NoSuchPublicKeyException, FieldLevelEncryptionProfileAlreadyExistsException, FieldLevelEncryptionProfileSizeExceededException, TooManyFieldLevelEncryptionProfilesException, TooManyFieldLevelEncryptionEncryptionEntitiesException, TooManyFieldLevelEncryptionFieldPatternsException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the CreateFunction operation returned by the service. * @throws TooManyFunctionsException * You have reached the maximum number of CloudFront functions for this AWS account. For more information, * see Quotas * (formerly known as limits) in the Amazon CloudFront Developer Guide. * @throws FunctionAlreadyExistsException * A function with the same name already exists in this AWS account. To create a function, you must provide * a unique name. To update an existing function, use UpdateFunction. * @throws FunctionSizeLimitExceededException * The function is too large. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide. * @throws InvalidArgumentException * An argument is invalid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.CreateFunction * @see AWS API * Documentation */ default CreateFunctionResponse createFunction(CreateFunctionRequest createFunctionRequest) throws TooManyFunctionsException, FunctionAlreadyExistsException, FunctionSizeLimitExceededException, InvalidArgumentException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the CreateFunction operation returned by the service. * @throws TooManyFunctionsException * You have reached the maximum number of CloudFront functions for this AWS account. For more information, * see Quotas * (formerly known as limits) in the Amazon CloudFront Developer Guide. * @throws FunctionAlreadyExistsException * A function with the same name already exists in this AWS account. To create a function, you must provide * a unique name. To update an existing function, use UpdateFunction. * @throws FunctionSizeLimitExceededException * The function is too large. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide. * @throws InvalidArgumentException * An argument is invalid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.CreateFunction * @see AWS API * Documentation */ default CreateFunctionResponse createFunction(Consumer createFunctionRequest) throws TooManyFunctionsException, FunctionAlreadyExistsException, FunctionSizeLimitExceededException, InvalidArgumentException, AwsServiceException, SdkClientException, CloudFrontException { return createFunction(CreateFunctionRequest.builder().applyMutation(createFunctionRequest).build()); } /** *

* Create a new invalidation. *

* * @param createInvalidationRequest * The request to create an invalidation. * @return Result of the CreateInvalidation operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws MissingBodyException * This operation requires a body. Ensure that the body is present and the Content-Type header * is set. * @throws InvalidArgumentException * An argument is invalid. * @throws NoSuchDistributionException * The specified distribution does not exist. * @throws BatchTooLargeException * Invalidation batch specified is too large. * @throws TooManyInvalidationsInProgressException * You have exceeded the maximum number of allowable InProgress invalidation batch requests, or invalidation * objects. * @throws InconsistentQuantitiesException * The value of Quantity and the size of Items don't match. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.CreateInvalidation * @see AWS * API Documentation */ default CreateInvalidationResponse createInvalidation(CreateInvalidationRequest createInvalidationRequest) throws AccessDeniedException, MissingBodyException, InvalidArgumentException, NoSuchDistributionException, BatchTooLargeException, TooManyInvalidationsInProgressException, InconsistentQuantitiesException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the CreateInvalidation operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws MissingBodyException * This operation requires a body. Ensure that the body is present and the Content-Type header * is set. * @throws InvalidArgumentException * An argument is invalid. * @throws NoSuchDistributionException * The specified distribution does not exist. * @throws BatchTooLargeException * Invalidation batch specified is too large. * @throws TooManyInvalidationsInProgressException * You have exceeded the maximum number of allowable InProgress invalidation batch requests, or invalidation * objects. * @throws InconsistentQuantitiesException * The value of Quantity and the size of Items don't match. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.CreateInvalidation * @see AWS * API Documentation */ default CreateInvalidationResponse createInvalidation(Consumer createInvalidationRequest) throws AccessDeniedException, MissingBodyException, InvalidArgumentException, NoSuchDistributionException, BatchTooLargeException, TooManyInvalidationsInProgressException, InconsistentQuantitiesException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the CreateKeyGroup operation returned by the service. * @throws InvalidArgumentException * An argument is invalid. * @throws KeyGroupAlreadyExistsException * A key group with this name already exists. You must provide a unique name. To modify an existing key * group, use UpdateKeyGroup. * @throws TooManyKeyGroupsException * You have reached the maximum number of key groups for this AWS account. For more information, see Quotas * (formerly known as limits) in the Amazon CloudFront Developer Guide. * @throws 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. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.CreateKeyGroup * @see AWS API * Documentation */ default CreateKeyGroupResponse createKeyGroup(CreateKeyGroupRequest createKeyGroupRequest) throws InvalidArgumentException, KeyGroupAlreadyExistsException, TooManyKeyGroupsException, TooManyPublicKeysInKeyGroupException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the CreateKeyGroup operation returned by the service. * @throws InvalidArgumentException * An argument is invalid. * @throws KeyGroupAlreadyExistsException * A key group with this name already exists. You must provide a unique name. To modify an existing key * group, use UpdateKeyGroup. * @throws TooManyKeyGroupsException * You have reached the maximum number of key groups for this AWS account. For more information, see Quotas * (formerly known as limits) in the Amazon CloudFront Developer Guide. * @throws 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. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.CreateKeyGroup * @see AWS API * Documentation */ default CreateKeyGroupResponse createKeyGroup(Consumer createKeyGroupRequest) throws InvalidArgumentException, KeyGroupAlreadyExistsException, TooManyKeyGroupsException, TooManyPublicKeysInKeyGroupException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the CreateMonitoringSubscription operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws NoSuchDistributionException * The specified distribution does not exist. * @throws UnsupportedOperationException * This operation is not supported in this region. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.CreateMonitoringSubscription * @see AWS API Documentation */ default CreateMonitoringSubscriptionResponse createMonitoringSubscription( CreateMonitoringSubscriptionRequest createMonitoringSubscriptionRequest) throws AccessDeniedException, NoSuchDistributionException, software.amazon.awssdk.services.cloudfront.model.UnsupportedOperationException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the CreateMonitoringSubscription operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws NoSuchDistributionException * The specified distribution does not exist. * @throws UnsupportedOperationException * This operation is not supported in this region. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.CreateMonitoringSubscription * @see AWS API Documentation */ default CreateMonitoringSubscriptionResponse createMonitoringSubscription( Consumer createMonitoringSubscriptionRequest) throws AccessDeniedException, NoSuchDistributionException, software.amazon.awssdk.services.cloudfront.model.UnsupportedOperationException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the CreateOriginRequestPolicy operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws InconsistentQuantitiesException * The value of Quantity and the size of Items don't match. * @throws InvalidArgumentException * An argument is invalid. * @throws 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. * @throws TooManyOriginRequestPoliciesException * You have reached the maximum number of origin request policies for this AWS account. For more * information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide. * @throws 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. * @throws 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. * @throws 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. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.CreateOriginRequestPolicy * @see AWS API Documentation */ default CreateOriginRequestPolicyResponse createOriginRequestPolicy( CreateOriginRequestPolicyRequest createOriginRequestPolicyRequest) throws AccessDeniedException, InconsistentQuantitiesException, InvalidArgumentException, OriginRequestPolicyAlreadyExistsException, TooManyOriginRequestPoliciesException, TooManyHeadersInOriginRequestPolicyException, TooManyCookiesInOriginRequestPolicyException, TooManyQueryStringsInOriginRequestPolicyException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the CreateOriginRequestPolicy operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws InconsistentQuantitiesException * The value of Quantity and the size of Items don't match. * @throws InvalidArgumentException * An argument is invalid. * @throws 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. * @throws TooManyOriginRequestPoliciesException * You have reached the maximum number of origin request policies for this AWS account. For more * information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide. * @throws 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. * @throws 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. * @throws 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. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.CreateOriginRequestPolicy * @see AWS API Documentation */ default CreateOriginRequestPolicyResponse createOriginRequestPolicy( Consumer createOriginRequestPolicyRequest) throws AccessDeniedException, InconsistentQuantitiesException, InvalidArgumentException, OriginRequestPolicyAlreadyExistsException, TooManyOriginRequestPoliciesException, TooManyHeadersInOriginRequestPolicyException, TooManyCookiesInOriginRequestPolicyException, TooManyQueryStringsInOriginRequestPolicyException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the CreatePublicKey operation returned by the service. * @throws PublicKeyAlreadyExistsException * The specified public key already exists. * @throws InvalidArgumentException * An argument is invalid. * @throws 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. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.CreatePublicKey * @see AWS * API Documentation */ default CreatePublicKeyResponse createPublicKey(CreatePublicKeyRequest createPublicKeyRequest) throws PublicKeyAlreadyExistsException, InvalidArgumentException, TooManyPublicKeysException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the CreatePublicKey operation returned by the service. * @throws PublicKeyAlreadyExistsException * The specified public key already exists. * @throws InvalidArgumentException * An argument is invalid. * @throws 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. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.CreatePublicKey * @see AWS * API Documentation */ default CreatePublicKeyResponse createPublicKey(Consumer createPublicKeyRequest) throws PublicKeyAlreadyExistsException, InvalidArgumentException, TooManyPublicKeysException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the CreateRealtimeLogConfig operation returned by the service. * @throws 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. * @throws TooManyRealtimeLogConfigsException * You have reached the maximum number of real-time log configurations for this AWS account. For more * information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide. * @throws InvalidArgumentException * An argument is invalid. * @throws AccessDeniedException * Access denied. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.CreateRealtimeLogConfig * @see AWS API Documentation */ default CreateRealtimeLogConfigResponse createRealtimeLogConfig(CreateRealtimeLogConfigRequest createRealtimeLogConfigRequest) throws RealtimeLogConfigAlreadyExistsException, TooManyRealtimeLogConfigsException, InvalidArgumentException, AccessDeniedException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the CreateRealtimeLogConfig operation returned by the service. * @throws 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. * @throws TooManyRealtimeLogConfigsException * You have reached the maximum number of real-time log configurations for this AWS account. For more * information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide. * @throws InvalidArgumentException * An argument is invalid. * @throws AccessDeniedException * Access denied. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.CreateRealtimeLogConfig * @see AWS API Documentation */ default CreateRealtimeLogConfigResponse createRealtimeLogConfig( Consumer createRealtimeLogConfigRequest) throws RealtimeLogConfigAlreadyExistsException, TooManyRealtimeLogConfigsException, InvalidArgumentException, AccessDeniedException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the CreateStreamingDistribution operation returned by the service. * @throws CnameAlreadyExistsException * The CNAME specified is already defined for CloudFront. * @throws StreamingDistributionAlreadyExistsException * The caller reference you attempted to create the streaming distribution with is associated with another * distribution * @throws InvalidOriginException * The Amazon S3 origin server specified does not refer to a valid Amazon S3 bucket. * @throws InvalidOriginAccessIdentityException * The origin access identity is not valid or doesn't exist. * @throws AccessDeniedException * Access denied. * @throws TooManyTrustedSignersException * Your request contains more trusted signers than are allowed per distribution. * @throws TrustedSignerDoesNotExistException * One or more of your trusted signers don't exist. * @throws MissingBodyException * This operation requires a body. Ensure that the body is present and the Content-Type header * is set. * @throws TooManyStreamingDistributionCnamEsException * Your request contains more CNAMEs than are allowed per distribution. * @throws TooManyStreamingDistributionsException * Processing your request would cause you to exceed the maximum number of streaming distributions allowed. * @throws InvalidArgumentException * An argument is invalid. * @throws InconsistentQuantitiesException * The value of Quantity and the size of Items don't match. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.CreateStreamingDistribution * @see AWS API Documentation */ default CreateStreamingDistributionResponse createStreamingDistribution( CreateStreamingDistributionRequest createStreamingDistributionRequest) throws CnameAlreadyExistsException, StreamingDistributionAlreadyExistsException, InvalidOriginException, InvalidOriginAccessIdentityException, AccessDeniedException, TooManyTrustedSignersException, TrustedSignerDoesNotExistException, MissingBodyException, TooManyStreamingDistributionCnamEsException, TooManyStreamingDistributionsException, InvalidArgumentException, InconsistentQuantitiesException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the CreateStreamingDistribution operation returned by the service. * @throws CnameAlreadyExistsException * The CNAME specified is already defined for CloudFront. * @throws StreamingDistributionAlreadyExistsException * The caller reference you attempted to create the streaming distribution with is associated with another * distribution * @throws InvalidOriginException * The Amazon S3 origin server specified does not refer to a valid Amazon S3 bucket. * @throws InvalidOriginAccessIdentityException * The origin access identity is not valid or doesn't exist. * @throws AccessDeniedException * Access denied. * @throws TooManyTrustedSignersException * Your request contains more trusted signers than are allowed per distribution. * @throws TrustedSignerDoesNotExistException * One or more of your trusted signers don't exist. * @throws MissingBodyException * This operation requires a body. Ensure that the body is present and the Content-Type header * is set. * @throws TooManyStreamingDistributionCnamEsException * Your request contains more CNAMEs than are allowed per distribution. * @throws TooManyStreamingDistributionsException * Processing your request would cause you to exceed the maximum number of streaming distributions allowed. * @throws InvalidArgumentException * An argument is invalid. * @throws InconsistentQuantitiesException * The value of Quantity and the size of Items don't match. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.CreateStreamingDistribution * @see AWS API Documentation */ default CreateStreamingDistributionResponse createStreamingDistribution( Consumer createStreamingDistributionRequest) throws CnameAlreadyExistsException, StreamingDistributionAlreadyExistsException, InvalidOriginException, InvalidOriginAccessIdentityException, AccessDeniedException, TooManyTrustedSignersException, TrustedSignerDoesNotExistException, MissingBodyException, TooManyStreamingDistributionCnamEsException, TooManyStreamingDistributionsException, InvalidArgumentException, InconsistentQuantitiesException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the CreateStreamingDistributionWithTags operation returned by the service. * @throws CnameAlreadyExistsException * The CNAME specified is already defined for CloudFront. * @throws StreamingDistributionAlreadyExistsException * The caller reference you attempted to create the streaming distribution with is associated with another * distribution * @throws InvalidOriginException * The Amazon S3 origin server specified does not refer to a valid Amazon S3 bucket. * @throws InvalidOriginAccessIdentityException * The origin access identity is not valid or doesn't exist. * @throws AccessDeniedException * Access denied. * @throws TooManyTrustedSignersException * Your request contains more trusted signers than are allowed per distribution. * @throws TrustedSignerDoesNotExistException * One or more of your trusted signers don't exist. * @throws MissingBodyException * This operation requires a body. Ensure that the body is present and the Content-Type header * is set. * @throws TooManyStreamingDistributionCnamEsException * Your request contains more CNAMEs than are allowed per distribution. * @throws TooManyStreamingDistributionsException * Processing your request would cause you to exceed the maximum number of streaming distributions allowed. * @throws InvalidArgumentException * An argument is invalid. * @throws InconsistentQuantitiesException * The value of Quantity and the size of Items don't match. * @throws InvalidTaggingException * The tagging specified is not valid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.CreateStreamingDistributionWithTags * @see AWS API Documentation */ default CreateStreamingDistributionWithTagsResponse createStreamingDistributionWithTags( CreateStreamingDistributionWithTagsRequest createStreamingDistributionWithTagsRequest) throws CnameAlreadyExistsException, StreamingDistributionAlreadyExistsException, InvalidOriginException, InvalidOriginAccessIdentityException, AccessDeniedException, TooManyTrustedSignersException, TrustedSignerDoesNotExistException, MissingBodyException, TooManyStreamingDistributionCnamEsException, TooManyStreamingDistributionsException, InvalidArgumentException, InconsistentQuantitiesException, InvalidTaggingException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the CreateStreamingDistributionWithTags operation returned by the service. * @throws CnameAlreadyExistsException * The CNAME specified is already defined for CloudFront. * @throws StreamingDistributionAlreadyExistsException * The caller reference you attempted to create the streaming distribution with is associated with another * distribution * @throws InvalidOriginException * The Amazon S3 origin server specified does not refer to a valid Amazon S3 bucket. * @throws InvalidOriginAccessIdentityException * The origin access identity is not valid or doesn't exist. * @throws AccessDeniedException * Access denied. * @throws TooManyTrustedSignersException * Your request contains more trusted signers than are allowed per distribution. * @throws TrustedSignerDoesNotExistException * One or more of your trusted signers don't exist. * @throws MissingBodyException * This operation requires a body. Ensure that the body is present and the Content-Type header * is set. * @throws TooManyStreamingDistributionCnamEsException * Your request contains more CNAMEs than are allowed per distribution. * @throws TooManyStreamingDistributionsException * Processing your request would cause you to exceed the maximum number of streaming distributions allowed. * @throws InvalidArgumentException * An argument is invalid. * @throws InconsistentQuantitiesException * The value of Quantity and the size of Items don't match. * @throws InvalidTaggingException * The tagging specified is not valid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.CreateStreamingDistributionWithTags * @see AWS API Documentation */ default CreateStreamingDistributionWithTagsResponse createStreamingDistributionWithTags( Consumer createStreamingDistributionWithTagsRequest) throws CnameAlreadyExistsException, StreamingDistributionAlreadyExistsException, InvalidOriginException, InvalidOriginAccessIdentityException, AccessDeniedException, TooManyTrustedSignersException, TrustedSignerDoesNotExistException, MissingBodyException, TooManyStreamingDistributionCnamEsException, TooManyStreamingDistributionsException, InvalidArgumentException, InconsistentQuantitiesException, InvalidTaggingException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the DeleteCachePolicy operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws InvalidIfMatchVersionException * The If-Match version is missing or not valid. * @throws NoSuchCachePolicyException * The cache policy does not exist. * @throws PreconditionFailedException * The precondition in one or more of the request fields evaluated to false. * @throws IllegalDeleteException * You cannot delete a managed policy. * @throws CachePolicyInUseException * Cannot delete the cache policy because it is attached to one or more cache behaviors. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.DeleteCachePolicy * @see AWS * API Documentation */ default DeleteCachePolicyResponse deleteCachePolicy(DeleteCachePolicyRequest deleteCachePolicyRequest) throws AccessDeniedException, InvalidIfMatchVersionException, NoSuchCachePolicyException, PreconditionFailedException, IllegalDeleteException, CachePolicyInUseException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the DeleteCachePolicy operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws InvalidIfMatchVersionException * The If-Match version is missing or not valid. * @throws NoSuchCachePolicyException * The cache policy does not exist. * @throws PreconditionFailedException * The precondition in one or more of the request fields evaluated to false. * @throws IllegalDeleteException * You cannot delete a managed policy. * @throws CachePolicyInUseException * Cannot delete the cache policy because it is attached to one or more cache behaviors. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.DeleteCachePolicy * @see AWS * API Documentation */ default DeleteCachePolicyResponse deleteCachePolicy(Consumer deleteCachePolicyRequest) throws AccessDeniedException, InvalidIfMatchVersionException, NoSuchCachePolicyException, PreconditionFailedException, IllegalDeleteException, CachePolicyInUseException, AwsServiceException, SdkClientException, CloudFrontException { return deleteCachePolicy(DeleteCachePolicyRequest.builder().applyMutation(deleteCachePolicyRequest).build()); } /** *

* Delete an origin access identity. *

* * @param deleteCloudFrontOriginAccessIdentityRequest * Deletes a origin access identity. * @return Result of the DeleteCloudFrontOriginAccessIdentity operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws InvalidIfMatchVersionException * The If-Match version is missing or not valid. * @throws NoSuchCloudFrontOriginAccessIdentityException * The specified origin access identity does not exist. * @throws PreconditionFailedException * The precondition in one or more of the request fields evaluated to false. * @throws CloudFrontOriginAccessIdentityInUseException * The Origin Access Identity specified is already in use. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.DeleteCloudFrontOriginAccessIdentity * @see AWS API Documentation */ default DeleteCloudFrontOriginAccessIdentityResponse deleteCloudFrontOriginAccessIdentity( DeleteCloudFrontOriginAccessIdentityRequest deleteCloudFrontOriginAccessIdentityRequest) throws AccessDeniedException, InvalidIfMatchVersionException, NoSuchCloudFrontOriginAccessIdentityException, PreconditionFailedException, CloudFrontOriginAccessIdentityInUseException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the DeleteCloudFrontOriginAccessIdentity operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws InvalidIfMatchVersionException * The If-Match version is missing or not valid. * @throws NoSuchCloudFrontOriginAccessIdentityException * The specified origin access identity does not exist. * @throws PreconditionFailedException * The precondition in one or more of the request fields evaluated to false. * @throws CloudFrontOriginAccessIdentityInUseException * The Origin Access Identity specified is already in use. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.DeleteCloudFrontOriginAccessIdentity * @see AWS API Documentation */ default DeleteCloudFrontOriginAccessIdentityResponse deleteCloudFrontOriginAccessIdentity( Consumer deleteCloudFrontOriginAccessIdentityRequest) throws AccessDeniedException, InvalidIfMatchVersionException, NoSuchCloudFrontOriginAccessIdentityException, PreconditionFailedException, CloudFrontOriginAccessIdentityInUseException, AwsServiceException, SdkClientException, CloudFrontException { 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: *

*
    *
  1. *

    * Disable the web distribution *

    *
  2. *
  3. *

    * Submit a GET Distribution Config request to get the current configuration and the * Etag header for the distribution. *

    *
  4. *
  5. *

    * Update the XML document that was returned in the response to your GET Distribution Config * request to change the value of Enabled to false. *

    *
  6. *
  7. *

    * 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. *

    *
  8. *
  9. *

    * Review the response to the PUT Distribution Config request to confirm that the distribution * was successfully disabled. *

    *
  10. *
  11. *

    * Submit a GET Distribution request to confirm that your changes have propagated. When * propagation is complete, the value of Status is Deployed. *

    *
  12. *
  13. *

    * 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. *

    *
  14. *
  15. *

    * Review the response to your DELETE Distribution request to confirm that the distribution was * successfully deleted. *

    *
  16. *
*

* For information about deleting a distribution using the CloudFront console, see Deleting a Distribution in the Amazon CloudFront Developer Guide. * @return Result of the DeleteDistribution operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws DistributionNotDisabledException * The specified CloudFront distribution is not disabled. You must disable the distribution before you can * delete it. * @throws InvalidIfMatchVersionException * The If-Match version is missing or not valid. * @throws NoSuchDistributionException * The specified distribution does not exist. * @throws PreconditionFailedException * The precondition in one or more of the request fields evaluated to false. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.DeleteDistribution * @see AWS * API Documentation */ default DeleteDistributionResponse deleteDistribution(DeleteDistributionRequest deleteDistributionRequest) throws AccessDeniedException, DistributionNotDisabledException, InvalidIfMatchVersionException, NoSuchDistributionException, PreconditionFailedException, AwsServiceException, SdkClientException, CloudFrontException { 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: *

*
    *
  1. *

    * Disable the web distribution *

    *
  2. *
  3. *

    * Submit a GET Distribution Config request to get the current configuration and the * Etag header for the distribution. *

    *
  4. *
  5. *

    * Update the XML document that was returned in the response to your GET Distribution Config * request to change the value of Enabled to false. *

    *
  6. *
  7. *

    * 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. *

    *
  8. *
  9. *

    * Review the response to the PUT Distribution Config request to confirm that the distribution * was successfully disabled. *

    *
  10. *
  11. *

    * Submit a GET Distribution request to confirm that your changes have propagated. When * propagation is complete, the value of Status is Deployed. *

    *
  12. *
  13. *

    * 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. *

    *
  14. *
  15. *

    * Review the response to your DELETE Distribution request to confirm that the distribution was * successfully deleted. *

    *
  16. *
*

* For information about deleting a distribution using the CloudFront console, see Deleting a Distribution in the Amazon CloudFront Developer Guide. * @return Result of the DeleteDistribution operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws DistributionNotDisabledException * The specified CloudFront distribution is not disabled. You must disable the distribution before you can * delete it. * @throws InvalidIfMatchVersionException * The If-Match version is missing or not valid. * @throws NoSuchDistributionException * The specified distribution does not exist. * @throws PreconditionFailedException * The precondition in one or more of the request fields evaluated to false. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.DeleteDistribution * @see AWS * API Documentation */ default DeleteDistributionResponse deleteDistribution(Consumer deleteDistributionRequest) throws AccessDeniedException, DistributionNotDisabledException, InvalidIfMatchVersionException, NoSuchDistributionException, PreconditionFailedException, AwsServiceException, SdkClientException, CloudFrontException { return deleteDistribution(DeleteDistributionRequest.builder().applyMutation(deleteDistributionRequest).build()); } /** *

* Remove a field-level encryption configuration. *

* * @param deleteFieldLevelEncryptionConfigRequest * @return Result of the DeleteFieldLevelEncryptionConfig operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws InvalidIfMatchVersionException * The If-Match version is missing or not valid. * @throws NoSuchFieldLevelEncryptionConfigException * The specified configuration for field-level encryption doesn't exist. * @throws PreconditionFailedException * The precondition in one or more of the request fields evaluated to false. * @throws FieldLevelEncryptionConfigInUseException * The specified configuration for field-level encryption is in use. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.DeleteFieldLevelEncryptionConfig * @see AWS API Documentation */ default DeleteFieldLevelEncryptionConfigResponse deleteFieldLevelEncryptionConfig( DeleteFieldLevelEncryptionConfigRequest deleteFieldLevelEncryptionConfigRequest) throws AccessDeniedException, InvalidIfMatchVersionException, NoSuchFieldLevelEncryptionConfigException, PreconditionFailedException, FieldLevelEncryptionConfigInUseException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the DeleteFieldLevelEncryptionConfig operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws InvalidIfMatchVersionException * The If-Match version is missing or not valid. * @throws NoSuchFieldLevelEncryptionConfigException * The specified configuration for field-level encryption doesn't exist. * @throws PreconditionFailedException * The precondition in one or more of the request fields evaluated to false. * @throws FieldLevelEncryptionConfigInUseException * The specified configuration for field-level encryption is in use. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.DeleteFieldLevelEncryptionConfig * @see AWS API Documentation */ default DeleteFieldLevelEncryptionConfigResponse deleteFieldLevelEncryptionConfig( Consumer deleteFieldLevelEncryptionConfigRequest) throws AccessDeniedException, InvalidIfMatchVersionException, NoSuchFieldLevelEncryptionConfigException, PreconditionFailedException, FieldLevelEncryptionConfigInUseException, AwsServiceException, SdkClientException, CloudFrontException { return deleteFieldLevelEncryptionConfig(DeleteFieldLevelEncryptionConfigRequest.builder() .applyMutation(deleteFieldLevelEncryptionConfigRequest).build()); } /** *

* Remove a field-level encryption profile. *

* * @param deleteFieldLevelEncryptionProfileRequest * @return Result of the DeleteFieldLevelEncryptionProfile operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws InvalidIfMatchVersionException * The If-Match version is missing or not valid. * @throws NoSuchFieldLevelEncryptionProfileException * The specified profile for field-level encryption doesn't exist. * @throws PreconditionFailedException * The precondition in one or more of the request fields evaluated to false. * @throws FieldLevelEncryptionProfileInUseException * The specified profile for field-level encryption is in use. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.DeleteFieldLevelEncryptionProfile * @see AWS API Documentation */ default DeleteFieldLevelEncryptionProfileResponse deleteFieldLevelEncryptionProfile( DeleteFieldLevelEncryptionProfileRequest deleteFieldLevelEncryptionProfileRequest) throws AccessDeniedException, InvalidIfMatchVersionException, NoSuchFieldLevelEncryptionProfileException, PreconditionFailedException, FieldLevelEncryptionProfileInUseException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the DeleteFieldLevelEncryptionProfile operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws InvalidIfMatchVersionException * The If-Match version is missing or not valid. * @throws NoSuchFieldLevelEncryptionProfileException * The specified profile for field-level encryption doesn't exist. * @throws PreconditionFailedException * The precondition in one or more of the request fields evaluated to false. * @throws FieldLevelEncryptionProfileInUseException * The specified profile for field-level encryption is in use. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.DeleteFieldLevelEncryptionProfile * @see AWS API Documentation */ default DeleteFieldLevelEncryptionProfileResponse deleteFieldLevelEncryptionProfile( Consumer deleteFieldLevelEncryptionProfileRequest) throws AccessDeniedException, InvalidIfMatchVersionException, NoSuchFieldLevelEncryptionProfileException, PreconditionFailedException, FieldLevelEncryptionProfileInUseException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the DeleteFunction operation returned by the service. * @throws InvalidIfMatchVersionException * The If-Match version is missing or not valid. * @throws NoSuchFunctionExistsException * The function does not exist. * @throws FunctionInUseException * Cannot delete the function because it’s attached to one or more cache behaviors. * @throws PreconditionFailedException * The precondition in one or more of the request fields evaluated to false. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.DeleteFunction * @see AWS API * Documentation */ default DeleteFunctionResponse deleteFunction(DeleteFunctionRequest deleteFunctionRequest) throws InvalidIfMatchVersionException, NoSuchFunctionExistsException, FunctionInUseException, PreconditionFailedException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the DeleteFunction operation returned by the service. * @throws InvalidIfMatchVersionException * The If-Match version is missing or not valid. * @throws NoSuchFunctionExistsException * The function does not exist. * @throws FunctionInUseException * Cannot delete the function because it’s attached to one or more cache behaviors. * @throws PreconditionFailedException * The precondition in one or more of the request fields evaluated to false. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.DeleteFunction * @see AWS API * Documentation */ default DeleteFunctionResponse deleteFunction(Consumer deleteFunctionRequest) throws InvalidIfMatchVersionException, NoSuchFunctionExistsException, FunctionInUseException, PreconditionFailedException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the DeleteKeyGroup operation returned by the service. * @throws InvalidIfMatchVersionException * The If-Match version is missing or not valid. * @throws NoSuchResourceException * A resource that was specified is not valid. * @throws PreconditionFailedException * The precondition in one or more of the request fields evaluated to false. * @throws ResourceInUseException * Cannot delete this resource because it is in use. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.DeleteKeyGroup * @see AWS API * Documentation */ default DeleteKeyGroupResponse deleteKeyGroup(DeleteKeyGroupRequest deleteKeyGroupRequest) throws InvalidIfMatchVersionException, NoSuchResourceException, PreconditionFailedException, ResourceInUseException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the DeleteKeyGroup operation returned by the service. * @throws InvalidIfMatchVersionException * The If-Match version is missing or not valid. * @throws NoSuchResourceException * A resource that was specified is not valid. * @throws PreconditionFailedException * The precondition in one or more of the request fields evaluated to false. * @throws ResourceInUseException * Cannot delete this resource because it is in use. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.DeleteKeyGroup * @see AWS API * Documentation */ default DeleteKeyGroupResponse deleteKeyGroup(Consumer deleteKeyGroupRequest) throws InvalidIfMatchVersionException, NoSuchResourceException, PreconditionFailedException, ResourceInUseException, AwsServiceException, SdkClientException, CloudFrontException { return deleteKeyGroup(DeleteKeyGroupRequest.builder().applyMutation(deleteKeyGroupRequest).build()); } /** *

* Disables additional CloudWatch metrics for the specified CloudFront distribution. *

* * @param deleteMonitoringSubscriptionRequest * @return Result of the DeleteMonitoringSubscription operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws NoSuchDistributionException * The specified distribution does not exist. * @throws UnsupportedOperationException * This operation is not supported in this region. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.DeleteMonitoringSubscription * @see AWS API Documentation */ default DeleteMonitoringSubscriptionResponse deleteMonitoringSubscription( DeleteMonitoringSubscriptionRequest deleteMonitoringSubscriptionRequest) throws AccessDeniedException, NoSuchDistributionException, software.amazon.awssdk.services.cloudfront.model.UnsupportedOperationException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the DeleteMonitoringSubscription operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws NoSuchDistributionException * The specified distribution does not exist. * @throws UnsupportedOperationException * This operation is not supported in this region. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.DeleteMonitoringSubscription * @see AWS API Documentation */ default DeleteMonitoringSubscriptionResponse deleteMonitoringSubscription( Consumer deleteMonitoringSubscriptionRequest) throws AccessDeniedException, NoSuchDistributionException, software.amazon.awssdk.services.cloudfront.model.UnsupportedOperationException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the DeleteOriginRequestPolicy operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws InvalidIfMatchVersionException * The If-Match version is missing or not valid. * @throws NoSuchOriginRequestPolicyException * The origin request policy does not exist. * @throws PreconditionFailedException * The precondition in one or more of the request fields evaluated to false. * @throws IllegalDeleteException * You cannot delete a managed policy. * @throws OriginRequestPolicyInUseException * Cannot delete the origin request policy because it is attached to one or more cache behaviors. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.DeleteOriginRequestPolicy * @see AWS API Documentation */ default DeleteOriginRequestPolicyResponse deleteOriginRequestPolicy( DeleteOriginRequestPolicyRequest deleteOriginRequestPolicyRequest) throws AccessDeniedException, InvalidIfMatchVersionException, NoSuchOriginRequestPolicyException, PreconditionFailedException, IllegalDeleteException, OriginRequestPolicyInUseException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the DeleteOriginRequestPolicy operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws InvalidIfMatchVersionException * The If-Match version is missing or not valid. * @throws NoSuchOriginRequestPolicyException * The origin request policy does not exist. * @throws PreconditionFailedException * The precondition in one or more of the request fields evaluated to false. * @throws IllegalDeleteException * You cannot delete a managed policy. * @throws OriginRequestPolicyInUseException * Cannot delete the origin request policy because it is attached to one or more cache behaviors. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.DeleteOriginRequestPolicy * @see AWS API Documentation */ default DeleteOriginRequestPolicyResponse deleteOriginRequestPolicy( Consumer deleteOriginRequestPolicyRequest) throws AccessDeniedException, InvalidIfMatchVersionException, NoSuchOriginRequestPolicyException, PreconditionFailedException, IllegalDeleteException, OriginRequestPolicyInUseException, AwsServiceException, SdkClientException, CloudFrontException { return deleteOriginRequestPolicy(DeleteOriginRequestPolicyRequest.builder() .applyMutation(deleteOriginRequestPolicyRequest).build()); } /** *

* Remove a public key you previously added to CloudFront. *

* * @param deletePublicKeyRequest * @return Result of the DeletePublicKey operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws PublicKeyInUseException * The specified public key is in use. * @throws InvalidIfMatchVersionException * The If-Match version is missing or not valid. * @throws NoSuchPublicKeyException * The specified public key doesn't exist. * @throws PreconditionFailedException * The precondition in one or more of the request fields evaluated to false. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.DeletePublicKey * @see AWS * API Documentation */ default DeletePublicKeyResponse deletePublicKey(DeletePublicKeyRequest deletePublicKeyRequest) throws AccessDeniedException, PublicKeyInUseException, InvalidIfMatchVersionException, NoSuchPublicKeyException, PreconditionFailedException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the DeletePublicKey operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws PublicKeyInUseException * The specified public key is in use. * @throws InvalidIfMatchVersionException * The If-Match version is missing or not valid. * @throws NoSuchPublicKeyException * The specified public key doesn't exist. * @throws PreconditionFailedException * The precondition in one or more of the request fields evaluated to false. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.DeletePublicKey * @see AWS * API Documentation */ default DeletePublicKeyResponse deletePublicKey(Consumer deletePublicKeyRequest) throws AccessDeniedException, PublicKeyInUseException, InvalidIfMatchVersionException, NoSuchPublicKeyException, PreconditionFailedException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the DeleteRealtimeLogConfig operation returned by the service. * @throws NoSuchRealtimeLogConfigException * The real-time log configuration does not exist. * @throws RealtimeLogConfigInUseException * Cannot delete the real-time log configuration because it is attached to one or more cache behaviors. * @throws InvalidArgumentException * An argument is invalid. * @throws AccessDeniedException * Access denied. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.DeleteRealtimeLogConfig * @see AWS API Documentation */ default DeleteRealtimeLogConfigResponse deleteRealtimeLogConfig(DeleteRealtimeLogConfigRequest deleteRealtimeLogConfigRequest) throws NoSuchRealtimeLogConfigException, RealtimeLogConfigInUseException, InvalidArgumentException, AccessDeniedException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the DeleteRealtimeLogConfig operation returned by the service. * @throws NoSuchRealtimeLogConfigException * The real-time log configuration does not exist. * @throws RealtimeLogConfigInUseException * Cannot delete the real-time log configuration because it is attached to one or more cache behaviors. * @throws InvalidArgumentException * An argument is invalid. * @throws AccessDeniedException * Access denied. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.DeleteRealtimeLogConfig * @see AWS API Documentation */ default DeleteRealtimeLogConfigResponse deleteRealtimeLogConfig( Consumer deleteRealtimeLogConfigRequest) throws NoSuchRealtimeLogConfigException, RealtimeLogConfigInUseException, InvalidArgumentException, AccessDeniedException, AwsServiceException, SdkClientException, CloudFrontException { 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: *

*
    *
  1. *

    * Disable the RTMP distribution. *

    *
  2. *
  3. *

    * Submit a GET Streaming Distribution Config request to get the current configuration and the * Etag header for the distribution. *

    *
  4. *
  5. *

    * 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. *

    *
  6. *
  7. *

    * 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. *

    *
  8. *
  9. *

    * Review the response to the PUT Streaming Distribution Config request to confirm that the * distribution was successfully disabled. *

    *
  10. *
  11. *

    * Submit a GET Streaming Distribution Config request to confirm that your changes have propagated. * When propagation is complete, the value of Status is Deployed. *

    *
  12. *
  13. *

    * 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. *

    *
  14. *
  15. *

    * Review the response to your DELETE Streaming Distribution request to confirm that the distribution * was successfully deleted. *

    *
  16. *
*

* 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 Result of the DeleteStreamingDistribution operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws StreamingDistributionNotDisabledException * The specified CloudFront distribution is not disabled. You must disable the distribution before you can * delete it. * @throws InvalidIfMatchVersionException * The If-Match version is missing or not valid. * @throws NoSuchStreamingDistributionException * The specified streaming distribution does not exist. * @throws PreconditionFailedException * The precondition in one or more of the request fields evaluated to false. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.DeleteStreamingDistribution * @see AWS API Documentation */ default DeleteStreamingDistributionResponse deleteStreamingDistribution( DeleteStreamingDistributionRequest deleteStreamingDistributionRequest) throws AccessDeniedException, StreamingDistributionNotDisabledException, InvalidIfMatchVersionException, NoSuchStreamingDistributionException, PreconditionFailedException, AwsServiceException, SdkClientException, CloudFrontException { 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: *

*
    *
  1. *

    * Disable the RTMP distribution. *

    *
  2. *
  3. *

    * Submit a GET Streaming Distribution Config request to get the current configuration and the * Etag header for the distribution. *

    *
  4. *
  5. *

    * 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. *

    *
  6. *
  7. *

    * 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. *

    *
  8. *
  9. *

    * Review the response to the PUT Streaming Distribution Config request to confirm that the * distribution was successfully disabled. *

    *
  10. *
  11. *

    * Submit a GET Streaming Distribution Config request to confirm that your changes have propagated. * When propagation is complete, the value of Status is Deployed. *

    *
  12. *
  13. *

    * 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. *

    *
  14. *
  15. *

    * Review the response to your DELETE Streaming Distribution request to confirm that the distribution * was successfully deleted. *

    *
  16. *
*

* 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 Result of the DeleteStreamingDistribution operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws StreamingDistributionNotDisabledException * The specified CloudFront distribution is not disabled. You must disable the distribution before you can * delete it. * @throws InvalidIfMatchVersionException * The If-Match version is missing or not valid. * @throws NoSuchStreamingDistributionException * The specified streaming distribution does not exist. * @throws PreconditionFailedException * The precondition in one or more of the request fields evaluated to false. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.DeleteStreamingDistribution * @see AWS API Documentation */ default DeleteStreamingDistributionResponse deleteStreamingDistribution( Consumer deleteStreamingDistributionRequest) throws AccessDeniedException, StreamingDistributionNotDisabledException, InvalidIfMatchVersionException, NoSuchStreamingDistributionException, PreconditionFailedException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the DescribeFunction operation returned by the service. * @throws NoSuchFunctionExistsException * The function does not exist. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.DescribeFunction * @see AWS * API Documentation */ default DescribeFunctionResponse describeFunction(DescribeFunctionRequest describeFunctionRequest) throws NoSuchFunctionExistsException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the DescribeFunction operation returned by the service. * @throws NoSuchFunctionExistsException * The function does not exist. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.DescribeFunction * @see AWS * API Documentation */ default DescribeFunctionResponse describeFunction(Consumer describeFunctionRequest) throws NoSuchFunctionExistsException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the GetCachePolicy operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws NoSuchCachePolicyException * The cache policy does not exist. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.GetCachePolicy * @see AWS API * Documentation */ default GetCachePolicyResponse getCachePolicy(GetCachePolicyRequest getCachePolicyRequest) throws AccessDeniedException, NoSuchCachePolicyException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the GetCachePolicy operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws NoSuchCachePolicyException * The cache policy does not exist. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.GetCachePolicy * @see AWS API * Documentation */ default GetCachePolicyResponse getCachePolicy(Consumer getCachePolicyRequest) throws AccessDeniedException, NoSuchCachePolicyException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the GetCachePolicyConfig operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws NoSuchCachePolicyException * The cache policy does not exist. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.GetCachePolicyConfig * @see AWS API Documentation */ default GetCachePolicyConfigResponse getCachePolicyConfig(GetCachePolicyConfigRequest getCachePolicyConfigRequest) throws AccessDeniedException, NoSuchCachePolicyException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the GetCachePolicyConfig operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws NoSuchCachePolicyException * The cache policy does not exist. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.GetCachePolicyConfig * @see AWS API Documentation */ default GetCachePolicyConfigResponse getCachePolicyConfig( Consumer getCachePolicyConfigRequest) throws AccessDeniedException, NoSuchCachePolicyException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the GetCloudFrontOriginAccessIdentity operation returned by the service. * @throws NoSuchCloudFrontOriginAccessIdentityException * The specified origin access identity does not exist. * @throws AccessDeniedException * Access denied. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.GetCloudFrontOriginAccessIdentity * @see AWS API Documentation */ default GetCloudFrontOriginAccessIdentityResponse getCloudFrontOriginAccessIdentity( GetCloudFrontOriginAccessIdentityRequest getCloudFrontOriginAccessIdentityRequest) throws NoSuchCloudFrontOriginAccessIdentityException, AccessDeniedException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the GetCloudFrontOriginAccessIdentity operation returned by the service. * @throws NoSuchCloudFrontOriginAccessIdentityException * The specified origin access identity does not exist. * @throws AccessDeniedException * Access denied. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.GetCloudFrontOriginAccessIdentity * @see AWS API Documentation */ default GetCloudFrontOriginAccessIdentityResponse getCloudFrontOriginAccessIdentity( Consumer getCloudFrontOriginAccessIdentityRequest) throws NoSuchCloudFrontOriginAccessIdentityException, AccessDeniedException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the GetCloudFrontOriginAccessIdentityConfig operation returned by the service. * @throws NoSuchCloudFrontOriginAccessIdentityException * The specified origin access identity does not exist. * @throws AccessDeniedException * Access denied. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.GetCloudFrontOriginAccessIdentityConfig * @see AWS API Documentation */ default GetCloudFrontOriginAccessIdentityConfigResponse getCloudFrontOriginAccessIdentityConfig( GetCloudFrontOriginAccessIdentityConfigRequest getCloudFrontOriginAccessIdentityConfigRequest) throws NoSuchCloudFrontOriginAccessIdentityException, AccessDeniedException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the GetCloudFrontOriginAccessIdentityConfig operation returned by the service. * @throws NoSuchCloudFrontOriginAccessIdentityException * The specified origin access identity does not exist. * @throws AccessDeniedException * Access denied. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.GetCloudFrontOriginAccessIdentityConfig * @see AWS API Documentation */ default GetCloudFrontOriginAccessIdentityConfigResponse getCloudFrontOriginAccessIdentityConfig( Consumer getCloudFrontOriginAccessIdentityConfigRequest) throws NoSuchCloudFrontOriginAccessIdentityException, AccessDeniedException, AwsServiceException, SdkClientException, CloudFrontException { return getCloudFrontOriginAccessIdentityConfig(GetCloudFrontOriginAccessIdentityConfigRequest.builder() .applyMutation(getCloudFrontOriginAccessIdentityConfigRequest).build()); } /** *

* Get the information about a distribution. *

* * @param getDistributionRequest * The request to get a distribution's information. * @return Result of the GetDistribution operation returned by the service. * @throws NoSuchDistributionException * The specified distribution does not exist. * @throws AccessDeniedException * Access denied. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.GetDistribution * @see AWS * API Documentation */ default GetDistributionResponse getDistribution(GetDistributionRequest getDistributionRequest) throws NoSuchDistributionException, AccessDeniedException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the GetDistribution operation returned by the service. * @throws NoSuchDistributionException * The specified distribution does not exist. * @throws AccessDeniedException * Access denied. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.GetDistribution * @see AWS * API Documentation */ default GetDistributionResponse getDistribution(Consumer getDistributionRequest) throws NoSuchDistributionException, AccessDeniedException, AwsServiceException, SdkClientException, CloudFrontException { return getDistribution(GetDistributionRequest.builder().applyMutation(getDistributionRequest).build()); } /** *

* Get the configuration information about a distribution. *

* * @param getDistributionConfigRequest * The request to get a distribution configuration. * @return Result of the GetDistributionConfig operation returned by the service. * @throws NoSuchDistributionException * The specified distribution does not exist. * @throws AccessDeniedException * Access denied. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.GetDistributionConfig * @see AWS API Documentation */ default GetDistributionConfigResponse getDistributionConfig(GetDistributionConfigRequest getDistributionConfigRequest) throws NoSuchDistributionException, AccessDeniedException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the GetDistributionConfig operation returned by the service. * @throws NoSuchDistributionException * The specified distribution does not exist. * @throws AccessDeniedException * Access denied. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.GetDistributionConfig * @see AWS API Documentation */ default GetDistributionConfigResponse getDistributionConfig( Consumer getDistributionConfigRequest) throws NoSuchDistributionException, AccessDeniedException, AwsServiceException, SdkClientException, CloudFrontException { return getDistributionConfig(GetDistributionConfigRequest.builder().applyMutation(getDistributionConfigRequest).build()); } /** *

* Get the field-level encryption configuration information. *

* * @param getFieldLevelEncryptionRequest * @return Result of the GetFieldLevelEncryption operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws NoSuchFieldLevelEncryptionConfigException * The specified configuration for field-level encryption doesn't exist. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.GetFieldLevelEncryption * @see AWS API Documentation */ default GetFieldLevelEncryptionResponse getFieldLevelEncryption(GetFieldLevelEncryptionRequest getFieldLevelEncryptionRequest) throws AccessDeniedException, NoSuchFieldLevelEncryptionConfigException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the GetFieldLevelEncryption operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws NoSuchFieldLevelEncryptionConfigException * The specified configuration for field-level encryption doesn't exist. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.GetFieldLevelEncryption * @see AWS API Documentation */ default GetFieldLevelEncryptionResponse getFieldLevelEncryption( Consumer getFieldLevelEncryptionRequest) throws AccessDeniedException, NoSuchFieldLevelEncryptionConfigException, AwsServiceException, SdkClientException, CloudFrontException { return getFieldLevelEncryption(GetFieldLevelEncryptionRequest.builder().applyMutation(getFieldLevelEncryptionRequest) .build()); } /** *

* Get the field-level encryption configuration information. *

* * @param getFieldLevelEncryptionConfigRequest * @return Result of the GetFieldLevelEncryptionConfig operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws NoSuchFieldLevelEncryptionConfigException * The specified configuration for field-level encryption doesn't exist. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.GetFieldLevelEncryptionConfig * @see AWS API Documentation */ default GetFieldLevelEncryptionConfigResponse getFieldLevelEncryptionConfig( GetFieldLevelEncryptionConfigRequest getFieldLevelEncryptionConfigRequest) throws AccessDeniedException, NoSuchFieldLevelEncryptionConfigException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the GetFieldLevelEncryptionConfig operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws NoSuchFieldLevelEncryptionConfigException * The specified configuration for field-level encryption doesn't exist. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.GetFieldLevelEncryptionConfig * @see AWS API Documentation */ default GetFieldLevelEncryptionConfigResponse getFieldLevelEncryptionConfig( Consumer getFieldLevelEncryptionConfigRequest) throws AccessDeniedException, NoSuchFieldLevelEncryptionConfigException, AwsServiceException, SdkClientException, CloudFrontException { return getFieldLevelEncryptionConfig(GetFieldLevelEncryptionConfigRequest.builder() .applyMutation(getFieldLevelEncryptionConfigRequest).build()); } /** *

* Get the field-level encryption profile information. *

* * @param getFieldLevelEncryptionProfileRequest * @return Result of the GetFieldLevelEncryptionProfile operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws NoSuchFieldLevelEncryptionProfileException * The specified profile for field-level encryption doesn't exist. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.GetFieldLevelEncryptionProfile * @see AWS API Documentation */ default GetFieldLevelEncryptionProfileResponse getFieldLevelEncryptionProfile( GetFieldLevelEncryptionProfileRequest getFieldLevelEncryptionProfileRequest) throws AccessDeniedException, NoSuchFieldLevelEncryptionProfileException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the GetFieldLevelEncryptionProfile operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws NoSuchFieldLevelEncryptionProfileException * The specified profile for field-level encryption doesn't exist. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.GetFieldLevelEncryptionProfile * @see AWS API Documentation */ default GetFieldLevelEncryptionProfileResponse getFieldLevelEncryptionProfile( Consumer getFieldLevelEncryptionProfileRequest) throws AccessDeniedException, NoSuchFieldLevelEncryptionProfileException, AwsServiceException, SdkClientException, CloudFrontException { return getFieldLevelEncryptionProfile(GetFieldLevelEncryptionProfileRequest.builder() .applyMutation(getFieldLevelEncryptionProfileRequest).build()); } /** *

* Get the field-level encryption profile configuration information. *

* * @param getFieldLevelEncryptionProfileConfigRequest * @return Result of the GetFieldLevelEncryptionProfileConfig operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws NoSuchFieldLevelEncryptionProfileException * The specified profile for field-level encryption doesn't exist. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.GetFieldLevelEncryptionProfileConfig * @see AWS API Documentation */ default GetFieldLevelEncryptionProfileConfigResponse getFieldLevelEncryptionProfileConfig( GetFieldLevelEncryptionProfileConfigRequest getFieldLevelEncryptionProfileConfigRequest) throws AccessDeniedException, NoSuchFieldLevelEncryptionProfileException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the GetFieldLevelEncryptionProfileConfig operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws NoSuchFieldLevelEncryptionProfileException * The specified profile for field-level encryption doesn't exist. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.GetFieldLevelEncryptionProfileConfig * @see AWS API Documentation */ default GetFieldLevelEncryptionProfileConfigResponse getFieldLevelEncryptionProfileConfig( Consumer getFieldLevelEncryptionProfileConfigRequest) throws AccessDeniedException, NoSuchFieldLevelEncryptionProfileException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the GetFunction operation returned by the service. * @throws NoSuchFunctionExistsException * The function does not exist. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.GetFunction * @see AWS API * Documentation */ default GetFunctionResponse getFunction(GetFunctionRequest getFunctionRequest) throws NoSuchFunctionExistsException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the GetFunction operation returned by the service. * @throws NoSuchFunctionExistsException * The function does not exist. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.GetFunction * @see AWS API * Documentation */ default GetFunctionResponse getFunction(Consumer getFunctionRequest) throws NoSuchFunctionExistsException, AwsServiceException, SdkClientException, CloudFrontException { return getFunction(GetFunctionRequest.builder().applyMutation(getFunctionRequest).build()); } /** *

* Get the information about an invalidation. *

* * @param getInvalidationRequest * The request to get an invalidation's information. * @return Result of the GetInvalidation operation returned by the service. * @throws NoSuchInvalidationException * The specified invalidation does not exist. * @throws NoSuchDistributionException * The specified distribution does not exist. * @throws AccessDeniedException * Access denied. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.GetInvalidation * @see AWS * API Documentation */ default GetInvalidationResponse getInvalidation(GetInvalidationRequest getInvalidationRequest) throws NoSuchInvalidationException, NoSuchDistributionException, AccessDeniedException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the GetInvalidation operation returned by the service. * @throws NoSuchInvalidationException * The specified invalidation does not exist. * @throws NoSuchDistributionException * The specified distribution does not exist. * @throws AccessDeniedException * Access denied. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.GetInvalidation * @see AWS * API Documentation */ default GetInvalidationResponse getInvalidation(Consumer getInvalidationRequest) throws NoSuchInvalidationException, NoSuchDistributionException, AccessDeniedException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the GetKeyGroup operation returned by the service. * @throws NoSuchResourceException * A resource that was specified is not valid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.GetKeyGroup * @see AWS API * Documentation */ default GetKeyGroupResponse getKeyGroup(GetKeyGroupRequest getKeyGroupRequest) throws NoSuchResourceException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the GetKeyGroup operation returned by the service. * @throws NoSuchResourceException * A resource that was specified is not valid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.GetKeyGroup * @see AWS API * Documentation */ default GetKeyGroupResponse getKeyGroup(Consumer getKeyGroupRequest) throws NoSuchResourceException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the GetKeyGroupConfig operation returned by the service. * @throws NoSuchResourceException * A resource that was specified is not valid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.GetKeyGroupConfig * @see AWS * API Documentation */ default GetKeyGroupConfigResponse getKeyGroupConfig(GetKeyGroupConfigRequest getKeyGroupConfigRequest) throws NoSuchResourceException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the GetKeyGroupConfig operation returned by the service. * @throws NoSuchResourceException * A resource that was specified is not valid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.GetKeyGroupConfig * @see AWS * API Documentation */ default GetKeyGroupConfigResponse getKeyGroupConfig(Consumer getKeyGroupConfigRequest) throws NoSuchResourceException, AwsServiceException, SdkClientException, CloudFrontException { return getKeyGroupConfig(GetKeyGroupConfigRequest.builder().applyMutation(getKeyGroupConfigRequest).build()); } /** *

* Gets information about whether additional CloudWatch metrics are enabled for the specified CloudFront * distribution. *

* * @param getMonitoringSubscriptionRequest * @return Result of the GetMonitoringSubscription operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws NoSuchDistributionException * The specified distribution does not exist. * @throws UnsupportedOperationException * This operation is not supported in this region. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.GetMonitoringSubscription * @see AWS API Documentation */ default GetMonitoringSubscriptionResponse getMonitoringSubscription( GetMonitoringSubscriptionRequest getMonitoringSubscriptionRequest) throws AccessDeniedException, NoSuchDistributionException, software.amazon.awssdk.services.cloudfront.model.UnsupportedOperationException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the GetMonitoringSubscription operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws NoSuchDistributionException * The specified distribution does not exist. * @throws UnsupportedOperationException * This operation is not supported in this region. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.GetMonitoringSubscription * @see AWS API Documentation */ default GetMonitoringSubscriptionResponse getMonitoringSubscription( Consumer getMonitoringSubscriptionRequest) throws AccessDeniedException, NoSuchDistributionException, software.amazon.awssdk.services.cloudfront.model.UnsupportedOperationException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the GetOriginRequestPolicy operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws NoSuchOriginRequestPolicyException * The origin request policy does not exist. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.GetOriginRequestPolicy * @see AWS API Documentation */ default GetOriginRequestPolicyResponse getOriginRequestPolicy(GetOriginRequestPolicyRequest getOriginRequestPolicyRequest) throws AccessDeniedException, NoSuchOriginRequestPolicyException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the GetOriginRequestPolicy operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws NoSuchOriginRequestPolicyException * The origin request policy does not exist. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.GetOriginRequestPolicy * @see AWS API Documentation */ default GetOriginRequestPolicyResponse getOriginRequestPolicy( Consumer getOriginRequestPolicyRequest) throws AccessDeniedException, NoSuchOriginRequestPolicyException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the GetOriginRequestPolicyConfig operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws NoSuchOriginRequestPolicyException * The origin request policy does not exist. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.GetOriginRequestPolicyConfig * @see AWS API Documentation */ default GetOriginRequestPolicyConfigResponse getOriginRequestPolicyConfig( GetOriginRequestPolicyConfigRequest getOriginRequestPolicyConfigRequest) throws AccessDeniedException, NoSuchOriginRequestPolicyException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the GetOriginRequestPolicyConfig operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws NoSuchOriginRequestPolicyException * The origin request policy does not exist. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.GetOriginRequestPolicyConfig * @see AWS API Documentation */ default GetOriginRequestPolicyConfigResponse getOriginRequestPolicyConfig( Consumer getOriginRequestPolicyConfigRequest) throws AccessDeniedException, NoSuchOriginRequestPolicyException, AwsServiceException, SdkClientException, CloudFrontException { return getOriginRequestPolicyConfig(GetOriginRequestPolicyConfigRequest.builder() .applyMutation(getOriginRequestPolicyConfigRequest).build()); } /** *

* Gets a public key. *

* * @param getPublicKeyRequest * @return Result of the GetPublicKey operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws NoSuchPublicKeyException * The specified public key doesn't exist. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.GetPublicKey * @see AWS API * Documentation */ default GetPublicKeyResponse getPublicKey(GetPublicKeyRequest getPublicKeyRequest) throws AccessDeniedException, NoSuchPublicKeyException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the GetPublicKey operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws NoSuchPublicKeyException * The specified public key doesn't exist. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.GetPublicKey * @see AWS API * Documentation */ default GetPublicKeyResponse getPublicKey(Consumer getPublicKeyRequest) throws AccessDeniedException, NoSuchPublicKeyException, AwsServiceException, SdkClientException, CloudFrontException { return getPublicKey(GetPublicKeyRequest.builder().applyMutation(getPublicKeyRequest).build()); } /** *

* Gets a public key configuration. *

* * @param getPublicKeyConfigRequest * @return Result of the GetPublicKeyConfig operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws NoSuchPublicKeyException * The specified public key doesn't exist. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.GetPublicKeyConfig * @see AWS * API Documentation */ default GetPublicKeyConfigResponse getPublicKeyConfig(GetPublicKeyConfigRequest getPublicKeyConfigRequest) throws AccessDeniedException, NoSuchPublicKeyException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the GetPublicKeyConfig operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws NoSuchPublicKeyException * The specified public key doesn't exist. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.GetPublicKeyConfig * @see AWS * API Documentation */ default GetPublicKeyConfigResponse getPublicKeyConfig(Consumer getPublicKeyConfigRequest) throws AccessDeniedException, NoSuchPublicKeyException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the GetRealtimeLogConfig operation returned by the service. * @throws NoSuchRealtimeLogConfigException * The real-time log configuration does not exist. * @throws InvalidArgumentException * An argument is invalid. * @throws AccessDeniedException * Access denied. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.GetRealtimeLogConfig * @see AWS API Documentation */ default GetRealtimeLogConfigResponse getRealtimeLogConfig(GetRealtimeLogConfigRequest getRealtimeLogConfigRequest) throws NoSuchRealtimeLogConfigException, InvalidArgumentException, AccessDeniedException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the GetRealtimeLogConfig operation returned by the service. * @throws NoSuchRealtimeLogConfigException * The real-time log configuration does not exist. * @throws InvalidArgumentException * An argument is invalid. * @throws AccessDeniedException * Access denied. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.GetRealtimeLogConfig * @see AWS API Documentation */ default GetRealtimeLogConfigResponse getRealtimeLogConfig( Consumer getRealtimeLogConfigRequest) throws NoSuchRealtimeLogConfigException, InvalidArgumentException, AccessDeniedException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the GetStreamingDistribution operation returned by the service. * @throws NoSuchStreamingDistributionException * The specified streaming distribution does not exist. * @throws AccessDeniedException * Access denied. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.GetStreamingDistribution * @see AWS API Documentation */ default GetStreamingDistributionResponse getStreamingDistribution( GetStreamingDistributionRequest getStreamingDistributionRequest) throws NoSuchStreamingDistributionException, AccessDeniedException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the GetStreamingDistribution operation returned by the service. * @throws NoSuchStreamingDistributionException * The specified streaming distribution does not exist. * @throws AccessDeniedException * Access denied. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.GetStreamingDistribution * @see AWS API Documentation */ default GetStreamingDistributionResponse getStreamingDistribution( Consumer getStreamingDistributionRequest) throws NoSuchStreamingDistributionException, AccessDeniedException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the GetStreamingDistributionConfig operation returned by the service. * @throws NoSuchStreamingDistributionException * The specified streaming distribution does not exist. * @throws AccessDeniedException * Access denied. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.GetStreamingDistributionConfig * @see AWS API Documentation */ default GetStreamingDistributionConfigResponse getStreamingDistributionConfig( GetStreamingDistributionConfigRequest getStreamingDistributionConfigRequest) throws NoSuchStreamingDistributionException, AccessDeniedException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the GetStreamingDistributionConfig operation returned by the service. * @throws NoSuchStreamingDistributionException * The specified streaming distribution does not exist. * @throws AccessDeniedException * Access denied. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.GetStreamingDistributionConfig * @see AWS API Documentation */ default GetStreamingDistributionConfigResponse getStreamingDistributionConfig( Consumer getStreamingDistributionConfigRequest) throws NoSuchStreamingDistributionException, AccessDeniedException, AwsServiceException, SdkClientException, CloudFrontException { 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 AWS, or only the custom policies * created in your AWS 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 Result of the ListCachePolicies operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws NoSuchCachePolicyException * The cache policy does not exist. * @throws InvalidArgumentException * An argument is invalid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.ListCachePolicies * @see AWS * API Documentation */ default ListCachePoliciesResponse listCachePolicies(ListCachePoliciesRequest listCachePoliciesRequest) throws AccessDeniedException, NoSuchCachePolicyException, InvalidArgumentException, AwsServiceException, SdkClientException, CloudFrontException { throw new UnsupportedOperationException(); } /** *

* Gets a list of cache policies. *

*

* You can optionally apply a filter to return only the managed policies created by AWS, or only the custom policies * created in your AWS 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 Result of the ListCachePolicies operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws NoSuchCachePolicyException * The cache policy does not exist. * @throws InvalidArgumentException * An argument is invalid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.ListCachePolicies * @see AWS * API Documentation */ default ListCachePoliciesResponse listCachePolicies(Consumer listCachePoliciesRequest) throws AccessDeniedException, NoSuchCachePolicyException, InvalidArgumentException, AwsServiceException, SdkClientException, CloudFrontException { return listCachePolicies(ListCachePoliciesRequest.builder().applyMutation(listCachePoliciesRequest).build()); } /** *

* Lists origin access identities. *

* * @return Result of the ListCloudFrontOriginAccessIdentities operation returned by the service. * @throws InvalidArgumentException * An argument is invalid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.ListCloudFrontOriginAccessIdentities * @see #listCloudFrontOriginAccessIdentities(ListCloudFrontOriginAccessIdentitiesRequest) * @see AWS API Documentation */ default ListCloudFrontOriginAccessIdentitiesResponse listCloudFrontOriginAccessIdentities() throws InvalidArgumentException, AwsServiceException, SdkClientException, CloudFrontException { return listCloudFrontOriginAccessIdentities(ListCloudFrontOriginAccessIdentitiesRequest.builder().build()); } /** *

* Lists origin access identities. *

* * @param listCloudFrontOriginAccessIdentitiesRequest * The request to list origin access identities. * @return Result of the ListCloudFrontOriginAccessIdentities operation returned by the service. * @throws InvalidArgumentException * An argument is invalid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.ListCloudFrontOriginAccessIdentities * @see AWS API Documentation */ default ListCloudFrontOriginAccessIdentitiesResponse listCloudFrontOriginAccessIdentities( ListCloudFrontOriginAccessIdentitiesRequest listCloudFrontOriginAccessIdentitiesRequest) throws InvalidArgumentException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the ListCloudFrontOriginAccessIdentities operation returned by the service. * @throws InvalidArgumentException * An argument is invalid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.ListCloudFrontOriginAccessIdentities * @see AWS API Documentation */ default ListCloudFrontOriginAccessIdentitiesResponse listCloudFrontOriginAccessIdentities( Consumer listCloudFrontOriginAccessIdentitiesRequest) throws InvalidArgumentException, AwsServiceException, SdkClientException, CloudFrontException { return listCloudFrontOriginAccessIdentities(ListCloudFrontOriginAccessIdentitiesRequest.builder() .applyMutation(listCloudFrontOriginAccessIdentitiesRequest).build()); } /** *

* List CloudFront distributions. *

* * @return Result of the ListDistributions operation returned by the service. * @throws InvalidArgumentException * An argument is invalid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.ListDistributions * @see #listDistributions(ListDistributionsRequest) * @see AWS * API Documentation */ default ListDistributionsResponse listDistributions() throws InvalidArgumentException, AwsServiceException, SdkClientException, CloudFrontException { return listDistributions(ListDistributionsRequest.builder().build()); } /** *

* List CloudFront distributions. *

* * @param listDistributionsRequest * The request to list your distributions. * @return Result of the ListDistributions operation returned by the service. * @throws InvalidArgumentException * An argument is invalid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.ListDistributions * @see AWS * API Documentation */ default ListDistributionsResponse listDistributions(ListDistributionsRequest listDistributionsRequest) throws InvalidArgumentException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the ListDistributions operation returned by the service. * @throws InvalidArgumentException * An argument is invalid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.ListDistributions * @see AWS * API Documentation */ default ListDistributionsResponse listDistributions(Consumer listDistributionsRequest) throws InvalidArgumentException, AwsServiceException, SdkClientException, CloudFrontException { return listDistributions(ListDistributionsRequest.builder().applyMutation(listDistributionsRequest).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 Result of the ListDistributionsByCachePolicyId operation returned by the service. * @throws NoSuchCachePolicyException * The cache policy does not exist. * @throws InvalidArgumentException * An argument is invalid. * @throws AccessDeniedException * Access denied. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.ListDistributionsByCachePolicyId * @see AWS API Documentation */ default ListDistributionsByCachePolicyIdResponse listDistributionsByCachePolicyId( ListDistributionsByCachePolicyIdRequest listDistributionsByCachePolicyIdRequest) throws NoSuchCachePolicyException, InvalidArgumentException, AccessDeniedException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the ListDistributionsByCachePolicyId operation returned by the service. * @throws NoSuchCachePolicyException * The cache policy does not exist. * @throws InvalidArgumentException * An argument is invalid. * @throws AccessDeniedException * Access denied. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.ListDistributionsByCachePolicyId * @see AWS API Documentation */ default ListDistributionsByCachePolicyIdResponse listDistributionsByCachePolicyId( Consumer listDistributionsByCachePolicyIdRequest) throws NoSuchCachePolicyException, InvalidArgumentException, AccessDeniedException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the ListDistributionsByKeyGroup operation returned by the service. * @throws NoSuchResourceException * A resource that was specified is not valid. * @throws InvalidArgumentException * An argument is invalid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.ListDistributionsByKeyGroup * @see AWS API Documentation */ default ListDistributionsByKeyGroupResponse listDistributionsByKeyGroup( ListDistributionsByKeyGroupRequest listDistributionsByKeyGroupRequest) throws NoSuchResourceException, InvalidArgumentException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the ListDistributionsByKeyGroup operation returned by the service. * @throws NoSuchResourceException * A resource that was specified is not valid. * @throws InvalidArgumentException * An argument is invalid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.ListDistributionsByKeyGroup * @see AWS API Documentation */ default ListDistributionsByKeyGroupResponse listDistributionsByKeyGroup( Consumer listDistributionsByKeyGroupRequest) throws NoSuchResourceException, InvalidArgumentException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the ListDistributionsByOriginRequestPolicyId operation returned by the service. * @throws NoSuchOriginRequestPolicyException * The origin request policy does not exist. * @throws InvalidArgumentException * An argument is invalid. * @throws AccessDeniedException * Access denied. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.ListDistributionsByOriginRequestPolicyId * @see AWS API Documentation */ default ListDistributionsByOriginRequestPolicyIdResponse listDistributionsByOriginRequestPolicyId( ListDistributionsByOriginRequestPolicyIdRequest listDistributionsByOriginRequestPolicyIdRequest) throws NoSuchOriginRequestPolicyException, InvalidArgumentException, AccessDeniedException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the ListDistributionsByOriginRequestPolicyId operation returned by the service. * @throws NoSuchOriginRequestPolicyException * The origin request policy does not exist. * @throws InvalidArgumentException * An argument is invalid. * @throws AccessDeniedException * Access denied. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.ListDistributionsByOriginRequestPolicyId * @see AWS API Documentation */ default ListDistributionsByOriginRequestPolicyIdResponse listDistributionsByOriginRequestPolicyId( Consumer listDistributionsByOriginRequestPolicyIdRequest) throws NoSuchOriginRequestPolicyException, InvalidArgumentException, AccessDeniedException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the ListDistributionsByRealtimeLogConfig operation returned by the service. * @throws InvalidArgumentException * An argument is invalid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.ListDistributionsByRealtimeLogConfig * @see AWS API Documentation */ default ListDistributionsByRealtimeLogConfigResponse listDistributionsByRealtimeLogConfig( ListDistributionsByRealtimeLogConfigRequest listDistributionsByRealtimeLogConfigRequest) throws InvalidArgumentException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the ListDistributionsByRealtimeLogConfig operation returned by the service. * @throws InvalidArgumentException * An argument is invalid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.ListDistributionsByRealtimeLogConfig * @see AWS API Documentation */ default ListDistributionsByRealtimeLogConfigResponse listDistributionsByRealtimeLogConfig( Consumer listDistributionsByRealtimeLogConfigRequest) throws InvalidArgumentException, AwsServiceException, SdkClientException, CloudFrontException { return listDistributionsByRealtimeLogConfig(ListDistributionsByRealtimeLogConfigRequest.builder() .applyMutation(listDistributionsByRealtimeLogConfigRequest).build()); } /** *

* List the distributions that are associated with a specified AWS WAF web ACL. *

* * @param listDistributionsByWebAclIdRequest * The request to list distributions that are associated with a specified AWS WAF web ACL. * @return Result of the ListDistributionsByWebACLId operation returned by the service. * @throws InvalidArgumentException * An argument is invalid. * @throws InvalidWebAclIdException * A web ACL ID specified is not valid. To specify a web ACL created using the latest version of AWS 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 AWS WAF Classic, use the ACL ID, for example * 473e64fd-f30b-4765-81a0-62ad96dd167a. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.ListDistributionsByWebACLId * @see AWS API Documentation */ default ListDistributionsByWebAclIdResponse listDistributionsByWebACLId( ListDistributionsByWebAclIdRequest listDistributionsByWebAclIdRequest) throws InvalidArgumentException, InvalidWebAclIdException, AwsServiceException, SdkClientException, CloudFrontException { throw new UnsupportedOperationException(); } /** *

* List the distributions that are associated with a specified AWS 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 AWS WAF web ACL. * @return Result of the ListDistributionsByWebACLId operation returned by the service. * @throws InvalidArgumentException * An argument is invalid. * @throws InvalidWebAclIdException * A web ACL ID specified is not valid. To specify a web ACL created using the latest version of AWS 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 AWS WAF Classic, use the ACL ID, for example * 473e64fd-f30b-4765-81a0-62ad96dd167a. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.ListDistributionsByWebACLId * @see AWS API Documentation */ default ListDistributionsByWebAclIdResponse listDistributionsByWebACLId( Consumer listDistributionsByWebAclIdRequest) throws InvalidArgumentException, InvalidWebAclIdException, AwsServiceException, SdkClientException, CloudFrontException { return listDistributionsByWebACLId(ListDistributionsByWebAclIdRequest.builder() .applyMutation(listDistributionsByWebAclIdRequest).build()); } /** *

* List all field-level encryption configurations that have been created in CloudFront for this account. *

* * @return Result of the ListFieldLevelEncryptionConfigs operation returned by the service. * @throws InvalidArgumentException * An argument is invalid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.ListFieldLevelEncryptionConfigs * @see #listFieldLevelEncryptionConfigs(ListFieldLevelEncryptionConfigsRequest) * @see AWS API Documentation */ default ListFieldLevelEncryptionConfigsResponse listFieldLevelEncryptionConfigs() throws InvalidArgumentException, AwsServiceException, SdkClientException, CloudFrontException { return listFieldLevelEncryptionConfigs(ListFieldLevelEncryptionConfigsRequest.builder().build()); } /** *

* List all field-level encryption configurations that have been created in CloudFront for this account. *

* * @param listFieldLevelEncryptionConfigsRequest * @return Result of the ListFieldLevelEncryptionConfigs operation returned by the service. * @throws InvalidArgumentException * An argument is invalid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.ListFieldLevelEncryptionConfigs * @see AWS API Documentation */ default ListFieldLevelEncryptionConfigsResponse listFieldLevelEncryptionConfigs( ListFieldLevelEncryptionConfigsRequest listFieldLevelEncryptionConfigsRequest) throws InvalidArgumentException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the ListFieldLevelEncryptionConfigs operation returned by the service. * @throws InvalidArgumentException * An argument is invalid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.ListFieldLevelEncryptionConfigs * @see AWS API Documentation */ default ListFieldLevelEncryptionConfigsResponse listFieldLevelEncryptionConfigs( Consumer listFieldLevelEncryptionConfigsRequest) throws InvalidArgumentException, AwsServiceException, SdkClientException, CloudFrontException { return listFieldLevelEncryptionConfigs(ListFieldLevelEncryptionConfigsRequest.builder() .applyMutation(listFieldLevelEncryptionConfigsRequest).build()); } /** *

* Request a list of field-level encryption profiles that have been created in CloudFront for this account. *

* * @return Result of the ListFieldLevelEncryptionProfiles operation returned by the service. * @throws InvalidArgumentException * An argument is invalid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.ListFieldLevelEncryptionProfiles * @see #listFieldLevelEncryptionProfiles(ListFieldLevelEncryptionProfilesRequest) * @see AWS API Documentation */ default ListFieldLevelEncryptionProfilesResponse listFieldLevelEncryptionProfiles() throws InvalidArgumentException, AwsServiceException, SdkClientException, CloudFrontException { return listFieldLevelEncryptionProfiles(ListFieldLevelEncryptionProfilesRequest.builder().build()); } /** *

* Request a list of field-level encryption profiles that have been created in CloudFront for this account. *

* * @param listFieldLevelEncryptionProfilesRequest * @return Result of the ListFieldLevelEncryptionProfiles operation returned by the service. * @throws InvalidArgumentException * An argument is invalid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.ListFieldLevelEncryptionProfiles * @see AWS API Documentation */ default ListFieldLevelEncryptionProfilesResponse listFieldLevelEncryptionProfiles( ListFieldLevelEncryptionProfilesRequest listFieldLevelEncryptionProfilesRequest) throws InvalidArgumentException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the ListFieldLevelEncryptionProfiles operation returned by the service. * @throws InvalidArgumentException * An argument is invalid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.ListFieldLevelEncryptionProfiles * @see AWS API Documentation */ default ListFieldLevelEncryptionProfilesResponse listFieldLevelEncryptionProfiles( Consumer listFieldLevelEncryptionProfilesRequest) throws InvalidArgumentException, AwsServiceException, SdkClientException, CloudFrontException { return listFieldLevelEncryptionProfiles(ListFieldLevelEncryptionProfilesRequest.builder() .applyMutation(listFieldLevelEncryptionProfilesRequest).build()); } /** *

* Gets a list of all CloudFront functions in your AWS 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 Result of the ListFunctions operation returned by the service. * @throws InvalidArgumentException * An argument is invalid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.ListFunctions * @see AWS API * Documentation */ default ListFunctionsResponse listFunctions(ListFunctionsRequest listFunctionsRequest) throws InvalidArgumentException, AwsServiceException, SdkClientException, CloudFrontException { throw new UnsupportedOperationException(); } /** *

* Gets a list of all CloudFront functions in your AWS 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 Result of the ListFunctions operation returned by the service. * @throws InvalidArgumentException * An argument is invalid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.ListFunctions * @see AWS API * Documentation */ default ListFunctionsResponse listFunctions(Consumer listFunctionsRequest) throws InvalidArgumentException, AwsServiceException, SdkClientException, CloudFrontException { return listFunctions(ListFunctionsRequest.builder().applyMutation(listFunctionsRequest).build()); } /** *

* Lists invalidation batches. *

* * @param listInvalidationsRequest * The request to list invalidations. * @return Result of the ListInvalidations operation returned by the service. * @throws InvalidArgumentException * An argument is invalid. * @throws NoSuchDistributionException * The specified distribution does not exist. * @throws AccessDeniedException * Access denied. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.ListInvalidations * @see AWS * API Documentation */ default ListInvalidationsResponse listInvalidations(ListInvalidationsRequest listInvalidationsRequest) throws InvalidArgumentException, NoSuchDistributionException, AccessDeniedException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the ListInvalidations operation returned by the service. * @throws InvalidArgumentException * An argument is invalid. * @throws NoSuchDistributionException * The specified distribution does not exist. * @throws AccessDeniedException * Access denied. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.ListInvalidations * @see AWS * API Documentation */ default ListInvalidationsResponse listInvalidations(Consumer listInvalidationsRequest) throws InvalidArgumentException, NoSuchDistributionException, AccessDeniedException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the ListKeyGroups operation returned by the service. * @throws InvalidArgumentException * An argument is invalid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.ListKeyGroups * @see AWS API * Documentation */ default ListKeyGroupsResponse listKeyGroups(ListKeyGroupsRequest listKeyGroupsRequest) throws InvalidArgumentException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the ListKeyGroups operation returned by the service. * @throws InvalidArgumentException * An argument is invalid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.ListKeyGroups * @see AWS API * Documentation */ default ListKeyGroupsResponse listKeyGroups(Consumer listKeyGroupsRequest) throws InvalidArgumentException, AwsServiceException, SdkClientException, CloudFrontException { 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 AWS, or only the custom policies * created in your AWS 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 Result of the ListOriginRequestPolicies operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws NoSuchOriginRequestPolicyException * The origin request policy does not exist. * @throws InvalidArgumentException * An argument is invalid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.ListOriginRequestPolicies * @see AWS API Documentation */ default ListOriginRequestPoliciesResponse listOriginRequestPolicies( ListOriginRequestPoliciesRequest listOriginRequestPoliciesRequest) throws AccessDeniedException, NoSuchOriginRequestPolicyException, InvalidArgumentException, AwsServiceException, SdkClientException, CloudFrontException { throw new UnsupportedOperationException(); } /** *

* Gets a list of origin request policies. *

*

* You can optionally apply a filter to return only the managed policies created by AWS, or only the custom policies * created in your AWS 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 Result of the ListOriginRequestPolicies operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws NoSuchOriginRequestPolicyException * The origin request policy does not exist. * @throws InvalidArgumentException * An argument is invalid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.ListOriginRequestPolicies * @see AWS API Documentation */ default ListOriginRequestPoliciesResponse listOriginRequestPolicies( Consumer listOriginRequestPoliciesRequest) throws AccessDeniedException, NoSuchOriginRequestPolicyException, InvalidArgumentException, AwsServiceException, SdkClientException, CloudFrontException { return listOriginRequestPolicies(ListOriginRequestPoliciesRequest.builder() .applyMutation(listOriginRequestPoliciesRequest).build()); } /** *

* List all public keys that have been added to CloudFront for this account. *

* * @return Result of the ListPublicKeys operation returned by the service. * @throws InvalidArgumentException * An argument is invalid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.ListPublicKeys * @see #listPublicKeys(ListPublicKeysRequest) * @see AWS API * Documentation */ default ListPublicKeysResponse listPublicKeys() throws InvalidArgumentException, AwsServiceException, SdkClientException, CloudFrontException { return listPublicKeys(ListPublicKeysRequest.builder().build()); } /** *

* List all public keys that have been added to CloudFront for this account. *

* * @param listPublicKeysRequest * @return Result of the ListPublicKeys operation returned by the service. * @throws InvalidArgumentException * An argument is invalid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.ListPublicKeys * @see AWS API * Documentation */ default ListPublicKeysResponse listPublicKeys(ListPublicKeysRequest listPublicKeysRequest) throws InvalidArgumentException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the ListPublicKeys operation returned by the service. * @throws InvalidArgumentException * An argument is invalid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.ListPublicKeys * @see AWS API * Documentation */ default ListPublicKeysResponse listPublicKeys(Consumer listPublicKeysRequest) throws InvalidArgumentException, AwsServiceException, SdkClientException, CloudFrontException { return listPublicKeys(ListPublicKeysRequest.builder().applyMutation(listPublicKeysRequest).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 Result of the ListRealtimeLogConfigs operation returned by the service. * @throws InvalidArgumentException * An argument is invalid. * @throws AccessDeniedException * Access denied. * @throws NoSuchRealtimeLogConfigException * The real-time log configuration does not exist. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.ListRealtimeLogConfigs * @see AWS API Documentation */ default ListRealtimeLogConfigsResponse listRealtimeLogConfigs(ListRealtimeLogConfigsRequest listRealtimeLogConfigsRequest) throws InvalidArgumentException, AccessDeniedException, NoSuchRealtimeLogConfigException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the ListRealtimeLogConfigs operation returned by the service. * @throws InvalidArgumentException * An argument is invalid. * @throws AccessDeniedException * Access denied. * @throws NoSuchRealtimeLogConfigException * The real-time log configuration does not exist. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.ListRealtimeLogConfigs * @see AWS API Documentation */ default ListRealtimeLogConfigsResponse listRealtimeLogConfigs( Consumer listRealtimeLogConfigsRequest) throws InvalidArgumentException, AccessDeniedException, NoSuchRealtimeLogConfigException, AwsServiceException, SdkClientException, CloudFrontException { return listRealtimeLogConfigs(ListRealtimeLogConfigsRequest.builder().applyMutation(listRealtimeLogConfigsRequest) .build()); } /** *

* List streaming distributions. *

* * @return Result of the ListStreamingDistributions operation returned by the service. * @throws InvalidArgumentException * An argument is invalid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.ListStreamingDistributions * @see #listStreamingDistributions(ListStreamingDistributionsRequest) * @see AWS API Documentation */ default ListStreamingDistributionsResponse listStreamingDistributions() throws InvalidArgumentException, AwsServiceException, SdkClientException, CloudFrontException { return listStreamingDistributions(ListStreamingDistributionsRequest.builder().build()); } /** *

* List streaming distributions. *

* * @param listStreamingDistributionsRequest * The request to list your streaming distributions. * @return Result of the ListStreamingDistributions operation returned by the service. * @throws InvalidArgumentException * An argument is invalid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.ListStreamingDistributions * @see AWS API Documentation */ default ListStreamingDistributionsResponse listStreamingDistributions( ListStreamingDistributionsRequest listStreamingDistributionsRequest) throws InvalidArgumentException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the ListStreamingDistributions operation returned by the service. * @throws InvalidArgumentException * An argument is invalid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.ListStreamingDistributions * @see AWS API Documentation */ default ListStreamingDistributionsResponse listStreamingDistributions( Consumer listStreamingDistributionsRequest) throws InvalidArgumentException, AwsServiceException, SdkClientException, CloudFrontException { return listStreamingDistributions(ListStreamingDistributionsRequest.builder() .applyMutation(listStreamingDistributionsRequest).build()); } /** *

* List tags for a CloudFront resource. *

* * @param listTagsForResourceRequest * The request to list tags for a CloudFront resource. * @return Result of the ListTagsForResource operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws InvalidArgumentException * An argument is invalid. * @throws InvalidTaggingException * The tagging specified is not valid. * @throws NoSuchResourceException * A resource that was specified is not valid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.ListTagsForResource * @see AWS API Documentation */ default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws AccessDeniedException, InvalidArgumentException, InvalidTaggingException, NoSuchResourceException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the ListTagsForResource operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws InvalidArgumentException * An argument is invalid. * @throws InvalidTaggingException * The tagging specified is not valid. * @throws NoSuchResourceException * A resource that was specified is not valid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.ListTagsForResource * @see AWS API Documentation */ default ListTagsForResourceResponse listTagsForResource( Consumer listTagsForResourceRequest) throws AccessDeniedException, InvalidArgumentException, InvalidTaggingException, NoSuchResourceException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the PublishFunction operation returned by the service. * @throws InvalidArgumentException * An argument is invalid. * @throws InvalidIfMatchVersionException * The If-Match version is missing or not valid. * @throws NoSuchFunctionExistsException * The function does not exist. * @throws PreconditionFailedException * The precondition in one or more of the request fields evaluated to false. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.PublishFunction * @see AWS * API Documentation */ default PublishFunctionResponse publishFunction(PublishFunctionRequest publishFunctionRequest) throws InvalidArgumentException, InvalidIfMatchVersionException, NoSuchFunctionExistsException, PreconditionFailedException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the PublishFunction operation returned by the service. * @throws InvalidArgumentException * An argument is invalid. * @throws InvalidIfMatchVersionException * The If-Match version is missing or not valid. * @throws NoSuchFunctionExistsException * The function does not exist. * @throws PreconditionFailedException * The precondition in one or more of the request fields evaluated to false. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.PublishFunction * @see AWS * API Documentation */ default PublishFunctionResponse publishFunction(Consumer publishFunctionRequest) throws InvalidArgumentException, InvalidIfMatchVersionException, NoSuchFunctionExistsException, PreconditionFailedException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the TagResource operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws InvalidArgumentException * An argument is invalid. * @throws InvalidTaggingException * The tagging specified is not valid. * @throws NoSuchResourceException * A resource that was specified is not valid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.TagResource * @see AWS API * Documentation */ default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws AccessDeniedException, InvalidArgumentException, InvalidTaggingException, NoSuchResourceException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the TagResource operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws InvalidArgumentException * An argument is invalid. * @throws InvalidTaggingException * The tagging specified is not valid. * @throws NoSuchResourceException * A resource that was specified is not valid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.TagResource * @see AWS API * Documentation */ default TagResourceResponse tagResource(Consumer tagResourceRequest) throws AccessDeniedException, InvalidArgumentException, InvalidTaggingException, NoSuchResourceException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the TestFunction operation returned by the service. * @throws InvalidArgumentException * An argument is invalid. * @throws InvalidIfMatchVersionException * The If-Match version is missing or not valid. * @throws NoSuchFunctionExistsException * The function does not exist. * @throws TestFunctionFailedException * The CloudFront function failed. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.TestFunction * @see AWS API * Documentation */ default TestFunctionResponse testFunction(TestFunctionRequest testFunctionRequest) throws InvalidArgumentException, InvalidIfMatchVersionException, NoSuchFunctionExistsException, TestFunctionFailedException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the TestFunction operation returned by the service. * @throws InvalidArgumentException * An argument is invalid. * @throws InvalidIfMatchVersionException * The If-Match version is missing or not valid. * @throws NoSuchFunctionExistsException * The function does not exist. * @throws TestFunctionFailedException * The CloudFront function failed. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.TestFunction * @see AWS API * Documentation */ default TestFunctionResponse testFunction(Consumer testFunctionRequest) throws InvalidArgumentException, InvalidIfMatchVersionException, NoSuchFunctionExistsException, TestFunctionFailedException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the UntagResource operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws InvalidArgumentException * An argument is invalid. * @throws InvalidTaggingException * The tagging specified is not valid. * @throws NoSuchResourceException * A resource that was specified is not valid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.UntagResource * @see AWS API * Documentation */ default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws AccessDeniedException, InvalidArgumentException, InvalidTaggingException, NoSuchResourceException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the UntagResource operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws InvalidArgumentException * An argument is invalid. * @throws InvalidTaggingException * The tagging specified is not valid. * @throws NoSuchResourceException * A resource that was specified is not valid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.UntagResource * @see AWS API * Documentation */ default UntagResourceResponse untagResource(Consumer untagResourceRequest) throws AccessDeniedException, InvalidArgumentException, InvalidTaggingException, NoSuchResourceException, AwsServiceException, SdkClientException, CloudFrontException { 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: *

*
    *
  1. *

    * Use GetCachePolicyConfig to get the current configuration. *

    *
  2. *
  3. *

    * Locally modify the fields in the cache policy configuration that you want to update. *

    *
  4. *
  5. *

    * Call UpdateCachePolicy by providing the entire cache policy configuration, including the fields that * you modified and those that you didn’t. *

    *
  6. *
* * @param updateCachePolicyRequest * @return Result of the UpdateCachePolicy operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws IllegalUpdateException * The update contains modifications that are not allowed. * @throws InconsistentQuantitiesException * The value of Quantity and the size of Items don't match. * @throws InvalidArgumentException * An argument is invalid. * @throws InvalidIfMatchVersionException * The If-Match version is missing or not valid. * @throws NoSuchCachePolicyException * The cache policy does not exist. * @throws PreconditionFailedException * The precondition in one or more of the request fields evaluated to false. * @throws CachePolicyAlreadyExistsException * A cache policy with this name already exists. You must provide a unique name. To modify an existing cache * policy, use UpdateCachePolicy. * @throws 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. * @throws 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. * @throws 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. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.UpdateCachePolicy * @see AWS * API Documentation */ default UpdateCachePolicyResponse updateCachePolicy(UpdateCachePolicyRequest updateCachePolicyRequest) throws AccessDeniedException, IllegalUpdateException, InconsistentQuantitiesException, InvalidArgumentException, InvalidIfMatchVersionException, NoSuchCachePolicyException, PreconditionFailedException, CachePolicyAlreadyExistsException, TooManyHeadersInCachePolicyException, TooManyCookiesInCachePolicyException, TooManyQueryStringsInCachePolicyException, AwsServiceException, SdkClientException, CloudFrontException { 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: *

*
    *
  1. *

    * Use GetCachePolicyConfig to get the current configuration. *

    *
  2. *
  3. *

    * Locally modify the fields in the cache policy configuration that you want to update. *

    *
  4. *
  5. *

    * Call UpdateCachePolicy by providing the entire cache policy configuration, including the fields that * you modified and those that you didn’t. *

    *
  6. *
*
*

* 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 Result of the UpdateCachePolicy operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws IllegalUpdateException * The update contains modifications that are not allowed. * @throws InconsistentQuantitiesException * The value of Quantity and the size of Items don't match. * @throws InvalidArgumentException * An argument is invalid. * @throws InvalidIfMatchVersionException * The If-Match version is missing or not valid. * @throws NoSuchCachePolicyException * The cache policy does not exist. * @throws PreconditionFailedException * The precondition in one or more of the request fields evaluated to false. * @throws CachePolicyAlreadyExistsException * A cache policy with this name already exists. You must provide a unique name. To modify an existing cache * policy, use UpdateCachePolicy. * @throws 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. * @throws 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. * @throws 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. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.UpdateCachePolicy * @see AWS * API Documentation */ default UpdateCachePolicyResponse updateCachePolicy(Consumer updateCachePolicyRequest) throws AccessDeniedException, IllegalUpdateException, InconsistentQuantitiesException, InvalidArgumentException, InvalidIfMatchVersionException, NoSuchCachePolicyException, PreconditionFailedException, CachePolicyAlreadyExistsException, TooManyHeadersInCachePolicyException, TooManyCookiesInCachePolicyException, TooManyQueryStringsInCachePolicyException, AwsServiceException, SdkClientException, CloudFrontException { return updateCachePolicy(UpdateCachePolicyRequest.builder().applyMutation(updateCachePolicyRequest).build()); } /** *

* Update an origin access identity. *

* * @param updateCloudFrontOriginAccessIdentityRequest * The request to update an origin access identity. * @return Result of the UpdateCloudFrontOriginAccessIdentity operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws IllegalUpdateException * The update contains modifications that are not allowed. * @throws InvalidIfMatchVersionException * The If-Match version is missing or not valid. * @throws MissingBodyException * This operation requires a body. Ensure that the body is present and the Content-Type header * is set. * @throws NoSuchCloudFrontOriginAccessIdentityException * The specified origin access identity does not exist. * @throws PreconditionFailedException * The precondition in one or more of the request fields evaluated to false. * @throws InvalidArgumentException * An argument is invalid. * @throws InconsistentQuantitiesException * The value of Quantity and the size of Items don't match. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.UpdateCloudFrontOriginAccessIdentity * @see AWS API Documentation */ default UpdateCloudFrontOriginAccessIdentityResponse updateCloudFrontOriginAccessIdentity( UpdateCloudFrontOriginAccessIdentityRequest updateCloudFrontOriginAccessIdentityRequest) throws AccessDeniedException, IllegalUpdateException, InvalidIfMatchVersionException, MissingBodyException, NoSuchCloudFrontOriginAccessIdentityException, PreconditionFailedException, InvalidArgumentException, InconsistentQuantitiesException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the UpdateCloudFrontOriginAccessIdentity operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws IllegalUpdateException * The update contains modifications that are not allowed. * @throws InvalidIfMatchVersionException * The If-Match version is missing or not valid. * @throws MissingBodyException * This operation requires a body. Ensure that the body is present and the Content-Type header * is set. * @throws NoSuchCloudFrontOriginAccessIdentityException * The specified origin access identity does not exist. * @throws PreconditionFailedException * The precondition in one or more of the request fields evaluated to false. * @throws InvalidArgumentException * An argument is invalid. * @throws InconsistentQuantitiesException * The value of Quantity and the size of Items don't match. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.UpdateCloudFrontOriginAccessIdentity * @see AWS API Documentation */ default UpdateCloudFrontOriginAccessIdentityResponse updateCloudFrontOriginAccessIdentity( Consumer updateCloudFrontOriginAccessIdentityRequest) throws AccessDeniedException, IllegalUpdateException, InvalidIfMatchVersionException, MissingBodyException, NoSuchCloudFrontOriginAccessIdentityException, PreconditionFailedException, InvalidArgumentException, InconsistentQuantitiesException, AwsServiceException, SdkClientException, CloudFrontException { 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 *

*
    *
  1. *

    * 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. *

    *
  2. *
  3. *

    * 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. *

      *
    • *
    *
  4. *
  5. *

    * 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. *

      *
    • *
    *
  6. *
  7. *

    * Review the response to the UpdateDistribution request to confirm that the configuration was * successfully updated. *

    *
  8. *
  9. *

    * Optional: Submit a GetDistribution * request to confirm that your changes have propagated. When propagation is complete, the value of * Status is Deployed. *

    *
  10. *
* * @param updateDistributionRequest * The request to update a distribution. * @return Result of the UpdateDistribution operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws CnameAlreadyExistsException * The CNAME specified is already defined for CloudFront. * @throws IllegalUpdateException * The update contains modifications that are not allowed. * @throws InvalidIfMatchVersionException * The If-Match version is missing or not valid. * @throws MissingBodyException * This operation requires a body. Ensure that the body is present and the Content-Type header * is set. * @throws NoSuchDistributionException * The specified distribution does not exist. * @throws PreconditionFailedException * The precondition in one or more of the request fields evaluated to false. * @throws TooManyDistributionCnamEsException * Your request contains more CNAMEs than are allowed per distribution. * @throws InvalidDefaultRootObjectException * The default root object file name is too big or contains an invalid character. * @throws InvalidRelativePathException * The relative path is too big, is not URL-encoded, or does not begin with a slash (/). * @throws InvalidErrorCodeException * An invalid error code was specified. * @throws InvalidResponseCodeException * A response code is not valid. * @throws InvalidArgumentException * An argument is invalid. * @throws InvalidOriginAccessIdentityException * The origin access identity is not valid or doesn't exist. * @throws TooManyTrustedSignersException * Your request contains more trusted signers than are allowed per distribution. * @throws TrustedSignerDoesNotExistException * One or more of your trusted signers don't exist. * @throws InvalidViewerCertificateException * A viewer certificate specified is not valid. * @throws InvalidMinimumProtocolVersionException * The minimum protocol version specified is not valid. * @throws 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. * @throws NoSuchOriginException * No origin exists with the specified Origin Id. * @throws TooManyOriginsException * You cannot create more origins for the distribution. * @throws TooManyOriginGroupsPerDistributionException * Processing your request would cause you to exceed the maximum number of origin groups allowed. * @throws TooManyCacheBehaviorsException * You cannot create more cache behaviors for the distribution. * @throws TooManyCookieNamesInWhiteListException * Your request contains more cookie names in the whitelist than are allowed per cache behavior. * @throws 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. * @throws TooManyHeadersInForwardedValuesException * Your request contains too many headers in forwarded values. * @throws InvalidHeadersForS3OriginException * The headers specified are not valid for an Amazon S3 origin. * @throws InconsistentQuantitiesException * The value of Quantity and the size of Items don't match. * @throws TooManyCertificatesException * You cannot create anymore custom SSL/TLS certificates. * @throws InvalidLocationCodeException * The location code specified is not valid. * @throws InvalidGeoRestrictionParameterException * The specified geo restriction parameter is not valid. * @throws InvalidTtlOrderException * The TTL order specified is not valid. * @throws InvalidWebAclIdException * A web ACL ID specified is not valid. To specify a web ACL created using the latest version of AWS 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 AWS WAF Classic, use the ACL ID, for example * 473e64fd-f30b-4765-81a0-62ad96dd167a. * @throws TooManyOriginCustomHeadersException * Your request contains too many origin custom headers. * @throws TooManyQueryStringParametersException * Your request contains too many query string parameters. * @throws InvalidQueryStringParametersException * The query string parameters specified are not valid. * @throws TooManyDistributionsWithLambdaAssociationsException * Processing your request would cause the maximum number of distributions with Lambda function associations * per owner to be exceeded. * @throws TooManyDistributionsWithSingleFunctionArnException * The maximum number of distributions have been associated with the specified Lambda function. * @throws TooManyLambdaFunctionAssociationsException * Your request contains more Lambda function associations than are allowed per distribution. * @throws InvalidLambdaFunctionAssociationException * The specified Lambda function association is invalid. * @throws 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. * @throws 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. * @throws InvalidFunctionAssociationException * A CloudFront function association is invalid. * @throws InvalidOriginReadTimeoutException * The read timeout specified for the origin is not valid. * @throws InvalidOriginKeepaliveTimeoutException * The keep alive timeout specified for the origin is not valid. * @throws NoSuchFieldLevelEncryptionConfigException * The specified configuration for field-level encryption doesn't exist. * @throws IllegalFieldLevelEncryptionConfigAssociationWithCacheBehaviorException * The specified configuration for field-level encryption can't be associated with the specified cache * behavior. * @throws TooManyDistributionsAssociatedToFieldLevelEncryptionConfigException * The maximum number of distributions have been associated with the specified configuration for field-level * encryption. * @throws NoSuchCachePolicyException * The cache policy does not exist. * @throws 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. * @throws NoSuchOriginRequestPolicyException * The origin request policy does not exist. * @throws 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. * @throws 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. * @throws 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. * @throws TrustedKeyGroupDoesNotExistException * The specified key group does not exist. * @throws NoSuchRealtimeLogConfigException * The real-time log configuration does not exist. * @throws RealtimeLogConfigOwnerMismatchException * The specified real-time log configuration belongs to a different AWS account. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.UpdateDistribution * @see AWS * API Documentation */ default UpdateDistributionResponse updateDistribution(UpdateDistributionRequest updateDistributionRequest) throws AccessDeniedException, CnameAlreadyExistsException, IllegalUpdateException, InvalidIfMatchVersionException, MissingBodyException, NoSuchDistributionException, PreconditionFailedException, TooManyDistributionCnamEsException, InvalidDefaultRootObjectException, InvalidRelativePathException, InvalidErrorCodeException, InvalidResponseCodeException, InvalidArgumentException, InvalidOriginAccessIdentityException, TooManyTrustedSignersException, TrustedSignerDoesNotExistException, InvalidViewerCertificateException, InvalidMinimumProtocolVersionException, InvalidRequiredProtocolException, NoSuchOriginException, TooManyOriginsException, TooManyOriginGroupsPerDistributionException, TooManyCacheBehaviorsException, TooManyCookieNamesInWhiteListException, InvalidForwardCookiesException, TooManyHeadersInForwardedValuesException, InvalidHeadersForS3OriginException, InconsistentQuantitiesException, TooManyCertificatesException, InvalidLocationCodeException, InvalidGeoRestrictionParameterException, InvalidTtlOrderException, InvalidWebAclIdException, TooManyOriginCustomHeadersException, TooManyQueryStringParametersException, InvalidQueryStringParametersException, TooManyDistributionsWithLambdaAssociationsException, TooManyDistributionsWithSingleFunctionArnException, TooManyLambdaFunctionAssociationsException, InvalidLambdaFunctionAssociationException, TooManyDistributionsWithFunctionAssociationsException, TooManyFunctionAssociationsException, InvalidFunctionAssociationException, InvalidOriginReadTimeoutException, InvalidOriginKeepaliveTimeoutException, NoSuchFieldLevelEncryptionConfigException, IllegalFieldLevelEncryptionConfigAssociationWithCacheBehaviorException, TooManyDistributionsAssociatedToFieldLevelEncryptionConfigException, NoSuchCachePolicyException, TooManyDistributionsAssociatedToCachePolicyException, NoSuchOriginRequestPolicyException, TooManyDistributionsAssociatedToOriginRequestPolicyException, TooManyDistributionsAssociatedToKeyGroupException, TooManyKeyGroupsAssociatedToDistributionException, TrustedKeyGroupDoesNotExistException, NoSuchRealtimeLogConfigException, RealtimeLogConfigOwnerMismatchException, AwsServiceException, SdkClientException, CloudFrontException { 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 *

*
    *
  1. *

    * 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. *

    *
  2. *
  3. *

    * 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. *

      *
    • *
    *
  4. *
  5. *

    * 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. *

      *
    • *
    *
  6. *
  7. *

    * Review the response to the UpdateDistribution request to confirm that the configuration was * successfully updated. *

    *
  8. *
  9. *

    * Optional: Submit a GetDistribution * request to confirm that your changes have propagated. When propagation is complete, the value of * Status is Deployed. *

    *
  10. *
*
*

* 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 Result of the UpdateDistribution operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws CnameAlreadyExistsException * The CNAME specified is already defined for CloudFront. * @throws IllegalUpdateException * The update contains modifications that are not allowed. * @throws InvalidIfMatchVersionException * The If-Match version is missing or not valid. * @throws MissingBodyException * This operation requires a body. Ensure that the body is present and the Content-Type header * is set. * @throws NoSuchDistributionException * The specified distribution does not exist. * @throws PreconditionFailedException * The precondition in one or more of the request fields evaluated to false. * @throws TooManyDistributionCnamEsException * Your request contains more CNAMEs than are allowed per distribution. * @throws InvalidDefaultRootObjectException * The default root object file name is too big or contains an invalid character. * @throws InvalidRelativePathException * The relative path is too big, is not URL-encoded, or does not begin with a slash (/). * @throws InvalidErrorCodeException * An invalid error code was specified. * @throws InvalidResponseCodeException * A response code is not valid. * @throws InvalidArgumentException * An argument is invalid. * @throws InvalidOriginAccessIdentityException * The origin access identity is not valid or doesn't exist. * @throws TooManyTrustedSignersException * Your request contains more trusted signers than are allowed per distribution. * @throws TrustedSignerDoesNotExistException * One or more of your trusted signers don't exist. * @throws InvalidViewerCertificateException * A viewer certificate specified is not valid. * @throws InvalidMinimumProtocolVersionException * The minimum protocol version specified is not valid. * @throws 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. * @throws NoSuchOriginException * No origin exists with the specified Origin Id. * @throws TooManyOriginsException * You cannot create more origins for the distribution. * @throws TooManyOriginGroupsPerDistributionException * Processing your request would cause you to exceed the maximum number of origin groups allowed. * @throws TooManyCacheBehaviorsException * You cannot create more cache behaviors for the distribution. * @throws TooManyCookieNamesInWhiteListException * Your request contains more cookie names in the whitelist than are allowed per cache behavior. * @throws 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. * @throws TooManyHeadersInForwardedValuesException * Your request contains too many headers in forwarded values. * @throws InvalidHeadersForS3OriginException * The headers specified are not valid for an Amazon S3 origin. * @throws InconsistentQuantitiesException * The value of Quantity and the size of Items don't match. * @throws TooManyCertificatesException * You cannot create anymore custom SSL/TLS certificates. * @throws InvalidLocationCodeException * The location code specified is not valid. * @throws InvalidGeoRestrictionParameterException * The specified geo restriction parameter is not valid. * @throws InvalidTtlOrderException * The TTL order specified is not valid. * @throws InvalidWebAclIdException * A web ACL ID specified is not valid. To specify a web ACL created using the latest version of AWS 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 AWS WAF Classic, use the ACL ID, for example * 473e64fd-f30b-4765-81a0-62ad96dd167a. * @throws TooManyOriginCustomHeadersException * Your request contains too many origin custom headers. * @throws TooManyQueryStringParametersException * Your request contains too many query string parameters. * @throws InvalidQueryStringParametersException * The query string parameters specified are not valid. * @throws TooManyDistributionsWithLambdaAssociationsException * Processing your request would cause the maximum number of distributions with Lambda function associations * per owner to be exceeded. * @throws TooManyDistributionsWithSingleFunctionArnException * The maximum number of distributions have been associated with the specified Lambda function. * @throws TooManyLambdaFunctionAssociationsException * Your request contains more Lambda function associations than are allowed per distribution. * @throws InvalidLambdaFunctionAssociationException * The specified Lambda function association is invalid. * @throws 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. * @throws 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. * @throws InvalidFunctionAssociationException * A CloudFront function association is invalid. * @throws InvalidOriginReadTimeoutException * The read timeout specified for the origin is not valid. * @throws InvalidOriginKeepaliveTimeoutException * The keep alive timeout specified for the origin is not valid. * @throws NoSuchFieldLevelEncryptionConfigException * The specified configuration for field-level encryption doesn't exist. * @throws IllegalFieldLevelEncryptionConfigAssociationWithCacheBehaviorException * The specified configuration for field-level encryption can't be associated with the specified cache * behavior. * @throws TooManyDistributionsAssociatedToFieldLevelEncryptionConfigException * The maximum number of distributions have been associated with the specified configuration for field-level * encryption. * @throws NoSuchCachePolicyException * The cache policy does not exist. * @throws 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. * @throws NoSuchOriginRequestPolicyException * The origin request policy does not exist. * @throws 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. * @throws 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. * @throws 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. * @throws TrustedKeyGroupDoesNotExistException * The specified key group does not exist. * @throws NoSuchRealtimeLogConfigException * The real-time log configuration does not exist. * @throws RealtimeLogConfigOwnerMismatchException * The specified real-time log configuration belongs to a different AWS account. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.UpdateDistribution * @see AWS * API Documentation */ default UpdateDistributionResponse updateDistribution(Consumer updateDistributionRequest) throws AccessDeniedException, CnameAlreadyExistsException, IllegalUpdateException, InvalidIfMatchVersionException, MissingBodyException, NoSuchDistributionException, PreconditionFailedException, TooManyDistributionCnamEsException, InvalidDefaultRootObjectException, InvalidRelativePathException, InvalidErrorCodeException, InvalidResponseCodeException, InvalidArgumentException, InvalidOriginAccessIdentityException, TooManyTrustedSignersException, TrustedSignerDoesNotExistException, InvalidViewerCertificateException, InvalidMinimumProtocolVersionException, InvalidRequiredProtocolException, NoSuchOriginException, TooManyOriginsException, TooManyOriginGroupsPerDistributionException, TooManyCacheBehaviorsException, TooManyCookieNamesInWhiteListException, InvalidForwardCookiesException, TooManyHeadersInForwardedValuesException, InvalidHeadersForS3OriginException, InconsistentQuantitiesException, TooManyCertificatesException, InvalidLocationCodeException, InvalidGeoRestrictionParameterException, InvalidTtlOrderException, InvalidWebAclIdException, TooManyOriginCustomHeadersException, TooManyQueryStringParametersException, InvalidQueryStringParametersException, TooManyDistributionsWithLambdaAssociationsException, TooManyDistributionsWithSingleFunctionArnException, TooManyLambdaFunctionAssociationsException, InvalidLambdaFunctionAssociationException, TooManyDistributionsWithFunctionAssociationsException, TooManyFunctionAssociationsException, InvalidFunctionAssociationException, InvalidOriginReadTimeoutException, InvalidOriginKeepaliveTimeoutException, NoSuchFieldLevelEncryptionConfigException, IllegalFieldLevelEncryptionConfigAssociationWithCacheBehaviorException, TooManyDistributionsAssociatedToFieldLevelEncryptionConfigException, NoSuchCachePolicyException, TooManyDistributionsAssociatedToCachePolicyException, NoSuchOriginRequestPolicyException, TooManyDistributionsAssociatedToOriginRequestPolicyException, TooManyDistributionsAssociatedToKeyGroupException, TooManyKeyGroupsAssociatedToDistributionException, TrustedKeyGroupDoesNotExistException, NoSuchRealtimeLogConfigException, RealtimeLogConfigOwnerMismatchException, AwsServiceException, SdkClientException, CloudFrontException { return updateDistribution(UpdateDistributionRequest.builder().applyMutation(updateDistributionRequest).build()); } /** *

* Update a field-level encryption configuration. *

* * @param updateFieldLevelEncryptionConfigRequest * @return Result of the UpdateFieldLevelEncryptionConfig operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws IllegalUpdateException * The update contains modifications that are not allowed. * @throws InconsistentQuantitiesException * The value of Quantity and the size of Items don't match. * @throws InvalidArgumentException * An argument is invalid. * @throws InvalidIfMatchVersionException * The If-Match version is missing or not valid. * @throws NoSuchFieldLevelEncryptionProfileException * The specified profile for field-level encryption doesn't exist. * @throws NoSuchFieldLevelEncryptionConfigException * The specified configuration for field-level encryption doesn't exist. * @throws PreconditionFailedException * The precondition in one or more of the request fields evaluated to false. * @throws TooManyFieldLevelEncryptionQueryArgProfilesException * The maximum number of query arg profiles for field-level encryption have been created. * @throws TooManyFieldLevelEncryptionContentTypeProfilesException * The maximum number of content type profiles for field-level encryption have been created. * @throws QueryArgProfileEmptyException * No profile specified for the field-level encryption query argument. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.UpdateFieldLevelEncryptionConfig * @see AWS API Documentation */ default UpdateFieldLevelEncryptionConfigResponse updateFieldLevelEncryptionConfig( UpdateFieldLevelEncryptionConfigRequest updateFieldLevelEncryptionConfigRequest) throws AccessDeniedException, IllegalUpdateException, InconsistentQuantitiesException, InvalidArgumentException, InvalidIfMatchVersionException, NoSuchFieldLevelEncryptionProfileException, NoSuchFieldLevelEncryptionConfigException, PreconditionFailedException, TooManyFieldLevelEncryptionQueryArgProfilesException, TooManyFieldLevelEncryptionContentTypeProfilesException, QueryArgProfileEmptyException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the UpdateFieldLevelEncryptionConfig operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws IllegalUpdateException * The update contains modifications that are not allowed. * @throws InconsistentQuantitiesException * The value of Quantity and the size of Items don't match. * @throws InvalidArgumentException * An argument is invalid. * @throws InvalidIfMatchVersionException * The If-Match version is missing or not valid. * @throws NoSuchFieldLevelEncryptionProfileException * The specified profile for field-level encryption doesn't exist. * @throws NoSuchFieldLevelEncryptionConfigException * The specified configuration for field-level encryption doesn't exist. * @throws PreconditionFailedException * The precondition in one or more of the request fields evaluated to false. * @throws TooManyFieldLevelEncryptionQueryArgProfilesException * The maximum number of query arg profiles for field-level encryption have been created. * @throws TooManyFieldLevelEncryptionContentTypeProfilesException * The maximum number of content type profiles for field-level encryption have been created. * @throws QueryArgProfileEmptyException * No profile specified for the field-level encryption query argument. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.UpdateFieldLevelEncryptionConfig * @see AWS API Documentation */ default UpdateFieldLevelEncryptionConfigResponse updateFieldLevelEncryptionConfig( Consumer updateFieldLevelEncryptionConfigRequest) throws AccessDeniedException, IllegalUpdateException, InconsistentQuantitiesException, InvalidArgumentException, InvalidIfMatchVersionException, NoSuchFieldLevelEncryptionProfileException, NoSuchFieldLevelEncryptionConfigException, PreconditionFailedException, TooManyFieldLevelEncryptionQueryArgProfilesException, TooManyFieldLevelEncryptionContentTypeProfilesException, QueryArgProfileEmptyException, AwsServiceException, SdkClientException, CloudFrontException { return updateFieldLevelEncryptionConfig(UpdateFieldLevelEncryptionConfigRequest.builder() .applyMutation(updateFieldLevelEncryptionConfigRequest).build()); } /** *

* Update a field-level encryption profile. *

* * @param updateFieldLevelEncryptionProfileRequest * @return Result of the UpdateFieldLevelEncryptionProfile operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws FieldLevelEncryptionProfileAlreadyExistsException * The specified profile for field-level encryption already exists. * @throws IllegalUpdateException * The update contains modifications that are not allowed. * @throws InconsistentQuantitiesException * The value of Quantity and the size of Items don't match. * @throws InvalidArgumentException * An argument is invalid. * @throws InvalidIfMatchVersionException * The If-Match version is missing or not valid. * @throws NoSuchPublicKeyException * The specified public key doesn't exist. * @throws NoSuchFieldLevelEncryptionProfileException * The specified profile for field-level encryption doesn't exist. * @throws PreconditionFailedException * The precondition in one or more of the request fields evaluated to false. * @throws FieldLevelEncryptionProfileSizeExceededException * The maximum size of a profile for field-level encryption was exceeded. * @throws TooManyFieldLevelEncryptionEncryptionEntitiesException * The maximum number of encryption entities for field-level encryption have been created. * @throws TooManyFieldLevelEncryptionFieldPatternsException * The maximum number of field patterns for field-level encryption have been created. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.UpdateFieldLevelEncryptionProfile * @see AWS API Documentation */ default UpdateFieldLevelEncryptionProfileResponse updateFieldLevelEncryptionProfile( UpdateFieldLevelEncryptionProfileRequest updateFieldLevelEncryptionProfileRequest) throws AccessDeniedException, FieldLevelEncryptionProfileAlreadyExistsException, IllegalUpdateException, InconsistentQuantitiesException, InvalidArgumentException, InvalidIfMatchVersionException, NoSuchPublicKeyException, NoSuchFieldLevelEncryptionProfileException, PreconditionFailedException, FieldLevelEncryptionProfileSizeExceededException, TooManyFieldLevelEncryptionEncryptionEntitiesException, TooManyFieldLevelEncryptionFieldPatternsException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the UpdateFieldLevelEncryptionProfile operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws FieldLevelEncryptionProfileAlreadyExistsException * The specified profile for field-level encryption already exists. * @throws IllegalUpdateException * The update contains modifications that are not allowed. * @throws InconsistentQuantitiesException * The value of Quantity and the size of Items don't match. * @throws InvalidArgumentException * An argument is invalid. * @throws InvalidIfMatchVersionException * The If-Match version is missing or not valid. * @throws NoSuchPublicKeyException * The specified public key doesn't exist. * @throws NoSuchFieldLevelEncryptionProfileException * The specified profile for field-level encryption doesn't exist. * @throws PreconditionFailedException * The precondition in one or more of the request fields evaluated to false. * @throws FieldLevelEncryptionProfileSizeExceededException * The maximum size of a profile for field-level encryption was exceeded. * @throws TooManyFieldLevelEncryptionEncryptionEntitiesException * The maximum number of encryption entities for field-level encryption have been created. * @throws TooManyFieldLevelEncryptionFieldPatternsException * The maximum number of field patterns for field-level encryption have been created. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.UpdateFieldLevelEncryptionProfile * @see AWS API Documentation */ default UpdateFieldLevelEncryptionProfileResponse updateFieldLevelEncryptionProfile( Consumer updateFieldLevelEncryptionProfileRequest) throws AccessDeniedException, FieldLevelEncryptionProfileAlreadyExistsException, IllegalUpdateException, InconsistentQuantitiesException, InvalidArgumentException, InvalidIfMatchVersionException, NoSuchPublicKeyException, NoSuchFieldLevelEncryptionProfileException, PreconditionFailedException, FieldLevelEncryptionProfileSizeExceededException, TooManyFieldLevelEncryptionEncryptionEntitiesException, TooManyFieldLevelEncryptionFieldPatternsException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the UpdateFunction operation returned by the service. * @throws InvalidArgumentException * An argument is invalid. * @throws InvalidIfMatchVersionException * The If-Match version is missing or not valid. * @throws NoSuchFunctionExistsException * The function does not exist. * @throws PreconditionFailedException * The precondition in one or more of the request fields evaluated to false. * @throws FunctionSizeLimitExceededException * The function is too large. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.UpdateFunction * @see AWS API * Documentation */ default UpdateFunctionResponse updateFunction(UpdateFunctionRequest updateFunctionRequest) throws InvalidArgumentException, InvalidIfMatchVersionException, NoSuchFunctionExistsException, PreconditionFailedException, FunctionSizeLimitExceededException, AwsServiceException, SdkClientException, CloudFrontException { 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 Result of the UpdateFunction operation returned by the service. * @throws InvalidArgumentException * An argument is invalid. * @throws InvalidIfMatchVersionException * The If-Match version is missing or not valid. * @throws NoSuchFunctionExistsException * The function does not exist. * @throws PreconditionFailedException * The precondition in one or more of the request fields evaluated to false. * @throws FunctionSizeLimitExceededException * The function is too large. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.UpdateFunction * @see AWS API * Documentation */ default UpdateFunctionResponse updateFunction(Consumer updateFunctionRequest) throws InvalidArgumentException, InvalidIfMatchVersionException, NoSuchFunctionExistsException, PreconditionFailedException, FunctionSizeLimitExceededException, AwsServiceException, SdkClientException, CloudFrontException { 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: *

*
    *
  1. *

    * Get the current key group with GetKeyGroup or GetKeyGroupConfig. *

    *
  2. *
  3. *

    * Locally modify the fields in the key group that you want to update. For example, add or remove public key IDs. *

    *
  4. *
  5. *

    * Call UpdateKeyGroup with the entire key group object, including the fields that you modified and * those that you didn’t. *

    *
  6. *
* * @param updateKeyGroupRequest * @return Result of the UpdateKeyGroup operation returned by the service. * @throws InvalidIfMatchVersionException * The If-Match version is missing or not valid. * @throws NoSuchResourceException * A resource that was specified is not valid. * @throws PreconditionFailedException * The precondition in one or more of the request fields evaluated to false. * @throws KeyGroupAlreadyExistsException * A key group with this name already exists. You must provide a unique name. To modify an existing key * group, use UpdateKeyGroup. * @throws InvalidArgumentException * An argument is invalid. * @throws 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. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.UpdateKeyGroup * @see AWS API * Documentation */ default UpdateKeyGroupResponse updateKeyGroup(UpdateKeyGroupRequest updateKeyGroupRequest) throws InvalidIfMatchVersionException, NoSuchResourceException, PreconditionFailedException, KeyGroupAlreadyExistsException, InvalidArgumentException, TooManyPublicKeysInKeyGroupException, AwsServiceException, SdkClientException, CloudFrontException { 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: *

*
    *
  1. *

    * Get the current key group with GetKeyGroup or GetKeyGroupConfig. *

    *
  2. *
  3. *

    * Locally modify the fields in the key group that you want to update. For example, add or remove public key IDs. *

    *
  4. *
  5. *

    * Call UpdateKeyGroup with the entire key group object, including the fields that you modified and * those that you didn’t. *

    *
  6. *
*
*

* This is a convenience which creates an instance of the {@link UpdateKeyGroupRequest.Builder} avoiding the need to * create one manually via {@link UpdateKeyGroupRequest#builder()} *

* * @param updateKeyGroupRequest * A {@link Consumer} that will call methods on {@link UpdateKeyGroupRequest.Builder} to create a request. * @return Result of the UpdateKeyGroup operation returned by the service. * @throws InvalidIfMatchVersionException * The If-Match version is missing or not valid. * @throws NoSuchResourceException * A resource that was specified is not valid. * @throws PreconditionFailedException * The precondition in one or more of the request fields evaluated to false. * @throws KeyGroupAlreadyExistsException * A key group with this name already exists. You must provide a unique name. To modify an existing key * group, use UpdateKeyGroup. * @throws InvalidArgumentException * An argument is invalid. * @throws 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. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.UpdateKeyGroup * @see AWS API * Documentation */ default UpdateKeyGroupResponse updateKeyGroup(Consumer updateKeyGroupRequest) throws InvalidIfMatchVersionException, NoSuchResourceException, PreconditionFailedException, KeyGroupAlreadyExistsException, InvalidArgumentException, TooManyPublicKeysInKeyGroupException, AwsServiceException, SdkClientException, CloudFrontException { return updateKeyGroup(UpdateKeyGroupRequest.builder().applyMutation(updateKeyGroupRequest).build()); } /** *

* Updates an origin request policy configuration. *

*

* When you update an origin request policy configuration, all the fields are updated with the values provided in * the request. You cannot update some fields independent of others. To update an origin request policy * configuration: *

*
    *
  1. *

    * Use GetOriginRequestPolicyConfig to get the current configuration. *

    *
  2. *
  3. *

    * Locally modify the fields in the origin request policy configuration that you want to update. *

    *
  4. *
  5. *

    * Call UpdateOriginRequestPolicy by providing the entire origin request policy configuration, * including the fields that you modified and those that you didn’t. *

    *
  6. *
* * @param updateOriginRequestPolicyRequest * @return Result of the UpdateOriginRequestPolicy operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws IllegalUpdateException * The update contains modifications that are not allowed. * @throws InconsistentQuantitiesException * The value of Quantity and the size of Items don't match. * @throws InvalidArgumentException * An argument is invalid. * @throws InvalidIfMatchVersionException * The If-Match version is missing or not valid. * @throws NoSuchOriginRequestPolicyException * The origin request policy does not exist. * @throws PreconditionFailedException * The precondition in one or more of the request fields evaluated to false. * @throws 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. * @throws 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. * @throws 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. * @throws 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. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.UpdateOriginRequestPolicy * @see AWS API Documentation */ default UpdateOriginRequestPolicyResponse updateOriginRequestPolicy( UpdateOriginRequestPolicyRequest updateOriginRequestPolicyRequest) throws AccessDeniedException, IllegalUpdateException, InconsistentQuantitiesException, InvalidArgumentException, InvalidIfMatchVersionException, NoSuchOriginRequestPolicyException, PreconditionFailedException, OriginRequestPolicyAlreadyExistsException, TooManyHeadersInOriginRequestPolicyException, TooManyCookiesInOriginRequestPolicyException, TooManyQueryStringsInOriginRequestPolicyException, AwsServiceException, SdkClientException, CloudFrontException { throw new UnsupportedOperationException(); } /** *

* Updates an origin request policy configuration. *

*

* When you update an origin request policy configuration, all the fields are updated with the values provided in * the request. You cannot update some fields independent of others. To update an origin request policy * configuration: *

*
    *
  1. *

    * Use GetOriginRequestPolicyConfig to get the current configuration. *

    *
  2. *
  3. *

    * Locally modify the fields in the origin request policy configuration that you want to update. *

    *
  4. *
  5. *

    * Call UpdateOriginRequestPolicy by providing the entire origin request policy configuration, * including the fields that you modified and those that you didn’t. *

    *
  6. *
*
*

* This is a convenience which creates an instance of the {@link UpdateOriginRequestPolicyRequest.Builder} avoiding * the need to create one manually via {@link UpdateOriginRequestPolicyRequest#builder()} *

* * @param updateOriginRequestPolicyRequest * A {@link Consumer} that will call methods on {@link UpdateOriginRequestPolicyRequest.Builder} to create a * request. * @return Result of the UpdateOriginRequestPolicy operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws IllegalUpdateException * The update contains modifications that are not allowed. * @throws InconsistentQuantitiesException * The value of Quantity and the size of Items don't match. * @throws InvalidArgumentException * An argument is invalid. * @throws InvalidIfMatchVersionException * The If-Match version is missing or not valid. * @throws NoSuchOriginRequestPolicyException * The origin request policy does not exist. * @throws PreconditionFailedException * The precondition in one or more of the request fields evaluated to false. * @throws 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. * @throws 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. * @throws 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. * @throws 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. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.UpdateOriginRequestPolicy * @see AWS API Documentation */ default UpdateOriginRequestPolicyResponse updateOriginRequestPolicy( Consumer updateOriginRequestPolicyRequest) throws AccessDeniedException, IllegalUpdateException, InconsistentQuantitiesException, InvalidArgumentException, InvalidIfMatchVersionException, NoSuchOriginRequestPolicyException, PreconditionFailedException, OriginRequestPolicyAlreadyExistsException, TooManyHeadersInOriginRequestPolicyException, TooManyCookiesInOriginRequestPolicyException, TooManyQueryStringsInOriginRequestPolicyException, AwsServiceException, SdkClientException, CloudFrontException { return updateOriginRequestPolicy(UpdateOriginRequestPolicyRequest.builder() .applyMutation(updateOriginRequestPolicyRequest).build()); } /** *

* Update public key information. Note that the only value you can change is the comment. *

* * @param updatePublicKeyRequest * @return Result of the UpdatePublicKey operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws CannotChangeImmutablePublicKeyFieldsException * You can't change the value of a public key. * @throws InvalidArgumentException * An argument is invalid. * @throws InvalidIfMatchVersionException * The If-Match version is missing or not valid. * @throws IllegalUpdateException * The update contains modifications that are not allowed. * @throws NoSuchPublicKeyException * The specified public key doesn't exist. * @throws PreconditionFailedException * The precondition in one or more of the request fields evaluated to false. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.UpdatePublicKey * @see AWS * API Documentation */ default UpdatePublicKeyResponse updatePublicKey(UpdatePublicKeyRequest updatePublicKeyRequest) throws AccessDeniedException, CannotChangeImmutablePublicKeyFieldsException, InvalidArgumentException, InvalidIfMatchVersionException, IllegalUpdateException, NoSuchPublicKeyException, PreconditionFailedException, AwsServiceException, SdkClientException, CloudFrontException { throw new UnsupportedOperationException(); } /** *

* Update public key information. Note that the only value you can change is the comment. *

*
*

* This is a convenience which creates an instance of the {@link UpdatePublicKeyRequest.Builder} avoiding the need * to create one manually via {@link UpdatePublicKeyRequest#builder()} *

* * @param updatePublicKeyRequest * A {@link Consumer} that will call methods on {@link UpdatePublicKeyRequest.Builder} to create a request. * @return Result of the UpdatePublicKey operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws CannotChangeImmutablePublicKeyFieldsException * You can't change the value of a public key. * @throws InvalidArgumentException * An argument is invalid. * @throws InvalidIfMatchVersionException * The If-Match version is missing or not valid. * @throws IllegalUpdateException * The update contains modifications that are not allowed. * @throws NoSuchPublicKeyException * The specified public key doesn't exist. * @throws PreconditionFailedException * The precondition in one or more of the request fields evaluated to false. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.UpdatePublicKey * @see AWS * API Documentation */ default UpdatePublicKeyResponse updatePublicKey(Consumer updatePublicKeyRequest) throws AccessDeniedException, CannotChangeImmutablePublicKeyFieldsException, InvalidArgumentException, InvalidIfMatchVersionException, IllegalUpdateException, NoSuchPublicKeyException, PreconditionFailedException, AwsServiceException, SdkClientException, CloudFrontException { return updatePublicKey(UpdatePublicKeyRequest.builder().applyMutation(updatePublicKeyRequest).build()); } /** *

* Updates a real-time log configuration. *

*

* When you update a real-time log configuration, all the parameters are updated with the values provided in the * request. You cannot update some parameters independent of others. To update a real-time log configuration: *

*
    *
  1. *

    * Call GetRealtimeLogConfig to get the current real-time log configuration. *

    *
  2. *
  3. *

    * Locally modify the parameters in the real-time log configuration that you want to update. *

    *
  4. *
  5. *

    * Call this API (UpdateRealtimeLogConfig) by providing the entire real-time log configuration, * including the parameters that you modified and those that you didn’t. *

    *
  6. *
*

* You cannot update a real-time log configuration’s Name or ARN. *

* * @param updateRealtimeLogConfigRequest * @return Result of the UpdateRealtimeLogConfig operation returned by the service. * @throws NoSuchRealtimeLogConfigException * The real-time log configuration does not exist. * @throws InvalidArgumentException * An argument is invalid. * @throws AccessDeniedException * Access denied. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.UpdateRealtimeLogConfig * @see AWS API Documentation */ default UpdateRealtimeLogConfigResponse updateRealtimeLogConfig(UpdateRealtimeLogConfigRequest updateRealtimeLogConfigRequest) throws NoSuchRealtimeLogConfigException, InvalidArgumentException, AccessDeniedException, AwsServiceException, SdkClientException, CloudFrontException { throw new UnsupportedOperationException(); } /** *

* Updates a real-time log configuration. *

*

* When you update a real-time log configuration, all the parameters are updated with the values provided in the * request. You cannot update some parameters independent of others. To update a real-time log configuration: *

*
    *
  1. *

    * Call GetRealtimeLogConfig to get the current real-time log configuration. *

    *
  2. *
  3. *

    * Locally modify the parameters in the real-time log configuration that you want to update. *

    *
  4. *
  5. *

    * Call this API (UpdateRealtimeLogConfig) by providing the entire real-time log configuration, * including the parameters that you modified and those that you didn’t. *

    *
  6. *
*

* You cannot update a real-time log configuration’s Name or ARN. *

*
*

* This is a convenience which creates an instance of the {@link UpdateRealtimeLogConfigRequest.Builder} avoiding * the need to create one manually via {@link UpdateRealtimeLogConfigRequest#builder()} *

* * @param updateRealtimeLogConfigRequest * A {@link Consumer} that will call methods on {@link UpdateRealtimeLogConfigRequest.Builder} to create a * request. * @return Result of the UpdateRealtimeLogConfig operation returned by the service. * @throws NoSuchRealtimeLogConfigException * The real-time log configuration does not exist. * @throws InvalidArgumentException * An argument is invalid. * @throws AccessDeniedException * Access denied. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.UpdateRealtimeLogConfig * @see AWS API Documentation */ default UpdateRealtimeLogConfigResponse updateRealtimeLogConfig( Consumer updateRealtimeLogConfigRequest) throws NoSuchRealtimeLogConfigException, InvalidArgumentException, AccessDeniedException, AwsServiceException, SdkClientException, CloudFrontException { return updateRealtimeLogConfig(UpdateRealtimeLogConfigRequest.builder().applyMutation(updateRealtimeLogConfigRequest) .build()); } /** *

* Update a streaming distribution. *

* * @param updateStreamingDistributionRequest * The request to update a streaming distribution. * @return Result of the UpdateStreamingDistribution operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws CnameAlreadyExistsException * The CNAME specified is already defined for CloudFront. * @throws IllegalUpdateException * The update contains modifications that are not allowed. * @throws InvalidIfMatchVersionException * The If-Match version is missing or not valid. * @throws MissingBodyException * This operation requires a body. Ensure that the body is present and the Content-Type header * is set. * @throws NoSuchStreamingDistributionException * The specified streaming distribution does not exist. * @throws PreconditionFailedException * The precondition in one or more of the request fields evaluated to false. * @throws TooManyStreamingDistributionCnamEsException * Your request contains more CNAMEs than are allowed per distribution. * @throws InvalidArgumentException * An argument is invalid. * @throws InvalidOriginAccessIdentityException * The origin access identity is not valid or doesn't exist. * @throws TooManyTrustedSignersException * Your request contains more trusted signers than are allowed per distribution. * @throws TrustedSignerDoesNotExistException * One or more of your trusted signers don't exist. * @throws InconsistentQuantitiesException * The value of Quantity and the size of Items don't match. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.UpdateStreamingDistribution * @see AWS API Documentation */ default UpdateStreamingDistributionResponse updateStreamingDistribution( UpdateStreamingDistributionRequest updateStreamingDistributionRequest) throws AccessDeniedException, CnameAlreadyExistsException, IllegalUpdateException, InvalidIfMatchVersionException, MissingBodyException, NoSuchStreamingDistributionException, PreconditionFailedException, TooManyStreamingDistributionCnamEsException, InvalidArgumentException, InvalidOriginAccessIdentityException, TooManyTrustedSignersException, TrustedSignerDoesNotExistException, InconsistentQuantitiesException, AwsServiceException, SdkClientException, CloudFrontException { throw new UnsupportedOperationException(); } /** *

* Update a streaming distribution. *

*
*

* This is a convenience which creates an instance of the {@link UpdateStreamingDistributionRequest.Builder} * avoiding the need to create one manually via {@link UpdateStreamingDistributionRequest#builder()} *

* * @param updateStreamingDistributionRequest * A {@link Consumer} that will call methods on {@link UpdateStreamingDistributionRequest.Builder} to create * a request. The request to update a streaming distribution. * @return Result of the UpdateStreamingDistribution operation returned by the service. * @throws AccessDeniedException * Access denied. * @throws CnameAlreadyExistsException * The CNAME specified is already defined for CloudFront. * @throws IllegalUpdateException * The update contains modifications that are not allowed. * @throws InvalidIfMatchVersionException * The If-Match version is missing or not valid. * @throws MissingBodyException * This operation requires a body. Ensure that the body is present and the Content-Type header * is set. * @throws NoSuchStreamingDistributionException * The specified streaming distribution does not exist. * @throws PreconditionFailedException * The precondition in one or more of the request fields evaluated to false. * @throws TooManyStreamingDistributionCnamEsException * Your request contains more CNAMEs than are allowed per distribution. * @throws InvalidArgumentException * An argument is invalid. * @throws InvalidOriginAccessIdentityException * The origin access identity is not valid or doesn't exist. * @throws TooManyTrustedSignersException * Your request contains more trusted signers than are allowed per distribution. * @throws TrustedSignerDoesNotExistException * One or more of your trusted signers don't exist. * @throws InconsistentQuantitiesException * The value of Quantity and the size of Items don't match. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudFrontException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudFrontClient.UpdateStreamingDistribution * @see AWS API Documentation */ default UpdateStreamingDistributionResponse updateStreamingDistribution( Consumer updateStreamingDistributionRequest) throws AccessDeniedException, CnameAlreadyExistsException, IllegalUpdateException, InvalidIfMatchVersionException, MissingBodyException, NoSuchStreamingDistributionException, PreconditionFailedException, TooManyStreamingDistributionCnamEsException, InvalidArgumentException, InvalidOriginAccessIdentityException, TooManyTrustedSignersException, TrustedSignerDoesNotExistException, InconsistentQuantitiesException, AwsServiceException, SdkClientException, CloudFrontException { return updateStreamingDistribution(UpdateStreamingDistributionRequest.builder() .applyMutation(updateStreamingDistributionRequest).build()); } static ServiceMetadata serviceMetadata() { return ServiceMetadata.of(SERVICE_METADATA_ID); } /** * Create an instance of {@link CloudFrontWaiter} using this client. *

* Waiters created via this method are managed by the SDK and resources will be released when the service client is * closed. * * @return an instance of {@link CloudFrontWaiter} */ default CloudFrontWaiter waiter() { throw new UnsupportedOperationException(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy