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