updateWorkloadShare method
Update a workload share.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Implementation
Future<UpdateWorkloadShareOutput> updateWorkloadShare({
required PermissionType permissionType,
required String shareId,
required String workloadId,
}) async {
final $payload = <String, dynamic>{
'PermissionType': permissionType.value,
};
final response = await _protocol.send(
payload: $payload,
method: 'PATCH',
requestUri:
'/workloads/${Uri.encodeComponent(workloadId)}/shares/${Uri.encodeComponent(shareId)}',
exceptionFnMap: _exceptionFns,
);
return UpdateWorkloadShareOutput.fromJson(response);
}