{-# 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.CertificateManager.Types.CertificateStatus
-- 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.CertificateManager.Types.CertificateStatus
  ( CertificateStatus
      ( ..,
        CertificateStatus_EXPIRED,
        CertificateStatus_FAILED,
        CertificateStatus_INACTIVE,
        CertificateStatus_ISSUED,
        CertificateStatus_PENDING_VALIDATION,
        CertificateStatus_REVOKED,
        CertificateStatus_VALIDATION_TIMED_OUT
      ),
  )
where

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

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

pattern CertificateStatus_EXPIRED :: CertificateStatus
pattern $bCertificateStatus_EXPIRED :: CertificateStatus
$mCertificateStatus_EXPIRED :: forall r. CertificateStatus -> (Void# -> r) -> (Void# -> r) -> r
CertificateStatus_EXPIRED = CertificateStatus' "EXPIRED"

pattern CertificateStatus_FAILED :: CertificateStatus
pattern $bCertificateStatus_FAILED :: CertificateStatus
$mCertificateStatus_FAILED :: forall r. CertificateStatus -> (Void# -> r) -> (Void# -> r) -> r
CertificateStatus_FAILED = CertificateStatus' "FAILED"

pattern CertificateStatus_INACTIVE :: CertificateStatus
pattern $bCertificateStatus_INACTIVE :: CertificateStatus
$mCertificateStatus_INACTIVE :: forall r. CertificateStatus -> (Void# -> r) -> (Void# -> r) -> r
CertificateStatus_INACTIVE = CertificateStatus' "INACTIVE"

pattern CertificateStatus_ISSUED :: CertificateStatus
pattern $bCertificateStatus_ISSUED :: CertificateStatus
$mCertificateStatus_ISSUED :: forall r. CertificateStatus -> (Void# -> r) -> (Void# -> r) -> r
CertificateStatus_ISSUED = CertificateStatus' "ISSUED"

pattern CertificateStatus_PENDING_VALIDATION :: CertificateStatus
pattern $bCertificateStatus_PENDING_VALIDATION :: CertificateStatus
$mCertificateStatus_PENDING_VALIDATION :: forall r. CertificateStatus -> (Void# -> r) -> (Void# -> r) -> r
CertificateStatus_PENDING_VALIDATION = CertificateStatus' "PENDING_VALIDATION"

pattern CertificateStatus_REVOKED :: CertificateStatus
pattern $bCertificateStatus_REVOKED :: CertificateStatus
$mCertificateStatus_REVOKED :: forall r. CertificateStatus -> (Void# -> r) -> (Void# -> r) -> r
CertificateStatus_REVOKED = CertificateStatus' "REVOKED"

pattern CertificateStatus_VALIDATION_TIMED_OUT :: CertificateStatus
pattern $bCertificateStatus_VALIDATION_TIMED_OUT :: CertificateStatus
$mCertificateStatus_VALIDATION_TIMED_OUT :: forall r. CertificateStatus -> (Void# -> r) -> (Void# -> r) -> r
CertificateStatus_VALIDATION_TIMED_OUT = CertificateStatus' "VALIDATION_TIMED_OUT"

{-# COMPLETE
  CertificateStatus_EXPIRED,
  CertificateStatus_FAILED,
  CertificateStatus_INACTIVE,
  CertificateStatus_ISSUED,
  CertificateStatus_PENDING_VALIDATION,
  CertificateStatus_REVOKED,
  CertificateStatus_VALIDATION_TIMED_OUT,
  CertificateStatus'
  #-}