describeAcceleratorAttributes method

Future<DescribeAcceleratorAttributesResponse> describeAcceleratorAttributes({
  1. required String acceleratorArn,
})

Describe the attributes of an accelerator.

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

Parameter acceleratorArn : The Amazon Resource Name (ARN) of the accelerator with the attributes that you want to describe.

Implementation

Future<DescribeAcceleratorAttributesResponse> describeAcceleratorAttributes({
  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.DescribeAcceleratorAttributes'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'AcceleratorArn': acceleratorArn,
    },
  );

  return DescribeAcceleratorAttributesResponse.fromJson(jsonResponse.body);
}