Class: Aws::CloudFront::Errors::InvalidOriginAccessControl

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) ⇒ InvalidOriginAccessControl

Returns a new instance of InvalidOriginAccessControl.

Parameters:



852
853
854
# File 'lib/aws-sdk-cloudfront/errors.rb', line 852

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

Instance Method Details

#messageString

Returns:

  • (String)


857
858
859
# File 'lib/aws-sdk-cloudfront/errors.rb', line 857

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