Class: CloudFormer::CloudFormation::AuthenticationItem

Inherits:
MetadataResource show all
Defined in:
lib/cloud_former/metadata_resources/cloud_formation/authentication_item.rb

Instance Attribute Summary collapse

Attributes inherited from MetadataResource

#aws_type

Class Method Summary collapse

Instance Method Summary collapse

Methods included from MakesJson

#dump_json, included

Methods included from HasPropertiesAndAttributes

included

Constructor Details

#initializeAuthenticationItem

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

#nameObject (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_idObject



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