updateCrl method
Updates the certificate revocation list (CRL). A CRL is a list of certificates that have been revoked by the issuing certificate authority (CA). IAM Roles Anywhere validates against the CRL before issuing credentials.
Required permissions: rolesanywhere:UpdateCrl.
May throw AccessDeniedException.
May throw ResourceNotFoundException.
May throw ValidationException.
Parameter crlId :
The unique identifier of the certificate revocation list (CRL).
Parameter crlData :
The x509 v3 specified certificate revocation list (CRL).
Parameter name :
The name of the Crl.
Implementation
Future<CrlDetailResponse> updateCrl({
required String crlId,
Uint8List? crlData,
String? name,
}) async {
final $payload = <String, dynamic>{
if (crlData != null) 'crlData': base64Encode(crlData),
if (name != null) 'name': name,
};
final response = await _protocol.send(
payload: $payload,
method: 'PATCH',
requestUri: '/crl/${Uri.encodeComponent(crlId)}',
exceptionFnMap: _exceptionFns,
);
return CrlDetailResponse.fromJson(response);
}