amazonka-iot-2.0: Amazon IoT 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.IoT.Types.TimestreamTimestamp

Description

 
Synopsis

Documentation

data TimestreamTimestamp Source #

Describes how to interpret an application-defined timestamp value from an MQTT message payload and the precision of that value.

See: newTimestreamTimestamp smart constructor.

Constructors

TimestreamTimestamp' 

Fields

  • value :: Text

    An expression that returns a long epoch time value.

  • unit :: Text

    The precision of the timestamp value that results from the expression described in value.

    Valid values: SECONDS | MILLISECONDS | MICROSECONDS | NANOSECONDS. The default is MILLISECONDS.

Instances

Instances details
FromJSON TimestreamTimestamp Source # 
Instance details

Defined in Amazonka.IoT.Types.TimestreamTimestamp

ToJSON TimestreamTimestamp Source # 
Instance details

Defined in Amazonka.IoT.Types.TimestreamTimestamp

Generic TimestreamTimestamp Source # 
Instance details

Defined in Amazonka.IoT.Types.TimestreamTimestamp

Associated Types

type Rep TimestreamTimestamp :: Type -> Type #

Read TimestreamTimestamp Source # 
Instance details

Defined in Amazonka.IoT.Types.TimestreamTimestamp

Show TimestreamTimestamp Source # 
Instance details

Defined in Amazonka.IoT.Types.TimestreamTimestamp

NFData TimestreamTimestamp Source # 
Instance details

Defined in Amazonka.IoT.Types.TimestreamTimestamp

Methods

rnf :: TimestreamTimestamp -> () #

Eq TimestreamTimestamp Source # 
Instance details

Defined in Amazonka.IoT.Types.TimestreamTimestamp

Hashable TimestreamTimestamp Source # 
Instance details

Defined in Amazonka.IoT.Types.TimestreamTimestamp

type Rep TimestreamTimestamp Source # 
Instance details

Defined in Amazonka.IoT.Types.TimestreamTimestamp

type Rep TimestreamTimestamp = D1 ('MetaData "TimestreamTimestamp" "Amazonka.IoT.Types.TimestreamTimestamp" "amazonka-iot-2.0-6w03vgAfmrM1SG22OsNJXL" 'False) (C1 ('MetaCons "TimestreamTimestamp'" 'PrefixI 'True) (S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "unit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newTimestreamTimestamp Source #

Create a value of TimestreamTimestamp 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:

$sel:value:TimestreamTimestamp', timestreamTimestamp_value - An expression that returns a long epoch time value.

$sel:unit:TimestreamTimestamp', timestreamTimestamp_unit - The precision of the timestamp value that results from the expression described in value.

Valid values: SECONDS | MILLISECONDS | MICROSECONDS | NANOSECONDS. The default is MILLISECONDS.

timestreamTimestamp_value :: Lens' TimestreamTimestamp Text Source #

An expression that returns a long epoch time value.

timestreamTimestamp_unit :: Lens' TimestreamTimestamp Text Source #

The precision of the timestamp value that results from the expression described in value.

Valid values: SECONDS | MILLISECONDS | MICROSECONDS | NANOSECONDS. The default is MILLISECONDS.