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