listPublicKeys2018_06_18 method

Future<ListPublicKeysResult> listPublicKeys2018_06_18(
  1. {String marker,
  2. String maxItems}

List all public keys that have been added to CloudFront for this account.

May throw InvalidArgument.

Parameter marker : Use this when paginating results to indicate where to begin in your list of public keys. The results include public keys in the list that occur after the marker. To get the next page of results, set the Marker to the value of the NextMarker from the current page's response (which is also the ID of the last public key on that page).

Parameter maxItems : The maximum number of public keys you want in the response body.


Future<ListPublicKeysResult> listPublicKeys2018_06_18({
  String marker,
  String maxItems,
}) async {
  final $query = <String, List<String>>{
    if (marker != null) 'Marker': [marker],
    if (maxItems != null) 'MaxItems': [maxItems],
  final $result = await _protocol.sendRaw(
    method: 'GET',
    requestUri: '/2018-06-18/public-key',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  final $elem = await _s.xmlFromResponse($result);
  return ListPublicKeysResult(
    publicKeyList: PublicKeyList.fromXml($elem),