describeDimension method

Future<DescribeDimensionResponse> describeDimension({
  1. required String name,
})

Provides details about a dimension that is defined in your AWS account.

May throw InternalFailureException. May throw InvalidRequestException. May throw ResourceNotFoundException. May throw ThrottlingException.

Parameter name : The unique identifier for the dimension.

Implementation

Future<DescribeDimensionResponse> describeDimension({
  required String name,
}) async {
  ArgumentError.checkNotNull(name, 'name');
  _s.validateStringLength(
    'name',
    name,
    1,
    128,
    isRequired: true,
  );
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/dimensions/${Uri.encodeComponent(name)}',
    exceptionFnMap: _exceptionFns,
  );
  return DescribeDimensionResponse.fromJson(response);
}