#NEWLINE# def component_configuration( definition , configuration , args , info , force , account_info ) : #NEWLINE# #INDENT# if ( 'Parameters' in info ) : #NEWLINE# #INDENT# definition = ensure_keys ( definition , 'Parameters' ) #NEWLINE# default_parameter = { #NEWLINE# #INDENT# 'Type' : 'String' , #NEWLINE# #UNINDENT# } #NEWLINE# for parameter in info [ 'Parameters' ] : #NEWLINE# #INDENT# ( name , value ) = named_value ( parameter ) #NEWLINE# value_default = default_parameter . copy ( ) #NEWLINE# value_default . update ( value ) #NEWLINE# definition [ 'Parameters' ] [ name ] = value_default #NEWLINE# #UNINDENT# #UNINDENT# if ( 'Description' not in definition ) : #NEWLINE# #INDENT# definition [ 'Description' ] = get_default_description ( info , args ) #NEWLINE# #UNINDENT# for ( region , subnets ) in configuration . get ( 'ServerSubnets' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) . items ( ) : #NEWLINE# #INDENT# definition = ensure_keys ( definition , 'Mappings' , 'ServerSubnets' , region ) #NEWLINE# definition [ 'Mappings' ] [ 'ServerSubnets' ] [ region ] [ 'Subnets' ] = subnets #NEWLINE# #UNINDENT# for ( region , subnets ) in configuration . get ( 'LoadBalancerSubnets' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) . items ( ) : #NEWLINE# #INDENT# definition = ensure_keys ( definition , 'Mappings' , 'LoadBalancerSubnets' , region ) #NEWLINE# definition [ 'Mappings' ] [ 'LoadBalancerSubnets' ] [ region ] [ 'Subnets' ] = subnets #NEWLINE# #UNINDENT# for ( region , subnets ) in configuration . get ( 'LoadBalancerInternalSubnets' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) . items ( ) : #NEWLINE# #INDENT# definition = ensure_keys ( definition , 'Mappings' , 'LoadBalancerInternalSubnets' , region ) #NEWLINE# definition [ 'Mappings' ] [ 'LoadBalancerInternalSubnets' ] [ region ] [ 'Subnets' ] = subnets #NEWLINE# #UNINDENT# for ( name , image ) in configuration . get ( 'Images' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) . items ( ) : #NEWLINE# #INDENT# for ( region , ami ) in image . items ( ) : #NEWLINE# #INDENT# definition = ensure_keys ( definition , 'Mappings' , 'Images' , region , name ) #NEWLINE# definition [ 'Mappings' ] [ 'Images' ] [ region ] [ name ] = ami #NEWLINE# #UNINDENT# #UNINDENT# return definition