Class: CloudFormer::CloudFormation::Authentication

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

Instance Attribute Summary

Attributes inherited from MetadataResource

#aws_type

Instance Method Summary collapse

Methods included from MakesJson

included

Methods included from HasPropertiesAndAttributes

included, #nested_resources, #resource_tree

Constructor Details

#initializeAuthentication

Returns a new instance of Authentication.



6
7
8
9
# File 'lib/cloud_former/metadata_resources/cloud_formation/authentication.rb', line 6

def initialize
  super
  @aws_type = 'AWS::CloudFormation::Authentication'
end

Instance Method Details

#dump_jsonObject



18
19
20
21
22
23
24
# File 'lib/cloud_former/metadata_resources/cloud_formation/authentication.rb', line 18

def dump_json
  res = {}
  (@authentication_items || []).each do |item|
    res[item.get_name] = item.dump_json
  end
  res
end

#items(values = nil) ⇒ Object



11
12
13
14
15
16
# File 'lib/cloud_former/metadata_resources/cloud_formation/authentication.rb', line 11

def items(values = nil)
  if values
    @authentication_items = values
  end
  @authentication_items
end