deleteWorkspaceBundle method

Future<void> deleteWorkspaceBundle({
  1. String? bundleId,
})

Deletes the specified WorkSpace bundle. For more information about deleting WorkSpace bundles, see Delete a Custom WorkSpaces Bundle or Image.

May throw AccessDeniedException. May throw InvalidParameterValuesException. May throw ResourceAssociatedException. May throw ResourceNotFoundException.

Parameter bundleId : The identifier of the bundle.

Implementation

Future<void> deleteWorkspaceBundle({
  String? bundleId,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'WorkspacesService.DeleteWorkspaceBundle'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      if (bundleId != null) 'BundleId': bundleId,
    },
  );
}