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
Constructor Details
#initialize ⇒ Authentication
Returns a new instance of Authentication.
7 8 9 10 |
# File 'lib/cloud_former/metadata_resources/cloud_formation/authentication.rb', line 7 def initialize super @aws_type = 'AWS::CloudFormation::Authentication' end |
Instance Method Details
#dump_json ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/cloud_former/metadata_resources/cloud_formation/authentication.rb', line 19 def dump_json res = {} (@authentication_items || []).each do |item| res[item.name] = item.dump_json end res end |
#items(values = nil) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/cloud_former/metadata_resources/cloud_formation/authentication.rb', line 12 def items(values=nil) if values @authentication_items = values end @authentication_items end |