describeTrustStores method

Future<DescribeTrustStoresOutput> describeTrustStores({
  1. String? marker,
  2. List<String>? names,
  3. int? pageSize,
  4. List<String>? trustStoreArns,
})

Describes all trust stores for the specified account.

May throw TrustStoreNotFoundException.

Parameter marker : The marker for the next set of results. (You received this marker from a previous call.)

Parameter names : The names of the trust stores.

Parameter pageSize : The maximum number of results to return with this call.

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

Implementation

Future<DescribeTrustStoresOutput> describeTrustStores({
  String? marker,
  List<String>? names,
  int? pageSize,
  List<String>? trustStoreArns,
}) async {
  _s.validateNumRange(
    'pageSize',
    pageSize,
    1,
    400,
  );
  final $request = <String, String>{
    if (marker != null) 'Marker': marker,
    if (names != null)
      if (names.isEmpty)
        'Names': ''
      else
        for (var i1 = 0; i1 < names.length; i1++)
          'Names.member.${i1 + 1}': names[i1],
    if (pageSize != null) 'PageSize': pageSize.toString(),
    if (trustStoreArns != null)
      if (trustStoreArns.isEmpty)
        'TrustStoreArns': ''
      else
        for (var i1 = 0; i1 < trustStoreArns.length; i1++)
          'TrustStoreArns.member.${i1 + 1}': trustStoreArns[i1],
  };
  final $result = await _protocol.send(
    $request,
    action: 'DescribeTrustStores',
    version: '2015-12-01',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    resultWrapper: 'DescribeTrustStoresResult',
  );
  return DescribeTrustStoresOutput.fromXml($result);
}