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.84.0 (build 5404dcf)", date="2023-06-19T16:30:47.905Z") @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