Class CfnEndpointConfig.DataCaptureConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnEndpointConfig.DataCaptureConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEndpointConfig.DataCaptureConfigProperty>
- Enclosing interface:
CfnEndpointConfig.DataCaptureConfigProperty
@Stability(Stable)
public static final class CfnEndpointConfig.DataCaptureConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEndpointConfig.DataCaptureConfigProperty>
A builder for
CfnEndpointConfig.DataCaptureConfigProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.captureContentTypeHeader
(IResolvable captureContentTypeHeader) captureContentTypeHeader
(CfnEndpointConfig.CaptureContentTypeHeaderProperty captureContentTypeHeader) captureOptions
(List<? extends Object> captureOptions) Sets the value ofCfnEndpointConfig.DataCaptureConfigProperty.getCaptureOptions()
captureOptions
(IResolvable captureOptions) Sets the value ofCfnEndpointConfig.DataCaptureConfigProperty.getCaptureOptions()
destinationS3Uri
(String destinationS3Uri) Sets the value ofCfnEndpointConfig.DataCaptureConfigProperty.getDestinationS3Uri()
enableCapture
(Boolean enableCapture) Sets the value ofCfnEndpointConfig.DataCaptureConfigProperty.getEnableCapture()
enableCapture
(IResolvable enableCapture) Sets the value ofCfnEndpointConfig.DataCaptureConfigProperty.getEnableCapture()
initialSamplingPercentage
(Number initialSamplingPercentage) Sets the value ofCfnEndpointConfig.DataCaptureConfigProperty.getKmsKeyId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
captureOptions
@Stability(Stable) public CfnEndpointConfig.DataCaptureConfigProperty.Builder captureOptions(IResolvable captureOptions) Sets the value ofCfnEndpointConfig.DataCaptureConfigProperty.getCaptureOptions()
- Parameters:
captureOptions
- Specifies whether the endpoint captures input data to your model, output data from your model, or both. This parameter is required.- Returns:
this
-
captureOptions
@Stability(Stable) public CfnEndpointConfig.DataCaptureConfigProperty.Builder captureOptions(List<? extends Object> captureOptions) Sets the value ofCfnEndpointConfig.DataCaptureConfigProperty.getCaptureOptions()
- Parameters:
captureOptions
- Specifies whether the endpoint captures input data to your model, output data from your model, or both. This parameter is required.- Returns:
this
-
destinationS3Uri
@Stability(Stable) public CfnEndpointConfig.DataCaptureConfigProperty.Builder destinationS3Uri(String destinationS3Uri) Sets the value ofCfnEndpointConfig.DataCaptureConfigProperty.getDestinationS3Uri()
- Parameters:
destinationS3Uri
- The S3 bucket where model monitor stores captured data. This parameter is required.- Returns:
this
-
initialSamplingPercentage
@Stability(Stable) public CfnEndpointConfig.DataCaptureConfigProperty.Builder initialSamplingPercentage(Number initialSamplingPercentage) - Parameters:
initialSamplingPercentage
- The percentage of data to capture. This parameter is required.- Returns:
this
-
captureContentTypeHeader
@Stability(Stable) public CfnEndpointConfig.DataCaptureConfigProperty.Builder captureContentTypeHeader(IResolvable captureContentTypeHeader) - Parameters:
captureContentTypeHeader
- A list of the JSON and CSV content type that the endpoint captures.- Returns:
this
-
captureContentTypeHeader
@Stability(Stable) public CfnEndpointConfig.DataCaptureConfigProperty.Builder captureContentTypeHeader(CfnEndpointConfig.CaptureContentTypeHeaderProperty captureContentTypeHeader) - Parameters:
captureContentTypeHeader
- A list of the JSON and CSV content type that the endpoint captures.- Returns:
this
-
enableCapture
@Stability(Stable) public CfnEndpointConfig.DataCaptureConfigProperty.Builder enableCapture(Boolean enableCapture) Sets the value ofCfnEndpointConfig.DataCaptureConfigProperty.getEnableCapture()
- Parameters:
enableCapture
- Set toTrue
to enable data capture.- Returns:
this
-
enableCapture
@Stability(Stable) public CfnEndpointConfig.DataCaptureConfigProperty.Builder enableCapture(IResolvable enableCapture) Sets the value ofCfnEndpointConfig.DataCaptureConfigProperty.getEnableCapture()
- Parameters:
enableCapture
- Set toTrue
to enable data capture.- Returns:
this
-
kmsKeyId
@Stability(Stable) public CfnEndpointConfig.DataCaptureConfigProperty.Builder kmsKeyId(String kmsKeyId) Sets the value ofCfnEndpointConfig.DataCaptureConfigProperty.getKmsKeyId()
- Parameters:
kmsKeyId
- The AWS Key Management Service ( AWS KMS) key that Amazon 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 If you don't provide a KMS key ID, Amazon SageMaker uses the default KMS key for Amazon S3 for your role's account. For more information, see KMS-Managed Encryption Keys (https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingKMSEncryption.html) in the Amazon Simple Storage Service Developer Guide. The KMS key policy must grant permission to the IAM role that you specify in your CreateModel (https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateModel.html) request. For more information, see Using Key Policies in AWS KMS (http://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html) in the AWS Key Management Service Developer Guide.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnEndpointConfig.DataCaptureConfigProperty>
- Returns:
- a new instance of
CfnEndpointConfig.DataCaptureConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-