Skip to content
v2.278.0

StateTemplateUpdateStrategyProperty Struct ​

The update strategy for the state template.

Vehicles associated with the state template can stream telemetry data with either an onChange or periodic update strategy.

Access to certain AWS IoT FleetWise features is currently gated. For more information, see AWS Region and feature availability in the AWS IoT FleetWise Developer Guide .

Example ​

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';

declare const onChange: any;
const stateTemplateUpdateStrategyProperty: iotfleetwise.CfnVehicle.StateTemplateUpdateStrategyProperty = {
  onChange: onChange,
  periodic: {
    stateTemplateUpdateRate: {
      unit: 'unit',
      value: 123,
    },
  },
};
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

# on_change: Any

state_template_update_strategy_property = iotfleetwise.CfnVehicle.StateTemplateUpdateStrategyProperty(
    on_change=on_change,
    periodic=iotfleetwise.CfnVehicle.PeriodicStateTemplateUpdateStrategyProperty(
        state_template_update_rate=iotfleetwise.CfnVehicle.TimePeriodProperty(
            unit="unit",
            value=123
        )
    )
)
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.*;

Object onChange;

StateTemplateUpdateStrategyProperty stateTemplateUpdateStrategyProperty = StateTemplateUpdateStrategyProperty.builder()
        .onChange(onChange)
        .periodic(PeriodicStateTemplateUpdateStrategyProperty.builder()
                .stateTemplateUpdateRate(TimePeriodProperty.builder()
                        .unit("unit")
                        .value(123)
                        .build())
                .build())
        .build();
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 onChange;

var stateTemplateUpdateStrategyProperty = new StateTemplateUpdateStrategyProperty {
    OnChange = onChange,
    Periodic = new PeriodicStateTemplateUpdateStrategyProperty {
        StateTemplateUpdateRate = new TimePeriodProperty {
            Unit = "unit",
            Value = 123
        }
    }
};
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"

var onChange interface{}

stateTemplateUpdateStrategyProperty := &StateTemplateUpdateStrategyProperty{
	OnChange: onChange,
	Periodic: &PeriodicStateTemplateUpdateStrategyProperty{
		StateTemplateUpdateRate: &TimePeriodProperty{
			Unit: jsii.String("unit"),
			Value: jsii.Number(123),
		},
	},
}

Properties ​

onChangeoptionalanyon_changeoptionalAnyonChangeoptionalObjectOnChangeoptionalobjectOnChangeoptionalinterface{} #
periodicoptionalIResolvable | CfnVehicle.PeriodicStateTemplateUpdateStrategyPropertyperiodicoptionaltyping.Union[IResolvable, PeriodicStateTemplateUpdateStrategyProperty]periodicoptionalIResolvablePeriodicoptionalIResolvablePeriodicoptionalinterface{} #