importCrl method

Future<CrlDetailResponse> importCrl({
  1. required Uint8List crlData,
  2. required String name,
  3. required String trustAnchorArn,
  4. bool? enabled,
  5. List<Tag>? tags,
})

Imports the certificate revocation list (CRL). A CRL is a list of certificates that have been revoked by the issuing certificate Authority (CA).In order to be properly imported, a CRL must be in PEM format. IAM Roles Anywhere validates against the CRL before issuing credentials.

Required permissions: rolesanywhere:ImportCrl.

May throw AccessDeniedException. May throw ValidationException.

Parameter crlData : The x509 v3 specified certificate revocation list (CRL).

Parameter name : The name of the certificate revocation list (CRL).

Parameter trustAnchorArn : The ARN of the TrustAnchor the certificate revocation list (CRL) will provide revocation for.

Parameter enabled : Specifies whether the certificate revocation list (CRL) is enabled.

Parameter tags : A list of tags to attach to the certificate revocation list (CRL).

Implementation

Future<CrlDetailResponse> importCrl({
  required Uint8List crlData,
  required String name,
  required String trustAnchorArn,
  bool? enabled,
  List<Tag>? tags,
}) async {
  final $payload = <String, dynamic>{
    'crlData': base64Encode(crlData),
    'name': name,
    'trustAnchorArn': trustAnchorArn,
    if (enabled != null) 'enabled': enabled,
    if (tags != null) 'tags': tags,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/crls',
    exceptionFnMap: _exceptionFns,
  );
  return CrlDetailResponse.fromJson(response);
}