disassociateLenses method
Disassociate a lens from a workload.
Up to 10 lenses can be disassociated from a workload in a single API operation.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Implementation
Future<void> disassociateLenses({
required List<String> lensAliases,
required String workloadId,
}) async {
final $payload = <String, dynamic>{
'LensAliases': lensAliases,
};
await _protocol.send(
payload: $payload,
method: 'PATCH',
requestUri:
'/workloads/${Uri.encodeComponent(workloadId)}/disassociateLenses',
exceptionFnMap: _exceptionFns,
);
}