{-# 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.IoT.Types.CACertificateStatus
-- 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.IoT.Types.CACertificateStatus
  ( CACertificateStatus
      ( ..,
        CACertificateStatus_ACTIVE,
        CACertificateStatus_INACTIVE
      ),
  )
where

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

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

pattern CACertificateStatus_ACTIVE :: CACertificateStatus
pattern $bCACertificateStatus_ACTIVE :: CACertificateStatus
$mCACertificateStatus_ACTIVE :: forall r. CACertificateStatus -> (Void# -> r) -> (Void# -> r) -> r
CACertificateStatus_ACTIVE = CACertificateStatus' "ACTIVE"

pattern CACertificateStatus_INACTIVE :: CACertificateStatus
pattern $bCACertificateStatus_INACTIVE :: CACertificateStatus
$mCACertificateStatus_INACTIVE :: forall r. CACertificateStatus -> (Void# -> r) -> (Void# -> r) -> r
CACertificateStatus_INACTIVE = CACertificateStatus' "INACTIVE"

{-# COMPLETE
  CACertificateStatus_ACTIVE,
  CACertificateStatus_INACTIVE,
  CACertificateStatus'
  #-}