Method: Awspec::Type::IamRole#initialize
- Defined in:
- lib/awspec/type/iam_role.rb
#initialize(id) ⇒ IamRole
Returns a new instance of IamRole.
3 4 5 6 7 |
# File 'lib/awspec/type/iam_role.rb', line 3 def initialize(id) super @resource_via_client = find_iam_role(id) @id = @resource_via_client[:role_id] if @resource_via_client end |