{-# 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.Lightsail.Types.CertificateStatus
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Lightsail.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.Data as Data
import qualified Amazonka.Prelude as Prelude

newtype CertificateStatus = CertificateStatus'
  { CertificateStatus -> Text
fromCertificateStatus ::
      Data.Text
  }
  deriving stock
    ( Int -> CertificateStatus -> ShowS
[CertificateStatus] -> ShowS
CertificateStatus -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq CertificateStatus
Int -> CertificateStatus -> Int
CertificateStatus -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: CertificateStatus -> ()
$crnf :: CertificateStatus -> ()
Prelude.NFData,
      Text -> Either String CertificateStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String CertificateStatus
$cfromText :: Text -> Either String CertificateStatus
Data.FromText,
      CertificateStatus -> Text
forall a. (a -> Text) -> ToText a
toText :: CertificateStatus -> Text
$ctoText :: CertificateStatus -> Text
Data.ToText,
      CertificateStatus -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: CertificateStatus -> ByteString
$ctoBS :: CertificateStatus -> ByteString
Data.ToByteString,
      CertificateStatus -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: CertificateStatus -> ByteStringBuilder
$cbuild :: CertificateStatus -> ByteStringBuilder
Data.ToLog,
      HeaderName -> CertificateStatus -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> CertificateStatus -> [Header]
$ctoHeader :: HeaderName -> CertificateStatus -> [Header]
Data.ToHeader,
      CertificateStatus -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: CertificateStatus -> QueryString
$ctoQuery :: CertificateStatus -> QueryString
Data.ToQuery,
      Value -> Parser [CertificateStatus]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [CertificateStatus]
FromJSONKeyFunction CertificateStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [CertificateStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [CertificateStatus]
fromJSONKey :: FromJSONKeyFunction CertificateStatus
$cfromJSONKey :: FromJSONKeyFunction CertificateStatus
Data.FromJSONKey,
      [CertificateStatus] -> Encoding
[CertificateStatus] -> Value
CertificateStatus -> Encoding
CertificateStatus -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [CertificateStatus]
ToJSONKeyFunction CertificateStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [CertificateStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [CertificateStatus]
toJSONKey :: ToJSONKeyFunction CertificateStatus
$ctoJSONKey :: ToJSONKeyFunction CertificateStatus
Data.ToJSONKey,
      [Node] -> Either String CertificateStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String CertificateStatus
$cparseXML :: [Node] -> Either String CertificateStatus
Data.FromXML,
      CertificateStatus -> XML
forall a. (a -> XML) -> ToXML a
toXML :: CertificateStatus -> XML
$ctoXML :: CertificateStatus -> XML
Data.ToXML
    )

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

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

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

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

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

pattern CertificateStatus_REVOKED :: CertificateStatus
pattern $bCertificateStatus_REVOKED :: CertificateStatus
$mCertificateStatus_REVOKED :: forall {r}. CertificateStatus -> ((# #) -> r) -> ((# #) -> 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 -> ((# #) -> r) -> ((# #) -> 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'
  #-}