importSecurityRequirements method
Future<ImportSecurityRequirementsOutput>
importSecurityRequirements({
- required ImportSource input,
- required String packId,
Imports security requirements from uploaded documents into a customer managed security requirement pack. The import process asynchronously extracts and generates structured security requirements from the provided source files.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ServiceQuotaExceededException.
May throw ThrottlingException.
May throw ValidationException.
Parameter input :
The import source containing the documents to extract security
requirements from.
Parameter packId :
The unique identifier of the security requirement pack to import
requirements into.
Implementation
Future<ImportSecurityRequirementsOutput> importSecurityRequirements({
required ImportSource input,
required String packId,
}) async {
final $payload = <String, dynamic>{
'input': input,
'packId': packId,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/ImportSecurityRequirements',
exceptionFnMap: _exceptionFns,
);
return ImportSecurityRequirementsOutput.fromJson(response);
}