You are viewing documentation for version 1 of the AWS SDK for Ruby. Version 2 documentation can be found here.

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