Interface DataCaptureConfig.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<DataCaptureConfig.Builder,DataCaptureConfig>
,SdkBuilder<DataCaptureConfig.Builder,DataCaptureConfig>
,SdkPojo
- Enclosing class:
- DataCaptureConfig
public static interface DataCaptureConfig.Builder extends SdkPojo, CopyableBuilder<DataCaptureConfig.Builder,DataCaptureConfig>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default DataCaptureConfig.Builder
captureContentTypeHeader(Consumer<CaptureContentTypeHeader.Builder> captureContentTypeHeader)
Configuration specifying how to treat different headers.DataCaptureConfig.Builder
captureContentTypeHeader(CaptureContentTypeHeader captureContentTypeHeader)
Configuration specifying how to treat different headers.DataCaptureConfig.Builder
captureOptions(Collection<CaptureOption> captureOptions)
Specifies data Model Monitor will capture.DataCaptureConfig.Builder
captureOptions(Consumer<CaptureOption.Builder>... captureOptions)
Specifies data Model Monitor will capture.DataCaptureConfig.Builder
captureOptions(CaptureOption... captureOptions)
Specifies data Model Monitor will capture.DataCaptureConfig.Builder
destinationS3Uri(String destinationS3Uri)
The Amazon S3 location used to capture the data.DataCaptureConfig.Builder
enableCapture(Boolean enableCapture)
Whether data capture should be enabled or disabled (defaults to enabled).DataCaptureConfig.Builder
initialSamplingPercentage(Integer initialSamplingPercentage)
The percentage of requests SageMaker will capture.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.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
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 theCaptureOption.Builder
avoiding the need to create one manually viaCaptureOption.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#captureOptions(List
.) - Parameters:
captureOptions
- a consumer that will call methods onCaptureOption.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#captureOptions(java.util.Collection
)
-
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 theCaptureContentTypeHeader.Builder
avoiding the need to create one manually viaCaptureContentTypeHeader.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocaptureContentTypeHeader(CaptureContentTypeHeader)
.- Parameters:
captureContentTypeHeader
- a consumer that will call methods onCaptureContentTypeHeader.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
captureContentTypeHeader(CaptureContentTypeHeader)
-
-