listResponsePlans method
Lists all response plans in your account.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ThrottlingException.
May throw ValidationException.
Parameter maxResults :
The maximum number of response plans per page.
Parameter nextToken :
The pagination token for the next set of items to return. (You received
this token from a previous call.)
Implementation
Future<ListResponsePlansOutput> listResponsePlans({
int? maxResults,
String? nextToken,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
100,
);
final $payload = <String, dynamic>{
if (maxResults != null) 'maxResults': maxResults,
if (nextToken != null) 'nextToken': nextToken,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/listResponsePlans',
exceptionFnMap: _exceptionFns,
);
return ListResponsePlansOutput.fromJson(response);
}