Class: Chef::Provider::AwsIamRole

Inherits:
Chef::Provisioning::AWSDriver::AWSProvider show all
Defined in:
lib/chef/provider/aws_iam_role.rb

Constant Summary

Constants inherited from Chef::Provisioning::AWSDriver::AWSProvider

Chef::Provisioning::AWSDriver::AWSProvider::AWSResource

Instance Attribute Summary

Attributes inherited from Chef::Provisioning::AWSDriver::AWSProvider

#purging

Instance Method Summary collapse

Methods inherited from Chef::Provisioning::AWSDriver::AWSProvider

#action_handler, #converge_by, #region, #whyrun_supported?

Instance Method Details

#action_createObject



15
16
17
18
19
# File 'lib/chef/provider/aws_iam_role.rb', line 15

def action_create
  role = super

  update_inline_policy(role) unless new_resource.inline_policies.nil?
end

#iam_clientObject



7
8
9
# File 'lib/chef/provider/aws_iam_role.rb', line 7

def iam_client
  new_resource.driver.iam_client
end

#iam_resourceObject



11
12
13
# File 'lib/chef/provider/aws_iam_role.rb', line 11

def iam_resource
  new_resource.driver.iam_resource
end