IoTFleetWise / Client / create_vehicle

create_vehicle#

IoTFleetWise.Client.create_vehicle(**kwargs)#

Creates a vehicle, which is an instance of a vehicle model (model manifest). Vehicles created from the same vehicle model consist of the same signals inherited from the vehicle model.

Note

If you have an existing Amazon Web Services IoT thing, you can use Amazon Web Services IoT FleetWise to create a vehicle and collect data from your thing.

For more information, see Create a vehicle (AWS CLI) in the Amazon Web Services IoT FleetWise Developer Guide.

See also: AWS API Documentation

Request Syntax

response = client.create_vehicle(
    vehicleName='string',
    modelManifestArn='string',
    decoderManifestArn='string',
    attributes={
        'string': 'string'
    },
    associationBehavior='CreateIotThing'|'ValidateIotThingExists',
    tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
)
Parameters:
  • vehicleName (string) –

    [REQUIRED]

    The unique ID of the vehicle to create.

  • modelManifestArn (string) –

    [REQUIRED]

    The Amazon Resource Name ARN of a vehicle model.

  • decoderManifestArn (string) –

    [REQUIRED]

    The ARN of a decoder manifest.

  • attributes (dict) –

    Static information about a vehicle in a key-value pair. For example: "engineType" : "1.3 L R2"

    A campaign must include the keys (attribute names) in dataExtraDimensions for them to display in Amazon Timestream.

    • (string) –

      • (string) –

  • associationBehavior (string) –

    An option to create a new Amazon Web Services IoT thing when creating a vehicle, or to validate an existing Amazon Web Services IoT thing as a vehicle.

    Default:

  • tags (list) –

    Metadata that can be used to manage the vehicle.

    • (dict) –

      A set of key/value pairs that are used to manage the resource.

      • Key (string) – [REQUIRED]

        The tag’s key.

      • Value (string) – [REQUIRED]

        The tag’s value.

Return type:

dict

Returns:

Response Syntax

{
    'vehicleName': 'string',
    'arn': 'string',
    'thingArn': 'string'
}

Response Structure

  • (dict) –

    • vehicleName (string) –

      The unique ID of the created vehicle.

    • arn (string) –

      The ARN of the created vehicle.

    • thingArn (string) –

      The ARN of a created or validated Amazon Web Services IoT thing.

Exceptions