Class: Aws::ChimeSDKMediaPipelines::Errors::ForbiddenException

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of ForbiddenException.

Parameters:



101
102
103
# File 'gems/aws-sdk-chimesdkmediapipelines/lib/aws-sdk-chimesdkmediapipelines/errors.rb', line 101

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

Instance Method Details

#codeString

Returns:

  • (String)


106
107
108
# File 'gems/aws-sdk-chimesdkmediapipelines/lib/aws-sdk-chimesdkmediapipelines/errors.rb', line 106

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

#messageString

Returns:

  • (String)


111
112
113
# File 'gems/aws-sdk-chimesdkmediapipelines/lib/aws-sdk-chimesdkmediapipelines/errors.rb', line 111

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

#request_idString

Returns:

  • (String)


116
117
118
# File 'gems/aws-sdk-chimesdkmediapipelines/lib/aws-sdk-chimesdkmediapipelines/errors.rb', line 116

def request_id
  @data[:request_id]
end