Class: TerraformConfig::AuditContext
- Defined in:
- lib/core/terraform_config/audit_context.rb
Constant Summary
Constants included from Dsl
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#tags ⇒ Object
readonly
Returns the value of attribute tags.
Instance Method Summary collapse
- #importable? ⇒ Boolean
-
#initialize(name:, description: nil, tags: nil) ⇒ AuditContext
constructor
A new instance of AuditContext.
- #reference ⇒ Object
- #to_tf ⇒ Object
Methods inherited from Base
Methods included from Dsl
Constructor Details
#initialize(name:, description: nil, tags: nil) ⇒ AuditContext
Returns a new instance of AuditContext.
7 8 9 10 11 12 13 |
# File 'lib/core/terraform_config/audit_context.rb', line 7 def initialize(name:, description: nil, tags: nil) super() @name = name @description = description @tags = end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
5 6 7 |
# File 'lib/core/terraform_config/audit_context.rb', line 5 def description @description end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/core/terraform_config/audit_context.rb', line 5 def name @name end |
#tags ⇒ Object (readonly)
Returns the value of attribute tags.
5 6 7 |
# File 'lib/core/terraform_config/audit_context.rb', line 5 def @tags end |
Instance Method Details
#importable? ⇒ Boolean
15 16 17 |
# File 'lib/core/terraform_config/audit_context.rb', line 15 def importable? true end |
#reference ⇒ Object
19 20 21 |
# File 'lib/core/terraform_config/audit_context.rb', line 19 def reference "cpln_audit_context.#{name}" end |
#to_tf ⇒ Object
23 24 25 26 27 28 29 |
# File 'lib/core/terraform_config/audit_context.rb', line 23 def to_tf block :resource, :cpln_audit_context, name do argument :name, name argument :description, description, optional: true argument :tags, , optional: true end end |