# SignalFetchConfigProperty

The configuration of the signal fetch operation.

> Access to certain AWS IoT FleetWise features is currently gated. For more information, see [AWS Region and feature availability](https://docs.aws.amazon.com/iot-fleetwise/latest/developerguide/fleetwise-regions.html) in the *AWS IoT FleetWise Developer Guide* .

- Source: Generated at build time
- Type last changed: v2.159.0 · 19 Sep 2024

## 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 signalFetchConfigProperty: iotfleetwise.CfnCampaign.SignalFetchConfigProperty = {
  conditionBased: {
    conditionExpression: 'conditionExpression',
    triggerMode: 'triggerMode',
  },
  timeBased: {
    executionFrequencyMs: 123,
  },
};
```

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

signal_fetch_config_property = iotfleetwise.CfnCampaign.SignalFetchConfigProperty(
    condition_based=iotfleetwise.CfnCampaign.ConditionBasedSignalFetchConfigProperty(
        condition_expression="conditionExpression",
        trigger_mode="triggerMode"
    ),
    time_based=iotfleetwise.CfnCampaign.TimeBasedSignalFetchConfigProperty(
        execution_frequency_ms=123
    )
)
```

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.*;

SignalFetchConfigProperty signalFetchConfigProperty = SignalFetchConfigProperty.builder()
        .conditionBased(ConditionBasedSignalFetchConfigProperty.builder()
                .conditionExpression("conditionExpression")
                .triggerMode("triggerMode")
                .build())
        .timeBased(TimeBasedSignalFetchConfigProperty.builder()
                .executionFrequencyMs(123)
                .build())
        .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 signalFetchConfigProperty = new SignalFetchConfigProperty {
    ConditionBased = new ConditionBasedSignalFetchConfigProperty {
        ConditionExpression = "conditionExpression",
        TriggerMode = "triggerMode"
    },
    TimeBased = new TimeBasedSignalFetchConfigProperty {
        ExecutionFrequencyMs = 123
    }
};
```

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"

signalFetchConfigProperty := &SignalFetchConfigProperty{
	ConditionBased: &ConditionBasedSignalFetchConfigProperty{
		ConditionExpression: jsii.String("conditionExpression"),
		TriggerMode: jsii.String("triggerMode"),
	},
	TimeBased: &TimeBasedSignalFetchConfigProperty{
		ExecutionFrequencyMs: jsii.Number(123),
	},
}
```

## Properties

- `conditionBased`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnCampaign.ConditionBasedSignalFetchConfigProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotfleetwise.CfnCampaign.ConditionBasedSignalFetchConfigProperty.html) — The configuration of a condition-based signal fetch operation.

- `timeBased`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnCampaign.TimeBasedSignalFetchConfigProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotfleetwise.CfnCampaign.TimeBasedSignalFetchConfigProperty.html) — The configuration of a time-based signal fetch operation.
