disassociateProfiles method

Future<void> disassociateProfiles({
  1. required List<String> profileArns,
  2. required String workloadId,
})

Disassociate a profile from a workload.

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter profileArns : The list of profile ARNs to disassociate from the workload.

Implementation

Future<void> disassociateProfiles({
  required List<String> profileArns,
  required String workloadId,
}) async {
  final $payload = <String, dynamic>{
    'ProfileArns': profileArns,
  };
  await _protocol.send(
    payload: $payload,
    method: 'PATCH',
    requestUri:
        '/workloads/${Uri.encodeComponent(workloadId)}/disassociateProfiles',
    exceptionFnMap: _exceptionFns,
  );
}