

# Trigger
<a name="API_Trigger"></a>

Defines a condition that can automatically trigger the execution of a Region switch plan.

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

 ** action **   <a name="regionswitch-Type-Trigger-action"></a>
The action to perform when the trigger fires. Valid values include `activate` and `deactivate`.  
Type: String  
Valid Values: `activate | deactivate | postRecovery`   
Required: Yes

 ** conditions **   <a name="regionswitch-Type-Trigger-conditions"></a>
The conditions that must be met for the trigger to fire.  
Type: Array of [TriggerCondition](API_TriggerCondition.md) objects  
Array Members: Minimum number of 1 item. Maximum number of 10 items.  
Required: Yes

 ** minDelayMinutesBetweenExecutions **   <a name="regionswitch-Type-Trigger-minDelayMinutesBetweenExecutions"></a>
The minimum time, in minutes, that must elapse between automatic executions of the plan.  
Type: Integer  
Required: Yes

 ** targetRegion **   <a name="regionswitch-Type-Trigger-targetRegion"></a>
The AWS Region for a trigger.  
Type: String  
Pattern: `[a-z]{2}-[a-z-]+-\d+`   
Required: Yes

 ** description **   <a name="regionswitch-Type-Trigger-description"></a>
The description for a trigger.  
Type: String  
Required: No

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

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/arc-region-switch-2022-07-26/Trigger) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/arc-region-switch-2022-07-26/Trigger) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/arc-region-switch-2022-07-26/Trigger) 