getGraphSnapshot method

Future<GetGraphSnapshotOutput> getGraphSnapshot({
  1. required String snapshotIdentifier,
})

Retrieves a specified graph snapshot.

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

Parameter snapshotIdentifier : The ID of the snapshot to retrieve.

Implementation

Future<GetGraphSnapshotOutput> getGraphSnapshot({
  required String snapshotIdentifier,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/snapshots/${Uri.encodeComponent(snapshotIdentifier)}',
    endpoint: _resolveEndpoint(
      apiType: 'ControlPlane',
    ),
    exceptionFnMap: _exceptionFns,
  );
  return GetGraphSnapshotOutput.fromJson(response);
}