Class: CloudFormer::CloudFormation::Authentication
- Inherits:
-
MetadataResource
- Object
- MetadataResource
- CloudFormer::CloudFormation::Authentication
- Defined in:
- lib/cloud_former/metadata_resources/cloud_formation/authentication.rb
Instance Attribute Summary
Attributes inherited from MetadataResource
Instance Method Summary collapse
- #dump_json ⇒ Object
-
#initialize ⇒ Authentication
constructor
A new instance of Authentication.
- #items(values = nil) ⇒ Object
Methods included from MakesJson
Methods included from HasPropertiesAndAttributes
included, #nested_resources, #resource_tree
Constructor Details
#initialize ⇒ Authentication
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_json ⇒ Object
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 |