Class: TerraformDSL::AWS::IAM::Role
- Defined in:
- lib/terraformdsl/aws.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#policy ⇒ Object
readonly
Returns the value of attribute policy.
Attributes inherited from Resource
Instance Method Summary collapse
- #attr(attr) ⇒ Object
-
#initialize(name, path, policy) ⇒ Role
constructor
A new instance of Role.
Methods inherited from Resource
Constructor Details
#initialize(name, path, policy) ⇒ Role
Returns a new instance of Role.
564 565 566 567 568 |
# File 'lib/terraformdsl/aws.rb', line 564 def initialize(name, path, policy) @name = name @path = path @policy = policy end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
569 570 571 |
# File 'lib/terraformdsl/aws.rb', line 569 def name @name end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
569 570 571 |
# File 'lib/terraformdsl/aws.rb', line 569 def path @path end |
#policy ⇒ Object (readonly)
Returns the value of attribute policy.
569 570 571 |
# File 'lib/terraformdsl/aws.rb', line 569 def policy @policy end |
Instance Method Details
#attr(attr) ⇒ Object
571 |
# File 'lib/terraformdsl/aws.rb', line 571 def attr(attr); "${aws_iam_role.#{@name}.#{attr}}"; end |