Class: Chef::Resource::AwsIamRole
- Inherits:
-
Provisioning::AWSDriver::AWSResource
- Object
- LWRPBase
- Provisioning::AWSDriver::SuperLWRP
- Provisioning::AWSDriver::AWSResource
- Chef::Resource::AwsIamRole
- Defined in:
- lib/chef/resource/aws_iam_role.rb
Overview
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:
Constant Summary
Constants inherited from Provisioning::AWSDriver::AWSResource
Provisioning::AWSDriver::AWSResource::NOT_PASSED
Instance Method Summary collapse
-
#aws_object ⇒ Object
TODO: add when we get a policy resource.
Methods inherited from Provisioning::AWSDriver::AWSResource
#action, #action=, #aws_object_id, get_aws_object, get_aws_object_id, #initialize, lookup_options
Methods inherited from Provisioning::AWSDriver::SuperLWRP
Constructor Details
This class inherits a constructor from Chef::Provisioning::AWSDriver::AWSResource
Instance Method Details
#aws_object ⇒ Object
TODO: add when we get a policy resource
attribute :managed_policies, kind_of: [Array, String, ::Aws::IAM::Policy, AwsIamPolicy], coerce: proc { |value| [value].flatten }
49 50 51 52 53 |
# 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 |