{-# 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.AuditManager.Types.FrameworkType
-- 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.AuditManager.Types.FrameworkType
  ( FrameworkType
      ( ..,
        FrameworkType_Custom,
        FrameworkType_Standard
      ),
  )
where

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

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

pattern FrameworkType_Custom :: FrameworkType
pattern $bFrameworkType_Custom :: FrameworkType
$mFrameworkType_Custom :: forall {r}. FrameworkType -> ((# #) -> r) -> ((# #) -> r) -> r
FrameworkType_Custom = FrameworkType' "Custom"

pattern FrameworkType_Standard :: FrameworkType
pattern $bFrameworkType_Standard :: FrameworkType
$mFrameworkType_Standard :: forall {r}. FrameworkType -> ((# #) -> r) -> ((# #) -> r) -> r
FrameworkType_Standard = FrameworkType' "Standard"

{-# COMPLETE
  FrameworkType_Custom,
  FrameworkType_Standard,
  FrameworkType'
  #-}