{-# 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.Config.Types.AggregatedSourceType
-- 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.Config.Types.AggregatedSourceType
  ( AggregatedSourceType
      ( ..,
        AggregatedSourceType_ACCOUNT,
        AggregatedSourceType_ORGANIZATION
      ),
  )
where

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

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

pattern AggregatedSourceType_ACCOUNT :: AggregatedSourceType
pattern $bAggregatedSourceType_ACCOUNT :: AggregatedSourceType
$mAggregatedSourceType_ACCOUNT :: forall r. AggregatedSourceType -> (Void# -> r) -> (Void# -> r) -> r
AggregatedSourceType_ACCOUNT = AggregatedSourceType' "ACCOUNT"

pattern AggregatedSourceType_ORGANIZATION :: AggregatedSourceType
pattern $bAggregatedSourceType_ORGANIZATION :: AggregatedSourceType
$mAggregatedSourceType_ORGANIZATION :: forall r. AggregatedSourceType -> (Void# -> r) -> (Void# -> r) -> r
AggregatedSourceType_ORGANIZATION = AggregatedSourceType' "ORGANIZATION"

{-# COMPLETE
  AggregatedSourceType_ACCOUNT,
  AggregatedSourceType_ORGANIZATION,
  AggregatedSourceType'
  #-}