describeWorkteam method

Future<DescribeWorkteamResponse> describeWorkteam({
  1. required String workteamName,
})

Gets information about a specific work team. You can see information such as the create date, the last updated date, membership information, and the work team's Amazon Resource Name (ARN).

Parameter workteamName : The name of the work team to return a description of.

Implementation

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

  return DescribeWorkteamResponse.fromJson(jsonResponse.body);
}