{-# 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.Signer.Types.SigningProfileStatus
-- 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.Signer.Types.SigningProfileStatus
  ( SigningProfileStatus
      ( ..,
        SigningProfileStatus_Active,
        SigningProfileStatus_Canceled,
        SigningProfileStatus_Revoked
      ),
  )
where

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

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

pattern SigningProfileStatus_Active :: SigningProfileStatus
pattern $bSigningProfileStatus_Active :: SigningProfileStatus
$mSigningProfileStatus_Active :: forall r. SigningProfileStatus -> (Void# -> r) -> (Void# -> r) -> r
SigningProfileStatus_Active = SigningProfileStatus' "Active"

pattern SigningProfileStatus_Canceled :: SigningProfileStatus
pattern $bSigningProfileStatus_Canceled :: SigningProfileStatus
$mSigningProfileStatus_Canceled :: forall r. SigningProfileStatus -> (Void# -> r) -> (Void# -> r) -> r
SigningProfileStatus_Canceled = SigningProfileStatus' "Canceled"

pattern SigningProfileStatus_Revoked :: SigningProfileStatus
pattern $bSigningProfileStatus_Revoked :: SigningProfileStatus
$mSigningProfileStatus_Revoked :: forall r. SigningProfileStatus -> (Void# -> r) -> (Void# -> r) -> r
SigningProfileStatus_Revoked = SigningProfileStatus' "Revoked"

{-# COMPLETE
  SigningProfileStatus_Active,
  SigningProfileStatus_Canceled,
  SigningProfileStatus_Revoked,
  SigningProfileStatus'
  #-}