DataCaptureConfig
¶
Used by
-
AsyncSageMakerClient Operationscreate_endpoint_config -
SageMakerClient Operationscreate_endpoint_config
Source code in docs_src/capo_sagemaker/types/data_capture_config.py
capture_content_type_header
instance-attribute
¶
capture_content_type_header: NotRequired[CaptureContentTypeHeader]
Configuration specifying how to treat different headers. If no headers are specified SageMaker AI will by default base64 encode when capturing the data.
capture_options
instance-attribute
¶
capture_options: NotRequired[CaptureOptionList]
Specifies data Model Monitor will capture. You can configure whether to collect only input, only output, or both
destination_s3_uri
instance-attribute
¶
destination_s3_uri: NotRequired[DestinationS3Uri]
The Amazon S3 location used to capture the data.
enable_capture
instance-attribute
¶
enable_capture: NotRequired[EnableCapture]
Whether data capture should be enabled or disabled (defaults to enabled).
initial_sampling_percentage
instance-attribute
¶
initial_sampling_percentage: NotRequired[SamplingPercentage]
The percentage of requests SageMaker AI will capture. A lower value is recommended for Endpoints with high traffic.
kms_key_id
instance-attribute
¶
kms_key_id: NotRequired[KmsKeyId]
The Amazon Resource Name (ARN) of an Key Management Service key that SageMaker AI uses to encrypt the captured data at rest using Amazon S3 server-side encryption.
The KmsKeyId can be any of the following formats:
-
Key ID:
1234abcd-12ab-34cd-56ef-1234567890ab -
Key ARN:
arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab -
Alias name:
alias/ExampleAlias -
Alias name ARN:
arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias