getSnapshotLimits method
Obtains the manual snapshot limits for a directory.
May throw EntityDoesNotExistException. May throw ClientException. May throw ServiceException.
Parameter directoryId
:
Contains the identifier of the directory to obtain the limits for.
Implementation
Future<GetSnapshotLimitsResult> getSnapshotLimits({
required String directoryId,
}) async {
ArgumentError.checkNotNull(directoryId, 'directoryId');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'DirectoryService_20150416.GetSnapshotLimits'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'DirectoryId': directoryId,
},
);
return GetSnapshotLimitsResult.fromJson(jsonResponse.body);
}