disableOperatorApp method

Future<void> disableOperatorApp({
  1. required String agentSpaceId,
  2. AuthFlow? authFlow,
})

Disable the Operator App for the specified AgentSpace

May throw IdentityCenterServiceException. May throw InternalServerException. May throw ThrottlingException. May throw ValidationException.

Parameter agentSpaceId : The unique identifier of the AgentSpace

Parameter authFlow : The authentication flow configured for the operator App. e.g. idc

Implementation

Future<void> disableOperatorApp({
  required String agentSpaceId,
  AuthFlow? authFlow,
}) async {
  final headers = <String, String>{
    if (authFlow != null) 'x-amzn-app-auth-flow': authFlow.value,
  };
  await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/v1/agentspaces/${Uri.encodeComponent(agentSpaceId)}/operator',
    headers: headers,
    hostPrefix: 'cp.',
    exceptionFnMap: _exceptionFns,
  );
}