getLineageEvent method

Future<GetLineageEventOutput> getLineageEvent({
  1. required String domainIdentifier,
  2. required String identifier,
})

Describes the lineage event.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter domainIdentifier : The ID of the domain.

Parameter identifier : The ID of the lineage event.

Implementation

Future<GetLineageEventOutput> getLineageEvent({
  required String domainIdentifier,
  required String identifier,
}) async {
  final response = await _protocol.sendRaw(
    payload: null,
    method: 'GET',
    requestUri:
        '/v2/domains/${Uri.encodeComponent(domainIdentifier)}/lineage/events/${Uri.encodeComponent(identifier)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetLineageEventOutput(
    event: await response.stream.toBytes(),
    createdAt: _s.extractHeaderDateTimeValue(response.headers, 'Created-At'),
    createdBy: _s.extractHeaderStringValue(response.headers, 'Created-By'),
    domainId: _s.extractHeaderStringValue(response.headers, 'Domain-Id'),
    eventTime: _s.extractHeaderDateTimeValue(response.headers, 'Event-Time'),
    id: _s.extractHeaderStringValue(response.headers, 'Id'),
    processingStatus: _s
        .extractHeaderStringValue(response.headers, 'Processing-Status')
        ?.let(LineageEventProcessingStatus.fromString),
  );
}