associateVolume method
Attaches a volume to a WorkSpace Instance.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter device :
Device path for volume attachment.
Parameter volumeId :
Volume to be attached.
Parameter workspaceInstanceId :
WorkSpace Instance to attach volume to.
Implementation
Future<void> associateVolume({
required String device,
required String volumeId,
required String workspaceInstanceId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'EUCMIFrontendAPIService.AssociateVolume'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'Device': device,
'VolumeId': volumeId,
'WorkspaceInstanceId': workspaceInstanceId,
},
);
}