{-# 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.CACertificateUpdateAction
-- 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.CACertificateUpdateAction
  ( CACertificateUpdateAction
      ( ..,
        CACertificateUpdateAction_DEACTIVATE
      ),
  )
where

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

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

pattern CACertificateUpdateAction_DEACTIVATE :: CACertificateUpdateAction
pattern $bCACertificateUpdateAction_DEACTIVATE :: CACertificateUpdateAction
$mCACertificateUpdateAction_DEACTIVATE :: forall r.
CACertificateUpdateAction -> (Void# -> r) -> (Void# -> r) -> r
CACertificateUpdateAction_DEACTIVATE = CACertificateUpdateAction' "DEACTIVATE"

{-# COMPLETE
  CACertificateUpdateAction_DEACTIVATE,
  CACertificateUpdateAction'
  #-}