Interface ISageMakerCreateModelProps
Properties for creating an Amazon SageMaker model.
Inherited Members
Namespace: Amazon.CDK.AWS.StepFunctions.Tasks
Assembly: Amazon.CDK.AWS.StepFunctions.Tasks.dll
Syntax (csharp)
public interface ISageMakerCreateModelProps : ITaskStateBaseProps
Syntax (vb)
Public Interface ISageMakerCreateModelProps
Inherits ITaskStateBaseProps
Remarks
See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-sagemaker.html
ExampleMetadata: infused
Examples
new SageMakerCreateModel(this, "Sagemaker", new SageMakerCreateModelProps {
ModelName = "MyModel",
PrimaryContainer = new ContainerDefinition(new ContainerDefinitionOptions {
Image = DockerImage.FromJsonExpression(JsonPath.StringAt("$.Model.imageName")),
Mode = Mode.SINGLE_MODEL,
ModelS3Location = S3Location.FromJsonExpression("$.TrainingJob.ModelArtifacts.S3ModelArtifacts")
})
});
Synopsis
Properties
Containers | Specifies the containers in the inference pipeline. |
EnableNetworkIsolation | Isolates the model container. |
ModelName | The name of the new model. |
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. |
Role | An execution role that you can pass in a CreateModel API request. |
SubnetSelection | The subnets of the VPC to which the hosted model is connected (Note this parameter is only used when VPC is provided). |
Tags | Tags to be applied to the model. |
Vpc | The VPC that is accessible by the hosted model. |
Properties
Containers
Specifies the containers in the inference pipeline.
virtual IContainerDefinition[] Containers { get; }
Property Value
Remarks
Default: - None
EnableNetworkIsolation
Isolates the model container.
virtual Nullable<bool> EnableNetworkIsolation { get; }
Property Value
System.Nullable<System.Boolean>
Remarks
No inbound or outbound network calls can be made to or from the model container.
Default: false
ModelName
The name of the new model.
string ModelName { get; }
Property Value
System.String
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.
IContainerDefinition PrimaryContainer { get; }
Property Value
Role
An execution role that you can pass in a CreateModel API request.
virtual IRole Role { get; }
Property Value
Remarks
Default: - a role will be created.
SubnetSelection
The subnets of the VPC to which the hosted model is connected (Note this parameter is only used when VPC is provided).
virtual ISubnetSelection SubnetSelection { get; }
Property Value
Remarks
Default: - Private Subnets are selected
Tags
Tags to be applied to the model.
virtual TaskInput Tags { get; }
Property Value
Remarks
Default: - No tags
Vpc
The VPC that is accessible by the hosted model.
virtual IVpc Vpc { get; }
Property Value
Remarks
Default: - None