{-# 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.SSOAdmin.Types.TargetType
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.SSOAdmin.Types.TargetType
  ( TargetType
      ( ..,
        TargetType_AWS_ACCOUNT
      ),
  )
where

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

newtype TargetType = TargetType'
  { TargetType -> Text
fromTargetType ::
      Core.Text
  }
  deriving stock
    ( Int -> TargetType -> ShowS
[TargetType] -> ShowS
TargetType -> String
(Int -> TargetType -> ShowS)
-> (TargetType -> String)
-> ([TargetType] -> ShowS)
-> Show TargetType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TargetType] -> ShowS
$cshowList :: [TargetType] -> ShowS
show :: TargetType -> String
$cshow :: TargetType -> String
showsPrec :: Int -> TargetType -> ShowS
$cshowsPrec :: Int -> TargetType -> ShowS
Prelude.Show,
      ReadPrec [TargetType]
ReadPrec TargetType
Int -> ReadS TargetType
ReadS [TargetType]
(Int -> ReadS TargetType)
-> ReadS [TargetType]
-> ReadPrec TargetType
-> ReadPrec [TargetType]
-> Read TargetType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [TargetType]
$creadListPrec :: ReadPrec [TargetType]
readPrec :: ReadPrec TargetType
$creadPrec :: ReadPrec TargetType
readList :: ReadS [TargetType]
$creadList :: ReadS [TargetType]
readsPrec :: Int -> ReadS TargetType
$creadsPrec :: Int -> ReadS TargetType
Prelude.Read,
      TargetType -> TargetType -> Bool
(TargetType -> TargetType -> Bool)
-> (TargetType -> TargetType -> Bool) -> Eq TargetType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TargetType -> TargetType -> Bool
$c/= :: TargetType -> TargetType -> Bool
== :: TargetType -> TargetType -> Bool
$c== :: TargetType -> TargetType -> Bool
Prelude.Eq,
      Eq TargetType
Eq TargetType
-> (TargetType -> TargetType -> Ordering)
-> (TargetType -> TargetType -> Bool)
-> (TargetType -> TargetType -> Bool)
-> (TargetType -> TargetType -> Bool)
-> (TargetType -> TargetType -> Bool)
-> (TargetType -> TargetType -> TargetType)
-> (TargetType -> TargetType -> TargetType)
-> Ord TargetType
TargetType -> TargetType -> Bool
TargetType -> TargetType -> Ordering
TargetType -> TargetType -> TargetType
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 :: TargetType -> TargetType -> TargetType
$cmin :: TargetType -> TargetType -> TargetType
max :: TargetType -> TargetType -> TargetType
$cmax :: TargetType -> TargetType -> TargetType
>= :: TargetType -> TargetType -> Bool
$c>= :: TargetType -> TargetType -> Bool
> :: TargetType -> TargetType -> Bool
$c> :: TargetType -> TargetType -> Bool
<= :: TargetType -> TargetType -> Bool
$c<= :: TargetType -> TargetType -> Bool
< :: TargetType -> TargetType -> Bool
$c< :: TargetType -> TargetType -> Bool
compare :: TargetType -> TargetType -> Ordering
$ccompare :: TargetType -> TargetType -> Ordering
$cp1Ord :: Eq TargetType
Prelude.Ord,
      (forall x. TargetType -> Rep TargetType x)
-> (forall x. Rep TargetType x -> TargetType) -> Generic TargetType
forall x. Rep TargetType x -> TargetType
forall x. TargetType -> Rep TargetType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep TargetType x -> TargetType
$cfrom :: forall x. TargetType -> Rep TargetType x
Prelude.Generic
    )
  deriving newtype
    ( Int -> TargetType -> Int
TargetType -> Int
(Int -> TargetType -> Int)
-> (TargetType -> Int) -> Hashable TargetType
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: TargetType -> Int
$chash :: TargetType -> Int
hashWithSalt :: Int -> TargetType -> Int
$chashWithSalt :: Int -> TargetType -> Int
Prelude.Hashable,
      TargetType -> ()
(TargetType -> ()) -> NFData TargetType
forall a. (a -> ()) -> NFData a
rnf :: TargetType -> ()
$crnf :: TargetType -> ()
Prelude.NFData,
      Text -> Either String TargetType
(Text -> Either String TargetType) -> FromText TargetType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String TargetType
$cfromText :: Text -> Either String TargetType
Core.FromText,
      TargetType -> Text
(TargetType -> Text) -> ToText TargetType
forall a. (a -> Text) -> ToText a
toText :: TargetType -> Text
$ctoText :: TargetType -> Text
Core.ToText,
      TargetType -> ByteString
(TargetType -> ByteString) -> ToByteString TargetType
forall a. (a -> ByteString) -> ToByteString a
toBS :: TargetType -> ByteString
$ctoBS :: TargetType -> ByteString
Core.ToByteString,
      TargetType -> ByteStringBuilder
(TargetType -> ByteStringBuilder) -> ToLog TargetType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: TargetType -> ByteStringBuilder
$cbuild :: TargetType -> ByteStringBuilder
Core.ToLog,
      HeaderName -> TargetType -> [Header]
(HeaderName -> TargetType -> [Header]) -> ToHeader TargetType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> TargetType -> [Header]
$ctoHeader :: HeaderName -> TargetType -> [Header]
Core.ToHeader,
      TargetType -> QueryString
(TargetType -> QueryString) -> ToQuery TargetType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: TargetType -> QueryString
$ctoQuery :: TargetType -> QueryString
Core.ToQuery,
      Value -> Parser [TargetType]
Value -> Parser TargetType
(Value -> Parser TargetType)
-> (Value -> Parser [TargetType]) -> FromJSON TargetType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [TargetType]
$cparseJSONList :: Value -> Parser [TargetType]
parseJSON :: Value -> Parser TargetType
$cparseJSON :: Value -> Parser TargetType
Core.FromJSON,
      FromJSONKeyFunction [TargetType]
FromJSONKeyFunction TargetType
FromJSONKeyFunction TargetType
-> FromJSONKeyFunction [TargetType] -> FromJSONKey TargetType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [TargetType]
$cfromJSONKeyList :: FromJSONKeyFunction [TargetType]
fromJSONKey :: FromJSONKeyFunction TargetType
$cfromJSONKey :: FromJSONKeyFunction TargetType
Core.FromJSONKey,
      [TargetType] -> Encoding
[TargetType] -> Value
TargetType -> Encoding
TargetType -> Value
(TargetType -> Value)
-> (TargetType -> Encoding)
-> ([TargetType] -> Value)
-> ([TargetType] -> Encoding)
-> ToJSON TargetType
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [TargetType] -> Encoding
$ctoEncodingList :: [TargetType] -> Encoding
toJSONList :: [TargetType] -> Value
$ctoJSONList :: [TargetType] -> Value
toEncoding :: TargetType -> Encoding
$ctoEncoding :: TargetType -> Encoding
toJSON :: TargetType -> Value
$ctoJSON :: TargetType -> Value
Core.ToJSON,
      ToJSONKeyFunction [TargetType]
ToJSONKeyFunction TargetType
ToJSONKeyFunction TargetType
-> ToJSONKeyFunction [TargetType] -> ToJSONKey TargetType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [TargetType]
$ctoJSONKeyList :: ToJSONKeyFunction [TargetType]
toJSONKey :: ToJSONKeyFunction TargetType
$ctoJSONKey :: ToJSONKeyFunction TargetType
Core.ToJSONKey,
      [Node] -> Either String TargetType
([Node] -> Either String TargetType) -> FromXML TargetType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String TargetType
$cparseXML :: [Node] -> Either String TargetType
Core.FromXML,
      TargetType -> XML
(TargetType -> XML) -> ToXML TargetType
forall a. (a -> XML) -> ToXML a
toXML :: TargetType -> XML
$ctoXML :: TargetType -> XML
Core.ToXML
    )

pattern TargetType_AWS_ACCOUNT :: TargetType
pattern $bTargetType_AWS_ACCOUNT :: TargetType
$mTargetType_AWS_ACCOUNT :: forall r. TargetType -> (Void# -> r) -> (Void# -> r) -> r
TargetType_AWS_ACCOUNT = TargetType' "AWS_ACCOUNT"

{-# COMPLETE
  TargetType_AWS_ACCOUNT,
  TargetType'
  #-}