deregisterCapability method
Deregisters a capability from an OpenSearch UI application. This operation removes the capability and its associated configuration.
May throw AccessDeniedException.
May throw ConflictException.
May throw DisabledOperationException.
May throw InternalException.
May throw ResourceNotFoundException.
May throw ValidationException.
Parameter applicationId :
The unique identifier of the OpenSearch UI application to deregister the
capability from.
Parameter capabilityName :
The name of the capability to deregister.
Implementation
Future<DeregisterCapabilityResponse> deregisterCapability({
required String applicationId,
required String capabilityName,
}) async {
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/2021-01-01/opensearch/application/${Uri.encodeComponent(applicationId)}/capability/deregister/${Uri.encodeComponent(capabilityName)}',
exceptionFnMap: _exceptionFns,
);
return DeregisterCapabilityResponse.fromJson(response);
}