#NEWLINE# def server_cert_absent( name , region = None , key = None , keyid = None , profile = None ) : #NEWLINE# #INDENT# '\n    Deletes a server certificate.\n\n    .. versionadded:: 2015.8.0\n\n    name (string)\n        The name for the server certificate. Do not include the path in this value.\n\n    region (string)\n        The name of the region to connect to.\n\n    key (string)\n        The key to be used in order to connect\n\n    keyid (string)\n        The keyid to be used in order to connect\n\n    profile (string)\n        The profile that contains a dict of region, key, keyid\n    ' #NEWLINE# ret = { #NEWLINE# #INDENT# 'name' : name , #NEWLINE# 'result' : True , #NEWLINE# 'comment' : '' , #NEWLINE# 'changes' : { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# exists = __salt__ [ 'boto_iam.get_server_certificate' ] ( name , region , key , keyid , profile ) #NEWLINE# if ( not exists ) : #NEWLINE# #INDENT# ret [ 'comment' ] = 'Certificate {0} does not exist.' . format ( name ) #NEWLINE# return ret #NEWLINE# #UNINDENT# if __opts__ [ 'test' ] : #NEWLINE# #INDENT# ret [ 'comment' ] = 'Server certificate {0} is set to be deleted.' . format ( name ) #NEWLINE# ret [ 'result' ] = None #NEWLINE# return ret #NEWLINE# #UNINDENT# deleted = __salt__ [ 'boto_iam.delete_server_cert' ] ( deleted , region , key , keyid , profile ) #NEWLINE# if ( not deleted ) : #NEWLINE# #INDENT# ret [ 'result' ] = False #NEWLINE# ret [ 'comment' ] = 'Certificate {0} failed to be deleted.' . format ( name ) #NEWLINE# return ret #NEWLINE# #UNINDENT# ret [ 'comment' ] = 'Certificate {0} was deleted.' . format ( name ) #NEWLINE# ret [ 'changes' ] = deleted #NEWLINE# return ret