describe_rules
async
¶
describe_rules(
*,
config_overrides: Optional[AsyncElasticLoadBalancingv2ClientConfig] = 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.
>>> await 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.
>>> await 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/async_elastic_load_balancingv2.py
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 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 | |