{-# 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.CertificateManagerPCA.Types.AuditReportStatus
-- 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.CertificateManagerPCA.Types.AuditReportStatus
  ( AuditReportStatus
      ( ..,
        AuditReportStatus_CREATING,
        AuditReportStatus_FAILED,
        AuditReportStatus_SUCCESS
      ),
  )
where

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

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

pattern AuditReportStatus_CREATING :: AuditReportStatus
pattern $bAuditReportStatus_CREATING :: AuditReportStatus
$mAuditReportStatus_CREATING :: forall r. AuditReportStatus -> (Void# -> r) -> (Void# -> r) -> r
AuditReportStatus_CREATING = AuditReportStatus' "CREATING"

pattern AuditReportStatus_FAILED :: AuditReportStatus
pattern $bAuditReportStatus_FAILED :: AuditReportStatus
$mAuditReportStatus_FAILED :: forall r. AuditReportStatus -> (Void# -> r) -> (Void# -> r) -> r
AuditReportStatus_FAILED = AuditReportStatus' "FAILED"

pattern AuditReportStatus_SUCCESS :: AuditReportStatus
pattern $bAuditReportStatus_SUCCESS :: AuditReportStatus
$mAuditReportStatus_SUCCESS :: forall r. AuditReportStatus -> (Void# -> r) -> (Void# -> r) -> r
AuditReportStatus_SUCCESS = AuditReportStatus' "SUCCESS"

{-# COMPLETE
  AuditReportStatus_CREATING,
  AuditReportStatus_FAILED,
  AuditReportStatus_SUCCESS,
  AuditReportStatus'
  #-}