describeWorkspaceSnapshots method
Future<DescribeWorkspaceSnapshotsResult>
describeWorkspaceSnapshots({
- required String workspaceId,
Describes the snapshots for the specified WorkSpace.
May throw InvalidParameterValuesException. May throw ResourceNotFoundException. May throw AccessDeniedException.
Parameter workspaceId
:
The identifier of the WorkSpace.
Implementation
Future<DescribeWorkspaceSnapshotsResult> describeWorkspaceSnapshots({
required String workspaceId,
}) async {
ArgumentError.checkNotNull(workspaceId, 'workspaceId');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'WorkspacesService.DescribeWorkspaceSnapshots'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'WorkspaceId': workspaceId,
},
);
return DescribeWorkspaceSnapshotsResult.fromJson(jsonResponse.body);
}