describeProducts method
Returns information about the available products that you can subscribe to and integrate with Security Hub in order to consolidate findings.
May throw InternalException. May throw LimitExceededException. May throw InvalidAccessException. May throw InvalidInputException.
Parameter maxResults
:
The maximum number of results to return.
Parameter nextToken
:
The token that is required for pagination. On your first call to the
DescribeProducts
operation, set the value of this parameter
to NULL
.
For subsequent calls to the operation, to continue listing data, set the value of this parameter to the value returned from the previous response.
Implementation
Future<DescribeProductsResponse> describeProducts({
int? maxResults,
String? nextToken,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
100,
);
final $query = <String, List<String>>{
if (maxResults != null) 'MaxResults': [maxResults.toString()],
if (nextToken != null) 'NextToken': [nextToken],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/products',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return DescribeProductsResponse.fromJson(response);
}