lib/aws-sdk-cloudfront/errors.rb in aws-sdk-cloudfront-1.69.0 vs lib/aws-sdk-cloudfront/errors.rb in aws-sdk-cloudfront-1.70.0

- old
+ new

@@ -107,10 +107,11 @@ # * {RealtimeLogConfigInUse} # * {RealtimeLogConfigOwnerMismatch} # * {ResourceInUse} # * {ResponseHeadersPolicyAlreadyExists} # * {ResponseHeadersPolicyInUse} + # * {StagingDistributionInUse} # * {StreamingDistributionAlreadyExists} # * {StreamingDistributionNotDisabled} # * {TestFunctionFailed} # * {TooLongCSPInResponseHeadersPolicy} # * {TooManyCacheBehaviors} @@ -1390,9 +1391,24 @@ class ResponseHeadersPolicyInUse < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::CloudFront::Types::ResponseHeadersPolicyInUse] data + def initialize(context, message, data = Aws::EmptyStructure.new) + super(context, message, data) + end + + # @return [String] + def message + @message || @data[:message] + end + end + + class StagingDistributionInUse < ServiceError + + # @param [Seahorse::Client::RequestContext] context + # @param [String] message + # @param [Aws::CloudFront::Types::StagingDistributionInUse] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String]