

This is the new *CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [AWS CloudFormation User Guide](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/Welcome.html).

# AWS::IoTFleetWise::Campaign ConditionBasedCollectionScheme
<a name="aws-properties-iotfleetwise-campaign-conditionbasedcollectionscheme"></a>

Information about a collection scheme that uses a simple logical expression to recognize what data to collect.

## Syntax
<a name="aws-properties-iotfleetwise-campaign-conditionbasedcollectionscheme-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-iotfleetwise-campaign-conditionbasedcollectionscheme-syntax.json"></a>

```
{
  "[ConditionLanguageVersion](#cfn-iotfleetwise-campaign-conditionbasedcollectionscheme-conditionlanguageversion)" : Integer,
  "[Expression](#cfn-iotfleetwise-campaign-conditionbasedcollectionscheme-expression)" : String,
  "[MinimumTriggerIntervalMs](#cfn-iotfleetwise-campaign-conditionbasedcollectionscheme-minimumtriggerintervalms)" : Number,
  "[TriggerMode](#cfn-iotfleetwise-campaign-conditionbasedcollectionscheme-triggermode)" : String
}
```

### YAML
<a name="aws-properties-iotfleetwise-campaign-conditionbasedcollectionscheme-syntax.yaml"></a>

```
  [ConditionLanguageVersion](#cfn-iotfleetwise-campaign-conditionbasedcollectionscheme-conditionlanguageversion): Integer
  [Expression](#cfn-iotfleetwise-campaign-conditionbasedcollectionscheme-expression): String
  [MinimumTriggerIntervalMs](#cfn-iotfleetwise-campaign-conditionbasedcollectionscheme-minimumtriggerintervalms): Number
  [TriggerMode](#cfn-iotfleetwise-campaign-conditionbasedcollectionscheme-triggermode): String
```

## Properties
<a name="aws-properties-iotfleetwise-campaign-conditionbasedcollectionscheme-properties"></a>

`ConditionLanguageVersion`  <a name="cfn-iotfleetwise-campaign-conditionbasedcollectionscheme-conditionlanguageversion"></a>
 Specifies the version of the conditional expression language.  
*Required*: No  
*Type*: Integer  
*Minimum*: `1`  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`Expression`  <a name="cfn-iotfleetwise-campaign-conditionbasedcollectionscheme-expression"></a>
The logical expression used to recognize what data to collect. For example, `$variable.Vehicle.OutsideAirTemperature >= 105.0`.  
*Required*: Yes  
*Type*: String  
*Minimum*: `1`  
*Maximum*: `2048`  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`MinimumTriggerIntervalMs`  <a name="cfn-iotfleetwise-campaign-conditionbasedcollectionscheme-minimumtriggerintervalms"></a>
 The minimum duration of time between two triggering events to collect data, in milliseconds.  
If a signal changes often, you might want to collect data at a slower rate.
*Required*: No  
*Type*: Number  
*Minimum*: `0`  
*Maximum*: `4294967295`  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`TriggerMode`  <a name="cfn-iotfleetwise-campaign-conditionbasedcollectionscheme-triggermode"></a>
 Whether to collect data for all triggering events (`ALWAYS`). Specify (`RISING_EDGE`), or specify only when the condition first evaluates to false. For example, triggering on "AirbagDeployed"; Users aren't interested on triggering when the airbag is already exploded; they only care about the change from not deployed => deployed.  
*Required*: No  
*Type*: String  
*Allowed values*: `ALWAYS | RISING_EDGE`  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)