Class: AWS::IAM::Resource

Inherits:
Core::Resource
  • Object
show all
Defined in:
lib/aws/iam/resource.rb

Instance Method Summary collapse

Instance Method Details

#exists?Boolean

Returns true if the resource exists.

Returns:

  • (Boolean)

    Returns true if the resource exists.



19
20
21
22
23
24
# File 'lib/aws/iam/resource.rb', line 19

def exists?
  get_resource
  true
rescue Errors::NoSuchEntity => e
  false
end