create_state_template
¶
create_state_template(
name: resourceName,
signal_catalog_arn: arn,
state_template_properties: StateTemplateProperties,
*,
config_overrides: Optional[IoTFleetWiseClientConfig] = None,
description: Optional[description] = None,
data_extra_dimensions: Optional[StateTemplateDataExtraDimensionNodePathList] = None,
metadata_extra_dimensions: Optional[
StateTemplateMetadataExtraDimensionNodePathList
] = None,
tags: Optional[TagList] = None,
) -> CreateStateTemplateResponse
Creates a state template. State templates contain state properties, which are signals that belong to a signal catalog that is synchronized between the Amazon Web Services IoT FleetWise Edge and the Amazon Web Services Cloud.
Access to certain Amazon Web Services IoT FleetWise features is currently gated. For more information, see Amazon Web Services Region and feature availability in the Amazon Web Services IoT FleetWise Developer Guide.
Parameters:
-
name(resourceName) –The name of the state template.
-
description(Optional[description], default:None) –A brief description of the state template.
-
signal_catalog_arn(arn) –The ARN of the signal catalog associated with the state template.
-
state_template_properties(StateTemplateProperties) –A list of signals from which data is collected. The state template properties contain the fully qualified names of the signals.
-
data_extra_dimensions(Optional[StateTemplateDataExtraDimensionNodePathList], default:None) –A list of vehicle attributes to associate with the payload published on the state template's MQTT topic. (See Processing last known state vehicle data using MQTT messaging). For example, if you add
Vehicle.Attributes.MakeandVehicle.Attributes.Modelattributes, Amazon Web Services IoT FleetWise will enrich the protobuf encoded payload with those attributes in theextraDimensionsfield. -
metadata_extra_dimensions(Optional[StateTemplateMetadataExtraDimensionNodePathList], default:None) –A list of vehicle attributes to associate with user properties of the messages published on the state template's MQTT topic. (See Processing last known state vehicle data using MQTT messaging). For example, if you add
Vehicle.Attributes.MakeandVehicle.Attributes.Modelattributes, Amazon Web Services IoT FleetWise will include these attributes as User Properties with the MQTT message.Default: An empty array
-
tags(Optional[TagList], default:None) –Metadata that can be used to manage the state template.
Raises:
-
InternalServerException–The request couldn't be completed because the server temporarily failed.
-
AccessDeniedException–You don't have sufficient permission to perform this action.
-
ConflictException–The request has conflicting operations. This can occur if you're trying to perform more than one operation on the same resource at the same time.
-
InvalidSignalsException–The request couldn't be completed because it contains signals that aren't valid.
-
LimitExceededException–A service quota was exceeded.
-
ResourceNotFoundException–The resource wasn't found.
-
ThrottlingException–The request couldn't be completed due to throttling.
-
ValidationException–The input fails to satisfy the constraints specified by an Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_iotfleetwise/_services/io_t_fleet_wise.py
3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 | |