disableTrustAnchor method

Future<TrustAnchorDetailResponse> disableTrustAnchor({
  1. required String trustAnchorId,
})

Disables a trust anchor. When disabled, temporary credential requests specifying this trust anchor are unauthorized.

Required permissions: rolesanywhere:DisableTrustAnchor.

May throw AccessDeniedException. May throw ResourceNotFoundException.

Parameter trustAnchorId : The unique identifier of the trust anchor.

Implementation

Future<TrustAnchorDetailResponse> disableTrustAnchor({
  required String trustAnchorId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'POST',
    requestUri: '/trustanchor/${Uri.encodeComponent(trustAnchorId)}/disable',
    exceptionFnMap: _exceptionFns,
  );
  return TrustAnchorDetailResponse.fromJson(response);
}