{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.OpsWorks.Types.CloudWatchLogsInitialPosition
( CloudWatchLogsInitialPosition
( ..,
CloudWatchLogsInitialPosition_End_of_file,
CloudWatchLogsInitialPosition_Start_of_file
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype CloudWatchLogsInitialPosition = CloudWatchLogsInitialPosition'
{ CloudWatchLogsInitialPosition -> Text
fromCloudWatchLogsInitialPosition ::
Core.Text
}
deriving stock
( Int -> CloudWatchLogsInitialPosition -> ShowS
[CloudWatchLogsInitialPosition] -> ShowS
CloudWatchLogsInitialPosition -> String
(Int -> CloudWatchLogsInitialPosition -> ShowS)
-> (CloudWatchLogsInitialPosition -> String)
-> ([CloudWatchLogsInitialPosition] -> ShowS)
-> Show CloudWatchLogsInitialPosition
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CloudWatchLogsInitialPosition] -> ShowS
$cshowList :: [CloudWatchLogsInitialPosition] -> ShowS
show :: CloudWatchLogsInitialPosition -> String
$cshow :: CloudWatchLogsInitialPosition -> String
showsPrec :: Int -> CloudWatchLogsInitialPosition -> ShowS
$cshowsPrec :: Int -> CloudWatchLogsInitialPosition -> ShowS
Prelude.Show,
ReadPrec [CloudWatchLogsInitialPosition]
ReadPrec CloudWatchLogsInitialPosition
Int -> ReadS CloudWatchLogsInitialPosition
ReadS [CloudWatchLogsInitialPosition]
(Int -> ReadS CloudWatchLogsInitialPosition)
-> ReadS [CloudWatchLogsInitialPosition]
-> ReadPrec CloudWatchLogsInitialPosition
-> ReadPrec [CloudWatchLogsInitialPosition]
-> Read CloudWatchLogsInitialPosition
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CloudWatchLogsInitialPosition]
$creadListPrec :: ReadPrec [CloudWatchLogsInitialPosition]
readPrec :: ReadPrec CloudWatchLogsInitialPosition
$creadPrec :: ReadPrec CloudWatchLogsInitialPosition
readList :: ReadS [CloudWatchLogsInitialPosition]
$creadList :: ReadS [CloudWatchLogsInitialPosition]
readsPrec :: Int -> ReadS CloudWatchLogsInitialPosition
$creadsPrec :: Int -> ReadS CloudWatchLogsInitialPosition
Prelude.Read,
CloudWatchLogsInitialPosition
-> CloudWatchLogsInitialPosition -> Bool
(CloudWatchLogsInitialPosition
-> CloudWatchLogsInitialPosition -> Bool)
-> (CloudWatchLogsInitialPosition
-> CloudWatchLogsInitialPosition -> Bool)
-> Eq CloudWatchLogsInitialPosition
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CloudWatchLogsInitialPosition
-> CloudWatchLogsInitialPosition -> Bool
$c/= :: CloudWatchLogsInitialPosition
-> CloudWatchLogsInitialPosition -> Bool
== :: CloudWatchLogsInitialPosition
-> CloudWatchLogsInitialPosition -> Bool
$c== :: CloudWatchLogsInitialPosition
-> CloudWatchLogsInitialPosition -> Bool
Prelude.Eq,
Eq CloudWatchLogsInitialPosition
Eq CloudWatchLogsInitialPosition
-> (CloudWatchLogsInitialPosition
-> CloudWatchLogsInitialPosition -> Ordering)
-> (CloudWatchLogsInitialPosition
-> CloudWatchLogsInitialPosition -> Bool)
-> (CloudWatchLogsInitialPosition
-> CloudWatchLogsInitialPosition -> Bool)
-> (CloudWatchLogsInitialPosition
-> CloudWatchLogsInitialPosition -> Bool)
-> (CloudWatchLogsInitialPosition
-> CloudWatchLogsInitialPosition -> Bool)
-> (CloudWatchLogsInitialPosition
-> CloudWatchLogsInitialPosition -> CloudWatchLogsInitialPosition)
-> (CloudWatchLogsInitialPosition
-> CloudWatchLogsInitialPosition -> CloudWatchLogsInitialPosition)
-> Ord CloudWatchLogsInitialPosition
CloudWatchLogsInitialPosition
-> CloudWatchLogsInitialPosition -> Bool
CloudWatchLogsInitialPosition
-> CloudWatchLogsInitialPosition -> Ordering
CloudWatchLogsInitialPosition
-> CloudWatchLogsInitialPosition -> CloudWatchLogsInitialPosition
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 :: CloudWatchLogsInitialPosition
-> CloudWatchLogsInitialPosition -> CloudWatchLogsInitialPosition
$cmin :: CloudWatchLogsInitialPosition
-> CloudWatchLogsInitialPosition -> CloudWatchLogsInitialPosition
max :: CloudWatchLogsInitialPosition
-> CloudWatchLogsInitialPosition -> CloudWatchLogsInitialPosition
$cmax :: CloudWatchLogsInitialPosition
-> CloudWatchLogsInitialPosition -> CloudWatchLogsInitialPosition
>= :: CloudWatchLogsInitialPosition
-> CloudWatchLogsInitialPosition -> Bool
$c>= :: CloudWatchLogsInitialPosition
-> CloudWatchLogsInitialPosition -> Bool
> :: CloudWatchLogsInitialPosition
-> CloudWatchLogsInitialPosition -> Bool
$c> :: CloudWatchLogsInitialPosition
-> CloudWatchLogsInitialPosition -> Bool
<= :: CloudWatchLogsInitialPosition
-> CloudWatchLogsInitialPosition -> Bool
$c<= :: CloudWatchLogsInitialPosition
-> CloudWatchLogsInitialPosition -> Bool
< :: CloudWatchLogsInitialPosition
-> CloudWatchLogsInitialPosition -> Bool
$c< :: CloudWatchLogsInitialPosition
-> CloudWatchLogsInitialPosition -> Bool
compare :: CloudWatchLogsInitialPosition
-> CloudWatchLogsInitialPosition -> Ordering
$ccompare :: CloudWatchLogsInitialPosition
-> CloudWatchLogsInitialPosition -> Ordering
$cp1Ord :: Eq CloudWatchLogsInitialPosition
Prelude.Ord,
(forall x.
CloudWatchLogsInitialPosition
-> Rep CloudWatchLogsInitialPosition x)
-> (forall x.
Rep CloudWatchLogsInitialPosition x
-> CloudWatchLogsInitialPosition)
-> Generic CloudWatchLogsInitialPosition
forall x.
Rep CloudWatchLogsInitialPosition x
-> CloudWatchLogsInitialPosition
forall x.
CloudWatchLogsInitialPosition
-> Rep CloudWatchLogsInitialPosition x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CloudWatchLogsInitialPosition x
-> CloudWatchLogsInitialPosition
$cfrom :: forall x.
CloudWatchLogsInitialPosition
-> Rep CloudWatchLogsInitialPosition x
Prelude.Generic
)
deriving newtype
( Int -> CloudWatchLogsInitialPosition -> Int
CloudWatchLogsInitialPosition -> Int
(Int -> CloudWatchLogsInitialPosition -> Int)
-> (CloudWatchLogsInitialPosition -> Int)
-> Hashable CloudWatchLogsInitialPosition
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: CloudWatchLogsInitialPosition -> Int
$chash :: CloudWatchLogsInitialPosition -> Int
hashWithSalt :: Int -> CloudWatchLogsInitialPosition -> Int
$chashWithSalt :: Int -> CloudWatchLogsInitialPosition -> Int
Prelude.Hashable,
CloudWatchLogsInitialPosition -> ()
(CloudWatchLogsInitialPosition -> ())
-> NFData CloudWatchLogsInitialPosition
forall a. (a -> ()) -> NFData a
rnf :: CloudWatchLogsInitialPosition -> ()
$crnf :: CloudWatchLogsInitialPosition -> ()
Prelude.NFData,
Text -> Either String CloudWatchLogsInitialPosition
(Text -> Either String CloudWatchLogsInitialPosition)
-> FromText CloudWatchLogsInitialPosition
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String CloudWatchLogsInitialPosition
$cfromText :: Text -> Either String CloudWatchLogsInitialPosition
Core.FromText,
CloudWatchLogsInitialPosition -> Text
(CloudWatchLogsInitialPosition -> Text)
-> ToText CloudWatchLogsInitialPosition
forall a. (a -> Text) -> ToText a
toText :: CloudWatchLogsInitialPosition -> Text
$ctoText :: CloudWatchLogsInitialPosition -> Text
Core.ToText,
CloudWatchLogsInitialPosition -> ByteString
(CloudWatchLogsInitialPosition -> ByteString)
-> ToByteString CloudWatchLogsInitialPosition
forall a. (a -> ByteString) -> ToByteString a
toBS :: CloudWatchLogsInitialPosition -> ByteString
$ctoBS :: CloudWatchLogsInitialPosition -> ByteString
Core.ToByteString,
CloudWatchLogsInitialPosition -> ByteStringBuilder
(CloudWatchLogsInitialPosition -> ByteStringBuilder)
-> ToLog CloudWatchLogsInitialPosition
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: CloudWatchLogsInitialPosition -> ByteStringBuilder
$cbuild :: CloudWatchLogsInitialPosition -> ByteStringBuilder
Core.ToLog,
HeaderName -> CloudWatchLogsInitialPosition -> [Header]
(HeaderName -> CloudWatchLogsInitialPosition -> [Header])
-> ToHeader CloudWatchLogsInitialPosition
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> CloudWatchLogsInitialPosition -> [Header]
$ctoHeader :: HeaderName -> CloudWatchLogsInitialPosition -> [Header]
Core.ToHeader,
CloudWatchLogsInitialPosition -> QueryString
(CloudWatchLogsInitialPosition -> QueryString)
-> ToQuery CloudWatchLogsInitialPosition
forall a. (a -> QueryString) -> ToQuery a
toQuery :: CloudWatchLogsInitialPosition -> QueryString
$ctoQuery :: CloudWatchLogsInitialPosition -> QueryString
Core.ToQuery,
Value -> Parser [CloudWatchLogsInitialPosition]
Value -> Parser CloudWatchLogsInitialPosition
(Value -> Parser CloudWatchLogsInitialPosition)
-> (Value -> Parser [CloudWatchLogsInitialPosition])
-> FromJSON CloudWatchLogsInitialPosition
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [CloudWatchLogsInitialPosition]
$cparseJSONList :: Value -> Parser [CloudWatchLogsInitialPosition]
parseJSON :: Value -> Parser CloudWatchLogsInitialPosition
$cparseJSON :: Value -> Parser CloudWatchLogsInitialPosition
Core.FromJSON,
FromJSONKeyFunction [CloudWatchLogsInitialPosition]
FromJSONKeyFunction CloudWatchLogsInitialPosition
FromJSONKeyFunction CloudWatchLogsInitialPosition
-> FromJSONKeyFunction [CloudWatchLogsInitialPosition]
-> FromJSONKey CloudWatchLogsInitialPosition
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [CloudWatchLogsInitialPosition]
$cfromJSONKeyList :: FromJSONKeyFunction [CloudWatchLogsInitialPosition]
fromJSONKey :: FromJSONKeyFunction CloudWatchLogsInitialPosition
$cfromJSONKey :: FromJSONKeyFunction CloudWatchLogsInitialPosition
Core.FromJSONKey,
[CloudWatchLogsInitialPosition] -> Encoding
[CloudWatchLogsInitialPosition] -> Value
CloudWatchLogsInitialPosition -> Encoding
CloudWatchLogsInitialPosition -> Value
(CloudWatchLogsInitialPosition -> Value)
-> (CloudWatchLogsInitialPosition -> Encoding)
-> ([CloudWatchLogsInitialPosition] -> Value)
-> ([CloudWatchLogsInitialPosition] -> Encoding)
-> ToJSON CloudWatchLogsInitialPosition
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [CloudWatchLogsInitialPosition] -> Encoding
$ctoEncodingList :: [CloudWatchLogsInitialPosition] -> Encoding
toJSONList :: [CloudWatchLogsInitialPosition] -> Value
$ctoJSONList :: [CloudWatchLogsInitialPosition] -> Value
toEncoding :: CloudWatchLogsInitialPosition -> Encoding
$ctoEncoding :: CloudWatchLogsInitialPosition -> Encoding
toJSON :: CloudWatchLogsInitialPosition -> Value
$ctoJSON :: CloudWatchLogsInitialPosition -> Value
Core.ToJSON,
ToJSONKeyFunction [CloudWatchLogsInitialPosition]
ToJSONKeyFunction CloudWatchLogsInitialPosition
ToJSONKeyFunction CloudWatchLogsInitialPosition
-> ToJSONKeyFunction [CloudWatchLogsInitialPosition]
-> ToJSONKey CloudWatchLogsInitialPosition
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [CloudWatchLogsInitialPosition]
$ctoJSONKeyList :: ToJSONKeyFunction [CloudWatchLogsInitialPosition]
toJSONKey :: ToJSONKeyFunction CloudWatchLogsInitialPosition
$ctoJSONKey :: ToJSONKeyFunction CloudWatchLogsInitialPosition
Core.ToJSONKey,
[Node] -> Either String CloudWatchLogsInitialPosition
([Node] -> Either String CloudWatchLogsInitialPosition)
-> FromXML CloudWatchLogsInitialPosition
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String CloudWatchLogsInitialPosition
$cparseXML :: [Node] -> Either String CloudWatchLogsInitialPosition
Core.FromXML,
CloudWatchLogsInitialPosition -> XML
(CloudWatchLogsInitialPosition -> XML)
-> ToXML CloudWatchLogsInitialPosition
forall a. (a -> XML) -> ToXML a
toXML :: CloudWatchLogsInitialPosition -> XML
$ctoXML :: CloudWatchLogsInitialPosition -> XML
Core.ToXML
)
pattern CloudWatchLogsInitialPosition_End_of_file :: CloudWatchLogsInitialPosition
pattern $bCloudWatchLogsInitialPosition_End_of_file :: CloudWatchLogsInitialPosition
$mCloudWatchLogsInitialPosition_End_of_file :: forall r.
CloudWatchLogsInitialPosition -> (Void# -> r) -> (Void# -> r) -> r
CloudWatchLogsInitialPosition_End_of_file = CloudWatchLogsInitialPosition' "end_of_file"
pattern CloudWatchLogsInitialPosition_Start_of_file :: CloudWatchLogsInitialPosition
pattern $bCloudWatchLogsInitialPosition_Start_of_file :: CloudWatchLogsInitialPosition
$mCloudWatchLogsInitialPosition_Start_of_file :: forall r.
CloudWatchLogsInitialPosition -> (Void# -> r) -> (Void# -> r) -> r
CloudWatchLogsInitialPosition_Start_of_file = CloudWatchLogsInitialPosition' "start_of_file"
{-# COMPLETE
CloudWatchLogsInitialPosition_End_of_file,
CloudWatchLogsInitialPosition_Start_of_file,
CloudWatchLogsInitialPosition'
#-}