Class ContainerDefinition

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.stepfunctions.tasks.ContainerDefinition
All Implemented Interfaces:
IContainerDefinition, software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-12-27T17:02:10.839Z") @Stability(Stable) public class ContainerDefinition extends software.amazon.jsii.JsiiObject implements IContainerDefinition
Describes the container, as part of model definition.

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:
  • Constructor Details

    • ContainerDefinition

      protected ContainerDefinition(software.amazon.jsii.JsiiObjectRef objRef)
    • ContainerDefinition

      protected ContainerDefinition(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • ContainerDefinition

      @Stability(Stable) public ContainerDefinition(@NotNull ContainerDefinitionOptions options)
      Parameters:
      options - This parameter is required.
  • Method Details