listChallengeMetadata method
Retrieves the challenge metadata for the specified ARN.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter connectorArn :
The Amazon Resource Name (ARN) of the connector.
Parameter maxResults :
The maximum number of objects that you want Connector for SCEP to return
for this request. If more objects are available, in the response,
Connector for SCEP provides a NextToken value that you can
use in a subsequent call to get the next batch of objects.
Parameter nextToken :
When you request a list of objects with a MaxResults setting,
if the number of objects that are still available for retrieval exceeds
the maximum you requested, Connector for SCEP returns a
NextToken value in the response. To retrieve the next batch
of objects, use the token returned from the prior request in your next
request.
Implementation
Future<ListChallengeMetadataResponse> listChallengeMetadata({
required String connectorArn,
int? maxResults,
String? nextToken,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
1000,
);
final $query = <String, List<String>>{
'ConnectorArn': [connectorArn],
if (maxResults != null) 'MaxResults': [maxResults.toString()],
if (nextToken != null) 'NextToken': [nextToken],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/challengeMetadata',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return ListChallengeMetadataResponse.fromJson(response);
}