Class: Skywriter::Resource::CloudFormation::Authentication
- Inherits:
-
Object
- Object
- Skywriter::Resource::CloudFormation::Authentication
- Includes:
- Skywriter::Resource
- Defined in:
- lib/skywriter/resource/cloud_formation/authentication.rb
Overview
AWS::CloudFormation::Authentication Resource
Instance Attribute Summary
Attributes included from Skywriter::Resource
Instance Method Summary collapse
Methods included from Skywriter::Resource
#[], #as_pointer, #initialize, #register_dependency
Instance Method Details
#as_json ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/skywriter/resource/cloud_formation/authentication.rb', line 18 def as_json Thread.current[:skywriter_as_json_context] = self as_json = { logical_name => { 'Type' => type } } .each do |top_level_key, properties| as_json[logical_name][top_level_key.to_s] = properties(properties).as_json end as_json[logical_name]['DependsOn'] = all_dependencies return as_json ensure Thread.current[:skywriter_as_json_context] = nil end |