{-# 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.CertificateAuthorityStatus
-- 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.CertificateAuthorityStatus
  ( CertificateAuthorityStatus
      ( ..,
        CertificateAuthorityStatus_ACTIVE,
        CertificateAuthorityStatus_CREATING,
        CertificateAuthorityStatus_DELETED,
        CertificateAuthorityStatus_DISABLED,
        CertificateAuthorityStatus_EXPIRED,
        CertificateAuthorityStatus_FAILED,
        CertificateAuthorityStatus_PENDING_CERTIFICATE
      ),
  )
where

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

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

pattern CertificateAuthorityStatus_ACTIVE :: CertificateAuthorityStatus
pattern $bCertificateAuthorityStatus_ACTIVE :: CertificateAuthorityStatus
$mCertificateAuthorityStatus_ACTIVE :: forall r.
CertificateAuthorityStatus -> (Void# -> r) -> (Void# -> r) -> r
CertificateAuthorityStatus_ACTIVE = CertificateAuthorityStatus' "ACTIVE"

pattern CertificateAuthorityStatus_CREATING :: CertificateAuthorityStatus
pattern $bCertificateAuthorityStatus_CREATING :: CertificateAuthorityStatus
$mCertificateAuthorityStatus_CREATING :: forall r.
CertificateAuthorityStatus -> (Void# -> r) -> (Void# -> r) -> r
CertificateAuthorityStatus_CREATING = CertificateAuthorityStatus' "CREATING"

pattern CertificateAuthorityStatus_DELETED :: CertificateAuthorityStatus
pattern $bCertificateAuthorityStatus_DELETED :: CertificateAuthorityStatus
$mCertificateAuthorityStatus_DELETED :: forall r.
CertificateAuthorityStatus -> (Void# -> r) -> (Void# -> r) -> r
CertificateAuthorityStatus_DELETED = CertificateAuthorityStatus' "DELETED"

pattern CertificateAuthorityStatus_DISABLED :: CertificateAuthorityStatus
pattern $bCertificateAuthorityStatus_DISABLED :: CertificateAuthorityStatus
$mCertificateAuthorityStatus_DISABLED :: forall r.
CertificateAuthorityStatus -> (Void# -> r) -> (Void# -> r) -> r
CertificateAuthorityStatus_DISABLED = CertificateAuthorityStatus' "DISABLED"

pattern CertificateAuthorityStatus_EXPIRED :: CertificateAuthorityStatus
pattern $bCertificateAuthorityStatus_EXPIRED :: CertificateAuthorityStatus
$mCertificateAuthorityStatus_EXPIRED :: forall r.
CertificateAuthorityStatus -> (Void# -> r) -> (Void# -> r) -> r
CertificateAuthorityStatus_EXPIRED = CertificateAuthorityStatus' "EXPIRED"

pattern CertificateAuthorityStatus_FAILED :: CertificateAuthorityStatus
pattern $bCertificateAuthorityStatus_FAILED :: CertificateAuthorityStatus
$mCertificateAuthorityStatus_FAILED :: forall r.
CertificateAuthorityStatus -> (Void# -> r) -> (Void# -> r) -> r
CertificateAuthorityStatus_FAILED = CertificateAuthorityStatus' "FAILED"

pattern CertificateAuthorityStatus_PENDING_CERTIFICATE :: CertificateAuthorityStatus
pattern $bCertificateAuthorityStatus_PENDING_CERTIFICATE :: CertificateAuthorityStatus
$mCertificateAuthorityStatus_PENDING_CERTIFICATE :: forall r.
CertificateAuthorityStatus -> (Void# -> r) -> (Void# -> r) -> r
CertificateAuthorityStatus_PENDING_CERTIFICATE = CertificateAuthorityStatus' "PENDING_CERTIFICATE"

{-# COMPLETE
  CertificateAuthorityStatus_ACTIVE,
  CertificateAuthorityStatus_CREATING,
  CertificateAuthorityStatus_DELETED,
  CertificateAuthorityStatus_DISABLED,
  CertificateAuthorityStatus_EXPIRED,
  CertificateAuthorityStatus_FAILED,
  CertificateAuthorityStatus_PENDING_CERTIFICATE,
  CertificateAuthorityStatus'
  #-}