lib/aws-sdk-cloudfront/errors.rb in aws-sdk-cloudfront-1.34.0 vs lib/aws-sdk-cloudfront/errors.rb in aws-sdk-cloudfront-1.35.0

- old
+ new

@@ -28,20 +28,23 @@ # # ## Error Classes # * {AccessDenied} # * {BatchTooLarge} # * {CNAMEAlreadyExists} + # * {CachePolicyAlreadyExists} + # * {CachePolicyInUse} # * {CannotChangeImmutablePublicKeyFields} # * {CloudFrontOriginAccessIdentityAlreadyExists} # * {CloudFrontOriginAccessIdentityInUse} # * {DistributionAlreadyExists} # * {DistributionNotDisabled} # * {FieldLevelEncryptionConfigAlreadyExists} # * {FieldLevelEncryptionConfigInUse} # * {FieldLevelEncryptionProfileAlreadyExists} # * {FieldLevelEncryptionProfileInUse} # * {FieldLevelEncryptionProfileSizeExceeded} + # * {IllegalDelete} # * {IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior} # * {IllegalUpdate} # * {InconsistentQuantities} # * {InvalidArgument} # * {InvalidDefaultRootObject} @@ -65,47 +68,62 @@ # * {InvalidTTLOrder} # * {InvalidTagging} # * {InvalidViewerCertificate} # * {InvalidWebACLId} # * {MissingBody} + # * {NoSuchCachePolicy} # * {NoSuchCloudFrontOriginAccessIdentity} # * {NoSuchDistribution} # * {NoSuchFieldLevelEncryptionConfig} # * {NoSuchFieldLevelEncryptionProfile} # * {NoSuchInvalidation} # * {NoSuchOrigin} + # * {NoSuchOriginRequestPolicy} # * {NoSuchPublicKey} # * {NoSuchResource} # * {NoSuchStreamingDistribution} + # * {OriginRequestPolicyAlreadyExists} + # * {OriginRequestPolicyInUse} # * {PreconditionFailed} # * {PublicKeyAlreadyExists} # * {PublicKeyInUse} # * {QueryArgProfileEmpty} # * {StreamingDistributionAlreadyExists} # * {StreamingDistributionNotDisabled} # * {TooManyCacheBehaviors} + # * {TooManyCachePolicies} # * {TooManyCertificates} # * {TooManyCloudFrontOriginAccessIdentities} # * {TooManyCookieNamesInWhiteList} + # * {TooManyCookiesInCachePolicy} + # * {TooManyCookiesInOriginRequestPolicy} # * {TooManyDistributionCNAMEs} # * {TooManyDistributions} + # * {TooManyDistributionsAssociatedToCachePolicy} # * {TooManyDistributionsAssociatedToFieldLevelEncryptionConfig} + # * {TooManyDistributionsAssociatedToOriginRequestPolicy} # * {TooManyDistributionsWithLambdaAssociations} + # * {TooManyDistributionsWithSingleFunctionARN} # * {TooManyFieldLevelEncryptionConfigs} # * {TooManyFieldLevelEncryptionContentTypeProfiles} # * {TooManyFieldLevelEncryptionEncryptionEntities} # * {TooManyFieldLevelEncryptionFieldPatterns} # * {TooManyFieldLevelEncryptionProfiles} # * {TooManyFieldLevelEncryptionQueryArgProfiles} + # * {TooManyHeadersInCachePolicy} # * {TooManyHeadersInForwardedValues} + # * {TooManyHeadersInOriginRequestPolicy} # * {TooManyInvalidationsInProgress} # * {TooManyLambdaFunctionAssociations} # * {TooManyOriginCustomHeaders} # * {TooManyOriginGroupsPerDistribution} + # * {TooManyOriginRequestPolicies} # * {TooManyOrigins} # * {TooManyPublicKeys} # * {TooManyQueryStringParameters} + # * {TooManyQueryStringsInCachePolicy} + # * {TooManyQueryStringsInOriginRequestPolicy} # * {TooManyStreamingDistributionCNAMEs} # * {TooManyStreamingDistributions} # * {TooManyTrustedSigners} # * {TrustedSignerDoesNotExist} # @@ -158,10 +176,40 @@ 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 @@ -308,10 +356,25 @@ 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 @@ -713,10 +776,25 @@ 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 @@ -803,10 +881,25 @@ 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 @@ -848,10 +941,40 @@ 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 @@ -953,10 +1076,25 @@ 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 @@ -998,10 +1136,40 @@ 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 @@ -1028,10 +1196,25 @@ 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 @@ -1043,10 +1226,25 @@ 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 @@ -1058,10 +1256,25 @@ 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 @@ -1148,10 +1361,25 @@ 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 @@ -1163,10 +1391,25 @@ 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 @@ -1223,10 +1466,25 @@ 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 @@ -1258,9 +1516,39 @@ 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]