addTrustStoreRevocations method

Future<AddTrustStoreRevocationsOutput> addTrustStoreRevocations({
  1. required String trustStoreArn,
  2. List<RevocationContent>? revocationContents,
})

Adds the specified revocation file to the specified trust store.

May throw InvalidRevocationContentException. May throw RevocationContentNotFoundException. May throw TooManyTrustStoreRevocationEntriesException. May throw TrustStoreNotFoundException.

Parameter trustStoreArn : The Amazon Resource Name (ARN) of the trust store.

Parameter revocationContents : The revocation file to add.

Implementation

Future<AddTrustStoreRevocationsOutput> addTrustStoreRevocations({
  required String trustStoreArn,
  List<RevocationContent>? revocationContents,
}) async {
  final $request = <String, String>{
    'TrustStoreArn': trustStoreArn,
    if (revocationContents != null)
      if (revocationContents.isEmpty)
        'RevocationContents': ''
      else
        for (var i1 = 0; i1 < revocationContents.length; i1++)
          for (var e3 in revocationContents[i1].toQueryMap().entries)
            'RevocationContents.member.${i1 + 1}.${e3.key}': e3.value,
  };
  final $result = await _protocol.send(
    $request,
    action: 'AddTrustStoreRevocations',
    version: '2015-12-01',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    resultWrapper: 'AddTrustStoreRevocationsResult',
  );
  return AddTrustStoreRevocationsOutput.fromXml($result);
}