updateWorkspaceBundle method
Updates a WorkSpace bundle with a new image. For more information about updating WorkSpace bundles, see Update a Custom WorkSpaces Bundle.
May throw AccessDeniedException.
May throw InvalidParameterValuesException.
May throw OperationNotSupportedException.
May throw ResourceNotFoundException.
May throw ResourceUnavailableException.
Parameter bundleId :
The identifier of the bundle.
Parameter imageId :
The identifier of the image.
Implementation
Future<void> updateWorkspaceBundle({
String? bundleId,
String? imageId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'WorkspacesService.UpdateWorkspaceBundle'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
if (bundleId != null) 'BundleId': bundleId,
if (imageId != null) 'ImageId': imageId,
},
);
}