describeLoadBalancerPolicies method
Describes the specified policies.
If you specify a load balancer name, the action returns the descriptions
of all policies created for the load balancer. If you specify a policy
name associated with your load balancer, the action returns the
description of that policy. If you don't specify a load balancer name, the
action returns descriptions of the specified sample policies, or
descriptions of all sample policies. The names of the sample policies have
the ELBSample-
prefix.
May throw AccessPointNotFoundException. May throw PolicyNotFoundException.
Parameter loadBalancerName
:
The name of the load balancer.
Parameter policyNames
:
The names of the policies.
Implementation
Future<DescribeLoadBalancerPoliciesOutput> describeLoadBalancerPolicies({
String? loadBalancerName,
List<String>? policyNames,
}) async {
final $request = <String, dynamic>{};
loadBalancerName?.also((arg) => $request['LoadBalancerName'] = arg);
policyNames?.also((arg) => $request['PolicyNames'] = arg);
final $result = await _protocol.send(
$request,
action: 'DescribeLoadBalancerPolicies',
version: '2012-06-01',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['DescribeLoadBalancerPoliciesInput'],
shapes: shapes,
resultWrapper: 'DescribeLoadBalancerPoliciesResult',
);
return DescribeLoadBalancerPoliciesOutput.fromXml($result);
}