describeFeatureTransformation method

Future<DescribeFeatureTransformationResponse> describeFeatureTransformation({
  1. required String featureTransformationArn,
})

Describes the given feature transformation.

May throw InvalidInputException. May throw ResourceNotFoundException.

Parameter featureTransformationArn : The Amazon Resource Name (ARN) of the feature transformation to describe.

Implementation

Future<DescribeFeatureTransformationResponse> describeFeatureTransformation({
  required String featureTransformationArn,
}) async {
  ArgumentError.checkNotNull(
      featureTransformationArn, 'featureTransformationArn');
  _s.validateStringLength(
    'featureTransformationArn',
    featureTransformationArn,
    0,
    256,
    isRequired: true,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AmazonPersonalize.DescribeFeatureTransformation'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'featureTransformationArn': featureTransformationArn,
    },
  );

  return DescribeFeatureTransformationResponse.fromJson(jsonResponse.body);
}