{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.IoT.Types.TargetSelection
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.IoT.Types.TargetSelection
  ( TargetSelection
      ( ..,
        TargetSelection_CONTINUOUS,
        TargetSelection_SNAPSHOT
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

newtype TargetSelection = TargetSelection'
  { TargetSelection -> Text
fromTargetSelection ::
      Data.Text
  }
  deriving stock
    ( Int -> TargetSelection -> ShowS
[TargetSelection] -> ShowS
TargetSelection -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq TargetSelection
Int -> TargetSelection -> Int
TargetSelection -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: TargetSelection -> ()
$crnf :: TargetSelection -> ()
Prelude.NFData,
      Text -> Either String TargetSelection
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String TargetSelection
$cfromText :: Text -> Either String TargetSelection
Data.FromText,
      TargetSelection -> Text
forall a. (a -> Text) -> ToText a
toText :: TargetSelection -> Text
$ctoText :: TargetSelection -> Text
Data.ToText,
      TargetSelection -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: TargetSelection -> ByteString
$ctoBS :: TargetSelection -> ByteString
Data.ToByteString,
      TargetSelection -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: TargetSelection -> ByteStringBuilder
$cbuild :: TargetSelection -> ByteStringBuilder
Data.ToLog,
      HeaderName -> TargetSelection -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> TargetSelection -> [Header]
$ctoHeader :: HeaderName -> TargetSelection -> [Header]
Data.ToHeader,
      TargetSelection -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: TargetSelection -> QueryString
$ctoQuery :: TargetSelection -> QueryString
Data.ToQuery,
      Value -> Parser [TargetSelection]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [TargetSelection]
FromJSONKeyFunction TargetSelection
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [TargetSelection]
$cfromJSONKeyList :: FromJSONKeyFunction [TargetSelection]
fromJSONKey :: FromJSONKeyFunction TargetSelection
$cfromJSONKey :: FromJSONKeyFunction TargetSelection
Data.FromJSONKey,
      [TargetSelection] -> Encoding
[TargetSelection] -> Value
TargetSelection -> Encoding
TargetSelection -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [TargetSelection]
ToJSONKeyFunction TargetSelection
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [TargetSelection]
$ctoJSONKeyList :: ToJSONKeyFunction [TargetSelection]
toJSONKey :: ToJSONKeyFunction TargetSelection
$ctoJSONKey :: ToJSONKeyFunction TargetSelection
Data.ToJSONKey,
      [Node] -> Either String TargetSelection
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String TargetSelection
$cparseXML :: [Node] -> Either String TargetSelection
Data.FromXML,
      TargetSelection -> XML
forall a. (a -> XML) -> ToXML a
toXML :: TargetSelection -> XML
$ctoXML :: TargetSelection -> XML
Data.ToXML
    )

pattern TargetSelection_CONTINUOUS :: TargetSelection
pattern $bTargetSelection_CONTINUOUS :: TargetSelection
$mTargetSelection_CONTINUOUS :: forall {r}. TargetSelection -> ((# #) -> r) -> ((# #) -> r) -> r
TargetSelection_CONTINUOUS = TargetSelection' "CONTINUOUS"

pattern TargetSelection_SNAPSHOT :: TargetSelection
pattern $bTargetSelection_SNAPSHOT :: TargetSelection
$mTargetSelection_SNAPSHOT :: forall {r}. TargetSelection -> ((# #) -> r) -> ((# #) -> r) -> r
TargetSelection_SNAPSHOT = TargetSelection' "SNAPSHOT"

{-# COMPLETE
  TargetSelection_CONTINUOUS,
  TargetSelection_SNAPSHOT,
  TargetSelection'
  #-}