amazonka-iotfleetwise-2.0: Amazon IoT FleetWise SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.IoTFleetWise.UpdateVehicle

Description

Updates a vehicle.

Synopsis

Creating a Request

data UpdateVehicle Source #

See: newUpdateVehicle smart constructor.

Constructors

UpdateVehicle' 

Fields

  • attributeUpdateMode :: Maybe UpdateMode

    The method the specified attributes will update the existing attributes on the vehicle. UseOverwite to replace the vehicle attributes with the specified attributes. Or use Merge to combine all attributes.

    This is required if attributes are present in the input.

  • attributes :: Maybe (HashMap Text Text)

    Static information about a vehicle in a key-value pair. For example:

    "engineType" : "1.3 L R2"

  • decoderManifestArn :: Maybe Text

    The ARN of the decoder manifest associated with this vehicle.

  • modelManifestArn :: Maybe Text

    The ARN of a vehicle model (model manifest) associated with the vehicle.

  • vehicleName :: Text

    The unique ID of the vehicle to update.

Instances

Instances details
ToJSON UpdateVehicle Source # 
Instance details

Defined in Amazonka.IoTFleetWise.UpdateVehicle

ToHeaders UpdateVehicle Source # 
Instance details

Defined in Amazonka.IoTFleetWise.UpdateVehicle

ToPath UpdateVehicle Source # 
Instance details

Defined in Amazonka.IoTFleetWise.UpdateVehicle

ToQuery UpdateVehicle Source # 
Instance details

Defined in Amazonka.IoTFleetWise.UpdateVehicle

AWSRequest UpdateVehicle Source # 
Instance details

Defined in Amazonka.IoTFleetWise.UpdateVehicle

Associated Types

type AWSResponse UpdateVehicle #

Generic UpdateVehicle Source # 
Instance details

Defined in Amazonka.IoTFleetWise.UpdateVehicle

Associated Types

type Rep UpdateVehicle :: Type -> Type #

Read UpdateVehicle Source # 
Instance details

Defined in Amazonka.IoTFleetWise.UpdateVehicle

Show UpdateVehicle Source # 
Instance details

Defined in Amazonka.IoTFleetWise.UpdateVehicle

NFData UpdateVehicle Source # 
Instance details

Defined in Amazonka.IoTFleetWise.UpdateVehicle

Methods

rnf :: UpdateVehicle -> () #

Eq UpdateVehicle Source # 
Instance details

Defined in Amazonka.IoTFleetWise.UpdateVehicle

Hashable UpdateVehicle Source # 
Instance details

Defined in Amazonka.IoTFleetWise.UpdateVehicle

type AWSResponse UpdateVehicle Source # 
Instance details

Defined in Amazonka.IoTFleetWise.UpdateVehicle

type Rep UpdateVehicle Source # 
Instance details

Defined in Amazonka.IoTFleetWise.UpdateVehicle

type Rep UpdateVehicle = D1 ('MetaData "UpdateVehicle" "Amazonka.IoTFleetWise.UpdateVehicle" "amazonka-iotfleetwise-2.0-3noXdw9CznA79cw3EwaHcU" 'False) (C1 ('MetaCons "UpdateVehicle'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "attributeUpdateMode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe UpdateMode)) :*: S1 ('MetaSel ('Just "attributes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text)))) :*: (S1 ('MetaSel ('Just "decoderManifestArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "modelManifestArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "vehicleName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

newUpdateVehicle Source #

Create a value of UpdateVehicle with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

UpdateVehicle, updateVehicle_attributeUpdateMode - The method the specified attributes will update the existing attributes on the vehicle. UseOverwite to replace the vehicle attributes with the specified attributes. Or use Merge to combine all attributes.

This is required if attributes are present in the input.

UpdateVehicle, updateVehicle_attributes - Static information about a vehicle in a key-value pair. For example:

"engineType" : "1.3 L R2"

UpdateVehicle, updateVehicle_decoderManifestArn - The ARN of the decoder manifest associated with this vehicle.

UpdateVehicle, updateVehicle_modelManifestArn - The ARN of a vehicle model (model manifest) associated with the vehicle.

UpdateVehicle, updateVehicle_vehicleName - The unique ID of the vehicle to update.

Request Lenses

updateVehicle_attributeUpdateMode :: Lens' UpdateVehicle (Maybe UpdateMode) Source #

The method the specified attributes will update the existing attributes on the vehicle. UseOverwite to replace the vehicle attributes with the specified attributes. Or use Merge to combine all attributes.

This is required if attributes are present in the input.

updateVehicle_attributes :: Lens' UpdateVehicle (Maybe (HashMap Text Text)) Source #

Static information about a vehicle in a key-value pair. For example:

"engineType" : "1.3 L R2"

updateVehicle_decoderManifestArn :: Lens' UpdateVehicle (Maybe Text) Source #

The ARN of the decoder manifest associated with this vehicle.

updateVehicle_modelManifestArn :: Lens' UpdateVehicle (Maybe Text) Source #

The ARN of a vehicle model (model manifest) associated with the vehicle.

updateVehicle_vehicleName :: Lens' UpdateVehicle Text Source #

The unique ID of the vehicle to update.

Destructuring the Response

data UpdateVehicleResponse Source #

See: newUpdateVehicleResponse smart constructor.

Constructors

UpdateVehicleResponse' 

Fields

Instances

Instances details
Generic UpdateVehicleResponse Source # 
Instance details

Defined in Amazonka.IoTFleetWise.UpdateVehicle

Associated Types

type Rep UpdateVehicleResponse :: Type -> Type #

Read UpdateVehicleResponse Source # 
Instance details

Defined in Amazonka.IoTFleetWise.UpdateVehicle

Show UpdateVehicleResponse Source # 
Instance details

Defined in Amazonka.IoTFleetWise.UpdateVehicle

NFData UpdateVehicleResponse Source # 
Instance details

Defined in Amazonka.IoTFleetWise.UpdateVehicle

Methods

rnf :: UpdateVehicleResponse -> () #

Eq UpdateVehicleResponse Source # 
Instance details

Defined in Amazonka.IoTFleetWise.UpdateVehicle

type Rep UpdateVehicleResponse Source # 
Instance details

Defined in Amazonka.IoTFleetWise.UpdateVehicle

type Rep UpdateVehicleResponse = D1 ('MetaData "UpdateVehicleResponse" "Amazonka.IoTFleetWise.UpdateVehicle" "amazonka-iotfleetwise-2.0-3noXdw9CznA79cw3EwaHcU" 'False) (C1 ('MetaCons "UpdateVehicleResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "arn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "vehicleName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newUpdateVehicleResponse Source #

Create a value of UpdateVehicleResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

UpdateVehicleResponse, updateVehicleResponse_arn - The ARN of the updated vehicle.

UpdateVehicle, updateVehicleResponse_vehicleName - The ID of the updated vehicle.

$sel:httpStatus:UpdateVehicleResponse', updateVehicleResponse_httpStatus - The response's http status code.

Response Lenses