#NEWLINE# def _normalize_properties( self , definition ) : #NEWLINE# #INDENT# '\n        Inspects the definition and returns a copy of it that is updated\n        with any special property such as Condition, UpdatePolicy and the\n        like.\n        ' #NEWLINE# args = definition . get ( 'Properties' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) . copy ( ) #NEWLINE# if ( 'Condition' in definition ) : #NEWLINE# #INDENT# args . update ( { #NEWLINE# #INDENT# 'Condition' : definition [ 'Condition' ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# if ( 'UpdatePolicy' in args ) : #NEWLINE# #INDENT# args . update ( { #NEWLINE# #INDENT# 'UpdatePolicy' : self . _create_instance ( UpdatePolicy , definition [ 'UpdatePolicy' ] ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# if ( 'CreationPolicy' in definition ) : #NEWLINE# #INDENT# args . update ( { #NEWLINE# #INDENT# 'CreationPolicy' : self . _create_instance ( CreationPolicy , definition [ 'CreationPolicy' ] ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# if ( 'DeletionPolicy' in definition ) : #NEWLINE# #INDENT# args . update ( { #NEWLINE# #INDENT# 'DeletionPolicy' : self . _convert_definition ( definition [ 'DeletionPolicy' ] ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# if ( 'Metadata' in definition ) : #NEWLINE# #INDENT# args . update ( { #NEWLINE# #INDENT# 'Metadata' : self . _convert_definition ( definition [ 'Metadata' ] ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# if ( 'DependsOn' in definition ) : #NEWLINE# #INDENT# args . update ( { #NEWLINE# #INDENT# 'DependsOn' : self . _convert_definition ( definition [ 'DependsOn' ] ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# return args