listCertificateAuthorities method
- int? maxResults,
- String? nextToken,
- ResourceOwner? resourceOwner,
Lists the private certificate authorities that you created by using the CreateCertificateAuthority action.
May throw InvalidNextTokenException.
Parameter maxResults
:
Use this parameter when paginating results to specify the maximum number
of items to return in the response on each page. If additional items exist
beyond the number you specify, the NextToken
element is sent
in the response. Use this NextToken
value in a subsequent
request to retrieve additional items.
Parameter nextToken
:
Use this parameter when paginating results in a subsequent request after
you receive a response with truncated results. Set it to the value of the
NextToken
parameter from the response you just received.
Parameter resourceOwner
:
Use this parameter to filter the returned set of certificate authorities
based on their owner. The default is SELF.
Implementation
Future<ListCertificateAuthoritiesResponse> listCertificateAuthorities({
int? maxResults,
String? nextToken,
ResourceOwner? resourceOwner,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
1000,
);
_s.validateStringLength(
'nextToken',
nextToken,
1,
500,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'ACMPrivateCA.ListCertificateAuthorities'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
if (maxResults != null) 'MaxResults': maxResults,
if (nextToken != null) 'NextToken': nextToken,
if (resourceOwner != null) 'ResourceOwner': resourceOwner.toValue(),
},
);
return ListCertificateAuthoritiesResponse.fromJson(jsonResponse.body);
}