// Describes the specified rules or the rules for the specified listener. You must
// specify either a listener or one or more rules.
Describes the specified rules or the rules for the specified listener. You must
specify either a listener or one or more rules.
// Describes the specified rules or the rules for the specified listener . You must // specify either a listener or one or more rules .
func (c *Client) DescribeRules(ctx context.Context, params *DescribeRulesInput, optFns ...func(*Options)) (*DescribeRulesOutput, error) {
	if params == nil {
		params = &DescribeRulesInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "DescribeRules", params, optFns, addOperationDescribeRulesMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*DescribeRulesOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) DescribeRules ( ctx context . Context , params * DescribeRulesInput , optFns ... func ( * Options ) ) ( * DescribeRulesOutput , error ) { if params == nil { params = & DescribeRulesInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationDescribeRulesMiddlewares ) if err != nil { return nil , err } out := result . ( * DescribeRulesOutput ) out . ResultMetadata = metadata return out , nil }
Describes the specified rules or the rules for the specified listener.
Describes the specified rules or the rules for the specified listener .