create_state_template
async
¶
create_state_template(
name: resourceName,
signal_catalog_arn: arn,
state_template_properties: StateTemplateProperties,
*,
config_overrides: Optional[AsyncIoTFleetWiseClientConfig] = 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/async_io_t_fleet_wise.py
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 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 | |