{-# 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.XRay.Types.EncryptionStatus
-- 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.XRay.Types.EncryptionStatus
  ( EncryptionStatus
      ( ..,
        EncryptionStatus_ACTIVE,
        EncryptionStatus_UPDATING
      ),
  )
where

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

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

pattern EncryptionStatus_ACTIVE :: EncryptionStatus
pattern $bEncryptionStatus_ACTIVE :: EncryptionStatus
$mEncryptionStatus_ACTIVE :: forall r. EncryptionStatus -> (Void# -> r) -> (Void# -> r) -> r
EncryptionStatus_ACTIVE = EncryptionStatus' "ACTIVE"

pattern EncryptionStatus_UPDATING :: EncryptionStatus
pattern $bEncryptionStatus_UPDATING :: EncryptionStatus
$mEncryptionStatus_UPDATING :: forall r. EncryptionStatus -> (Void# -> r) -> (Void# -> r) -> r
EncryptionStatus_UPDATING = EncryptionStatus' "UPDATING"

{-# COMPLETE
  EncryptionStatus_ACTIVE,
  EncryptionStatus_UPDATING,
  EncryptionStatus'
  #-}