Skip to content

Bedrock Agentcore  >  Structures  >  Variant

Variant

Structure Class

Variant dataclass

A variant in an A/B test, representing either the control (C) or treatment (T1) configuration.

Attributes

name instance-attribute
name: str

The name of the variant. Must be C for control or T1 for treatment.

variant_configuration instance-attribute
variant_configuration: VariantConfiguration

The configuration for this variant, including the configuration bundle or target reference.

weight instance-attribute
weight: int

The percentage of traffic to route to this variant. Weights across all variants must sum to 100.