listSopRecommendations method

Future<ListSopRecommendationsResponse> listSopRecommendations({
  1. required String assessmentArn,
  2. int? maxResults,
  3. String? nextToken,
})

Lists the standard operating procedure (SOP) recommendations for the Resilience Hub applications.

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter assessmentArn : Amazon Resource Name (ARN) of the assessment. The format for this ARN is: arn:partition:resiliencehub:region:account:app-assessment/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.

Parameter maxResults : Maximum number of results to include in the response. If more results exist than the specified MaxResults value, a token is included in the response so that the remaining results can be retrieved.

Parameter nextToken : Null, or the token from a previous call to get the next set of results.

Implementation

Future<ListSopRecommendationsResponse> listSopRecommendations({
  required String assessmentArn,
  int? maxResults,
  String? nextToken,
}) async {
  _s.validateNumRange(
    'maxResults',
    maxResults,
    1,
    100,
  );
  final $payload = <String, dynamic>{
    'assessmentArn': assessmentArn,
    if (maxResults != null) 'maxResults': maxResults,
    if (nextToken != null) 'nextToken': nextToken,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/list-sop-recommendations',
    exceptionFnMap: _exceptionFns,
  );
  return ListSopRecommendationsResponse.fromJson(response);
}