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: Initialize a DataCaptureConfig object for capturing data from Amazon SageMaker Endpoints.
  
  Args:
      enable_capture (bool): Required. Whether data capture should be enabled or not.
      sampling_percentage (int): Optional. Default=20. The percentage of data to sample.
          Must be between 0 and 100.
      destination_s3_uri (str): Optional. Defaults to "s3://<default-session-bucket>/
          model-monitor/data-capture".
      kms_key_id (str): Optional. Default=None. The kms key to use when writing to S3.
      capture_options ([str]): Optional. Must be a list containing any combination of the
          following values: "REQUEST", "RESPONSE". Default=["REQUEST", "RESPONSE"]. Denotes
          which data to capture between request and response.
      csv_content_types ([str]): Optional. Default=["text/csv"].
      json_content_types([str]): Optional. Default=["application/json"].
      sagemaker_session (sagemaker.session.Session): A SageMaker Session
          object, used for SageMaker interactions (default: None). If not
          specified, one is created using the default AWS configuration
          chain.
docstr_tok: ["Initialize","a","DataCaptureConfig","object","for","capturing","data","from","Amazon","SageMaker","Endpoints",".","Args",":","enable_capture","(","bool",")",":","Required",".","Whether","data","capture","should","be","enabled","or","not",".","sampling_percentage","(","int",")",":","Optional",".","Default=20",".","The","percentage","of","data","to","sample",".","Must","be","between","0","and","100.","destination_s3_uri","(","str",")",":","Optional",".","Defaults","to","``","s3",":","\/\/","<","default-session-bucket",">","\/","model-monitor\/data-capture","''",".","kms_key_id","(","str",")",":","Optional",".","Default=None",".","The","kms","key","to","use","when","writing","to","S3",".","capture_options","(","[","str","]",")",":","Optional",".","Must","be","a","list","containing","any","combination","of","the","following","values",":","``","REQUEST","''",",","``","RESPONSE","''",".","Default=","[","``","REQUEST","''",",","``","RESPONSE","''","]",".","Denotes","which","data","to","capture","between","request","and","response",".","csv_content_types","(","[","str","]",")",":","Optional",".","Default=","[","``","text\/csv","''","]",".","json_content_types","(","[","str","]",")",":","Optional",".","Default=","[","``","application\/json","''","]",".","sagemaker_session","(","sagemaker.session.Session",")",":","A","SageMaker","Session","object",",","used","for","SageMaker","interactions","(","default",":","None",")",".","If","not","specified",",","one","is","created","using","the","default","AWS","configuration","chain","."]
code: def __init__(
      self,
      enable_capture,
      sampling_percentage=20,
      destination_s3_uri=None,
      kms_key_id=None,
      capture_options=None,
      csv_content_types=None,
      json_content_types=None,
      sagemaker_session=None,
  ):
      """Initialize a DataCaptureConfig object for capturing data from Amazon SageMaker Endpoints.
  
      Args:
          enable_capture (bool): Required. Whether data capture should be enabled or not.
          sampling_percentage (int): Optional. Default=20. The percentage of data to sample.
              Must be between 0 and 100.
          destination_s3_uri (str): Optional. Defaults to "s3://<default-session-bucket>/
              model-monitor/data-capture".
          kms_key_id (str): Optional. Default=None. The kms key to use when writing to S3.
          capture_options ([str]): Optional. Must be a list containing any combination of the
              following values: "REQUEST", "RESPONSE". Default=["REQUEST", "RESPONSE"]. Denotes
              which data to capture between request and response.
          csv_content_types ([str]): Optional. Default=["text/csv"].
          json_content_types([str]): Optional. Default=["application/json"].
          sagemaker_session (sagemaker.session.Session): A SageMaker Session
              object, used for SageMaker interactions (default: None). If not
              specified, one is created using the default AWS configuration
              chain.
      """
      self.enable_capture = enable_capture
      self.sampling_percentage = sampling_percentage
      self.destination_s3_uri = destination_s3_uri
      sagemaker_session = sagemaker_session or Session()
      if self.destination_s3_uri is None:
          self.destination_s3_uri = s3.s3_path_join(
              "s3://",
              sagemaker_session.default_bucket(),
              sagemaker_session.default_bucket_prefix,
              _MODEL_MONITOR_S3_PATH,
              _DATA_CAPTURE_S3_PATH,
          )
  
      self.kms_key_id = resolve_value_from_config(
          kms_key_id,
          ENDPOINT_CONFIG_DATA_CAPTURE_KMS_KEY_ID_PATH,
          sagemaker_session=sagemaker_session,
      )
      self.capture_options = capture_options or ["REQUEST", "RESPONSE"]
      self.csv_content_types = csv_content_types or ["text/csv"]
      self.json_content_types = json_content_types or [
          "application/json"
      ]
  
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 1 to create a new DataCaptureConfig object from inherited base classes: object with example: obj = DataCaptureConfig(enable_capture, sampling_percentage, destination_s3_uri, kms_key_id, capture_options, csv_content_types, json_content_types, sagemaker_session)