Class: Aws::IoT::Errors::ResourceAlreadyExistsException

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of ResourceAlreadyExistsException.

Parameters:



326
327
328
# File 'gems/aws-sdk-iot/lib/aws-sdk-iot/errors.rb', line 326

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

Instance Method Details

#messageString

Returns:

  • (String)


331
332
333
# File 'gems/aws-sdk-iot/lib/aws-sdk-iot/errors.rb', line 331

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

#resource_arnString

Returns:

  • (String)


341
342
343
# File 'gems/aws-sdk-iot/lib/aws-sdk-iot/errors.rb', line 341

def resource_arn
  @data[:resource_arn]
end

#resource_idString

Returns:

  • (String)


336
337
338
# File 'gems/aws-sdk-iot/lib/aws-sdk-iot/errors.rb', line 336

def resource_id
  @data[:resource_id]
end