describeStandards method
Returns a list of the available standards in Security Hub.
For each standard, the results include the standard ARN, the name, and a description.
May throw InternalException. May throw InvalidInputException. May throw InvalidAccessException.
Parameter maxResults
:
The maximum number of standards to return.
Parameter nextToken
:
The token that is required for pagination. On your first call to the
DescribeStandards
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<DescribeStandardsResponse> describeStandards({
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: '/standards',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return DescribeStandardsResponse.fromJson(response);
}