describeDomain method

Future<DescribeDomainResponse> describeDomain({
  1. required String domainId,
})

The description of the domain.

May throw ResourceNotFound.

Parameter domainId : The domain ID.

Implementation

Future<DescribeDomainResponse> describeDomain({
  required String domainId,
}) async {
  ArgumentError.checkNotNull(domainId, 'domainId');
  _s.validateStringLength(
    'domainId',
    domainId,
    0,
    63,
    isRequired: true,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'SageMaker.DescribeDomain'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'DomainId': domainId,
    },
  );

  return DescribeDomainResponse.fromJson(jsonResponse.body);
}