# ConditionBasedCollectionSchemeProperty

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

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iotfleetwise as iotfleetwise } from 'aws-cdk-lib';
const conditionBasedCollectionSchemeProperty: iotfleetwise.CfnCampaign.ConditionBasedCollectionSchemeProperty = {
  expression: 'expression',

  // the properties below are optional
  conditionLanguageVersion: 123,
  minimumTriggerIntervalMs: 123,
  triggerMode: 'triggerMode',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_iotfleetwise as iotfleetwise

condition_based_collection_scheme_property = iotfleetwise.CfnCampaign.ConditionBasedCollectionSchemeProperty(
    expression="expression",

    # the properties below are optional
    condition_language_version=123,
    minimum_trigger_interval_ms=123,
    trigger_mode="triggerMode"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.iotfleetwise.*;

ConditionBasedCollectionSchemeProperty conditionBasedCollectionSchemeProperty = ConditionBasedCollectionSchemeProperty.builder()
        .expression("expression")

        // the properties below are optional
        .conditionLanguageVersion(123)
        .minimumTriggerIntervalMs(123)
        .triggerMode("triggerMode")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.IoTFleetWise;

var conditionBasedCollectionSchemeProperty = new ConditionBasedCollectionSchemeProperty {
    Expression = "expression",

    // the properties below are optional
    ConditionLanguageVersion = 123,
    MinimumTriggerIntervalMs = 123,
    TriggerMode = "triggerMode"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

conditionBasedCollectionSchemeProperty := &ConditionBasedCollectionSchemeProperty{
	Expression: jsii.String("expression"),

	// the properties below are optional
	ConditionLanguageVersion: jsii.Number(123),
	MinimumTriggerIntervalMs: jsii.Number(123),
	TriggerMode: jsii.String("triggerMode"),
}
```

## Properties

- `conditionLanguageVersion`: number — Specifies the version of the conditional expression language.

- `expression`: string (required) — The logical expression used to recognize what data to collect.

  For example, `$variable.Vehicle.OutsideAirTemperature >= 105.0` .

- `minimumTriggerIntervalMs`: number — 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.

- `triggerMode`: string — 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.
