{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.Firehose.Types.ElasticsearchIndexRotationPeriod
( ElasticsearchIndexRotationPeriod
( ..,
ElasticsearchIndexRotationPeriod_NoRotation,
ElasticsearchIndexRotationPeriod_OneDay,
ElasticsearchIndexRotationPeriod_OneHour,
ElasticsearchIndexRotationPeriod_OneMonth,
ElasticsearchIndexRotationPeriod_OneWeek
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype ElasticsearchIndexRotationPeriod = ElasticsearchIndexRotationPeriod'
{ ElasticsearchIndexRotationPeriod -> Text
fromElasticsearchIndexRotationPeriod ::
Core.Text
}
deriving stock
( Int -> ElasticsearchIndexRotationPeriod -> ShowS
[ElasticsearchIndexRotationPeriod] -> ShowS
ElasticsearchIndexRotationPeriod -> String
(Int -> ElasticsearchIndexRotationPeriod -> ShowS)
-> (ElasticsearchIndexRotationPeriod -> String)
-> ([ElasticsearchIndexRotationPeriod] -> ShowS)
-> Show ElasticsearchIndexRotationPeriod
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ElasticsearchIndexRotationPeriod] -> ShowS
$cshowList :: [ElasticsearchIndexRotationPeriod] -> ShowS
show :: ElasticsearchIndexRotationPeriod -> String
$cshow :: ElasticsearchIndexRotationPeriod -> String
showsPrec :: Int -> ElasticsearchIndexRotationPeriod -> ShowS
$cshowsPrec :: Int -> ElasticsearchIndexRotationPeriod -> ShowS
Prelude.Show,
ReadPrec [ElasticsearchIndexRotationPeriod]
ReadPrec ElasticsearchIndexRotationPeriod
Int -> ReadS ElasticsearchIndexRotationPeriod
ReadS [ElasticsearchIndexRotationPeriod]
(Int -> ReadS ElasticsearchIndexRotationPeriod)
-> ReadS [ElasticsearchIndexRotationPeriod]
-> ReadPrec ElasticsearchIndexRotationPeriod
-> ReadPrec [ElasticsearchIndexRotationPeriod]
-> Read ElasticsearchIndexRotationPeriod
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ElasticsearchIndexRotationPeriod]
$creadListPrec :: ReadPrec [ElasticsearchIndexRotationPeriod]
readPrec :: ReadPrec ElasticsearchIndexRotationPeriod
$creadPrec :: ReadPrec ElasticsearchIndexRotationPeriod
readList :: ReadS [ElasticsearchIndexRotationPeriod]
$creadList :: ReadS [ElasticsearchIndexRotationPeriod]
readsPrec :: Int -> ReadS ElasticsearchIndexRotationPeriod
$creadsPrec :: Int -> ReadS ElasticsearchIndexRotationPeriod
Prelude.Read,
ElasticsearchIndexRotationPeriod
-> ElasticsearchIndexRotationPeriod -> Bool
(ElasticsearchIndexRotationPeriod
-> ElasticsearchIndexRotationPeriod -> Bool)
-> (ElasticsearchIndexRotationPeriod
-> ElasticsearchIndexRotationPeriod -> Bool)
-> Eq ElasticsearchIndexRotationPeriod
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ElasticsearchIndexRotationPeriod
-> ElasticsearchIndexRotationPeriod -> Bool
$c/= :: ElasticsearchIndexRotationPeriod
-> ElasticsearchIndexRotationPeriod -> Bool
== :: ElasticsearchIndexRotationPeriod
-> ElasticsearchIndexRotationPeriod -> Bool
$c== :: ElasticsearchIndexRotationPeriod
-> ElasticsearchIndexRotationPeriod -> Bool
Prelude.Eq,
Eq ElasticsearchIndexRotationPeriod
Eq ElasticsearchIndexRotationPeriod
-> (ElasticsearchIndexRotationPeriod
-> ElasticsearchIndexRotationPeriod -> Ordering)
-> (ElasticsearchIndexRotationPeriod
-> ElasticsearchIndexRotationPeriod -> Bool)
-> (ElasticsearchIndexRotationPeriod
-> ElasticsearchIndexRotationPeriod -> Bool)
-> (ElasticsearchIndexRotationPeriod
-> ElasticsearchIndexRotationPeriod -> Bool)
-> (ElasticsearchIndexRotationPeriod
-> ElasticsearchIndexRotationPeriod -> Bool)
-> (ElasticsearchIndexRotationPeriod
-> ElasticsearchIndexRotationPeriod
-> ElasticsearchIndexRotationPeriod)
-> (ElasticsearchIndexRotationPeriod
-> ElasticsearchIndexRotationPeriod
-> ElasticsearchIndexRotationPeriod)
-> Ord ElasticsearchIndexRotationPeriod
ElasticsearchIndexRotationPeriod
-> ElasticsearchIndexRotationPeriod -> Bool
ElasticsearchIndexRotationPeriod
-> ElasticsearchIndexRotationPeriod -> Ordering
ElasticsearchIndexRotationPeriod
-> ElasticsearchIndexRotationPeriod
-> ElasticsearchIndexRotationPeriod
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ElasticsearchIndexRotationPeriod
-> ElasticsearchIndexRotationPeriod
-> ElasticsearchIndexRotationPeriod
$cmin :: ElasticsearchIndexRotationPeriod
-> ElasticsearchIndexRotationPeriod
-> ElasticsearchIndexRotationPeriod
max :: ElasticsearchIndexRotationPeriod
-> ElasticsearchIndexRotationPeriod
-> ElasticsearchIndexRotationPeriod
$cmax :: ElasticsearchIndexRotationPeriod
-> ElasticsearchIndexRotationPeriod
-> ElasticsearchIndexRotationPeriod
>= :: ElasticsearchIndexRotationPeriod
-> ElasticsearchIndexRotationPeriod -> Bool
$c>= :: ElasticsearchIndexRotationPeriod
-> ElasticsearchIndexRotationPeriod -> Bool
> :: ElasticsearchIndexRotationPeriod
-> ElasticsearchIndexRotationPeriod -> Bool
$c> :: ElasticsearchIndexRotationPeriod
-> ElasticsearchIndexRotationPeriod -> Bool
<= :: ElasticsearchIndexRotationPeriod
-> ElasticsearchIndexRotationPeriod -> Bool
$c<= :: ElasticsearchIndexRotationPeriod
-> ElasticsearchIndexRotationPeriod -> Bool
< :: ElasticsearchIndexRotationPeriod
-> ElasticsearchIndexRotationPeriod -> Bool
$c< :: ElasticsearchIndexRotationPeriod
-> ElasticsearchIndexRotationPeriod -> Bool
compare :: ElasticsearchIndexRotationPeriod
-> ElasticsearchIndexRotationPeriod -> Ordering
$ccompare :: ElasticsearchIndexRotationPeriod
-> ElasticsearchIndexRotationPeriod -> Ordering
$cp1Ord :: Eq ElasticsearchIndexRotationPeriod
Prelude.Ord,
(forall x.
ElasticsearchIndexRotationPeriod
-> Rep ElasticsearchIndexRotationPeriod x)
-> (forall x.
Rep ElasticsearchIndexRotationPeriod x
-> ElasticsearchIndexRotationPeriod)
-> Generic ElasticsearchIndexRotationPeriod
forall x.
Rep ElasticsearchIndexRotationPeriod x
-> ElasticsearchIndexRotationPeriod
forall x.
ElasticsearchIndexRotationPeriod
-> Rep ElasticsearchIndexRotationPeriod x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ElasticsearchIndexRotationPeriod x
-> ElasticsearchIndexRotationPeriod
$cfrom :: forall x.
ElasticsearchIndexRotationPeriod
-> Rep ElasticsearchIndexRotationPeriod x
Prelude.Generic
)
deriving newtype
( Int -> ElasticsearchIndexRotationPeriod -> Int
ElasticsearchIndexRotationPeriod -> Int
(Int -> ElasticsearchIndexRotationPeriod -> Int)
-> (ElasticsearchIndexRotationPeriod -> Int)
-> Hashable ElasticsearchIndexRotationPeriod
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ElasticsearchIndexRotationPeriod -> Int
$chash :: ElasticsearchIndexRotationPeriod -> Int
hashWithSalt :: Int -> ElasticsearchIndexRotationPeriod -> Int
$chashWithSalt :: Int -> ElasticsearchIndexRotationPeriod -> Int
Prelude.Hashable,
ElasticsearchIndexRotationPeriod -> ()
(ElasticsearchIndexRotationPeriod -> ())
-> NFData ElasticsearchIndexRotationPeriod
forall a. (a -> ()) -> NFData a
rnf :: ElasticsearchIndexRotationPeriod -> ()
$crnf :: ElasticsearchIndexRotationPeriod -> ()
Prelude.NFData,
Text -> Either String ElasticsearchIndexRotationPeriod
(Text -> Either String ElasticsearchIndexRotationPeriod)
-> FromText ElasticsearchIndexRotationPeriod
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ElasticsearchIndexRotationPeriod
$cfromText :: Text -> Either String ElasticsearchIndexRotationPeriod
Core.FromText,
ElasticsearchIndexRotationPeriod -> Text
(ElasticsearchIndexRotationPeriod -> Text)
-> ToText ElasticsearchIndexRotationPeriod
forall a. (a -> Text) -> ToText a
toText :: ElasticsearchIndexRotationPeriod -> Text
$ctoText :: ElasticsearchIndexRotationPeriod -> Text
Core.ToText,
ElasticsearchIndexRotationPeriod -> ByteString
(ElasticsearchIndexRotationPeriod -> ByteString)
-> ToByteString ElasticsearchIndexRotationPeriod
forall a. (a -> ByteString) -> ToByteString a
toBS :: ElasticsearchIndexRotationPeriod -> ByteString
$ctoBS :: ElasticsearchIndexRotationPeriod -> ByteString
Core.ToByteString,
ElasticsearchIndexRotationPeriod -> ByteStringBuilder
(ElasticsearchIndexRotationPeriod -> ByteStringBuilder)
-> ToLog ElasticsearchIndexRotationPeriod
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ElasticsearchIndexRotationPeriod -> ByteStringBuilder
$cbuild :: ElasticsearchIndexRotationPeriod -> ByteStringBuilder
Core.ToLog,
HeaderName -> ElasticsearchIndexRotationPeriod -> [Header]
(HeaderName -> ElasticsearchIndexRotationPeriod -> [Header])
-> ToHeader ElasticsearchIndexRotationPeriod
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ElasticsearchIndexRotationPeriod -> [Header]
$ctoHeader :: HeaderName -> ElasticsearchIndexRotationPeriod -> [Header]
Core.ToHeader,
ElasticsearchIndexRotationPeriod -> QueryString
(ElasticsearchIndexRotationPeriod -> QueryString)
-> ToQuery ElasticsearchIndexRotationPeriod
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ElasticsearchIndexRotationPeriod -> QueryString
$ctoQuery :: ElasticsearchIndexRotationPeriod -> QueryString
Core.ToQuery,
Value -> Parser [ElasticsearchIndexRotationPeriod]
Value -> Parser ElasticsearchIndexRotationPeriod
(Value -> Parser ElasticsearchIndexRotationPeriod)
-> (Value -> Parser [ElasticsearchIndexRotationPeriod])
-> FromJSON ElasticsearchIndexRotationPeriod
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ElasticsearchIndexRotationPeriod]
$cparseJSONList :: Value -> Parser [ElasticsearchIndexRotationPeriod]
parseJSON :: Value -> Parser ElasticsearchIndexRotationPeriod
$cparseJSON :: Value -> Parser ElasticsearchIndexRotationPeriod
Core.FromJSON,
FromJSONKeyFunction [ElasticsearchIndexRotationPeriod]
FromJSONKeyFunction ElasticsearchIndexRotationPeriod
FromJSONKeyFunction ElasticsearchIndexRotationPeriod
-> FromJSONKeyFunction [ElasticsearchIndexRotationPeriod]
-> FromJSONKey ElasticsearchIndexRotationPeriod
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ElasticsearchIndexRotationPeriod]
$cfromJSONKeyList :: FromJSONKeyFunction [ElasticsearchIndexRotationPeriod]
fromJSONKey :: FromJSONKeyFunction ElasticsearchIndexRotationPeriod
$cfromJSONKey :: FromJSONKeyFunction ElasticsearchIndexRotationPeriod
Core.FromJSONKey,
[ElasticsearchIndexRotationPeriod] -> Encoding
[ElasticsearchIndexRotationPeriod] -> Value
ElasticsearchIndexRotationPeriod -> Encoding
ElasticsearchIndexRotationPeriod -> Value
(ElasticsearchIndexRotationPeriod -> Value)
-> (ElasticsearchIndexRotationPeriod -> Encoding)
-> ([ElasticsearchIndexRotationPeriod] -> Value)
-> ([ElasticsearchIndexRotationPeriod] -> Encoding)
-> ToJSON ElasticsearchIndexRotationPeriod
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ElasticsearchIndexRotationPeriod] -> Encoding
$ctoEncodingList :: [ElasticsearchIndexRotationPeriod] -> Encoding
toJSONList :: [ElasticsearchIndexRotationPeriod] -> Value
$ctoJSONList :: [ElasticsearchIndexRotationPeriod] -> Value
toEncoding :: ElasticsearchIndexRotationPeriod -> Encoding
$ctoEncoding :: ElasticsearchIndexRotationPeriod -> Encoding
toJSON :: ElasticsearchIndexRotationPeriod -> Value
$ctoJSON :: ElasticsearchIndexRotationPeriod -> Value
Core.ToJSON,
ToJSONKeyFunction [ElasticsearchIndexRotationPeriod]
ToJSONKeyFunction ElasticsearchIndexRotationPeriod
ToJSONKeyFunction ElasticsearchIndexRotationPeriod
-> ToJSONKeyFunction [ElasticsearchIndexRotationPeriod]
-> ToJSONKey ElasticsearchIndexRotationPeriod
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ElasticsearchIndexRotationPeriod]
$ctoJSONKeyList :: ToJSONKeyFunction [ElasticsearchIndexRotationPeriod]
toJSONKey :: ToJSONKeyFunction ElasticsearchIndexRotationPeriod
$ctoJSONKey :: ToJSONKeyFunction ElasticsearchIndexRotationPeriod
Core.ToJSONKey,
[Node] -> Either String ElasticsearchIndexRotationPeriod
([Node] -> Either String ElasticsearchIndexRotationPeriod)
-> FromXML ElasticsearchIndexRotationPeriod
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ElasticsearchIndexRotationPeriod
$cparseXML :: [Node] -> Either String ElasticsearchIndexRotationPeriod
Core.FromXML,
ElasticsearchIndexRotationPeriod -> XML
(ElasticsearchIndexRotationPeriod -> XML)
-> ToXML ElasticsearchIndexRotationPeriod
forall a. (a -> XML) -> ToXML a
toXML :: ElasticsearchIndexRotationPeriod -> XML
$ctoXML :: ElasticsearchIndexRotationPeriod -> XML
Core.ToXML
)
pattern ElasticsearchIndexRotationPeriod_NoRotation :: ElasticsearchIndexRotationPeriod
pattern $bElasticsearchIndexRotationPeriod_NoRotation :: ElasticsearchIndexRotationPeriod
$mElasticsearchIndexRotationPeriod_NoRotation :: forall r.
ElasticsearchIndexRotationPeriod
-> (Void# -> r) -> (Void# -> r) -> r
ElasticsearchIndexRotationPeriod_NoRotation = ElasticsearchIndexRotationPeriod' "NoRotation"
pattern ElasticsearchIndexRotationPeriod_OneDay :: ElasticsearchIndexRotationPeriod
pattern $bElasticsearchIndexRotationPeriod_OneDay :: ElasticsearchIndexRotationPeriod
$mElasticsearchIndexRotationPeriod_OneDay :: forall r.
ElasticsearchIndexRotationPeriod
-> (Void# -> r) -> (Void# -> r) -> r
ElasticsearchIndexRotationPeriod_OneDay = ElasticsearchIndexRotationPeriod' "OneDay"
pattern ElasticsearchIndexRotationPeriod_OneHour :: ElasticsearchIndexRotationPeriod
pattern $bElasticsearchIndexRotationPeriod_OneHour :: ElasticsearchIndexRotationPeriod
$mElasticsearchIndexRotationPeriod_OneHour :: forall r.
ElasticsearchIndexRotationPeriod
-> (Void# -> r) -> (Void# -> r) -> r
ElasticsearchIndexRotationPeriod_OneHour = ElasticsearchIndexRotationPeriod' "OneHour"
pattern ElasticsearchIndexRotationPeriod_OneMonth :: ElasticsearchIndexRotationPeriod
pattern $bElasticsearchIndexRotationPeriod_OneMonth :: ElasticsearchIndexRotationPeriod
$mElasticsearchIndexRotationPeriod_OneMonth :: forall r.
ElasticsearchIndexRotationPeriod
-> (Void# -> r) -> (Void# -> r) -> r
ElasticsearchIndexRotationPeriod_OneMonth = ElasticsearchIndexRotationPeriod' "OneMonth"
pattern ElasticsearchIndexRotationPeriod_OneWeek :: ElasticsearchIndexRotationPeriod
pattern $bElasticsearchIndexRotationPeriod_OneWeek :: ElasticsearchIndexRotationPeriod
$mElasticsearchIndexRotationPeriod_OneWeek :: forall r.
ElasticsearchIndexRotationPeriod
-> (Void# -> r) -> (Void# -> r) -> r
ElasticsearchIndexRotationPeriod_OneWeek = ElasticsearchIndexRotationPeriod' "OneWeek"
{-# COMPLETE
ElasticsearchIndexRotationPeriod_NoRotation,
ElasticsearchIndexRotationPeriod_OneDay,
ElasticsearchIndexRotationPeriod_OneHour,
ElasticsearchIndexRotationPeriod_OneMonth,
ElasticsearchIndexRotationPeriod_OneWeek,
ElasticsearchIndexRotationPeriod'
#-}