describeFeatureGroup method

Future<DescribeFeatureGroupResponse> describeFeatureGroup({
  1. required String featureGroupName,
  2. String? nextToken,
})

Use this operation to describe a FeatureGroup. The response includes information on the creation time, FeatureGroup name, the unique identifier for each FeatureGroup, and more.

May throw ResourceNotFound.

Parameter featureGroupName : The name of the FeatureGroup you want described.

Parameter nextToken : A token to resume pagination of the list of Features (FeatureDefinitions). 2,500 Features are returned by default.

Implementation

Future<DescribeFeatureGroupResponse> describeFeatureGroup({
  required String featureGroupName,
  String? nextToken,
}) async {
  ArgumentError.checkNotNull(featureGroupName, 'featureGroupName');
  _s.validateStringLength(
    'featureGroupName',
    featureGroupName,
    1,
    64,
    isRequired: true,
  );
  _s.validateStringLength(
    'nextToken',
    nextToken,
    0,
    8192,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'SageMaker.DescribeFeatureGroup'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'FeatureGroupName': featureGroupName,
      if (nextToken != null) 'NextToken': nextToken,
    },
  );

  return DescribeFeatureGroupResponse.fromJson(jsonResponse.body);
}