Class CfnEndpointConfigMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEndpointConfigMixinProps>
- Enclosing interface:
CfnEndpointConfigMixinProps
CfnEndpointConfigMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasyncInferenceConfig(CfnEndpointConfigPropsMixin.AsyncInferenceConfigProperty asyncInferenceConfig) Sets the value ofCfnEndpointConfigMixinProps.getAsyncInferenceConfig()asyncInferenceConfig(IResolvable asyncInferenceConfig) Sets the value ofCfnEndpointConfigMixinProps.getAsyncInferenceConfig()build()Builds the configured instance.dataCaptureConfig(CfnEndpointConfigPropsMixin.DataCaptureConfigProperty dataCaptureConfig) Sets the value ofCfnEndpointConfigMixinProps.getDataCaptureConfig()dataCaptureConfig(IResolvable dataCaptureConfig) Sets the value ofCfnEndpointConfigMixinProps.getDataCaptureConfig()enableNetworkIsolation(Boolean enableNetworkIsolation) Sets the value ofCfnEndpointConfigMixinProps.getEnableNetworkIsolation()enableNetworkIsolation(IResolvable enableNetworkIsolation) Sets the value ofCfnEndpointConfigMixinProps.getEnableNetworkIsolation()endpointConfigName(String endpointConfigName) Sets the value ofCfnEndpointConfigMixinProps.getEndpointConfigName()executionRoleArn(String executionRoleArn) Sets the value ofCfnEndpointConfigMixinProps.getExecutionRoleArn()explainerConfig(CfnEndpointConfigPropsMixin.ExplainerConfigProperty explainerConfig) Sets the value ofCfnEndpointConfigMixinProps.getExplainerConfig()explainerConfig(IResolvable explainerConfig) Sets the value ofCfnEndpointConfigMixinProps.getExplainerConfig()Sets the value ofCfnEndpointConfigMixinProps.getKmsKeyId()productionVariants(List<? extends Object> productionVariants) Sets the value ofCfnEndpointConfigMixinProps.getProductionVariants()productionVariants(IResolvable productionVariants) Sets the value ofCfnEndpointConfigMixinProps.getProductionVariants()shadowProductionVariants(List<? extends Object> shadowProductionVariants) Sets the value ofCfnEndpointConfigMixinProps.getShadowProductionVariants()shadowProductionVariants(IResolvable shadowProductionVariants) Sets the value ofCfnEndpointConfigMixinProps.getShadowProductionVariants()Sets the value ofCfnEndpointConfigMixinProps.getTags()Sets the value ofCfnEndpointConfigMixinProps.getVpcConfig()vpcConfig(IResolvable vpcConfig) Sets the value ofCfnEndpointConfigMixinProps.getVpcConfig()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
asyncInferenceConfig
@Stability(Stable) public CfnEndpointConfigMixinProps.Builder asyncInferenceConfig(IResolvable asyncInferenceConfig) Sets the value ofCfnEndpointConfigMixinProps.getAsyncInferenceConfig()- Parameters:
asyncInferenceConfig- Specifies configuration for how an endpoint performs asynchronous inference.- Returns:
this
-
asyncInferenceConfig
@Stability(Stable) public CfnEndpointConfigMixinProps.Builder asyncInferenceConfig(CfnEndpointConfigPropsMixin.AsyncInferenceConfigProperty asyncInferenceConfig) Sets the value ofCfnEndpointConfigMixinProps.getAsyncInferenceConfig()- Parameters:
asyncInferenceConfig- Specifies configuration for how an endpoint performs asynchronous inference.- Returns:
this
-
dataCaptureConfig
@Stability(Stable) public CfnEndpointConfigMixinProps.Builder dataCaptureConfig(IResolvable dataCaptureConfig) Sets the value ofCfnEndpointConfigMixinProps.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 CfnEndpointConfigMixinProps.Builder dataCaptureConfig(CfnEndpointConfigPropsMixin.DataCaptureConfigProperty dataCaptureConfig) Sets the value ofCfnEndpointConfigMixinProps.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 CfnEndpointConfigMixinProps.Builder enableNetworkIsolation(Boolean enableNetworkIsolation) Sets the value ofCfnEndpointConfigMixinProps.getEnableNetworkIsolation()- Parameters:
enableNetworkIsolation- the value to be set.- Returns:
this
-
enableNetworkIsolation
@Stability(Stable) public CfnEndpointConfigMixinProps.Builder enableNetworkIsolation(IResolvable enableNetworkIsolation) Sets the value ofCfnEndpointConfigMixinProps.getEnableNetworkIsolation()- Parameters:
enableNetworkIsolation- the value to be set.- Returns:
this
-
endpointConfigName
@Stability(Stable) public CfnEndpointConfigMixinProps.Builder endpointConfigName(String endpointConfigName) Sets the value ofCfnEndpointConfigMixinProps.getEndpointConfigName()- Parameters:
endpointConfigName- The name of the endpoint configuration.- Returns:
this
-
executionRoleArn
@Stability(Stable) public CfnEndpointConfigMixinProps.Builder executionRoleArn(String executionRoleArn) Sets the value ofCfnEndpointConfigMixinProps.getExecutionRoleArn()- Parameters:
executionRoleArn- the value to be set.- Returns:
this
-
explainerConfig
@Stability(Stable) public CfnEndpointConfigMixinProps.Builder explainerConfig(IResolvable explainerConfig) Sets the value ofCfnEndpointConfigMixinProps.getExplainerConfig()- Parameters:
explainerConfig- A parameter to activate explainers.- Returns:
this
-
explainerConfig
@Stability(Stable) public CfnEndpointConfigMixinProps.Builder explainerConfig(CfnEndpointConfigPropsMixin.ExplainerConfigProperty explainerConfig) Sets the value ofCfnEndpointConfigMixinProps.getExplainerConfig()- Parameters:
explainerConfig- A parameter to activate explainers.- Returns:
this
-
kmsKeyId
Sets the value ofCfnEndpointConfigMixinProps.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,UpdateEndpointrequests. 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
KmsKeyIdwhen using an instance type with local storage. If any of the models that you specify in theProductionVariantsparameter use nitro-based instances with local storage, do not specify a value for theKmsKeyIdparameter. If you specify a value forKmsKeyIdwhen using any nitro-based instances with local storage, the call toCreateEndpointConfigfails.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
-
productionVariants
@Stability(Stable) public CfnEndpointConfigMixinProps.Builder productionVariants(IResolvable productionVariants) Sets the value ofCfnEndpointConfigMixinProps.getProductionVariants()- Parameters:
productionVariants- A list ofProductionVariantobjects, one for each model that you want to host at this endpoint.- Returns:
this
-
productionVariants
@Stability(Stable) public CfnEndpointConfigMixinProps.Builder productionVariants(List<? extends Object> productionVariants) Sets the value ofCfnEndpointConfigMixinProps.getProductionVariants()- Parameters:
productionVariants- A list ofProductionVariantobjects, one for each model that you want to host at this endpoint.- Returns:
this
-
shadowProductionVariants
@Stability(Stable) public CfnEndpointConfigMixinProps.Builder shadowProductionVariants(IResolvable shadowProductionVariants) Sets the value ofCfnEndpointConfigMixinProps.getShadowProductionVariants()- Parameters:
shadowProductionVariants- Array ofProductionVariantobjects. 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 forProductionVariantsand one variant forShadowProductionVariants.- Returns:
this
-
shadowProductionVariants
@Stability(Stable) public CfnEndpointConfigMixinProps.Builder shadowProductionVariants(List<? extends Object> shadowProductionVariants) Sets the value ofCfnEndpointConfigMixinProps.getShadowProductionVariants()- Parameters:
shadowProductionVariants- Array ofProductionVariantobjects. 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 forProductionVariantsand one variant forShadowProductionVariants.- Returns:
this
-
tags
Sets the value ofCfnEndpointConfigMixinProps.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 ofCfnEndpointConfigMixinProps.getVpcConfig()- Parameters:
vpcConfig- the value to be set.- Returns:
this
-
vpcConfig
@Stability(Stable) public CfnEndpointConfigMixinProps.Builder vpcConfig(CfnEndpointConfigPropsMixin.VpcConfigProperty vpcConfig) Sets the value ofCfnEndpointConfigMixinProps.getVpcConfig()- Parameters:
vpcConfig- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEndpointConfigMixinProps>- Returns:
- a new instance of
CfnEndpointConfigMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-