{-# 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.LoadBalancerTlsCertificateRenewalStatus
-- 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.LoadBalancerTlsCertificateRenewalStatus
  ( LoadBalancerTlsCertificateRenewalStatus
      ( ..,
        LoadBalancerTlsCertificateRenewalStatus_FAILED,
        LoadBalancerTlsCertificateRenewalStatus_PENDING_AUTO_RENEWAL,
        LoadBalancerTlsCertificateRenewalStatus_PENDING_VALIDATION,
        LoadBalancerTlsCertificateRenewalStatus_SUCCESS
      ),
  )
where

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

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

pattern LoadBalancerTlsCertificateRenewalStatus_FAILED :: LoadBalancerTlsCertificateRenewalStatus
pattern $bLoadBalancerTlsCertificateRenewalStatus_FAILED :: LoadBalancerTlsCertificateRenewalStatus
$mLoadBalancerTlsCertificateRenewalStatus_FAILED :: forall r.
LoadBalancerTlsCertificateRenewalStatus
-> (Void# -> r) -> (Void# -> r) -> r
LoadBalancerTlsCertificateRenewalStatus_FAILED = LoadBalancerTlsCertificateRenewalStatus' "FAILED"

pattern LoadBalancerTlsCertificateRenewalStatus_PENDING_AUTO_RENEWAL :: LoadBalancerTlsCertificateRenewalStatus
pattern $bLoadBalancerTlsCertificateRenewalStatus_PENDING_AUTO_RENEWAL :: LoadBalancerTlsCertificateRenewalStatus
$mLoadBalancerTlsCertificateRenewalStatus_PENDING_AUTO_RENEWAL :: forall r.
LoadBalancerTlsCertificateRenewalStatus
-> (Void# -> r) -> (Void# -> r) -> r
LoadBalancerTlsCertificateRenewalStatus_PENDING_AUTO_RENEWAL = LoadBalancerTlsCertificateRenewalStatus' "PENDING_AUTO_RENEWAL"

pattern LoadBalancerTlsCertificateRenewalStatus_PENDING_VALIDATION :: LoadBalancerTlsCertificateRenewalStatus
pattern $bLoadBalancerTlsCertificateRenewalStatus_PENDING_VALIDATION :: LoadBalancerTlsCertificateRenewalStatus
$mLoadBalancerTlsCertificateRenewalStatus_PENDING_VALIDATION :: forall r.
LoadBalancerTlsCertificateRenewalStatus
-> (Void# -> r) -> (Void# -> r) -> r
LoadBalancerTlsCertificateRenewalStatus_PENDING_VALIDATION = LoadBalancerTlsCertificateRenewalStatus' "PENDING_VALIDATION"

pattern LoadBalancerTlsCertificateRenewalStatus_SUCCESS :: LoadBalancerTlsCertificateRenewalStatus
pattern $bLoadBalancerTlsCertificateRenewalStatus_SUCCESS :: LoadBalancerTlsCertificateRenewalStatus
$mLoadBalancerTlsCertificateRenewalStatus_SUCCESS :: forall r.
LoadBalancerTlsCertificateRenewalStatus
-> (Void# -> r) -> (Void# -> r) -> r
LoadBalancerTlsCertificateRenewalStatus_SUCCESS = LoadBalancerTlsCertificateRenewalStatus' "SUCCESS"

{-# COMPLETE
  LoadBalancerTlsCertificateRenewalStatus_FAILED,
  LoadBalancerTlsCertificateRenewalStatus_PENDING_AUTO_RENEWAL,
  LoadBalancerTlsCertificateRenewalStatus_PENDING_VALIDATION,
  LoadBalancerTlsCertificateRenewalStatus_SUCCESS,
  LoadBalancerTlsCertificateRenewalStatus'
  #-}