You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::SageMaker::Types::ContainerDefinition

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-sagemaker/lib/aws-sdk-sagemaker/types.rb

Overview

Note:

When making an API call, you may pass ContainerDefinition data as a hash:

{
  container_hostname: "ContainerHostname",
  image: "Image", # required
  model_data_url: "Url",
  environment: {
    "EnvironmentKey" => "EnvironmentValue",
  },
}

Describes the container, as part of model definition.

Instance Attribute Summary collapse

Instance Attribute Details

#container_hostnameString

The DNS host name for the container after Amazon SageMaker deploys it.

Returns:

  • (String)


232
233
234
235
236
237
238
# File 'gems/aws-sdk-sagemaker/lib/aws-sdk-sagemaker/types.rb', line 232

class ContainerDefinition < Struct.new(
  :container_hostname,
  :image,
  :model_data_url,
  :environment)
  include Aws::Structure
end

#environmentHash<String,String>

The environment variables to set in the Docker container. Each key and value in the Environment string to string map can have length of up to 1024. We support up to 16 entries in the map.

Returns:

  • (Hash<String,String>)


232
233
234
235
236
237
238
# File 'gems/aws-sdk-sagemaker/lib/aws-sdk-sagemaker/types.rb', line 232

class ContainerDefinition < Struct.new(
  :container_hostname,
  :image,
  :model_data_url,
  :environment)
  include Aws::Structure
end

#imageString

The Amazon EC2 Container Registry (Amazon ECR) path where inference code is stored. If you are using your own custom algorithm instead of an algorithm provided by Amazon SageMaker, the inference code must meet Amazon SageMaker requirements. For more information, see Using Your Own Algorithms with Amazon SageMaker

Returns:

  • (String)


232
233
234
235
236
237
238
# File 'gems/aws-sdk-sagemaker/lib/aws-sdk-sagemaker/types.rb', line 232

class ContainerDefinition < Struct.new(
  :container_hostname,
  :image,
  :model_data_url,
  :environment)
  include Aws::Structure
end

#model_data_urlString

The S3 path where the model artifacts, which result from model training, are stored. This path must point to a single gzip compressed tar archive (.tar.gz suffix).

Returns:

  • (String)


232
233
234
235
236
237
238
# File 'gems/aws-sdk-sagemaker/lib/aws-sdk-sagemaker/types.rb', line 232

class ContainerDefinition < Struct.new(
  :container_hostname,
  :image,
  :model_data_url,
  :environment)
  include Aws::Structure
end