class ContainerDefinition
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.StepFunctions.Tasks.ContainerDefinition |
Java | software.amazon.awscdk.services.stepfunctions.tasks.ContainerDefinition |
Python | aws_cdk.aws_stepfunctions_tasks.ContainerDefinition |
TypeScript (source) | @aws-cdk/aws-stepfunctions-tasks » ContainerDefinition |
Implements
IContainer
Describes the container, as part of model definition.
See also: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_ContainerDefinition.html
Example
new tasks.SageMakerCreateModel(this, 'Sagemaker', {
modelName: 'MyModel',
primaryContainer: new tasks.ContainerDefinition({
image: tasks.DockerImage.fromJsonExpression(sfn.JsonPath.stringAt('$.Model.imageName')),
mode: tasks.Mode.SINGLE_MODEL,
modelS3Location: tasks.S3Location.fromJsonExpression('$.TrainingJob.ModelArtifacts.S3ModelArtifacts'),
}),
});
Initializer
new ContainerDefinition(options: ContainerDefinitionOptions)
Parameters
- options
Container
Definition Options
Methods
Name | Description |
---|---|
bind(task) | Called when the ContainerDefinition type configured on Sagemaker Task. |
bind(task)
public bind(task: ISageMakerTask): ContainerDefinitionConfig
Parameters
- task
ISage
Maker Task
Returns
Called when the ContainerDefinition type configured on Sagemaker Task.