in src/python/detectors/missing_none_check/missing_none_check.py [0:0]
def none_check_compliant(self, record_dicts: List[Dict]) -> Dict:
import boto3
kinesis_client = boto3.client('kinesis')
response = kinesis_client.put_records(record_dicts)
# Compliant: checks to verify if the response metadata is None.
response_metadata = response.get('ResponseMetadata', {})
if response_metadata is not None:
return response_metadata
else:
return response