{-# 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.AppRunner.Types.CertificateValidationRecordStatus
-- 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.AppRunner.Types.CertificateValidationRecordStatus
  ( CertificateValidationRecordStatus
      ( ..,
        CertificateValidationRecordStatus_FAILED,
        CertificateValidationRecordStatus_PENDING_VALIDATION,
        CertificateValidationRecordStatus_SUCCESS
      ),
  )
where

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

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

pattern CertificateValidationRecordStatus_FAILED :: CertificateValidationRecordStatus
pattern $bCertificateValidationRecordStatus_FAILED :: CertificateValidationRecordStatus
$mCertificateValidationRecordStatus_FAILED :: forall r.
CertificateValidationRecordStatus
-> (Void# -> r) -> (Void# -> r) -> r
CertificateValidationRecordStatus_FAILED = CertificateValidationRecordStatus' "FAILED"

pattern CertificateValidationRecordStatus_PENDING_VALIDATION :: CertificateValidationRecordStatus
pattern $bCertificateValidationRecordStatus_PENDING_VALIDATION :: CertificateValidationRecordStatus
$mCertificateValidationRecordStatus_PENDING_VALIDATION :: forall r.
CertificateValidationRecordStatus
-> (Void# -> r) -> (Void# -> r) -> r
CertificateValidationRecordStatus_PENDING_VALIDATION = CertificateValidationRecordStatus' "PENDING_VALIDATION"

pattern CertificateValidationRecordStatus_SUCCESS :: CertificateValidationRecordStatus
pattern $bCertificateValidationRecordStatus_SUCCESS :: CertificateValidationRecordStatus
$mCertificateValidationRecordStatus_SUCCESS :: forall r.
CertificateValidationRecordStatus
-> (Void# -> r) -> (Void# -> r) -> r
CertificateValidationRecordStatus_SUCCESS = CertificateValidationRecordStatus' "SUCCESS"

{-# COMPLETE
  CertificateValidationRecordStatus_FAILED,
  CertificateValidationRecordStatus_PENDING_VALIDATION,
  CertificateValidationRecordStatus_SUCCESS,
  CertificateValidationRecordStatus'
  #-}