class Chef::Resource::AwsIamRole
An AWS
IAM role, specifying set of policies for acessing other AWS
services.
`name` is unique for an AWS
account.
API documentation for the AWS
Ruby SDK for IAM roles (and the object returned from `aws_object`) can be found here:
Public Instance Methods
aws_object()
click to toggle source
TODO: add when we get a policy resource
attribute :managed_policies, kind_of: [Array, String, ::Aws::IAM::Policy, AwsIamPolicy], coerce: proc { |value| [value].flatten }
# File lib/chef/resource/aws_iam_role.rb, line 49 def aws_object driver.iam_resource.role(name).load rescue ::Aws::IAM::Errors::NoSuchEntity nil end