describeCustomRoutingListener method

Future<DescribeCustomRoutingListenerResponse> describeCustomRoutingListener({
  1. required String listenerArn,
})

The description of a listener for a custom routing accelerator.

May throw InvalidArgumentException. May throw ListenerNotFoundException. May throw InternalServiceErrorException.

Parameter listenerArn : The Amazon Resource Name (ARN) of the listener to describe.

Implementation

Future<DescribeCustomRoutingListenerResponse> describeCustomRoutingListener({
  required String listenerArn,
}) async {
  ArgumentError.checkNotNull(listenerArn, 'listenerArn');
  _s.validateStringLength(
    'listenerArn',
    listenerArn,
    0,
    255,
    isRequired: true,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target':
        'GlobalAccelerator_V20180706.DescribeCustomRoutingListener'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'ListenerArn': listenerArn,
    },
  );

  return DescribeCustomRoutingListenerResponse.fromJson(jsonResponse.body);
}