Class: Aws::CloudFront::Errors::OriginRequestPolicyAlreadyExists

Inherits:
ServiceError
  • Object
show all
Defined in:
lib/aws-sdk-cloudfront/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(context, message, data = Aws::EmptyStructure.new) ⇒ OriginRequestPolicyAlreadyExists

Returns a new instance of OriginRequestPolicyAlreadyExists.

Parameters:



1078
1079
1080
# File 'lib/aws-sdk-cloudfront/errors.rb', line 1078

def initialize(context, message, data = Aws::EmptyStructure.new)
  super(context, message, data)
end

Instance Method Details

#messageString

Returns:

  • (String)


1083
1084
1085
# File 'lib/aws-sdk-cloudfront/errors.rb', line 1083

def message
  @message || @data[:message]
end