def get_account_policy(region=None, key=None, keyid=None, profile=None):
 conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
 try:
  info = conn.get_account_password_policy()
  return info.get_account_password_policy_response.get_account_password_policy_result.password_policy
 except boto.exception.BotoServerError as e:
  log.debug(e)
  msg = 'Failed to update the password policy.'
  log.error(msg)
  return False

def get_account_policy ( region = None , key = None , keyid = None , profile = None ) : conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) try : info = conn . get_account_password_policy ( ) return info . get_account_password_policy_response . get_account_password_policy_result . password_policy except boto . exception . BotoServerError as e : log . debug ( e ) msg = 'Failed to update the password policy.' log . error ( msg ) return False
get account policy for the aws account .