describeListenerCertificates method

Future<DescribeListenerCertificatesOutput> describeListenerCertificates({
  1. required String listenerArn,
  2. String? marker,
  3. int? pageSize,
})

Describes the default certificate and the certificate list for the specified HTTPS or TLS listener.

If the default certificate is also in the certificate list, it appears twice in the results (once with IsDefault set to true and once with IsDefault set to false).

For more information, see SSL certificates in the Application Load Balancers Guide or Server certificates in the Network Load Balancers Guide.

May throw ListenerNotFoundException.

Parameter listenerArn : The Amazon Resource Names (ARN) of the listener.

Parameter marker : The marker for the next set of results. (You received this marker from a previous call.)

Parameter pageSize : The maximum number of results to return with this call.

Implementation

Future<DescribeListenerCertificatesOutput> describeListenerCertificates({
  required String listenerArn,
  String? marker,
  int? pageSize,
}) async {
  ArgumentError.checkNotNull(listenerArn, 'listenerArn');
  _s.validateNumRange(
    'pageSize',
    pageSize,
    1,
    400,
  );
  final $request = <String, dynamic>{};
  $request['ListenerArn'] = listenerArn;
  marker?.also((arg) => $request['Marker'] = arg);
  pageSize?.also((arg) => $request['PageSize'] = arg);
  final $result = await _protocol.send(
    $request,
    action: 'DescribeListenerCertificates',
    version: '2015-12-01',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['DescribeListenerCertificatesInput'],
    shapes: shapes,
    resultWrapper: 'DescribeListenerCertificatesResult',
  );
  return DescribeListenerCertificatesOutput.fromXml($result);
}