deleteWorkloadShare method
Delete a workload share.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Implementation
Future<void> deleteWorkloadShare({
required String shareId,
required String workloadId,
String? clientRequestToken,
}) async {
final $query = <String, List<String>>{
if (clientRequestToken != null)
'ClientRequestToken': [clientRequestToken],
};
await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/workloads/${Uri.encodeComponent(workloadId)}/shares/${Uri.encodeComponent(shareId)}',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
}