getSegmentSnapshot method

Future<GetSegmentSnapshotResponse> getSegmentSnapshot({
  1. required String domainName,
  2. required String segmentDefinitionName,
  3. required String snapshotId,
})

Retrieve the latest status of a segment snapshot.

May throw AccessDeniedException. May throw BadRequestException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException.

Parameter domainName : The unique identifier of the domain.

Parameter segmentDefinitionName : The unique name of the segment definition.

Parameter snapshotId : The unique identifier of the segment snapshot.

Implementation

Future<GetSegmentSnapshotResponse> getSegmentSnapshot({
  required String domainName,
  required String segmentDefinitionName,
  required String snapshotId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/domains/${Uri.encodeComponent(domainName)}/segments/${Uri.encodeComponent(segmentDefinitionName)}/snapshots/${Uri.encodeComponent(snapshotId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetSegmentSnapshotResponse.fromJson(response);
}