ProductionVariant

class aws_cdk.aws_stepfunctions_tasks.ProductionVariant(*, instance_type, model_name, variant_name, accelerator_type=None, initial_instance_count=None, initial_variant_weight=None)

Bases: object

(experimental) Identifies a model that you want to host and the resources to deploy for hosting it.

Parameters
  • instance_type (InstanceType) – (experimental) The ML compute instance type.

  • model_name (str) – (experimental) The name of the model that you want to host. This is the name that you specified when creating the model.

  • variant_name (str) – (experimental) The name of the production variant.

  • accelerator_type (Optional[AcceleratorType]) – (experimental) The size of the Elastic Inference (EI) instance to use for the production variant. Default: - None

  • initial_instance_count (Union[int, float, None]) – (experimental) Number of instances to launch initially. Default: - 1

  • initial_variant_weight (Union[int, float, None]) – (experimental) Determines initial traffic distribution among all of the models that you specify in the endpoint configuration. Default: - 1.0

See

https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_ProductionVariant.html

Stability

experimental

Attributes

accelerator_type

(experimental) The size of the Elastic Inference (EI) instance to use for the production variant.

Default
  • None

Stability

experimental

Return type

Optional[AcceleratorType]

initial_instance_count

(experimental) Number of instances to launch initially.

Default
  • 1

Stability

experimental

Return type

Union[int, float, None]

initial_variant_weight

(experimental) Determines initial traffic distribution among all of the models that you specify in the endpoint configuration.

Default
  • 1.0

Stability

experimental

Return type

Union[int, float, None]

instance_type

(experimental) The ML compute instance type.

Stability

experimental

Return type

InstanceType

model_name

(experimental) The name of the model that you want to host.

This is the name that you specified when creating the model.

Stability

experimental

Return type

str

variant_name

(experimental) The name of the production variant.

Stability

experimental

Return type

str