describe_target_groups
async
¶
describe_target_groups(
*,
config_overrides: Optional[AsyncElasticLoadBalancingv2ClientConfig] = None,
load_balancer_arn: Optional[LoadBalancerArn] = None,
target_group_arns: Optional[TargetGroupArns] = None,
names: Optional[TargetGroupNames] = None,
marker: Optional[Marker] = None,
page_size: Optional[PageSize] = None,
) -> DescribeTargetGroupsOutput
Describes the specified target groups or all of your target groups. By default, all target groups are described. Alternatively, you can specify one of the following to filter the results: the ARN of the load balancer, the names of one or more target groups, or the ARNs of one or more target groups.
Parameters:
-
load_balancer_arn(Optional[LoadBalancerArn], default:None) –The Amazon Resource Name (ARN) of the load balancer.
-
target_group_arns(Optional[TargetGroupArns], default:None) –The Amazon Resource Names (ARN) of the target groups.
-
names(Optional[TargetGroupNames], default:None) –The names of the target groups.
-
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:
-
LoadBalancerNotFoundException–The specified load balancer does not exist.
-
TargetGroupNotFoundException–The specified target group does not exist.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To describe a target group This example describes the specified target group.
>>> await client.describe_target_groups(target_group_arns=['arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067'])
Source code in docs_src/capo_elastic_load_balancing_v2/_services/async_elastic_load_balancingv2.py
2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 | |