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

Class: Aws::SageMaker::Types::DesiredWeightAndCapacity

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

{
  variant_name: "VariantName", # required
  desired_weight: 1.0,
  desired_instance_count: 1,
}

Specifies weight and capacity values for a production variant.

Instance Attribute Summary collapse

Instance Attribute Details

#desired_instance_countInteger

The variant's capacity.

Returns:

  • (Integer)


2164
2165
2166
2167
2168
2169
# File 'gems/aws-sdk-sagemaker/lib/aws-sdk-sagemaker/types.rb', line 2164

class DesiredWeightAndCapacity < Struct.new(
  :variant_name,
  :desired_weight,
  :desired_instance_count)
  include Aws::Structure
end

#desired_weightFloat

The variant's weight.

Returns:

  • (Float)


2164
2165
2166
2167
2168
2169
# File 'gems/aws-sdk-sagemaker/lib/aws-sdk-sagemaker/types.rb', line 2164

class DesiredWeightAndCapacity < Struct.new(
  :variant_name,
  :desired_weight,
  :desired_instance_count)
  include Aws::Structure
end

#variant_nameString

The name of the variant to update.

Returns:

  • (String)


2164
2165
2166
2167
2168
2169
# File 'gems/aws-sdk-sagemaker/lib/aws-sdk-sagemaker/types.rb', line 2164

class DesiredWeightAndCapacity < Struct.new(
  :variant_name,
  :desired_weight,
  :desired_instance_count)
  include Aws::Structure
end