describe_rules
¶
describe_rules(
*,
config_overrides: Optional[ElasticLoadBalancingv2ClientConfig] = None,
listener_arn: Optional[ListenerArn] = None,
rule_arns: Optional[RuleArns] = None,
marker: Optional[Marker] = None,
page_size: Optional[PageSize] = None,
) -> DescribeRulesOutput
Describes the specified rules or the rules for the specified listener. You must specify either a listener or rules.
Parameters:
-
listener_arn(Optional[ListenerArn], default:None) –The Amazon Resource Name (ARN) of the listener.
-
rule_arns(Optional[RuleArns], default:None) –The Amazon Resource Names (ARN) of the rules.
-
marker(Optional[Marker], default:None) –The marker for the next set of results. (You received this marker from a previous call.)
-
page_size(Optional[PageSize], default:None) –The maximum number of results to return with this call.
Raises:
-
ListenerNotFoundException–The specified listener does not exist.
-
RuleNotFoundException–The specified rule does not exist.
-
UnsupportedProtocolException–The specified protocol is not supported.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To describe a rule This example describes the specified rule.
>>> client.describe_rules(rule_arns=['arn:aws:elasticloadbalancing:us-west-2:123456789012:listener-rule/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2/9683b2d02a6cabee'])
To describe rules for a Network Load Balancer listener
This example describes the rules for the specified Network Load Balancer listener, including rules that route based on source IP address type.
>>> client.describe_rules(listener_arn='arn:aws:elasticloadbalancing:us-west-2:123456789012:listener/net/my-nlb/1234567890abcdef/1234567890abcdef')
Source code in docs_src/capo_elastic_load_balancing_v2/_services/elastic_load_balancingv2.py
2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 | |