listSecurityRequirements method
Lists security requirements within a pack.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter packId :
The unique identifier of the security requirement pack to list
requirements for.
Parameter maxResults :
The maximum number of results to return in a single request.
Parameter nextToken :
The pagination token from a previous request to retrieve the next page of
results.
Implementation
Future<ListSecurityRequirementsOutput> listSecurityRequirements({
required String packId,
int? maxResults,
String? nextToken,
}) async {
final $payload = <String, dynamic>{
'packId': packId,
if (maxResults != null) 'maxResults': maxResults,
if (nextToken != null) 'nextToken': nextToken,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/ListSecurityRequirements',
exceptionFnMap: _exceptionFns,
);
return ListSecurityRequirementsOutput.fromJson(response);
}