batchCreateSecurityRequirements method
Batch creates security requirements in a customer managed pack.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ServiceQuotaExceededException.
May throw ThrottlingException.
May throw ValidationException.
Parameter packId :
The unique identifier of the security requirement pack to add requirements
to.
Parameter securityRequirements :
The list of security requirements to create.
Implementation
Future<BatchCreateSecurityRequirementsOutput>
batchCreateSecurityRequirements({
required String packId,
required List<CreateSecurityRequirementEntry> securityRequirements,
}) async {
final $payload = <String, dynamic>{
'packId': packId,
'securityRequirements': securityRequirements,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/BatchCreateSecurityRequirements',
exceptionFnMap: _exceptionFns,
);
return BatchCreateSecurityRequirementsOutput.fromJson(response);
}