# frozen_string_literal: true # WARNING ABOUT GENERATED CODE # # This file is generated. See the contributing guide for more information: # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md # # WARNING ABOUT GENERATED CODE module Aws::CloudFront # When CloudFront returns an error response, the Ruby SDK constructs and raises an error. # These errors all extend Aws::CloudFront::Errors::ServiceError < {Aws::Errors::ServiceError} # # You can rescue all CloudFront errors using ServiceError: # # begin # # do stuff # rescue Aws::CloudFront::Errors::ServiceError # # rescues all CloudFront API errors # end # # # ## Request Context # ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns # information about the request that generated the error. # See {Seahorse::Client::RequestContext} for more information. # # ## Error Classes # * {AccessDenied} # * {BatchTooLarge} # * {CNAMEAlreadyExists} # * {CachePolicyAlreadyExists} # * {CachePolicyInUse} # * {CannotChangeImmutablePublicKeyFields} # * {CloudFrontOriginAccessIdentityAlreadyExists} # * {CloudFrontOriginAccessIdentityInUse} # * {DistributionAlreadyExists} # * {DistributionNotDisabled} # * {FieldLevelEncryptionConfigAlreadyExists} # * {FieldLevelEncryptionConfigInUse} # * {FieldLevelEncryptionProfileAlreadyExists} # * {FieldLevelEncryptionProfileInUse} # * {FieldLevelEncryptionProfileSizeExceeded} # * {IllegalDelete} # * {IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior} # * {IllegalUpdate} # * {InconsistentQuantities} # * {InvalidArgument} # * {InvalidDefaultRootObject} # * {InvalidErrorCode} # * {InvalidForwardCookies} # * {InvalidGeoRestrictionParameter} # * {InvalidHeadersForS3Origin} # * {InvalidIfMatchVersion} # * {InvalidLambdaFunctionAssociation} # * {InvalidLocationCode} # * {InvalidMinimumProtocolVersion} # * {InvalidOrigin} # * {InvalidOriginAccessIdentity} # * {InvalidOriginKeepaliveTimeout} # * {InvalidOriginReadTimeout} # * {InvalidProtocolSettings} # * {InvalidQueryStringParameters} # * {InvalidRelativePath} # * {InvalidRequiredProtocol} # * {InvalidResponseCode} # * {InvalidTTLOrder} # * {InvalidTagging} # * {InvalidViewerCertificate} # * {InvalidWebACLId} # * {KeyGroupAlreadyExists} # * {MissingBody} # * {NoSuchCachePolicy} # * {NoSuchCloudFrontOriginAccessIdentity} # * {NoSuchDistribution} # * {NoSuchFieldLevelEncryptionConfig} # * {NoSuchFieldLevelEncryptionProfile} # * {NoSuchInvalidation} # * {NoSuchOrigin} # * {NoSuchOriginRequestPolicy} # * {NoSuchPublicKey} # * {NoSuchRealtimeLogConfig} # * {NoSuchResource} # * {NoSuchStreamingDistribution} # * {OriginRequestPolicyAlreadyExists} # * {OriginRequestPolicyInUse} # * {PreconditionFailed} # * {PublicKeyAlreadyExists} # * {PublicKeyInUse} # * {QueryArgProfileEmpty} # * {RealtimeLogConfigAlreadyExists} # * {RealtimeLogConfigInUse} # * {ResourceInUse} # * {StreamingDistributionAlreadyExists} # * {StreamingDistributionNotDisabled} # * {TooManyCacheBehaviors} # * {TooManyCachePolicies} # * {TooManyCertificates} # * {TooManyCloudFrontOriginAccessIdentities} # * {TooManyCookieNamesInWhiteList} # * {TooManyCookiesInCachePolicy} # * {TooManyCookiesInOriginRequestPolicy} # * {TooManyDistributionCNAMEs} # * {TooManyDistributions} # * {TooManyDistributionsAssociatedToCachePolicy} # * {TooManyDistributionsAssociatedToFieldLevelEncryptionConfig} # * {TooManyDistributionsAssociatedToKeyGroup} # * {TooManyDistributionsAssociatedToOriginRequestPolicy} # * {TooManyDistributionsWithLambdaAssociations} # * {TooManyDistributionsWithSingleFunctionARN} # * {TooManyFieldLevelEncryptionConfigs} # * {TooManyFieldLevelEncryptionContentTypeProfiles} # * {TooManyFieldLevelEncryptionEncryptionEntities} # * {TooManyFieldLevelEncryptionFieldPatterns} # * {TooManyFieldLevelEncryptionProfiles} # * {TooManyFieldLevelEncryptionQueryArgProfiles} # * {TooManyHeadersInCachePolicy} # * {TooManyHeadersInForwardedValues} # * {TooManyHeadersInOriginRequestPolicy} # * {TooManyInvalidationsInProgress} # * {TooManyKeyGroups} # * {TooManyKeyGroupsAssociatedToDistribution} # * {TooManyLambdaFunctionAssociations} # * {TooManyOriginCustomHeaders} # * {TooManyOriginGroupsPerDistribution} # * {TooManyOriginRequestPolicies} # * {TooManyOrigins} # * {TooManyPublicKeys} # * {TooManyPublicKeysInKeyGroup} # * {TooManyQueryStringParameters} # * {TooManyQueryStringsInCachePolicy} # * {TooManyQueryStringsInOriginRequestPolicy} # * {TooManyRealtimeLogConfigs} # * {TooManyStreamingDistributionCNAMEs} # * {TooManyStreamingDistributions} # * {TooManyTrustedSigners} # * {TrustedKeyGroupDoesNotExist} # * {TrustedSignerDoesNotExist} # # Additionally, error classes are dynamically generated for service errors based on the error code # if they are not defined above. module Errors extend Aws::Errors::DynamicErrors class AccessDenied < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::AccessDenied] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class BatchTooLarge < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::BatchTooLarge] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class CNAMEAlreadyExists < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::CNAMEAlreadyExists] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class CachePolicyAlreadyExists < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::CachePolicyAlreadyExists] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class CachePolicyInUse < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::CachePolicyInUse] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class CannotChangeImmutablePublicKeyFields < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::CannotChangeImmutablePublicKeyFields] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class CloudFrontOriginAccessIdentityAlreadyExists < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::CloudFrontOriginAccessIdentityAlreadyExists] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class CloudFrontOriginAccessIdentityInUse < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::CloudFrontOriginAccessIdentityInUse] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class DistributionAlreadyExists < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::DistributionAlreadyExists] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class DistributionNotDisabled < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::DistributionNotDisabled] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class FieldLevelEncryptionConfigAlreadyExists < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::FieldLevelEncryptionConfigAlreadyExists] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class FieldLevelEncryptionConfigInUse < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::FieldLevelEncryptionConfigInUse] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class FieldLevelEncryptionProfileAlreadyExists < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::FieldLevelEncryptionProfileAlreadyExists] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class FieldLevelEncryptionProfileInUse < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::FieldLevelEncryptionProfileInUse] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class FieldLevelEncryptionProfileSizeExceeded < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::FieldLevelEncryptionProfileSizeExceeded] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class IllegalDelete < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::IllegalDelete] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class IllegalUpdate < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::IllegalUpdate] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class InconsistentQuantities < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::InconsistentQuantities] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class InvalidArgument < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::InvalidArgument] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class InvalidDefaultRootObject < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::InvalidDefaultRootObject] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class InvalidErrorCode < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::InvalidErrorCode] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class InvalidForwardCookies < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::InvalidForwardCookies] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class InvalidGeoRestrictionParameter < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::InvalidGeoRestrictionParameter] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class InvalidHeadersForS3Origin < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::InvalidHeadersForS3Origin] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class InvalidIfMatchVersion < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::InvalidIfMatchVersion] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class InvalidLambdaFunctionAssociation < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::InvalidLambdaFunctionAssociation] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class InvalidLocationCode < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::InvalidLocationCode] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class InvalidMinimumProtocolVersion < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::InvalidMinimumProtocolVersion] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class InvalidOrigin < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::InvalidOrigin] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class InvalidOriginAccessIdentity < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::InvalidOriginAccessIdentity] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class InvalidOriginKeepaliveTimeout < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::InvalidOriginKeepaliveTimeout] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class InvalidOriginReadTimeout < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::InvalidOriginReadTimeout] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class InvalidProtocolSettings < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::InvalidProtocolSettings] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class InvalidQueryStringParameters < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::InvalidQueryStringParameters] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class InvalidRelativePath < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::InvalidRelativePath] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class InvalidRequiredProtocol < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::InvalidRequiredProtocol] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class InvalidResponseCode < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::InvalidResponseCode] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class InvalidTTLOrder < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::InvalidTTLOrder] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class InvalidTagging < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::InvalidTagging] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class InvalidViewerCertificate < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::InvalidViewerCertificate] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class InvalidWebACLId < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::InvalidWebACLId] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class KeyGroupAlreadyExists < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::KeyGroupAlreadyExists] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class MissingBody < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::MissingBody] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class NoSuchCachePolicy < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::NoSuchCachePolicy] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class NoSuchCloudFrontOriginAccessIdentity < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::NoSuchCloudFrontOriginAccessIdentity] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class NoSuchDistribution < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::NoSuchDistribution] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class NoSuchFieldLevelEncryptionConfig < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::NoSuchFieldLevelEncryptionConfig] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class NoSuchFieldLevelEncryptionProfile < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::NoSuchFieldLevelEncryptionProfile] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class NoSuchInvalidation < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::NoSuchInvalidation] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class NoSuchOrigin < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::NoSuchOrigin] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class NoSuchOriginRequestPolicy < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::NoSuchOriginRequestPolicy] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class NoSuchPublicKey < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::NoSuchPublicKey] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class NoSuchRealtimeLogConfig < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::NoSuchRealtimeLogConfig] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class NoSuchResource < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::NoSuchResource] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class NoSuchStreamingDistribution < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::NoSuchStreamingDistribution] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class OriginRequestPolicyAlreadyExists < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::OriginRequestPolicyAlreadyExists] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class OriginRequestPolicyInUse < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::OriginRequestPolicyInUse] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class PreconditionFailed < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::PreconditionFailed] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class PublicKeyAlreadyExists < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::PublicKeyAlreadyExists] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class PublicKeyInUse < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::PublicKeyInUse] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class QueryArgProfileEmpty < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::QueryArgProfileEmpty] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class RealtimeLogConfigAlreadyExists < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::RealtimeLogConfigAlreadyExists] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class RealtimeLogConfigInUse < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::RealtimeLogConfigInUse] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class ResourceInUse < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::ResourceInUse] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class StreamingDistributionAlreadyExists < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::StreamingDistributionAlreadyExists] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class StreamingDistributionNotDisabled < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::StreamingDistributionNotDisabled] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class TooManyCacheBehaviors < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::TooManyCacheBehaviors] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class TooManyCachePolicies < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::TooManyCachePolicies] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class TooManyCertificates < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::TooManyCertificates] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class TooManyCloudFrontOriginAccessIdentities < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::TooManyCloudFrontOriginAccessIdentities] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class TooManyCookieNamesInWhiteList < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::TooManyCookieNamesInWhiteList] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class TooManyCookiesInCachePolicy < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::TooManyCookiesInCachePolicy] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class TooManyCookiesInOriginRequestPolicy < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::TooManyCookiesInOriginRequestPolicy] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class TooManyDistributionCNAMEs < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::TooManyDistributionCNAMEs] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class TooManyDistributions < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::TooManyDistributions] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class TooManyDistributionsAssociatedToCachePolicy < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::TooManyDistributionsAssociatedToCachePolicy] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class TooManyDistributionsAssociatedToFieldLevelEncryptionConfig < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::TooManyDistributionsAssociatedToFieldLevelEncryptionConfig] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class TooManyDistributionsAssociatedToKeyGroup < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::TooManyDistributionsAssociatedToKeyGroup] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class TooManyDistributionsAssociatedToOriginRequestPolicy < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::TooManyDistributionsAssociatedToOriginRequestPolicy] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class TooManyDistributionsWithLambdaAssociations < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::TooManyDistributionsWithLambdaAssociations] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class TooManyDistributionsWithSingleFunctionARN < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::TooManyDistributionsWithSingleFunctionARN] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class TooManyFieldLevelEncryptionConfigs < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::TooManyFieldLevelEncryptionConfigs] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class TooManyFieldLevelEncryptionContentTypeProfiles < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::TooManyFieldLevelEncryptionContentTypeProfiles] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class TooManyFieldLevelEncryptionEncryptionEntities < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::TooManyFieldLevelEncryptionEncryptionEntities] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class TooManyFieldLevelEncryptionFieldPatterns < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::TooManyFieldLevelEncryptionFieldPatterns] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class TooManyFieldLevelEncryptionProfiles < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::TooManyFieldLevelEncryptionProfiles] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class TooManyFieldLevelEncryptionQueryArgProfiles < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::TooManyFieldLevelEncryptionQueryArgProfiles] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class TooManyHeadersInCachePolicy < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::TooManyHeadersInCachePolicy] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class TooManyHeadersInForwardedValues < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::TooManyHeadersInForwardedValues] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class TooManyHeadersInOriginRequestPolicy < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::TooManyHeadersInOriginRequestPolicy] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class TooManyInvalidationsInProgress < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::TooManyInvalidationsInProgress] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class TooManyKeyGroups < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::TooManyKeyGroups] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class TooManyKeyGroupsAssociatedToDistribution < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::TooManyKeyGroupsAssociatedToDistribution] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class TooManyLambdaFunctionAssociations < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::TooManyLambdaFunctionAssociations] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class TooManyOriginCustomHeaders < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::TooManyOriginCustomHeaders] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class TooManyOriginGroupsPerDistribution < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::TooManyOriginGroupsPerDistribution] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class TooManyOriginRequestPolicies < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::TooManyOriginRequestPolicies] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class TooManyOrigins < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::TooManyOrigins] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class TooManyPublicKeys < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::TooManyPublicKeys] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class TooManyPublicKeysInKeyGroup < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::TooManyPublicKeysInKeyGroup] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class TooManyQueryStringParameters < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::TooManyQueryStringParameters] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class TooManyQueryStringsInCachePolicy < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::TooManyQueryStringsInCachePolicy] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class TooManyQueryStringsInOriginRequestPolicy < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::TooManyQueryStringsInOriginRequestPolicy] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class TooManyRealtimeLogConfigs < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::TooManyRealtimeLogConfigs] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class TooManyStreamingDistributionCNAMEs < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::TooManyStreamingDistributionCNAMEs] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class TooManyStreamingDistributions < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::TooManyStreamingDistributions] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class TooManyTrustedSigners < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::TooManyTrustedSigners] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class TrustedKeyGroupDoesNotExist < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::TrustedKeyGroupDoesNotExist] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class TrustedSignerDoesNotExist < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::TrustedSignerDoesNotExist] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end end end