describeLoadBalancerPolicyTypes method

Future<DescribeLoadBalancerPolicyTypesOutput> describeLoadBalancerPolicyTypes({
  1. List<String>? policyTypeNames,
})

Describes the specified load balancer policy types or all load balancer policy types.

The description of each type indicates how it can be used. For example, some policies can be used only with layer 7 listeners, some policies can be used only with layer 4 listeners, and some policies can be used only with your EC2 instances.

You can use CreateLoadBalancerPolicy to create a policy configuration for any of these policy types. Then, depending on the policy type, use either SetLoadBalancerPoliciesOfListener or SetLoadBalancerPoliciesForBackendServer to set the policy.

May throw PolicyTypeNotFoundException.

Parameter policyTypeNames : The names of the policy types. If no names are specified, describes all policy types defined by Elastic Load Balancing.

Implementation

Future<DescribeLoadBalancerPolicyTypesOutput>
    describeLoadBalancerPolicyTypes({
  List<String>? policyTypeNames,
}) async {
  final $request = <String, dynamic>{};
  policyTypeNames?.also((arg) => $request['PolicyTypeNames'] = arg);
  final $result = await _protocol.send(
    $request,
    action: 'DescribeLoadBalancerPolicyTypes',
    version: '2012-06-01',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['DescribeLoadBalancerPolicyTypesInput'],
    shapes: shapes,
    resultWrapper: 'DescribeLoadBalancerPolicyTypesResult',
  );
  return DescribeLoadBalancerPolicyTypesOutput.fromXml($result);
}