

# TreatmentInput
<a name="API_TreatmentInput"></a>

Input structure for defining a treatment when creating or updating an experiment definition.

## Contents
<a name="API_TreatmentInput_Contents"></a>

 ** FlagValue **   <a name="appconfig-Type-TreatmentInput-FlagValue"></a>
The feature flag value to serve to users assigned to this treatment.  
Type: [FlagValue](API_FlagValue.md) object  
Required: Yes

 ** Weight **   <a name="appconfig-Type-TreatmentInput-Weight"></a>
The traffic allocation weight for this treatment.  
Type: Float  
Valid Range: Minimum value of 0.0.  
Required: Yes

 ** Description **   <a name="appconfig-Type-TreatmentInput-Description"></a>
A description of the treatment.  
Type: String  
Length Constraints: Minimum length of 0. Maximum length of 1024.  
Required: No

## See Also
<a name="API_TreatmentInput_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/appconfig-2019-10-09/TreatmentInput) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/appconfig-2019-10-09/TreatmentInput) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/appconfig-2019-10-09/TreatmentInput) 