listUnsupportedAppVersionResources method

Future<ListUnsupportedAppVersionResourcesResponse> listUnsupportedAppVersionResources({
  1. required String appArn,
  2. required String appVersion,
  3. int? maxResults,
  4. String? nextToken,
  5. String? resolutionId,
})

Lists the resources that are not currently supported in Resilience Hub. An unsupported resource is a resource that exists in the object that was used to create an app, but is not supported by Resilience Hub.

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

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

Parameter appVersion : The version of the application.

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.

Parameter resolutionId : The identifier for a specific resolution.

Implementation

Future<ListUnsupportedAppVersionResourcesResponse>
    listUnsupportedAppVersionResources({
  required String appArn,
  required String appVersion,
  int? maxResults,
  String? nextToken,
  String? resolutionId,
}) async {
  _s.validateNumRange(
    'maxResults',
    maxResults,
    1,
    100,
  );
  final $payload = <String, dynamic>{
    'appArn': appArn,
    'appVersion': appVersion,
    if (maxResults != null) 'maxResults': maxResults,
    if (nextToken != null) 'nextToken': nextToken,
    if (resolutionId != null) 'resolutionId': resolutionId,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/list-unsupported-app-version-resources',
    exceptionFnMap: _exceptionFns,
  );
  return ListUnsupportedAppVersionResourcesResponse.fromJson(response);
}