lib/aws-sdk-cloudfront/errors.rb in aws-sdk-cloudfront-1.44.0 vs lib/aws-sdk-cloudfront/errors.rb in aws-sdk-cloudfront-1.45.0

- old
+ new

@@ -67,10 +67,11 @@ # * {InvalidResponseCode} # * {InvalidTTLOrder} # * {InvalidTagging} # * {InvalidViewerCertificate} # * {InvalidWebACLId} + # * {KeyGroupAlreadyExists} # * {MissingBody} # * {NoSuchCachePolicy} # * {NoSuchCloudFrontOriginAccessIdentity} # * {NoSuchDistribution} # * {NoSuchFieldLevelEncryptionConfig} @@ -88,10 +89,11 @@ # * {PublicKeyAlreadyExists} # * {PublicKeyInUse} # * {QueryArgProfileEmpty} # * {RealtimeLogConfigAlreadyExists} # * {RealtimeLogConfigInUse} + # * {ResourceInUse} # * {StreamingDistributionAlreadyExists} # * {StreamingDistributionNotDisabled} # * {TooManyCacheBehaviors} # * {TooManyCachePolicies} # * {TooManyCertificates} @@ -101,10 +103,11 @@ # * {TooManyCookiesInOriginRequestPolicy} # * {TooManyDistributionCNAMEs} # * {TooManyDistributions} # * {TooManyDistributionsAssociatedToCachePolicy} # * {TooManyDistributionsAssociatedToFieldLevelEncryptionConfig} + # * {TooManyDistributionsAssociatedToKeyGroup} # * {TooManyDistributionsAssociatedToOriginRequestPolicy} # * {TooManyDistributionsWithLambdaAssociations} # * {TooManyDistributionsWithSingleFunctionARN} # * {TooManyFieldLevelEncryptionConfigs} # * {TooManyFieldLevelEncryptionContentTypeProfiles} @@ -114,23 +117,27 @@ # * {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 @@ -765,10 +772,25 @@ 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 @@ -1080,10 +1102,25 @@ 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 @@ -1275,10 +1312,25 @@ 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 @@ -1470,10 +1522,40 @@ 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 @@ -1560,10 +1642,25 @@ 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 @@ -1655,9 +1752,24 @@ 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]