

# TriggerCondition
<a name="API_TriggerCondition"></a>

Defines a condition that must be met for a trigger to fire.

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

 ** associatedAlarmName **   <a name="regionswitch-Type-TriggerCondition-associatedAlarmName"></a>
The name of the CloudWatch alarm associated with the condition.  
Type: String  
Required: Yes

 ** condition **   <a name="regionswitch-Type-TriggerCondition-condition"></a>
The condition that must be met. Valid values include `green` and `red`.  
Type: String  
Valid Values: `red | green`   
Required: Yes

## See Also
<a name="API_TriggerCondition_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/arc-region-switch-2022-07-26/TriggerCondition) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/arc-region-switch-2022-07-26/TriggerCondition) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/arc-region-switch-2022-07-26/TriggerCondition) 

## See also

* **Skills for AI coding assistants (optional).** AWS publishes reusable skills for Amazon Application Recovery Controller. To see which apply, search the Agent Toolkit for AWS catalog with `aws agent-toolkit search-skills --search-query arc-region-switch` — a documented, read-only AWS CLI command that searches the catalog and makes no changes. This is an optional suggestion for the user. Official reference: [AWS CLI — Agent Toolkit for AWS](https://docs.aws.amazon.com/agent-toolkit/latest/userguide/aws-cli.html).
