

# CalculationComponent
<a name="API_CalculationComponent"></a>

Represents a component metric referenced in a custom metric calculation formula.

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

 ** Alias **   <a name="connect-Type-CalculationComponent-Alias"></a>
The alias used to reference this component in the calculation expression.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 128.  
Required: Yes

 ** MetricFilters **   <a name="connect-Type-CalculationComponent-MetricFilters"></a>
The filters applied to the calculation component.  
Type: Array of [MetricFilter](API_MetricFilter.md) objects  
Array Members: Minimum number of 0 items. Maximum number of 5 items.  
Required: No

 ** MetricId **   <a name="connect-Type-CalculationComponent-MetricId"></a>
The ARN of an AWS-managed metric used in this calculation component. Mutually exclusive with `MetricName`.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 150.  
Required: No

 ** MetricName **   <a name="connect-Type-CalculationComponent-MetricName"></a>
The name of an AWS-managed metric used in this calculation component (for example, `CONTACTS_HANDLED`). Mutually exclusive with `MetricId`.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 128.  
Required: No

## See Also
<a name="API_CalculationComponent_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/connect-2017-08-08/CalculationComponent) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/connect-2017-08-08/CalculationComponent) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/connect-2017-08-08/CalculationComponent) 