{-# 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.IoTThingsGraph.Types.NamespaceDeletionStatusErrorCodes
-- 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.IoTThingsGraph.Types.NamespaceDeletionStatusErrorCodes
  ( NamespaceDeletionStatusErrorCodes
      ( ..,
        NamespaceDeletionStatusErrorCodes_VALIDATION_FAILED
      ),
  )
where

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

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

pattern NamespaceDeletionStatusErrorCodes_VALIDATION_FAILED :: NamespaceDeletionStatusErrorCodes
pattern $bNamespaceDeletionStatusErrorCodes_VALIDATION_FAILED :: NamespaceDeletionStatusErrorCodes
$mNamespaceDeletionStatusErrorCodes_VALIDATION_FAILED :: forall r.
NamespaceDeletionStatusErrorCodes
-> (Void# -> r) -> (Void# -> r) -> r
NamespaceDeletionStatusErrorCodes_VALIDATION_FAILED = NamespaceDeletionStatusErrorCodes' "VALIDATION_FAILED"

{-# COMPLETE
  NamespaceDeletionStatusErrorCodes_VALIDATION_FAILED,
  NamespaceDeletionStatusErrorCodes'
  #-}