libZSservicesZSamazonka-iotZSamazonka-iot
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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
Eq TimestreamTimestamp Source # 
Instance details

Defined in Amazonka.IoT.Types.TimestreamTimestamp

Read TimestreamTimestamp Source # 
Instance details

Defined in Amazonka.IoT.Types.TimestreamTimestamp

Show 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 #

NFData TimestreamTimestamp Source # 
Instance details

Defined in Amazonka.IoT.Types.TimestreamTimestamp

Methods

rnf :: TimestreamTimestamp -> () #

Hashable TimestreamTimestamp Source # 
Instance details

Defined in Amazonka.IoT.Types.TimestreamTimestamp

ToJSON TimestreamTimestamp Source # 
Instance details

Defined in Amazonka.IoT.Types.TimestreamTimestamp

FromJSON 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" "libZSservicesZSamazonka-iotZSamazonka-iot" '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.