aws_sdk_iotfleetwise/client/create_vehicle.rs
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`CreateVehicle`](crate::operation::create_vehicle::builders::CreateVehicleFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`vehicle_name(impl Into<String>)`](crate::operation::create_vehicle::builders::CreateVehicleFluentBuilder::vehicle_name) / [`set_vehicle_name(Option<String>)`](crate::operation::create_vehicle::builders::CreateVehicleFluentBuilder::set_vehicle_name):<br>required: **true**<br><p>The unique ID of the vehicle to create.</p><br>
/// - [`model_manifest_arn(impl Into<String>)`](crate::operation::create_vehicle::builders::CreateVehicleFluentBuilder::model_manifest_arn) / [`set_model_manifest_arn(Option<String>)`](crate::operation::create_vehicle::builders::CreateVehicleFluentBuilder::set_model_manifest_arn):<br>required: **true**<br><p>The Amazon Resource Name ARN of a vehicle model.</p><br>
/// - [`decoder_manifest_arn(impl Into<String>)`](crate::operation::create_vehicle::builders::CreateVehicleFluentBuilder::decoder_manifest_arn) / [`set_decoder_manifest_arn(Option<String>)`](crate::operation::create_vehicle::builders::CreateVehicleFluentBuilder::set_decoder_manifest_arn):<br>required: **true**<br><p>The ARN of a decoder manifest.</p><br>
/// - [`attributes(impl Into<String>, impl Into<String>)`](crate::operation::create_vehicle::builders::CreateVehicleFluentBuilder::attributes) / [`set_attributes(Option<HashMap::<String, String>>)`](crate::operation::create_vehicle::builders::CreateVehicleFluentBuilder::set_attributes):<br>required: **false**<br><p>Static information about a vehicle in a key-value pair. For example: <code>"engineType"</code> : <code>"1.3 L R2"</code></p> <p>A campaign must include the keys (attribute names) in <code>dataExtraDimensions</code> for them to display in Amazon Timestream.</p><br>
/// - [`association_behavior(VehicleAssociationBehavior)`](crate::operation::create_vehicle::builders::CreateVehicleFluentBuilder::association_behavior) / [`set_association_behavior(Option<VehicleAssociationBehavior>)`](crate::operation::create_vehicle::builders::CreateVehicleFluentBuilder::set_association_behavior):<br>required: **false**<br><p>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.</p> <p>Default: <code></code></p><br>
/// - [`tags(Tag)`](crate::operation::create_vehicle::builders::CreateVehicleFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::create_vehicle::builders::CreateVehicleFluentBuilder::set_tags):<br>required: **false**<br><p>Metadata that can be used to manage the vehicle.</p><br>
/// - On success, responds with [`CreateVehicleOutput`](crate::operation::create_vehicle::CreateVehicleOutput) with field(s):
/// - [`vehicle_name(Option<String>)`](crate::operation::create_vehicle::CreateVehicleOutput::vehicle_name): <p>The unique ID of the created vehicle.</p>
/// - [`arn(Option<String>)`](crate::operation::create_vehicle::CreateVehicleOutput::arn): <p>The ARN of the created vehicle.</p>
/// - [`thing_arn(Option<String>)`](crate::operation::create_vehicle::CreateVehicleOutput::thing_arn): <p>The ARN of a created or validated Amazon Web Services IoT thing.</p>
/// - On failure, responds with [`SdkError<CreateVehicleError>`](crate::operation::create_vehicle::CreateVehicleError)
pub fn create_vehicle(&self) -> crate::operation::create_vehicle::builders::CreateVehicleFluentBuilder {
crate::operation::create_vehicle::builders::CreateVehicleFluentBuilder::new(self.handle.clone())
}
}