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
Attributes inherited from MetadataResource
Class Method Summary collapse
Instance Method Summary collapse
- #get_name ⇒ Object
-
#initialize(name = nil) ⇒ AuthenticationItem
constructor
A new instance of AuthenticationItem.
Methods included from MakesJson
Methods included from HasPropertiesAndAttributes
included, #nested_resources, #resource_tree
Constructor Details
#initialize(name = nil) ⇒ AuthenticationItem
Returns a new instance of AuthenticationItem.
15 16 17 18 19 |
# File 'lib/cloud_former/metadata_resources/cloud_formation/authentication_item.rb', line 15 def initialize(name = nil) super() @aws_type = 'AWS::CloudFormation::AuthenticationItem' @name = name || "AuthenticationItem#{self.class.next_id}" end |
Class Method Details
.next_id ⇒ Object
25 26 27 28 |
# File 'lib/cloud_former/metadata_resources/cloud_formation/authentication_item.rb', line 25 def self.next_id @@current_id ||= 1 @@current_id += 1 end |
Instance Method Details
#get_name ⇒ Object
21 22 23 |
# File 'lib/cloud_former/metadata_resources/cloud_formation/authentication_item.rb', line 21 def get_name @name end |