public static final class SageMakerCreateModelProps.Builder
extends java.lang.Object
SageMakerCreateModelProps
Constructor and Description |
---|
Builder() |
public SageMakerCreateModelProps.Builder modelName(java.lang.String modelName)
SageMakerCreateModelProps.getModelName()
modelName
- The name of the new model. This parameter is required.this
public SageMakerCreateModelProps.Builder primaryContainer(IContainerDefinition primaryContainer)
SageMakerCreateModelProps.getPrimaryContainer()
primaryContainer
- The definition of the primary docker image containing inference code, associated artifacts, and custom environment map that the inference code uses when the model is deployed for predictions. This parameter is required.this
public SageMakerCreateModelProps.Builder containers(java.util.List<? extends IContainerDefinition> containers)
SageMakerCreateModelProps.getContainers()
containers
- Specifies the containers in the inference pipeline.this
public SageMakerCreateModelProps.Builder enableNetworkIsolation(java.lang.Boolean enableNetworkIsolation)
SageMakerCreateModelProps.getEnableNetworkIsolation()
enableNetworkIsolation
- Isolates the model container.
No inbound or outbound network calls can be made to or from the model container.this
public SageMakerCreateModelProps.Builder role(IRole role)
SageMakerCreateModelProps.getRole()
role
- An execution role that you can pass in a CreateModel API request.this
public SageMakerCreateModelProps.Builder subnetSelection(SubnetSelection subnetSelection)
SageMakerCreateModelProps.getSubnetSelection()
subnetSelection
- The subnets of the VPC to which the hosted model is connected (Note this parameter is only used when VPC is provided).this
public SageMakerCreateModelProps.Builder tags(TaskInput tags)
SageMakerCreateModelProps.getTags()
tags
- Tags to be applied to the model.this
public SageMakerCreateModelProps.Builder vpc(IVpc vpc)
SageMakerCreateModelProps.getVpc()
vpc
- The VPC that is accessible by the hosted model.this
public SageMakerCreateModelProps.Builder comment(java.lang.String comment)
TaskStateBaseProps.getComment()
comment
- An optional description for this state.this
public SageMakerCreateModelProps.Builder heartbeat(Duration heartbeat)
TaskStateBaseProps.getHeartbeat()
heartbeat
- Timeout for the heartbeat.this
public SageMakerCreateModelProps.Builder inputPath(java.lang.String inputPath)
TaskStateBaseProps.getInputPath()
inputPath
- JSONPath expression to select part of the state to be the input to this state.
May also be the special value JsonPath.DISCARD, which will cause the effective
input to be the empty object {}.this
public SageMakerCreateModelProps.Builder integrationPattern(IntegrationPattern integrationPattern)
TaskStateBaseProps.getIntegrationPattern()
integrationPattern
- AWS Step Functions integrates with services directly in the Amazon States Language.
You can control these AWS services using service integration patternsthis
public SageMakerCreateModelProps.Builder outputPath(java.lang.String outputPath)
TaskStateBaseProps.getOutputPath()
outputPath
- JSONPath expression to select select a portion of the state output to pass to the next state.
May also be the special value JsonPath.DISCARD, which will cause the effective
output to be the empty object {}.this
public SageMakerCreateModelProps.Builder resultPath(java.lang.String resultPath)
TaskStateBaseProps.getResultPath()
resultPath
- JSONPath expression to indicate where to inject the state's output.
May also be the special value JsonPath.DISCARD, which will cause the state's
input to become its output.this
public SageMakerCreateModelProps.Builder resultSelector(java.util.Map<java.lang.String,? extends java.lang.Object> resultSelector)
TaskStateBaseProps.getResultSelector()
resultSelector
- The JSON that will replace the state's raw result and become the effective result before ResultPath is applied.
You can use ResultSelector to create a payload with values that are static
or selected from the state's raw result.this
public SageMakerCreateModelProps.Builder timeout(Duration timeout)
TaskStateBaseProps.getTimeout()
timeout
- Timeout for the state machine.this
public SageMakerCreateModelProps build()
SageMakerCreateModelProps
java.lang.NullPointerException
- if any required attribute was not provided