listAppInputSources method
Lists all the input sources of the Resilience Hub application. For more information about the input sources supported by Resilience Hub, see Discover the structure and describe your Resilience Hub application.
May throw AccessDeniedException.
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 :
Resilience Hub application version.
Parameter maxResults :
Maximum number of input sources to be displayed per Resilience Hub
application.
Parameter nextToken :
Null, or the token from a previous call to get the next set of results.
Implementation
Future<ListAppInputSourcesResponse> listAppInputSources({
required String appArn,
required String appVersion,
int? maxResults,
String? nextToken,
}) 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,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/list-app-input-sources',
exceptionFnMap: _exceptionFns,
);
return ListAppInputSourcesResponse.fromJson(response);
}