Class CfnEndpointConfigProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEndpointConfigProps>
- Enclosing interface:
CfnEndpointConfigProps
CfnEndpointConfigProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionasyncInferenceConfig
(IResolvable asyncInferenceConfig) Sets the value ofCfnEndpointConfigProps.getAsyncInferenceConfig()
asyncInferenceConfig
(CfnEndpointConfig.AsyncInferenceConfigProperty asyncInferenceConfig) Sets the value ofCfnEndpointConfigProps.getAsyncInferenceConfig()
build()
Builds the configured instance.dataCaptureConfig
(IResolvable dataCaptureConfig) Sets the value ofCfnEndpointConfigProps.getDataCaptureConfig()
dataCaptureConfig
(CfnEndpointConfig.DataCaptureConfigProperty dataCaptureConfig) Sets the value ofCfnEndpointConfigProps.getDataCaptureConfig()
enableNetworkIsolation
(Boolean enableNetworkIsolation) Sets the value ofCfnEndpointConfigProps.getEnableNetworkIsolation()
enableNetworkIsolation
(IResolvable enableNetworkIsolation) Sets the value ofCfnEndpointConfigProps.getEnableNetworkIsolation()
endpointConfigName
(String endpointConfigName) Sets the value ofCfnEndpointConfigProps.getEndpointConfigName()
executionRoleArn
(String executionRoleArn) Sets the value ofCfnEndpointConfigProps.getExecutionRoleArn()
explainerConfig
(IResolvable explainerConfig) Sets the value ofCfnEndpointConfigProps.getExplainerConfig()
explainerConfig
(CfnEndpointConfig.ExplainerConfigProperty explainerConfig) Sets the value ofCfnEndpointConfigProps.getExplainerConfig()
Sets the value ofCfnEndpointConfigProps.getKmsKeyId()
productionVariants
(List<? extends Object> productionVariants) Sets the value ofCfnEndpointConfigProps.getProductionVariants()
productionVariants
(IResolvable productionVariants) Sets the value ofCfnEndpointConfigProps.getProductionVariants()
shadowProductionVariants
(List<? extends Object> shadowProductionVariants) Sets the value ofCfnEndpointConfigProps.getShadowProductionVariants()
shadowProductionVariants
(IResolvable shadowProductionVariants) Sets the value ofCfnEndpointConfigProps.getShadowProductionVariants()
Sets the value ofCfnEndpointConfigProps.getTags()
vpcConfig
(IResolvable vpcConfig) Sets the value ofCfnEndpointConfigProps.getVpcConfig()
vpcConfig
(CfnEndpointConfig.VpcConfigProperty vpcConfig) Sets the value ofCfnEndpointConfigProps.getVpcConfig()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
productionVariants
@Stability(Stable) public CfnEndpointConfigProps.Builder productionVariants(IResolvable productionVariants) Sets the value ofCfnEndpointConfigProps.getProductionVariants()
- Parameters:
productionVariants
- A list ofProductionVariant
objects, one for each model that you want to host at this endpoint. This parameter is required.- Returns:
this
-
productionVariants
@Stability(Stable) public CfnEndpointConfigProps.Builder productionVariants(List<? extends Object> productionVariants) Sets the value ofCfnEndpointConfigProps.getProductionVariants()
- Parameters:
productionVariants
- A list ofProductionVariant
objects, one for each model that you want to host at this endpoint. This parameter is required.- Returns:
this
-
asyncInferenceConfig
@Stability(Stable) public CfnEndpointConfigProps.Builder asyncInferenceConfig(IResolvable asyncInferenceConfig) Sets the value ofCfnEndpointConfigProps.getAsyncInferenceConfig()
- Parameters:
asyncInferenceConfig
- Specifies configuration for how an endpoint performs asynchronous inference.- Returns:
this
-
asyncInferenceConfig
@Stability(Stable) public CfnEndpointConfigProps.Builder asyncInferenceConfig(CfnEndpointConfig.AsyncInferenceConfigProperty asyncInferenceConfig) Sets the value ofCfnEndpointConfigProps.getAsyncInferenceConfig()
- Parameters:
asyncInferenceConfig
- Specifies configuration for how an endpoint performs asynchronous inference.- Returns:
this
-
dataCaptureConfig
@Stability(Stable) public CfnEndpointConfigProps.Builder dataCaptureConfig(IResolvable dataCaptureConfig) Sets the value ofCfnEndpointConfigProps.getDataCaptureConfig()
- Parameters:
dataCaptureConfig
- Specifies how to capture endpoint data for model monitor. The data capture configuration applies to all production variants hosted at the endpoint.- Returns:
this
-
dataCaptureConfig
@Stability(Stable) public CfnEndpointConfigProps.Builder dataCaptureConfig(CfnEndpointConfig.DataCaptureConfigProperty dataCaptureConfig) Sets the value ofCfnEndpointConfigProps.getDataCaptureConfig()
- Parameters:
dataCaptureConfig
- Specifies how to capture endpoint data for model monitor. The data capture configuration applies to all production variants hosted at the endpoint.- Returns:
this
-
enableNetworkIsolation
@Stability(Stable) public CfnEndpointConfigProps.Builder enableNetworkIsolation(Boolean enableNetworkIsolation) Sets the value ofCfnEndpointConfigProps.getEnableNetworkIsolation()
- Parameters:
enableNetworkIsolation
- the value to be set.- Returns:
this
-
enableNetworkIsolation
@Stability(Stable) public CfnEndpointConfigProps.Builder enableNetworkIsolation(IResolvable enableNetworkIsolation) Sets the value ofCfnEndpointConfigProps.getEnableNetworkIsolation()
- Parameters:
enableNetworkIsolation
- the value to be set.- Returns:
this
-
endpointConfigName
@Stability(Stable) public CfnEndpointConfigProps.Builder endpointConfigName(String endpointConfigName) Sets the value ofCfnEndpointConfigProps.getEndpointConfigName()
- Parameters:
endpointConfigName
- The name of the endpoint configuration.- Returns:
this
-
executionRoleArn
Sets the value ofCfnEndpointConfigProps.getExecutionRoleArn()
- Parameters:
executionRoleArn
- the value to be set.- Returns:
this
-
explainerConfig
@Stability(Stable) public CfnEndpointConfigProps.Builder explainerConfig(IResolvable explainerConfig) Sets the value ofCfnEndpointConfigProps.getExplainerConfig()
- Parameters:
explainerConfig
- A parameter to activate explainers.- Returns:
this
-
explainerConfig
@Stability(Stable) public CfnEndpointConfigProps.Builder explainerConfig(CfnEndpointConfig.ExplainerConfigProperty explainerConfig) Sets the value ofCfnEndpointConfigProps.getExplainerConfig()
- Parameters:
explainerConfig
- A parameter to activate explainers.- Returns:
this
-
kmsKeyId
Sets the value ofCfnEndpointConfigProps.getKmsKeyId()
- Parameters:
kmsKeyId
- The Amazon Resource Name (ARN) of an AWS Key Management Service key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance that hosts the endpoint.- 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
The KMS key policy must grant permission to the IAM role that you specify in your
CreateEndpoint
,UpdateEndpoint
requests. For more information, refer to the AWS Key Management Service section Using Key Policies in AWS KMSCertain Nitro-based instances include local storage, dependent on the instance type. Local storage volumes are encrypted using a hardware module on the instance. You can't request a
KmsKeyId
when using an instance type with local storage. If any of the models that you specify in theProductionVariants
parameter use nitro-based instances with local storage, do not specify a value for theKmsKeyId
parameter. If you specify a value forKmsKeyId
when using any nitro-based instances with local storage, the call toCreateEndpointConfig
fails.For a list of instance types that support local instance storage, see Instance Store Volumes .
For more information about local instance storage encryption, see SSD Instance Store Volumes .
- Key ID:
- Returns:
this
-
shadowProductionVariants
@Stability(Stable) public CfnEndpointConfigProps.Builder shadowProductionVariants(IResolvable shadowProductionVariants) Sets the value ofCfnEndpointConfigProps.getShadowProductionVariants()
- Parameters:
shadowProductionVariants
- Array ofProductionVariant
objects. There is one for each model that you want to host at this endpoint in shadow mode with production traffic replicated from the model specified onProductionVariants
. If you use this field, you can only specify one variant forProductionVariants
and one variant forShadowProductionVariants
.- Returns:
this
-
shadowProductionVariants
@Stability(Stable) public CfnEndpointConfigProps.Builder shadowProductionVariants(List<? extends Object> shadowProductionVariants) Sets the value ofCfnEndpointConfigProps.getShadowProductionVariants()
- Parameters:
shadowProductionVariants
- Array ofProductionVariant
objects. There is one for each model that you want to host at this endpoint in shadow mode with production traffic replicated from the model specified onProductionVariants
. If you use this field, you can only specify one variant forProductionVariants
and one variant forShadowProductionVariants
.- Returns:
this
-
tags
Sets the value ofCfnEndpointConfigProps.getTags()
- Parameters:
tags
- A list of key-value pairs to apply to this resource. For more information, see Resource Tag and Using Cost Allocation Tags .- Returns:
this
-
vpcConfig
Sets the value ofCfnEndpointConfigProps.getVpcConfig()
- Parameters:
vpcConfig
- the value to be set.- Returns:
this
-
vpcConfig
@Stability(Stable) public CfnEndpointConfigProps.Builder vpcConfig(CfnEndpointConfig.VpcConfigProperty vpcConfig) Sets the value ofCfnEndpointConfigProps.getVpcConfig()
- Parameters:
vpcConfig
- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnEndpointConfigProps>
- Returns:
- a new instance of
CfnEndpointConfigProps
- Throws:
NullPointerException
- if any required attribute was not provided
-