{-# LANGUAGE DisambiguateRecordFields #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.IoTFleetWise.Types
(
defaultService,
_AccessDeniedException,
_ConflictException,
_DecoderManifestValidationException,
_InternalServerException,
_InvalidNodeException,
_InvalidSignalsException,
_LimitExceededException,
_ResourceNotFoundException,
_ThrottlingException,
_ValidationException,
CampaignStatus (..),
Compression (..),
DiagnosticsMode (..),
LogType (..),
ManifestStatus (..),
NetworkInterfaceType (..),
NodeDataType (..),
RegistrationStatus (..),
SignalDecoderType (..),
SpoolingMode (..),
TriggerMode (..),
UpdateCampaignAction (..),
UpdateMode (..),
VehicleAssociationBehavior (..),
VehicleState (..),
Actuator (..),
newActuator,
actuator_allowedValues,
actuator_assignedValue,
actuator_description,
actuator_max,
actuator_min,
actuator_unit,
actuator_fullyQualifiedName,
actuator_dataType,
Attribute (..),
newAttribute,
attribute_allowedValues,
attribute_assignedValue,
attribute_defaultValue,
attribute_description,
attribute_max,
attribute_min,
attribute_unit,
attribute_fullyQualifiedName,
attribute_dataType,
Branch (..),
newBranch,
branch_description,
branch_fullyQualifiedName,
CampaignSummary (..),
newCampaignSummary,
campaignSummary_arn,
campaignSummary_description,
campaignSummary_name,
campaignSummary_signalCatalogArn,
campaignSummary_status,
campaignSummary_targetArn,
campaignSummary_creationTime,
campaignSummary_lastModificationTime,
CanDbcDefinition (..),
newCanDbcDefinition,
canDbcDefinition_signalsMap,
canDbcDefinition_networkInterface,
canDbcDefinition_canDbcFiles,
CanInterface (..),
newCanInterface,
canInterface_protocolName,
canInterface_protocolVersion,
canInterface_name,
CanSignal (..),
newCanSignal,
canSignal_name,
canSignal_messageId,
canSignal_isBigEndian,
canSignal_isSigned,
canSignal_startBit,
canSignal_offset,
canSignal_factor,
canSignal_length,
CloudWatchLogDeliveryOptions (..),
newCloudWatchLogDeliveryOptions,
cloudWatchLogDeliveryOptions_logGroupName,
cloudWatchLogDeliveryOptions_logType,
CollectionScheme (..),
newCollectionScheme,
collectionScheme_conditionBasedCollectionScheme,
collectionScheme_timeBasedCollectionScheme,
ConditionBasedCollectionScheme (..),
newConditionBasedCollectionScheme,
conditionBasedCollectionScheme_conditionLanguageVersion,
conditionBasedCollectionScheme_minimumTriggerIntervalMs,
conditionBasedCollectionScheme_triggerMode,
conditionBasedCollectionScheme_expression,
CreateVehicleError (..),
newCreateVehicleError,
createVehicleError_code,
createVehicleError_message,
createVehicleError_vehicleName,
CreateVehicleRequestItem (..),
newCreateVehicleRequestItem,
createVehicleRequestItem_associationBehavior,
createVehicleRequestItem_attributes,
createVehicleRequestItem_tags,
createVehicleRequestItem_vehicleName,
createVehicleRequestItem_modelManifestArn,
createVehicleRequestItem_decoderManifestArn,
CreateVehicleResponseItem (..),
newCreateVehicleResponseItem,
createVehicleResponseItem_arn,
createVehicleResponseItem_thingArn,
createVehicleResponseItem_vehicleName,
DecoderManifestSummary (..),
newDecoderManifestSummary,
decoderManifestSummary_arn,
decoderManifestSummary_description,
decoderManifestSummary_modelManifestArn,
decoderManifestSummary_name,
decoderManifestSummary_status,
decoderManifestSummary_creationTime,
decoderManifestSummary_lastModificationTime,
FleetSummary (..),
newFleetSummary,
fleetSummary_description,
fleetSummary_lastModificationTime,
fleetSummary_id,
fleetSummary_arn,
fleetSummary_signalCatalogArn,
fleetSummary_creationTime,
FormattedVss (..),
newFormattedVss,
formattedVss_vssJson,
IamRegistrationResponse (..),
newIamRegistrationResponse,
iamRegistrationResponse_errorMessage,
iamRegistrationResponse_roleArn,
iamRegistrationResponse_registrationStatus,
IamResources (..),
newIamResources,
iamResources_roleArn,
ModelManifestSummary (..),
newModelManifestSummary,
modelManifestSummary_arn,
modelManifestSummary_description,
modelManifestSummary_name,
modelManifestSummary_signalCatalogArn,
modelManifestSummary_status,
modelManifestSummary_creationTime,
modelManifestSummary_lastModificationTime,
NetworkFileDefinition (..),
newNetworkFileDefinition,
networkFileDefinition_canDbc,
NetworkInterface (..),
newNetworkInterface,
networkInterface_canInterface,
networkInterface_obdInterface,
networkInterface_interfaceId,
networkInterface_type,
Node (..),
newNode,
node_actuator,
node_attribute,
node_branch,
node_sensor,
NodeCounts (..),
newNodeCounts,
nodeCounts_totalActuators,
nodeCounts_totalAttributes,
nodeCounts_totalBranches,
nodeCounts_totalNodes,
nodeCounts_totalSensors,
ObdInterface (..),
newObdInterface,
obdInterface_dtcRequestIntervalSeconds,
obdInterface_hasTransmissionEcu,
obdInterface_obdStandard,
obdInterface_pidRequestIntervalSeconds,
obdInterface_useExtendedIds,
obdInterface_name,
obdInterface_requestMessageId,
ObdSignal (..),
newObdSignal,
obdSignal_bitMaskLength,
obdSignal_bitRightShift,
obdSignal_pidResponseLength,
obdSignal_serviceMode,
obdSignal_pid,
obdSignal_scaling,
obdSignal_offset,
obdSignal_startByte,
obdSignal_byteLength,
Sensor (..),
newSensor,
sensor_allowedValues,
sensor_description,
sensor_max,
sensor_min,
sensor_unit,
sensor_fullyQualifiedName,
sensor_dataType,
SignalCatalogSummary (..),
newSignalCatalogSummary,
signalCatalogSummary_arn,
signalCatalogSummary_creationTime,
signalCatalogSummary_lastModificationTime,
signalCatalogSummary_name,
SignalDecoder (..),
newSignalDecoder,
signalDecoder_canSignal,
signalDecoder_obdSignal,
signalDecoder_fullyQualifiedName,
signalDecoder_type,
signalDecoder_interfaceId,
SignalInformation (..),
newSignalInformation,
signalInformation_maxSampleCount,
signalInformation_minimumSamplingIntervalMs,
signalInformation_name,
Tag (..),
newTag,
tag_key,
tag_value,
TimeBasedCollectionScheme (..),
newTimeBasedCollectionScheme,
timeBasedCollectionScheme_periodMs,
TimestreamRegistrationResponse (..),
newTimestreamRegistrationResponse,
timestreamRegistrationResponse_errorMessage,
timestreamRegistrationResponse_timestreamDatabaseArn,
timestreamRegistrationResponse_timestreamTableArn,
timestreamRegistrationResponse_timestreamDatabaseName,
timestreamRegistrationResponse_timestreamTableName,
timestreamRegistrationResponse_registrationStatus,
TimestreamResources (..),
newTimestreamResources,
timestreamResources_timestreamDatabaseName,
timestreamResources_timestreamTableName,
UpdateVehicleError (..),
newUpdateVehicleError,
updateVehicleError_code,
updateVehicleError_message,
updateVehicleError_vehicleName,
UpdateVehicleRequestItem (..),
newUpdateVehicleRequestItem,
updateVehicleRequestItem_attributeUpdateMode,
updateVehicleRequestItem_attributes,
updateVehicleRequestItem_decoderManifestArn,
updateVehicleRequestItem_modelManifestArn,
updateVehicleRequestItem_vehicleName,
UpdateVehicleResponseItem (..),
newUpdateVehicleResponseItem,
updateVehicleResponseItem_arn,
updateVehicleResponseItem_vehicleName,
VehicleStatus (..),
newVehicleStatus,
vehicleStatus_campaignName,
vehicleStatus_status,
vehicleStatus_vehicleName,
VehicleSummary (..),
newVehicleSummary,
vehicleSummary_vehicleName,
vehicleSummary_arn,
vehicleSummary_modelManifestArn,
vehicleSummary_decoderManifestArn,
vehicleSummary_creationTime,
vehicleSummary_lastModificationTime,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import Amazonka.IoTFleetWise.Types.Actuator
import Amazonka.IoTFleetWise.Types.Attribute
import Amazonka.IoTFleetWise.Types.Branch
import Amazonka.IoTFleetWise.Types.CampaignStatus
import Amazonka.IoTFleetWise.Types.CampaignSummary
import Amazonka.IoTFleetWise.Types.CanDbcDefinition
import Amazonka.IoTFleetWise.Types.CanInterface
import Amazonka.IoTFleetWise.Types.CanSignal
import Amazonka.IoTFleetWise.Types.CloudWatchLogDeliveryOptions
import Amazonka.IoTFleetWise.Types.CollectionScheme
import Amazonka.IoTFleetWise.Types.Compression
import Amazonka.IoTFleetWise.Types.ConditionBasedCollectionScheme
import Amazonka.IoTFleetWise.Types.CreateVehicleError
import Amazonka.IoTFleetWise.Types.CreateVehicleRequestItem
import Amazonka.IoTFleetWise.Types.CreateVehicleResponseItem
import Amazonka.IoTFleetWise.Types.DecoderManifestSummary
import Amazonka.IoTFleetWise.Types.DiagnosticsMode
import Amazonka.IoTFleetWise.Types.FleetSummary
import Amazonka.IoTFleetWise.Types.FormattedVss
import Amazonka.IoTFleetWise.Types.IamRegistrationResponse
import Amazonka.IoTFleetWise.Types.IamResources
import Amazonka.IoTFleetWise.Types.LogType
import Amazonka.IoTFleetWise.Types.ManifestStatus
import Amazonka.IoTFleetWise.Types.ModelManifestSummary
import Amazonka.IoTFleetWise.Types.NetworkFileDefinition
import Amazonka.IoTFleetWise.Types.NetworkInterface
import Amazonka.IoTFleetWise.Types.NetworkInterfaceType
import Amazonka.IoTFleetWise.Types.Node
import Amazonka.IoTFleetWise.Types.NodeCounts
import Amazonka.IoTFleetWise.Types.NodeDataType
import Amazonka.IoTFleetWise.Types.ObdInterface
import Amazonka.IoTFleetWise.Types.ObdSignal
import Amazonka.IoTFleetWise.Types.RegistrationStatus
import Amazonka.IoTFleetWise.Types.Sensor
import Amazonka.IoTFleetWise.Types.SignalCatalogSummary
import Amazonka.IoTFleetWise.Types.SignalDecoder
import Amazonka.IoTFleetWise.Types.SignalDecoderType
import Amazonka.IoTFleetWise.Types.SignalInformation
import Amazonka.IoTFleetWise.Types.SpoolingMode
import Amazonka.IoTFleetWise.Types.Tag
import Amazonka.IoTFleetWise.Types.TimeBasedCollectionScheme
import Amazonka.IoTFleetWise.Types.TimestreamRegistrationResponse
import Amazonka.IoTFleetWise.Types.TimestreamResources
import Amazonka.IoTFleetWise.Types.TriggerMode
import Amazonka.IoTFleetWise.Types.UpdateCampaignAction
import Amazonka.IoTFleetWise.Types.UpdateMode
import Amazonka.IoTFleetWise.Types.UpdateVehicleError
import Amazonka.IoTFleetWise.Types.UpdateVehicleRequestItem
import Amazonka.IoTFleetWise.Types.UpdateVehicleResponseItem
import Amazonka.IoTFleetWise.Types.VehicleAssociationBehavior
import Amazonka.IoTFleetWise.Types.VehicleState
import Amazonka.IoTFleetWise.Types.VehicleStatus
import Amazonka.IoTFleetWise.Types.VehicleSummary
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Sign.V4 as Sign
defaultService :: Core.Service
defaultService :: Service
defaultService =
Core.Service
{ $sel:abbrev:Service :: Abbrev
Core.abbrev = Abbrev
"IoTFleetWise",
$sel:signer:Service :: Signer
Core.signer = Signer
Sign.v4,
$sel:endpointPrefix:Service :: ByteString
Core.endpointPrefix = ByteString
"iotfleetwise",
$sel:signingName:Service :: ByteString
Core.signingName = ByteString
"iotfleetwise",
$sel:version:Service :: ByteString
Core.version = ByteString
"2021-06-17",
$sel:s3AddressingStyle:Service :: S3AddressingStyle
Core.s3AddressingStyle = S3AddressingStyle
Core.S3AddressingStyleAuto,
$sel:endpoint:Service :: Region -> Endpoint
Core.endpoint = Service -> Region -> Endpoint
Core.defaultEndpoint Service
defaultService,
$sel:timeout:Service :: Maybe Seconds
Core.timeout = forall a. a -> Maybe a
Prelude.Just Seconds
70,
$sel:check:Service :: Status -> Bool
Core.check = Status -> Bool
Core.statusSuccess,
$sel:error:Service :: Status -> [Header] -> ByteStringLazy -> Error
Core.error = Abbrev -> Status -> [Header] -> ByteStringLazy -> Error
Core.parseJSONError Abbrev
"IoTFleetWise",
$sel:retry:Service :: Retry
Core.retry = Retry
retry
}
where
retry :: Retry
retry =
Core.Exponential
{ $sel:base:Exponential :: Double
Core.base = Double
5.0e-2,
$sel:growth:Exponential :: Int
Core.growth = Int
2,
$sel:attempts:Exponential :: Int
Core.attempts = Int
5,
$sel:check:Exponential :: ServiceError -> Maybe Text
Core.check = forall {a}. IsString a => ServiceError -> Maybe a
check
}
check :: ServiceError -> Maybe a
check ServiceError
e
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
502) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"bad_gateway"
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
504) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"gateway_timeout"
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
500) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"general_server_error"
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
509) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"limit_exceeded"
| forall s a. Getting Any s a -> s -> Bool
Lens.has
( forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"RequestThrottledException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"request_throttled_exception"
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
503) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"service_unavailable"
| forall s a. Getting Any s a -> s -> Bool
Lens.has
( forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"ThrottledException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"throttled_exception"
| forall s a. Getting Any s a -> s -> Bool
Lens.has
( forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"Throttling"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"throttling"
| forall s a. Getting Any s a -> s -> Bool
Lens.has
( forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode ErrorCode
"ThrottlingException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"throttling_exception"
| forall s a. Getting Any s a -> s -> Bool
Lens.has
( forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
ErrorCode -> Optic' p f ServiceError ServiceError
Core.hasCode
ErrorCode
"ProvisionedThroughputExceededException"
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
400
)
ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"throughput_exceeded"
| forall s a. Getting Any s a -> s -> Bool
Lens.has (forall (f :: * -> *) (p :: * -> * -> *).
(Applicative f, Choice p) =>
Int -> Optic' p f ServiceError ServiceError
Core.hasStatus Int
429) ServiceError
e =
forall a. a -> Maybe a
Prelude.Just a
"too_many_requests"
| Bool
Prelude.otherwise = forall a. Maybe a
Prelude.Nothing
_AccessDeniedException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_AccessDeniedException :: forall a. AsError a => Fold a ServiceError
_AccessDeniedException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"AccessDeniedException"
_ConflictException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ConflictException :: forall a. AsError a => Fold a ServiceError
_ConflictException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ConflictException"
_DecoderManifestValidationException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_DecoderManifestValidationException :: forall a. AsError a => Fold a ServiceError
_DecoderManifestValidationException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"DecoderManifestValidationException"
_InternalServerException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InternalServerException :: forall a. AsError a => Fold a ServiceError
_InternalServerException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InternalServerException"
_InvalidNodeException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidNodeException :: forall a. AsError a => Fold a ServiceError
_InvalidNodeException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InvalidNodeException"
_InvalidSignalsException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_InvalidSignalsException :: forall a. AsError a => Fold a ServiceError
_InvalidSignalsException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"InvalidSignalsException"
_LimitExceededException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_LimitExceededException :: forall a. AsError a => Fold a ServiceError
_LimitExceededException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"LimitExceededException"
_ResourceNotFoundException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ResourceNotFoundException :: forall a. AsError a => Fold a ServiceError
_ResourceNotFoundException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ResourceNotFoundException"
_ThrottlingException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ThrottlingException :: forall a. AsError a => Fold a ServiceError
_ThrottlingException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ThrottlingException"
_ValidationException :: (Core.AsError a) => Lens.Fold a Core.ServiceError
_ValidationException :: forall a. AsError a => Fold a ServiceError
_ValidationException =
forall a. AsError a => Service -> ErrorCode -> Fold a ServiceError
Core._MatchServiceError
Service
defaultService
ErrorCode
"ValidationException"