SecurityAgent / Client / batch_get_security_requirements
batch_get_security_requirements¶
- SecurityAgent.Client.batch_get_security_requirements(**kwargs)¶
Batch retrieves security requirements from a pack.
See also: AWS API Documentation
Request Syntax
response = client.batch_get_security_requirements( packId='string', securityRequirementNames=[ 'string', ] )
- Parameters:
packId (string) –
[REQUIRED]
The unique identifier of the security requirement pack to retrieve requirements from.
securityRequirementNames (list) –
[REQUIRED]
The list of security requirement names to retrieve.
(string) –
- Return type:
dict
- Returns:
Response Syntax
{ 'securityRequirements': [ { 'packId': 'string', 'name': 'string', 'description': 'string', 'domain': 'string', 'evaluation': 'string', 'remediation': 'string', 'createdAt': datetime(2015, 1, 1), 'updatedAt': datetime(2015, 1, 1) }, ], 'errors': [ { 'securityRequirementName': 'string', 'code': 'string', 'message': 'string' }, ] }
Response Structure
(dict) –
securityRequirements (list) –
The list of security requirements that were successfully retrieved.
(dict) –
Contains information about a successfully retrieved security requirement.
packId (string) –
The unique identifier of the pack containing the security requirement.
name (string) –
The name of the security requirement.
description (string) –
A description of the security requirement.
domain (string) –
The security domain the requirement belongs to.
evaluation (string) –
The evaluation criteria used to assess compliance with this requirement.
remediation (string) –
The recommended remediation steps when the requirement is not met.
createdAt (datetime) –
The date and time the security requirement was created, in UTC format.
updatedAt (datetime) –
The date and time the security requirement was last updated, in UTC format.
errors (list) –
The list of errors for security requirements that failed to be retrieved.
(dict) –
Contains information about an error that occurred for a specific security requirement during a batch operation.
securityRequirementName (string) –
The name of the security requirement that caused the error.
code (string) –
The error code.
message (string) –
The error message.
Exceptions
SecurityAgent.Client.exceptions.ValidationExceptionSecurityAgent.Client.exceptions.InternalServerExceptionSecurityAgent.Client.exceptions.ResourceNotFoundExceptionSecurityAgent.Client.exceptions.ThrottlingExceptionSecurityAgent.Client.exceptions.AccessDeniedException