# TimeBasedCollectionSchemeProperty

Information about a collection scheme that uses a time period to decide how often to collect data.

- 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 timeBasedCollectionSchemeProperty: iotfleetwise.CfnCampaign.TimeBasedCollectionSchemeProperty = {
  periodMs: 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

time_based_collection_scheme_property = iotfleetwise.CfnCampaign.TimeBasedCollectionSchemeProperty(
    period_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.*;

TimeBasedCollectionSchemeProperty timeBasedCollectionSchemeProperty = TimeBasedCollectionSchemeProperty.builder()
        .periodMs(123)
        .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 timeBasedCollectionSchemeProperty = new TimeBasedCollectionSchemeProperty {
    PeriodMs = 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"

timeBasedCollectionSchemeProperty := &TimeBasedCollectionSchemeProperty{
	PeriodMs: jsii.Number(123),
}
```

## Properties

- `periodMs`: number (required) — The time period (in milliseconds) to decide how often to collect data.

  For example, if the time period is `60000` , the Edge Agent software collects data once every minute.
