amazonka-backup-2.0: Amazon Backup 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.Backup.Types.DateRange

Description

 
Synopsis

Documentation

data DateRange Source #

This is a resource filter containing FromDate: DateTime and ToDate: DateTime. Both values are required. Future DateTime values are not permitted.

The date and time are in Unix format and Coordinated Universal Time (UTC), and it is accurate to milliseconds ((milliseconds are optional). For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.

See: newDateRange smart constructor.

Constructors

DateRange' 

Fields

  • fromDate :: POSIX

    This value is the beginning date, inclusive.

    The date and time are in Unix format and Coordinated Universal Time (UTC), and it is accurate to milliseconds (milliseconds are optional).

  • toDate :: POSIX

    This value is the end date, inclusive.

    The date and time are in Unix format and Coordinated Universal Time (UTC), and it is accurate to milliseconds (milliseconds are optional).

Instances

Instances details
FromJSON DateRange Source # 
Instance details

Defined in Amazonka.Backup.Types.DateRange

ToJSON DateRange Source # 
Instance details

Defined in Amazonka.Backup.Types.DateRange

Generic DateRange Source # 
Instance details

Defined in Amazonka.Backup.Types.DateRange

Associated Types

type Rep DateRange :: Type -> Type #

Read DateRange Source # 
Instance details

Defined in Amazonka.Backup.Types.DateRange

Show DateRange Source # 
Instance details

Defined in Amazonka.Backup.Types.DateRange

NFData DateRange Source # 
Instance details

Defined in Amazonka.Backup.Types.DateRange

Methods

rnf :: DateRange -> () #

Eq DateRange Source # 
Instance details

Defined in Amazonka.Backup.Types.DateRange

Hashable DateRange Source # 
Instance details

Defined in Amazonka.Backup.Types.DateRange

type Rep DateRange Source # 
Instance details

Defined in Amazonka.Backup.Types.DateRange

type Rep DateRange = D1 ('MetaData "DateRange" "Amazonka.Backup.Types.DateRange" "amazonka-backup-2.0-LovIt41tphM6jvgQJhTyRf" 'False) (C1 ('MetaCons "DateRange'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 POSIX) :*: S1 ('MetaSel ('Just "toDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 POSIX)))

newDateRange Source #

Create a value of DateRange 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:fromDate:DateRange', dateRange_fromDate - This value is the beginning date, inclusive.

The date and time are in Unix format and Coordinated Universal Time (UTC), and it is accurate to milliseconds (milliseconds are optional).

$sel:toDate:DateRange', dateRange_toDate - This value is the end date, inclusive.

The date and time are in Unix format and Coordinated Universal Time (UTC), and it is accurate to milliseconds (milliseconds are optional).

dateRange_fromDate :: Lens' DateRange UTCTime Source #

This value is the beginning date, inclusive.

The date and time are in Unix format and Coordinated Universal Time (UTC), and it is accurate to milliseconds (milliseconds are optional).

dateRange_toDate :: Lens' DateRange UTCTime Source #

This value is the end date, inclusive.

The date and time are in Unix format and Coordinated Universal Time (UTC), and it is accurate to milliseconds (milliseconds are optional).