@sts_conn('<STR_LIT>')<EOL>@rate_limited()<EOL>def describe_rules(listener_arn=None, rule_arns=None, client=None):
kwargs = dict()<EOL>if listener_arn:<EOL><INDENT>kwargs.update(dict(ListenerArn=listener_arn))<EOL><DEDENT>if rule_arns:<EOL><INDENT>kwargs.update(dict(RuleArns=rule_arns))<EOL><DEDENT>return client.describe_rules(**kwargs)['<STR_LIT>']<EOL>
Permission: elasticloadbalancing:DescribeRules