AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Class: Aws::CloudWatch::Errors::ResourceNotFoundException

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of ResourceNotFoundException.

Parameters:



230
231
232
# File 'gems/aws-sdk-cloudwatch/lib/aws-sdk-cloudwatch/errors.rb', line 230

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

Instance Method Details

#resource_idString

Returns:

  • (String)


240
241
242
# File 'gems/aws-sdk-cloudwatch/lib/aws-sdk-cloudwatch/errors.rb', line 240

def resource_id
  @data[:resource_id]
end

#resource_typeString

Returns:

  • (String)


235
236
237
# File 'gems/aws-sdk-cloudwatch/lib/aws-sdk-cloudwatch/errors.rb', line 235

def resource_type
  @data[:resource_type]
end