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:



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

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

Instance Method Details

#resource_id ⇒ String

Returns:

  • (String)


346
347
348
# File 'gems/aws-sdk-cloudwatch/lib/aws-sdk-cloudwatch/errors.rb', line 346

def resource_id
  @data[:resource_id]
end

#resource_type ⇒ String

Returns:

  • (String)


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

def resource_type
  @data[:resource_type]
end