Class: CloudFormer::CloudFormation::AuthenticationItem

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

Instance Attribute Summary

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, #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_idObject



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_nameObject



21
22
23
# File 'lib/cloud_former/metadata_resources/cloud_formation/authentication_item.rb', line 21

def get_name
  @name
end