class_docstr: Class to retrieve IOCs from ThreatStream.com and store them in DynamoDB
docstr: Store IOCs to DynamoDB table
docstr_tok: ["Store","IOCs","to","DynamoDB","table"]
code: def _write_to_dynamodb_table(self, intelligence):
      """Store IOCs to DynamoDB table"""
      try:
          dynamodb = boto3.resource("dynamodb", region_name=self.region)
          table = dynamodb.Table(self.table_name)
          with table.batch_writer() as batch:
              for ioc in intelligence:
                  batch.put_item(
                      Item={
                          "ioc_value": ioc["value"],
                          "ioc_type": ioc["type"],
                          "sub_type": ioc["itype"],
                          "source": ioc["source"],
                          "expiration_ts": ioc["expiration_ts"],
                      }
                  )
      except ClientError as err:
          LOGGER.debug("DynamoDB client error: %s", err)
          raise
  
imports: from datetime import datetime, timedelta
  import json
  import backoff
  import boto3
  from botocore.exceptions import ClientError
  import requests
  from streamalert.shared.backoff_handlers import backoff_handler, success_handler, giveup_handler
  from streamalert.shared.config import load_config, parse_lambda_arn
  from streamalert.shared.logger import get_logger
  from streamalert.threat_intel_downloader.exceptions import ThreatStreamCredsError, ThreatStreamLambdaInvokeError, ThreatStreamRequestsError
label_desc: Use image node_id 9 for calling the ThreatStream obj's underlying member method code with example usage: obj._write_to_dynamodb_table(intelligence) without return types