updateWorkloadShare method

Future<UpdateWorkloadShareOutput> updateWorkloadShare({
  1. required PermissionType permissionType,
  2. required String shareId,
  3. required String workloadId,
})

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);
}