{-# 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.LoadBalancerTlsCertificateStatus
-- 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.Lightsail.Types.LoadBalancerTlsCertificateStatus
  ( LoadBalancerTlsCertificateStatus
      ( ..,
        LoadBalancerTlsCertificateStatus_EXPIRED,
        LoadBalancerTlsCertificateStatus_FAILED,
        LoadBalancerTlsCertificateStatus_INACTIVE,
        LoadBalancerTlsCertificateStatus_ISSUED,
        LoadBalancerTlsCertificateStatus_PENDING_VALIDATION,
        LoadBalancerTlsCertificateStatus_REVOKED,
        LoadBalancerTlsCertificateStatus_UNKNOWN,
        LoadBalancerTlsCertificateStatus_VALIDATION_TIMED_OUT
      ),
  )
where

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

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

pattern LoadBalancerTlsCertificateStatus_EXPIRED :: LoadBalancerTlsCertificateStatus
pattern $bLoadBalancerTlsCertificateStatus_EXPIRED :: LoadBalancerTlsCertificateStatus
$mLoadBalancerTlsCertificateStatus_EXPIRED :: forall r.
LoadBalancerTlsCertificateStatus
-> (Void# -> r) -> (Void# -> r) -> r
LoadBalancerTlsCertificateStatus_EXPIRED = LoadBalancerTlsCertificateStatus' "EXPIRED"

pattern LoadBalancerTlsCertificateStatus_FAILED :: LoadBalancerTlsCertificateStatus
pattern $bLoadBalancerTlsCertificateStatus_FAILED :: LoadBalancerTlsCertificateStatus
$mLoadBalancerTlsCertificateStatus_FAILED :: forall r.
LoadBalancerTlsCertificateStatus
-> (Void# -> r) -> (Void# -> r) -> r
LoadBalancerTlsCertificateStatus_FAILED = LoadBalancerTlsCertificateStatus' "FAILED"

pattern LoadBalancerTlsCertificateStatus_INACTIVE :: LoadBalancerTlsCertificateStatus
pattern $bLoadBalancerTlsCertificateStatus_INACTIVE :: LoadBalancerTlsCertificateStatus
$mLoadBalancerTlsCertificateStatus_INACTIVE :: forall r.
LoadBalancerTlsCertificateStatus
-> (Void# -> r) -> (Void# -> r) -> r
LoadBalancerTlsCertificateStatus_INACTIVE = LoadBalancerTlsCertificateStatus' "INACTIVE"

pattern LoadBalancerTlsCertificateStatus_ISSUED :: LoadBalancerTlsCertificateStatus
pattern $bLoadBalancerTlsCertificateStatus_ISSUED :: LoadBalancerTlsCertificateStatus
$mLoadBalancerTlsCertificateStatus_ISSUED :: forall r.
LoadBalancerTlsCertificateStatus
-> (Void# -> r) -> (Void# -> r) -> r
LoadBalancerTlsCertificateStatus_ISSUED = LoadBalancerTlsCertificateStatus' "ISSUED"

pattern LoadBalancerTlsCertificateStatus_PENDING_VALIDATION :: LoadBalancerTlsCertificateStatus
pattern $bLoadBalancerTlsCertificateStatus_PENDING_VALIDATION :: LoadBalancerTlsCertificateStatus
$mLoadBalancerTlsCertificateStatus_PENDING_VALIDATION :: forall r.
LoadBalancerTlsCertificateStatus
-> (Void# -> r) -> (Void# -> r) -> r
LoadBalancerTlsCertificateStatus_PENDING_VALIDATION = LoadBalancerTlsCertificateStatus' "PENDING_VALIDATION"

pattern LoadBalancerTlsCertificateStatus_REVOKED :: LoadBalancerTlsCertificateStatus
pattern $bLoadBalancerTlsCertificateStatus_REVOKED :: LoadBalancerTlsCertificateStatus
$mLoadBalancerTlsCertificateStatus_REVOKED :: forall r.
LoadBalancerTlsCertificateStatus
-> (Void# -> r) -> (Void# -> r) -> r
LoadBalancerTlsCertificateStatus_REVOKED = LoadBalancerTlsCertificateStatus' "REVOKED"

pattern LoadBalancerTlsCertificateStatus_UNKNOWN :: LoadBalancerTlsCertificateStatus
pattern $bLoadBalancerTlsCertificateStatus_UNKNOWN :: LoadBalancerTlsCertificateStatus
$mLoadBalancerTlsCertificateStatus_UNKNOWN :: forall r.
LoadBalancerTlsCertificateStatus
-> (Void# -> r) -> (Void# -> r) -> r
LoadBalancerTlsCertificateStatus_UNKNOWN = LoadBalancerTlsCertificateStatus' "UNKNOWN"

pattern LoadBalancerTlsCertificateStatus_VALIDATION_TIMED_OUT :: LoadBalancerTlsCertificateStatus
pattern $bLoadBalancerTlsCertificateStatus_VALIDATION_TIMED_OUT :: LoadBalancerTlsCertificateStatus
$mLoadBalancerTlsCertificateStatus_VALIDATION_TIMED_OUT :: forall r.
LoadBalancerTlsCertificateStatus
-> (Void# -> r) -> (Void# -> r) -> r
LoadBalancerTlsCertificateStatus_VALIDATION_TIMED_OUT = LoadBalancerTlsCertificateStatus' "VALIDATION_TIMED_OUT"

{-# COMPLETE
  LoadBalancerTlsCertificateStatus_EXPIRED,
  LoadBalancerTlsCertificateStatus_FAILED,
  LoadBalancerTlsCertificateStatus_INACTIVE,
  LoadBalancerTlsCertificateStatus_ISSUED,
  LoadBalancerTlsCertificateStatus_PENDING_VALIDATION,
  LoadBalancerTlsCertificateStatus_REVOKED,
  LoadBalancerTlsCertificateStatus_UNKNOWN,
  LoadBalancerTlsCertificateStatus_VALIDATION_TIMED_OUT,
  LoadBalancerTlsCertificateStatus'
  #-}