Class: Aws::IoTSiteWise::Errors::ResourceAlreadyExistsException

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of ResourceAlreadyExistsException.

Parameters:



121
122
123
# File 'gems/aws-sdk-iotsitewise/lib/aws-sdk-iotsitewise/errors.rb', line 121

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

Instance Method Details

#messageString

Returns:

  • (String)


126
127
128
# File 'gems/aws-sdk-iotsitewise/lib/aws-sdk-iotsitewise/errors.rb', line 126

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

#resource_arnString

Returns:

  • (String)


136
137
138
# File 'gems/aws-sdk-iotsitewise/lib/aws-sdk-iotsitewise/errors.rb', line 136

def resource_arn
  @data[:resource_arn]
end

#resource_idString

Returns:

  • (String)


131
132
133
# File 'gems/aws-sdk-iotsitewise/lib/aws-sdk-iotsitewise/errors.rb', line 131

def resource_id
  @data[:resource_id]
end