Class: CloudFormer::CloudFormation::AuthenticationItem
- Inherits:
-
MetadataResource
- Object
- MetadataResource
- CloudFormer::CloudFormation::AuthenticationItem
- Defined in:
- lib/cloud_former/metadata_resources/cloud_formation/authentication_item.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Attributes inherited from MetadataResource
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ AuthenticationItem
constructor
A new instance of AuthenticationItem.
Methods included from MakesJson
Methods included from HasPropertiesAndAttributes
included, #nested_resources, #resource_tree
Constructor Details
#initialize ⇒ AuthenticationItem
Returns a new instance of AuthenticationItem.
17 18 19 20 21 |
# File 'lib/cloud_former/metadata_resources/cloud_formation/authentication_item.rb', line 17 def initialize super @aws_type = 'AWS::CloudFormation::AuthenticationItem' @name = "AuthenticationItem#{self.class.next_id}" end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/cloud_former/metadata_resources/cloud_formation/authentication_item.rb', line 6 def name @name end |
Class Method Details
.next_id ⇒ Object
23 24 25 26 |
# File 'lib/cloud_former/metadata_resources/cloud_formation/authentication_item.rb', line 23 def self.next_id @@current_id ||= 1 @@current_id += 1 end |