describeIngestion method

Future<DescribeIngestionResponse> describeIngestion({
  1. required String awsAccountId,
  2. required String dataSetId,
  3. required String ingestionId,
})

Describes a SPICE ingestion.

May throw AccessDeniedException. May throw InvalidParameterValueException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ResourceExistsException. May throw InternalFailureException.

Parameter awsAccountId : The AWS account ID.

Parameter dataSetId : The ID of the dataset used in the ingestion.

Parameter ingestionId : An ID for the ingestion.

Implementation

Future<DescribeIngestionResponse> describeIngestion({
  required String awsAccountId,
  required String dataSetId,
  required String ingestionId,
}) async {
  ArgumentError.checkNotNull(awsAccountId, 'awsAccountId');
  _s.validateStringLength(
    'awsAccountId',
    awsAccountId,
    12,
    12,
    isRequired: true,
  );
  ArgumentError.checkNotNull(dataSetId, 'dataSetId');
  ArgumentError.checkNotNull(ingestionId, 'ingestionId');
  _s.validateStringLength(
    'ingestionId',
    ingestionId,
    1,
    128,
    isRequired: true,
  );
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/accounts/${Uri.encodeComponent(awsAccountId)}/data-sets/${Uri.encodeComponent(dataSetId)}/ingestions/${Uri.encodeComponent(ingestionId)}',
    exceptionFnMap: _exceptionFns,
  );
  return DescribeIngestionResponse.fromJson(response);
}