describeCustomRoutingAcceleratorAttributes method

Future<DescribeCustomRoutingAcceleratorAttributesResponse> describeCustomRoutingAcceleratorAttributes({
  1. required String acceleratorArn,
})

Describe the attributes of a custom routing accelerator.

May throw AcceleratorNotFoundException. May throw InternalServiceErrorException. May throw InvalidArgumentException.

Parameter acceleratorArn : The Amazon Resource Name (ARN) of the custom routing accelerator to describe the attributes for.

Implementation

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

  return DescribeCustomRoutingAcceleratorAttributesResponse.fromJson(
      jsonResponse.body);
}