listIntegrations method
Lists all of the integrations in your domain.
May throw AccessDeniedException.
May throw BadRequestException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
Parameter domainName :
The unique name of the domain.
Parameter includeHidden :
Boolean to indicate if hidden integration should be returned. Defaults to
False.
Parameter maxResults :
The maximum number of objects returned per page.
Parameter nextToken :
The pagination token from the previous ListIntegrations API call.
Implementation
Future<ListIntegrationsResponse> listIntegrations({
required String domainName,
bool? includeHidden,
int? maxResults,
String? nextToken,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
100,
);
final $query = <String, List<String>>{
if (includeHidden != null) 'include-hidden': [includeHidden.toString()],
if (maxResults != null) 'max-results': [maxResults.toString()],
if (nextToken != null) 'next-token': [nextToken],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/domains/${Uri.encodeComponent(domainName)}/integrations',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return ListIntegrationsResponse.fromJson(response);
}