class_docstr: Configuration object passed in when deploying models to Amazon SageMaker Endpoints.
  
  This object specifies configuration related to endpoint data capture for use with
  Amazon SageMaker Model Monitoring.
docstr: Generates a request dictionary using the parameters provided to the class.
docstr_tok: ["Generates","a","request","dictionary","using","the","parameters","provided","to","the","class","."]
code: def _to_request_dict(self):
      """Generates a request dictionary using the parameters provided to the class."""
      request_dict = {
          "EnableCapture": self.enable_capture,
          "InitialSamplingPercentage": self.sampling_percentage,
          "DestinationS3Uri": self.destination_s3_uri,
          "CaptureOptions": [
              #  Convert to API values or pass value directly through if unable to convert.
              {
                  "CaptureMode": self.API_MAPPING.get(
                      capture_option.upper(), capture_option
                  )
              }
              for capture_option in self.capture_options
          ],
      }
  
      if self.kms_key_id is not None:
          request_dict["KmsKeyId"] = self.kms_key_id
  
      if (
          self.csv_content_types is not None
          or self.json_content_types is not None
      ):
          request_dict["CaptureContentTypeHeader"] = {}
  
      if self.csv_content_types is not None:
          request_dict["CaptureContentTypeHeader"][
              "CsvContentTypes"
          ] = self.csv_content_types
  
      if self.json_content_types is not None:
          request_dict["CaptureContentTypeHeader"][
              "JsonContentTypes"
          ] = self.json_content_types
  
      return request_dict
  
file_path: sagemaker-python-sdk/src/sagemaker/model_monitor/data_capture_config.py
imports: from __future__ import print_function, absolute_import
  from sagemaker import s3
  from sagemaker.config import ENDPOINT_CONFIG_DATA_CAPTURE_KMS_KEY_ID_PATH
  from sagemaker.session import Session
  from sagemaker.utils import resolve_value_from_config
label_desc: Use image node_id 2 for calling the DataCaptureConfig obj's underlying member method code with example usage: obj._to_request_dict() and returns: request_dict