def replace_topic_rule(ruleName, sql, actions, description, ruleDisabled=False, region=None, key=None, keyid=None, profile=None):
 try:
  conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
  conn.replace_topic_rule(ruleName=ruleName, topicRulePayload={'sql': sql, 'description': description, 'actions': actions, 'ruleDisabled': ruleDisabled})
  return {'replaced': True}
 except ClientError as e:
  return {'replaced': False, 'error': salt.utils.boto3.get_error(e)}

def replace_topic_rule ( ruleName , sql , actions , description , ruleDisabled = False , region = None , key = None , keyid = None , profile = None ) : try : conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) conn . replace_topic_rule ( ruleName = ruleName , topicRulePayload = { 'sql' : sql , 'description' : description , 'actions' : actions , 'ruleDisabled' : ruleDisabled } ) return { 'replaced' : True } except ClientError as e : return { 'replaced' : False , 'error' : salt . utils . boto3 . get_error ( e ) }
given a valid config .