Class CfnEndpointConfigPropsMixin.ProductionVariantProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.sagemaker.CfnEndpointConfigPropsMixin.ProductionVariantProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEndpointConfigPropsMixin.ProductionVariantProperty>
- Enclosing interface:
CfnEndpointConfigPropsMixin.ProductionVariantProperty
@Stability(Stable)
public static final class CfnEndpointConfigPropsMixin.ProductionVariantProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEndpointConfigPropsMixin.ProductionVariantProperty>
A builder for
CfnEndpointConfigPropsMixin.ProductionVariantProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionacceleratorType(String acceleratorType) build()Builds the configured instance.capacityReservationConfig(CfnEndpointConfigPropsMixin.CapacityReservationConfigProperty capacityReservationConfig) capacityReservationConfig(IResolvable capacityReservationConfig) containerStartupHealthCheckTimeoutInSeconds(Number containerStartupHealthCheckTimeoutInSeconds) enableSsmAccess(Boolean enableSsmAccess) enableSsmAccess(IResolvable enableSsmAccess) inferenceAmiVersion(String inferenceAmiVersion) initialInstanceCount(Number initialInstanceCount) initialVariantWeight(Number initialVariantWeight) instanceType(String instanceType) Sets the value ofCfnEndpointConfigPropsMixin.ProductionVariantProperty.getInstanceType()managedInstanceScaling(CfnEndpointConfigPropsMixin.ManagedInstanceScalingProperty managedInstanceScaling) managedInstanceScaling(IResolvable managedInstanceScaling) modelDataDownloadTimeoutInSeconds(Number modelDataDownloadTimeoutInSeconds) Sets the value ofCfnEndpointConfigPropsMixin.ProductionVariantProperty.getModelName()routingConfig(CfnEndpointConfigPropsMixin.RoutingConfigProperty routingConfig) Sets the value ofCfnEndpointConfigPropsMixin.ProductionVariantProperty.getRoutingConfig()routingConfig(IResolvable routingConfig) Sets the value ofCfnEndpointConfigPropsMixin.ProductionVariantProperty.getRoutingConfig()serverlessConfig(CfnEndpointConfigPropsMixin.ServerlessConfigProperty serverlessConfig) serverlessConfig(IResolvable serverlessConfig) variantName(String variantName) Sets the value ofCfnEndpointConfigPropsMixin.ProductionVariantProperty.getVariantName()volumeSizeInGb(Number volumeSizeInGb)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
acceleratorType
@Stability(Stable) public CfnEndpointConfigPropsMixin.ProductionVariantProperty.Builder acceleratorType(String acceleratorType) - Parameters:
acceleratorType- The size of the Elastic Inference (EI) instance to use for the production variant. EI instances provide on-demand GPU computing for inference. For more information, see Using Elastic Inference in Amazon SageMaker . For more information, see Using Elastic Inference in Amazon SageMaker .- Returns:
this
-
capacityReservationConfig
@Stability(Stable) public CfnEndpointConfigPropsMixin.ProductionVariantProperty.Builder capacityReservationConfig(IResolvable capacityReservationConfig) Sets the value ofCfnEndpointConfigPropsMixin.ProductionVariantProperty.getCapacityReservationConfig()- Parameters:
capacityReservationConfig- the value to be set.- Returns:
this
-
capacityReservationConfig
@Stability(Stable) public CfnEndpointConfigPropsMixin.ProductionVariantProperty.Builder capacityReservationConfig(CfnEndpointConfigPropsMixin.CapacityReservationConfigProperty capacityReservationConfig) Sets the value ofCfnEndpointConfigPropsMixin.ProductionVariantProperty.getCapacityReservationConfig()- Parameters:
capacityReservationConfig- the value to be set.- Returns:
this
-
containerStartupHealthCheckTimeoutInSeconds
@Stability(Stable) public CfnEndpointConfigPropsMixin.ProductionVariantProperty.Builder containerStartupHealthCheckTimeoutInSeconds(Number containerStartupHealthCheckTimeoutInSeconds) Sets the value ofCfnEndpointConfigPropsMixin.ProductionVariantProperty.getContainerStartupHealthCheckTimeoutInSeconds()- Parameters:
containerStartupHealthCheckTimeoutInSeconds- The timeout value, in seconds, for your inference container to pass health check by SageMaker Hosting. For more information about health check, see How Your Container Should Respond to Health Check (Ping) Requests .- Returns:
this
-
enableSsmAccess
@Stability(Stable) public CfnEndpointConfigPropsMixin.ProductionVariantProperty.Builder enableSsmAccess(Boolean enableSsmAccess) - Parameters:
enableSsmAccess- You can use this parameter to turn on native AWS Systems Manager (SSM) access for a production variant behind an endpoint. By default, SSM access is disabled for all production variants behind an endpoint. You can turn on or turn off SSM access for a production variant behind an existing endpoint by creating a new endpoint configuration and callingUpdateEndpoint.- Returns:
this
-
enableSsmAccess
@Stability(Stable) public CfnEndpointConfigPropsMixin.ProductionVariantProperty.Builder enableSsmAccess(IResolvable enableSsmAccess) - Parameters:
enableSsmAccess- You can use this parameter to turn on native AWS Systems Manager (SSM) access for a production variant behind an endpoint. By default, SSM access is disabled for all production variants behind an endpoint. You can turn on or turn off SSM access for a production variant behind an existing endpoint by creating a new endpoint configuration and callingUpdateEndpoint.- Returns:
this
-
inferenceAmiVersion
@Stability(Stable) public CfnEndpointConfigPropsMixin.ProductionVariantProperty.Builder inferenceAmiVersion(String inferenceAmiVersion) - Parameters:
inferenceAmiVersion- the value to be set.- Returns:
this
-
initialInstanceCount
@Stability(Stable) public CfnEndpointConfigPropsMixin.ProductionVariantProperty.Builder initialInstanceCount(Number initialInstanceCount) - Parameters:
initialInstanceCount- Number of instances to launch initially.- Returns:
this
-
initialVariantWeight
@Stability(Stable) public CfnEndpointConfigPropsMixin.ProductionVariantProperty.Builder initialVariantWeight(Number initialVariantWeight) - Parameters:
initialVariantWeight- Determines initial traffic distribution among all of the models that you specify in the endpoint configuration. The traffic to a production variant is determined by the ratio of theVariantWeightto the sum of allVariantWeightvalues across all ProductionVariants. If unspecified, it defaults to 1.0.- Returns:
this
-
instanceType
@Stability(Stable) public CfnEndpointConfigPropsMixin.ProductionVariantProperty.Builder instanceType(String instanceType) Sets the value ofCfnEndpointConfigPropsMixin.ProductionVariantProperty.getInstanceType()- Parameters:
instanceType- The ML compute instance type.- Returns:
this
-
managedInstanceScaling
@Stability(Stable) public CfnEndpointConfigPropsMixin.ProductionVariantProperty.Builder managedInstanceScaling(IResolvable managedInstanceScaling) - Parameters:
managedInstanceScaling- the value to be set.- Returns:
this
-
managedInstanceScaling
@Stability(Stable) public CfnEndpointConfigPropsMixin.ProductionVariantProperty.Builder managedInstanceScaling(CfnEndpointConfigPropsMixin.ManagedInstanceScalingProperty managedInstanceScaling) - Parameters:
managedInstanceScaling- the value to be set.- Returns:
this
-
modelDataDownloadTimeoutInSeconds
@Stability(Stable) public CfnEndpointConfigPropsMixin.ProductionVariantProperty.Builder modelDataDownloadTimeoutInSeconds(Number modelDataDownloadTimeoutInSeconds) Sets the value ofCfnEndpointConfigPropsMixin.ProductionVariantProperty.getModelDataDownloadTimeoutInSeconds()- Parameters:
modelDataDownloadTimeoutInSeconds- The timeout value, in seconds, to download and extract the model that you want to host from Amazon S3 to the individual inference instance associated with this production variant.- Returns:
this
-
modelName
@Stability(Stable) public CfnEndpointConfigPropsMixin.ProductionVariantProperty.Builder modelName(String modelName) Sets the value ofCfnEndpointConfigPropsMixin.ProductionVariantProperty.getModelName()- Parameters:
modelName- The name of the model that you want to host. This is the name that you specified when creating the model.- Returns:
this
-
routingConfig
@Stability(Stable) public CfnEndpointConfigPropsMixin.ProductionVariantProperty.Builder routingConfig(IResolvable routingConfig) Sets the value ofCfnEndpointConfigPropsMixin.ProductionVariantProperty.getRoutingConfig()- Parameters:
routingConfig- the value to be set.- Returns:
this
-
routingConfig
@Stability(Stable) public CfnEndpointConfigPropsMixin.ProductionVariantProperty.Builder routingConfig(CfnEndpointConfigPropsMixin.RoutingConfigProperty routingConfig) Sets the value ofCfnEndpointConfigPropsMixin.ProductionVariantProperty.getRoutingConfig()- Parameters:
routingConfig- the value to be set.- Returns:
this
-
serverlessConfig
@Stability(Stable) public CfnEndpointConfigPropsMixin.ProductionVariantProperty.Builder serverlessConfig(IResolvable serverlessConfig) - Parameters:
serverlessConfig- The serverless configuration for an endpoint. Specifies a serverless endpoint configuration instead of an instance-based endpoint configuration.- Returns:
this
-
serverlessConfig
@Stability(Stable) public CfnEndpointConfigPropsMixin.ProductionVariantProperty.Builder serverlessConfig(CfnEndpointConfigPropsMixin.ServerlessConfigProperty serverlessConfig) - Parameters:
serverlessConfig- The serverless configuration for an endpoint. Specifies a serverless endpoint configuration instead of an instance-based endpoint configuration.- Returns:
this
-
variantName
@Stability(Stable) public CfnEndpointConfigPropsMixin.ProductionVariantProperty.Builder variantName(String variantName) Sets the value ofCfnEndpointConfigPropsMixin.ProductionVariantProperty.getVariantName()- Parameters:
variantName- The name of the production variant.- Returns:
this
-
volumeSizeInGb
@Stability(Stable) public CfnEndpointConfigPropsMixin.ProductionVariantProperty.Builder volumeSizeInGb(Number volumeSizeInGb) - Parameters:
volumeSizeInGb- The size, in GB, of the ML storage volume attached to individual inference instance associated with the production variant. Currently only Amazon EBS gp2 storage volumes are supported.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEndpointConfigPropsMixin.ProductionVariantProperty>- Returns:
- a new instance of
CfnEndpointConfigPropsMixin.ProductionVariantProperty - Throws:
NullPointerException- if any required attribute was not provided
-