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