Class SageMakerCreateModel
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.services.stepfunctions.State
software.amazon.awscdk.services.stepfunctions.TaskStateBase
software.amazon.awscdk.services.stepfunctions.tasks.SageMakerCreateModel
- All Implemented Interfaces:
IConnectable,IGrantable,IChainable,INextable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-10T13:40:16.374Z")
@Stability(Stable)
public class SageMakerCreateModel
extends TaskStateBase
implements IGrantable, IConnectable
A Step Functions Task to create a SageMaker model.
Example:
SageMakerCreateModel.Builder.create(this, "Sagemaker")
.modelName("MyModel")
.primaryContainer(ContainerDefinition.Builder.create()
.image(DockerImage.fromJsonExpression(JsonPath.stringAt("$.Model.imageName")))
.mode(Mode.SINGLE_MODEL)
.modelS3Location(S3Location.fromJsonExpression("$.TrainingJob.ModelArtifacts.S3ModelArtifacts"))
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.stepfunctions.IChainable
IChainable.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.IConnectable
IConnectable.Jsii$Default, IConnectable.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.iam.IGrantable
IGrantable.Jsii$Default, IGrantable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.stepfunctions.INextable
INextable.Jsii$Default -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSageMakerCreateModel(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedSageMakerCreateModel(software.amazon.jsii.JsiiObjectRef objRef) SageMakerCreateModel(software.constructs.Construct scope, String id, SageMakerCreateModelProps props) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSecurityGroup(ISecurityGroup securityGroup) Add the security group to all instances via the launch configuration security groups array.Allows specify security group connections for instances of this fleet.The principal to grant permissions to.getRole()The execution role for the Sagemaker Create Model API.protected TaskMetricsConfigprotected List<PolicyStatement> static SageMakerCreateModeljsonata(software.constructs.Construct scope, String id, SageMakerCreateModelJsonataProps props) A Step Functions Task using JSONata to create a SageMaker model.static SageMakerCreateModeljsonPath(software.constructs.Construct scope, String id, SageMakerCreateModelJsonPathProps props) A Step Functions Task using JSONPath to create a SageMaker model.Methods inherited from class software.amazon.awscdk.services.stepfunctions.TaskStateBase
addCatch, addCatch, addRetry, addRetry, getEndStates, metric, metric, metricFailed, metricFailed, metricHeartbeatTimedOut, metricHeartbeatTimedOut, metricRunTime, metricRunTime, metricScheduled, metricScheduled, metricScheduleTime, metricScheduleTime, metricStarted, metricStarted, metricSucceeded, metricSucceeded, metricTime, metricTime, metricTimedOut, metricTimedOut, next, toStateJson, toStateJson, whenBoundToGraphMethods inherited from class software.amazon.awscdk.services.stepfunctions.State
addBranch, addChoice, addChoice, addItemProcessor, addItemProcessor, addIterator, addPrefix, bindToGraph, filterNextables, findReachableEndStates, findReachableEndStates, findReachableStates, findReachableStates, getArguments, getAssign, getBranches, getComment, getDefaultChoice, getId, getInputPath, getIteration, getOutputPath, getOutputs, getParameters, getProcessor, getProcessorConfig, getProcessorMode, getQueryLanguage, getResultPath, getResultSelector, getStartState, getStateId, getStateName, makeDefault, makeNext, prefixStates, renderAssign, renderAssign, renderBranches, renderChoices, renderChoices, renderInputOutput, renderItemProcessor, renderIterator, renderNextEnd, renderQueryLanguage, renderQueryLanguage, renderResultSelector, renderRetryCatch, renderRetryCatch, setDefaultChoice, setIteration, setProcessor, setProcessorConfig, setProcessorMode, validateStateMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
PROPERTY_INJECTION_ID
Uniquely identifies this class.
-
-
Constructor Details
-
SageMakerCreateModel
protected SageMakerCreateModel(software.amazon.jsii.JsiiObjectRef objRef) -
SageMakerCreateModel
protected SageMakerCreateModel(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
SageMakerCreateModel
@Stability(Stable) public SageMakerCreateModel(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull SageMakerCreateModelProps props) - Parameters:
scope- This parameter is required.id- Descriptive identifier for this chainable. This parameter is required.props- This parameter is required.
-
-
Method Details
-
jsonata
@Stability(Stable) @NotNull public static SageMakerCreateModel jsonata(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull SageMakerCreateModelJsonataProps props) A Step Functions Task using JSONata to create a SageMaker model.- Parameters:
scope- This parameter is required.id- This parameter is required.props- This parameter is required.- See Also:
-
jsonPath
@Stability(Stable) @NotNull public static SageMakerCreateModel jsonPath(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull SageMakerCreateModelJsonPathProps props) A Step Functions Task using JSONPath to create a SageMaker model.- Parameters:
scope- This parameter is required.id- This parameter is required.props- This parameter is required.- See Also:
-
addSecurityGroup
Add the security group to all instances via the launch configuration security groups array.- Parameters:
securityGroup- : The security group to add. This parameter is required.
-
getConnections
Allows specify security group connections for instances of this fleet.- Specified by:
getConnectionsin interfaceIConnectable
-
getGrantPrincipal
The principal to grant permissions to.- Specified by:
getGrantPrincipalin interfaceIGrantable
-
getRole
The execution role for the Sagemaker Create Model API. -
getTaskMetrics
- Specified by:
getTaskMetricsin classTaskStateBase
-
getTaskPolicies
- Specified by:
getTaskPoliciesin classTaskStateBase
-