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

Class: Aws::SageMaker::Types::ProductionVariant

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 ProductionVariant data as a hash:

{
  variant_name: "VariantName", # required
  model_name: "ModelName", # required
  initial_instance_count: 1, # required
  instance_type: "ml.c4.2xlarge", # required, accepts ml.c4.2xlarge, ml.c4.8xlarge, ml.c4.xlarge, ml.c5.2xlarge, ml.c5.9xlarge, ml.c5.xlarge, ml.m4.xlarge, ml.p2.xlarge, ml.p3.2xlarge, ml.t2.medium
  initial_variant_weight: 1.0,
}

Identifies a model that you want to host and the resources to deploy for hosting it. If you are deploying multiple models, tell Amazon SageMaker how to distribute traffic among the models by specifying variant weights.

Instance Attribute Summary collapse

Instance Attribute Details

#initial_instance_countInteger

Number of instances to launch initially.

Returns:

  • (Integer)


2051
2052
2053
2054
2055
2056
2057
2058
# File 'gems/aws-sdk-sagemaker/lib/aws-sdk-sagemaker/types.rb', line 2051

class ProductionVariant < Struct.new(
  :variant_name,
  :model_name,
  :initial_instance_count,
  :instance_type,
  :initial_variant_weight)
  include Aws::Structure
end

#initial_variant_weightFloat

Determines initial traffic distribution among all of the models that you specify in the endpoint configuration. The traffic to a production variant is determined by the ratio of the VariantWeight to the sum of all VariantWeight values across all ProductionVariants. If unspecified, it defaults to 1.0.

Returns:

  • (Float)


2051
2052
2053
2054
2055
2056
2057
2058
# File 'gems/aws-sdk-sagemaker/lib/aws-sdk-sagemaker/types.rb', line 2051

class ProductionVariant < Struct.new(
  :variant_name,
  :model_name,
  :initial_instance_count,
  :instance_type,
  :initial_variant_weight)
  include Aws::Structure
end

#instance_typeString

The ML compute instance type.

Returns:

  • (String)


2051
2052
2053
2054
2055
2056
2057
2058
# File 'gems/aws-sdk-sagemaker/lib/aws-sdk-sagemaker/types.rb', line 2051

class ProductionVariant < Struct.new(
  :variant_name,
  :model_name,
  :initial_instance_count,
  :instance_type,
  :initial_variant_weight)
  include Aws::Structure
end

#model_nameString

The name of the model that you want to host. This is the name that you specified when creating the model.

Returns:

  • (String)


2051
2052
2053
2054
2055
2056
2057
2058
# File 'gems/aws-sdk-sagemaker/lib/aws-sdk-sagemaker/types.rb', line 2051

class ProductionVariant < Struct.new(
  :variant_name,
  :model_name,
  :initial_instance_count,
  :instance_type,
  :initial_variant_weight)
  include Aws::Structure
end

#variant_nameString

The name of the production variant.

Returns:

  • (String)


2051
2052
2053
2054
2055
2056
2057
2058
# File 'gems/aws-sdk-sagemaker/lib/aws-sdk-sagemaker/types.rb', line 2051

class ProductionVariant < Struct.new(
  :variant_name,
  :model_name,
  :initial_instance_count,
  :instance_type,
  :initial_variant_weight)
  include Aws::Structure
end