Interface DataCaptureConfig.Builder

  • Method Details

    • enableCapture

      DataCaptureConfig.Builder enableCapture(Boolean enableCapture)

      Whether data capture should be enabled or disabled (defaults to enabled).

      Parameters:
      enableCapture - Whether data capture should be enabled or disabled (defaults to enabled).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • initialSamplingPercentage

      DataCaptureConfig.Builder initialSamplingPercentage(Integer initialSamplingPercentage)

      The percentage of requests SageMaker will capture. A lower value is recommended for Endpoints with high traffic.

      Parameters:
      initialSamplingPercentage - The percentage of requests SageMaker will capture. A lower value is recommended for Endpoints with high traffic.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • destinationS3Uri

      DataCaptureConfig.Builder destinationS3Uri(String destinationS3Uri)

      The Amazon S3 location used to capture the data.

      Parameters:
      destinationS3Uri - The Amazon S3 location used to capture the data.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • kmsKeyId

      DataCaptureConfig.Builder kmsKeyId(String kmsKeyId)

      The Amazon Resource Name (ARN) of an Key Management Service key that SageMaker 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

      Parameters:
      kmsKeyId - The Amazon Resource Name (ARN) of an Key Management Service key that SageMaker 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

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • captureOptions

      DataCaptureConfig.Builder captureOptions(Collection<CaptureOption> captureOptions)

      Specifies data Model Monitor will capture. You can configure whether to collect only input, only output, or both

      Parameters:
      captureOptions - Specifies data Model Monitor will capture. You can configure whether to collect only input, only output, or both
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • captureOptions

      DataCaptureConfig.Builder captureOptions(CaptureOption... captureOptions)

      Specifies data Model Monitor will capture. You can configure whether to collect only input, only output, or both

      Parameters:
      captureOptions - Specifies data Model Monitor will capture. You can configure whether to collect only input, only output, or both
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • captureOptions

      DataCaptureConfig.Builder captureOptions(Consumer<CaptureOption.Builder>... captureOptions)

      Specifies data Model Monitor will capture. You can configure whether to collect only input, only output, or both

      This is a convenience method that creates an instance of the CaptureOption.Builder avoiding the need to create one manually via CaptureOption.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to captureOptions(List<CaptureOption>).

      Parameters:
      captureOptions - a consumer that will call methods on CaptureOption.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • captureContentTypeHeader

      DataCaptureConfig.Builder captureContentTypeHeader(CaptureContentTypeHeader captureContentTypeHeader)

      Configuration specifying how to treat different headers. If no headers are specified SageMaker will by default base64 encode when capturing the data.

      Parameters:
      captureContentTypeHeader - Configuration specifying how to treat different headers. If no headers are specified SageMaker will by default base64 encode when capturing the data.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • captureContentTypeHeader

      default DataCaptureConfig.Builder captureContentTypeHeader(Consumer<CaptureContentTypeHeader.Builder> captureContentTypeHeader)

      Configuration specifying how to treat different headers. If no headers are specified SageMaker will by default base64 encode when capturing the data.

      This is a convenience method that creates an instance of the CaptureContentTypeHeader.Builder avoiding the need to create one manually via CaptureContentTypeHeader.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to captureContentTypeHeader(CaptureContentTypeHeader).

      Parameters:
      captureContentTypeHeader - a consumer that will call methods on CaptureContentTypeHeader.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: