{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.AppStream.Types.UserStackAssociationErrorCode
( UserStackAssociationErrorCode
( ..,
UserStackAssociationErrorCode_DIRECTORY_NOT_FOUND,
UserStackAssociationErrorCode_INTERNAL_ERROR,
UserStackAssociationErrorCode_STACK_NOT_FOUND,
UserStackAssociationErrorCode_USER_NAME_NOT_FOUND
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype UserStackAssociationErrorCode = UserStackAssociationErrorCode'
{ UserStackAssociationErrorCode -> Text
fromUserStackAssociationErrorCode ::
Core.Text
}
deriving stock
( Int -> UserStackAssociationErrorCode -> ShowS
[UserStackAssociationErrorCode] -> ShowS
UserStackAssociationErrorCode -> String
(Int -> UserStackAssociationErrorCode -> ShowS)
-> (UserStackAssociationErrorCode -> String)
-> ([UserStackAssociationErrorCode] -> ShowS)
-> Show UserStackAssociationErrorCode
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UserStackAssociationErrorCode] -> ShowS
$cshowList :: [UserStackAssociationErrorCode] -> ShowS
show :: UserStackAssociationErrorCode -> String
$cshow :: UserStackAssociationErrorCode -> String
showsPrec :: Int -> UserStackAssociationErrorCode -> ShowS
$cshowsPrec :: Int -> UserStackAssociationErrorCode -> ShowS
Prelude.Show,
ReadPrec [UserStackAssociationErrorCode]
ReadPrec UserStackAssociationErrorCode
Int -> ReadS UserStackAssociationErrorCode
ReadS [UserStackAssociationErrorCode]
(Int -> ReadS UserStackAssociationErrorCode)
-> ReadS [UserStackAssociationErrorCode]
-> ReadPrec UserStackAssociationErrorCode
-> ReadPrec [UserStackAssociationErrorCode]
-> Read UserStackAssociationErrorCode
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UserStackAssociationErrorCode]
$creadListPrec :: ReadPrec [UserStackAssociationErrorCode]
readPrec :: ReadPrec UserStackAssociationErrorCode
$creadPrec :: ReadPrec UserStackAssociationErrorCode
readList :: ReadS [UserStackAssociationErrorCode]
$creadList :: ReadS [UserStackAssociationErrorCode]
readsPrec :: Int -> ReadS UserStackAssociationErrorCode
$creadsPrec :: Int -> ReadS UserStackAssociationErrorCode
Prelude.Read,
UserStackAssociationErrorCode
-> UserStackAssociationErrorCode -> Bool
(UserStackAssociationErrorCode
-> UserStackAssociationErrorCode -> Bool)
-> (UserStackAssociationErrorCode
-> UserStackAssociationErrorCode -> Bool)
-> Eq UserStackAssociationErrorCode
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UserStackAssociationErrorCode
-> UserStackAssociationErrorCode -> Bool
$c/= :: UserStackAssociationErrorCode
-> UserStackAssociationErrorCode -> Bool
== :: UserStackAssociationErrorCode
-> UserStackAssociationErrorCode -> Bool
$c== :: UserStackAssociationErrorCode
-> UserStackAssociationErrorCode -> Bool
Prelude.Eq,
Eq UserStackAssociationErrorCode
Eq UserStackAssociationErrorCode
-> (UserStackAssociationErrorCode
-> UserStackAssociationErrorCode -> Ordering)
-> (UserStackAssociationErrorCode
-> UserStackAssociationErrorCode -> Bool)
-> (UserStackAssociationErrorCode
-> UserStackAssociationErrorCode -> Bool)
-> (UserStackAssociationErrorCode
-> UserStackAssociationErrorCode -> Bool)
-> (UserStackAssociationErrorCode
-> UserStackAssociationErrorCode -> Bool)
-> (UserStackAssociationErrorCode
-> UserStackAssociationErrorCode -> UserStackAssociationErrorCode)
-> (UserStackAssociationErrorCode
-> UserStackAssociationErrorCode -> UserStackAssociationErrorCode)
-> Ord UserStackAssociationErrorCode
UserStackAssociationErrorCode
-> UserStackAssociationErrorCode -> Bool
UserStackAssociationErrorCode
-> UserStackAssociationErrorCode -> Ordering
UserStackAssociationErrorCode
-> UserStackAssociationErrorCode -> UserStackAssociationErrorCode
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 :: UserStackAssociationErrorCode
-> UserStackAssociationErrorCode -> UserStackAssociationErrorCode
$cmin :: UserStackAssociationErrorCode
-> UserStackAssociationErrorCode -> UserStackAssociationErrorCode
max :: UserStackAssociationErrorCode
-> UserStackAssociationErrorCode -> UserStackAssociationErrorCode
$cmax :: UserStackAssociationErrorCode
-> UserStackAssociationErrorCode -> UserStackAssociationErrorCode
>= :: UserStackAssociationErrorCode
-> UserStackAssociationErrorCode -> Bool
$c>= :: UserStackAssociationErrorCode
-> UserStackAssociationErrorCode -> Bool
> :: UserStackAssociationErrorCode
-> UserStackAssociationErrorCode -> Bool
$c> :: UserStackAssociationErrorCode
-> UserStackAssociationErrorCode -> Bool
<= :: UserStackAssociationErrorCode
-> UserStackAssociationErrorCode -> Bool
$c<= :: UserStackAssociationErrorCode
-> UserStackAssociationErrorCode -> Bool
< :: UserStackAssociationErrorCode
-> UserStackAssociationErrorCode -> Bool
$c< :: UserStackAssociationErrorCode
-> UserStackAssociationErrorCode -> Bool
compare :: UserStackAssociationErrorCode
-> UserStackAssociationErrorCode -> Ordering
$ccompare :: UserStackAssociationErrorCode
-> UserStackAssociationErrorCode -> Ordering
$cp1Ord :: Eq UserStackAssociationErrorCode
Prelude.Ord,
(forall x.
UserStackAssociationErrorCode
-> Rep UserStackAssociationErrorCode x)
-> (forall x.
Rep UserStackAssociationErrorCode x
-> UserStackAssociationErrorCode)
-> Generic UserStackAssociationErrorCode
forall x.
Rep UserStackAssociationErrorCode x
-> UserStackAssociationErrorCode
forall x.
UserStackAssociationErrorCode
-> Rep UserStackAssociationErrorCode x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UserStackAssociationErrorCode x
-> UserStackAssociationErrorCode
$cfrom :: forall x.
UserStackAssociationErrorCode
-> Rep UserStackAssociationErrorCode x
Prelude.Generic
)
deriving newtype
( Int -> UserStackAssociationErrorCode -> Int
UserStackAssociationErrorCode -> Int
(Int -> UserStackAssociationErrorCode -> Int)
-> (UserStackAssociationErrorCode -> Int)
-> Hashable UserStackAssociationErrorCode
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: UserStackAssociationErrorCode -> Int
$chash :: UserStackAssociationErrorCode -> Int
hashWithSalt :: Int -> UserStackAssociationErrorCode -> Int
$chashWithSalt :: Int -> UserStackAssociationErrorCode -> Int
Prelude.Hashable,
UserStackAssociationErrorCode -> ()
(UserStackAssociationErrorCode -> ())
-> NFData UserStackAssociationErrorCode
forall a. (a -> ()) -> NFData a
rnf :: UserStackAssociationErrorCode -> ()
$crnf :: UserStackAssociationErrorCode -> ()
Prelude.NFData,
Text -> Either String UserStackAssociationErrorCode
(Text -> Either String UserStackAssociationErrorCode)
-> FromText UserStackAssociationErrorCode
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String UserStackAssociationErrorCode
$cfromText :: Text -> Either String UserStackAssociationErrorCode
Core.FromText,
UserStackAssociationErrorCode -> Text
(UserStackAssociationErrorCode -> Text)
-> ToText UserStackAssociationErrorCode
forall a. (a -> Text) -> ToText a
toText :: UserStackAssociationErrorCode -> Text
$ctoText :: UserStackAssociationErrorCode -> Text
Core.ToText,
UserStackAssociationErrorCode -> ByteString
(UserStackAssociationErrorCode -> ByteString)
-> ToByteString UserStackAssociationErrorCode
forall a. (a -> ByteString) -> ToByteString a
toBS :: UserStackAssociationErrorCode -> ByteString
$ctoBS :: UserStackAssociationErrorCode -> ByteString
Core.ToByteString,
UserStackAssociationErrorCode -> ByteStringBuilder
(UserStackAssociationErrorCode -> ByteStringBuilder)
-> ToLog UserStackAssociationErrorCode
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: UserStackAssociationErrorCode -> ByteStringBuilder
$cbuild :: UserStackAssociationErrorCode -> ByteStringBuilder
Core.ToLog,
HeaderName -> UserStackAssociationErrorCode -> [Header]
(HeaderName -> UserStackAssociationErrorCode -> [Header])
-> ToHeader UserStackAssociationErrorCode
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> UserStackAssociationErrorCode -> [Header]
$ctoHeader :: HeaderName -> UserStackAssociationErrorCode -> [Header]
Core.ToHeader,
UserStackAssociationErrorCode -> QueryString
(UserStackAssociationErrorCode -> QueryString)
-> ToQuery UserStackAssociationErrorCode
forall a. (a -> QueryString) -> ToQuery a
toQuery :: UserStackAssociationErrorCode -> QueryString
$ctoQuery :: UserStackAssociationErrorCode -> QueryString
Core.ToQuery,
Value -> Parser [UserStackAssociationErrorCode]
Value -> Parser UserStackAssociationErrorCode
(Value -> Parser UserStackAssociationErrorCode)
-> (Value -> Parser [UserStackAssociationErrorCode])
-> FromJSON UserStackAssociationErrorCode
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [UserStackAssociationErrorCode]
$cparseJSONList :: Value -> Parser [UserStackAssociationErrorCode]
parseJSON :: Value -> Parser UserStackAssociationErrorCode
$cparseJSON :: Value -> Parser UserStackAssociationErrorCode
Core.FromJSON,
FromJSONKeyFunction [UserStackAssociationErrorCode]
FromJSONKeyFunction UserStackAssociationErrorCode
FromJSONKeyFunction UserStackAssociationErrorCode
-> FromJSONKeyFunction [UserStackAssociationErrorCode]
-> FromJSONKey UserStackAssociationErrorCode
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [UserStackAssociationErrorCode]
$cfromJSONKeyList :: FromJSONKeyFunction [UserStackAssociationErrorCode]
fromJSONKey :: FromJSONKeyFunction UserStackAssociationErrorCode
$cfromJSONKey :: FromJSONKeyFunction UserStackAssociationErrorCode
Core.FromJSONKey,
[UserStackAssociationErrorCode] -> Encoding
[UserStackAssociationErrorCode] -> Value
UserStackAssociationErrorCode -> Encoding
UserStackAssociationErrorCode -> Value
(UserStackAssociationErrorCode -> Value)
-> (UserStackAssociationErrorCode -> Encoding)
-> ([UserStackAssociationErrorCode] -> Value)
-> ([UserStackAssociationErrorCode] -> Encoding)
-> ToJSON UserStackAssociationErrorCode
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [UserStackAssociationErrorCode] -> Encoding
$ctoEncodingList :: [UserStackAssociationErrorCode] -> Encoding
toJSONList :: [UserStackAssociationErrorCode] -> Value
$ctoJSONList :: [UserStackAssociationErrorCode] -> Value
toEncoding :: UserStackAssociationErrorCode -> Encoding
$ctoEncoding :: UserStackAssociationErrorCode -> Encoding
toJSON :: UserStackAssociationErrorCode -> Value
$ctoJSON :: UserStackAssociationErrorCode -> Value
Core.ToJSON,
ToJSONKeyFunction [UserStackAssociationErrorCode]
ToJSONKeyFunction UserStackAssociationErrorCode
ToJSONKeyFunction UserStackAssociationErrorCode
-> ToJSONKeyFunction [UserStackAssociationErrorCode]
-> ToJSONKey UserStackAssociationErrorCode
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [UserStackAssociationErrorCode]
$ctoJSONKeyList :: ToJSONKeyFunction [UserStackAssociationErrorCode]
toJSONKey :: ToJSONKeyFunction UserStackAssociationErrorCode
$ctoJSONKey :: ToJSONKeyFunction UserStackAssociationErrorCode
Core.ToJSONKey,
[Node] -> Either String UserStackAssociationErrorCode
([Node] -> Either String UserStackAssociationErrorCode)
-> FromXML UserStackAssociationErrorCode
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String UserStackAssociationErrorCode
$cparseXML :: [Node] -> Either String UserStackAssociationErrorCode
Core.FromXML,
UserStackAssociationErrorCode -> XML
(UserStackAssociationErrorCode -> XML)
-> ToXML UserStackAssociationErrorCode
forall a. (a -> XML) -> ToXML a
toXML :: UserStackAssociationErrorCode -> XML
$ctoXML :: UserStackAssociationErrorCode -> XML
Core.ToXML
)
pattern UserStackAssociationErrorCode_DIRECTORY_NOT_FOUND :: UserStackAssociationErrorCode
pattern $bUserStackAssociationErrorCode_DIRECTORY_NOT_FOUND :: UserStackAssociationErrorCode
$mUserStackAssociationErrorCode_DIRECTORY_NOT_FOUND :: forall r.
UserStackAssociationErrorCode -> (Void# -> r) -> (Void# -> r) -> r
UserStackAssociationErrorCode_DIRECTORY_NOT_FOUND = UserStackAssociationErrorCode' "DIRECTORY_NOT_FOUND"
pattern UserStackAssociationErrorCode_INTERNAL_ERROR :: UserStackAssociationErrorCode
pattern $bUserStackAssociationErrorCode_INTERNAL_ERROR :: UserStackAssociationErrorCode
$mUserStackAssociationErrorCode_INTERNAL_ERROR :: forall r.
UserStackAssociationErrorCode -> (Void# -> r) -> (Void# -> r) -> r
UserStackAssociationErrorCode_INTERNAL_ERROR = UserStackAssociationErrorCode' "INTERNAL_ERROR"
pattern UserStackAssociationErrorCode_STACK_NOT_FOUND :: UserStackAssociationErrorCode
pattern $bUserStackAssociationErrorCode_STACK_NOT_FOUND :: UserStackAssociationErrorCode
$mUserStackAssociationErrorCode_STACK_NOT_FOUND :: forall r.
UserStackAssociationErrorCode -> (Void# -> r) -> (Void# -> r) -> r
UserStackAssociationErrorCode_STACK_NOT_FOUND = UserStackAssociationErrorCode' "STACK_NOT_FOUND"
pattern UserStackAssociationErrorCode_USER_NAME_NOT_FOUND :: UserStackAssociationErrorCode
pattern $bUserStackAssociationErrorCode_USER_NAME_NOT_FOUND :: UserStackAssociationErrorCode
$mUserStackAssociationErrorCode_USER_NAME_NOT_FOUND :: forall r.
UserStackAssociationErrorCode -> (Void# -> r) -> (Void# -> r) -> r
UserStackAssociationErrorCode_USER_NAME_NOT_FOUND = UserStackAssociationErrorCode' "USER_NAME_NOT_FOUND"
{-# COMPLETE
UserStackAssociationErrorCode_DIRECTORY_NOT_FOUND,
UserStackAssociationErrorCode_INTERNAL_ERROR,
UserStackAssociationErrorCode_STACK_NOT_FOUND,
UserStackAssociationErrorCode_USER_NAME_NOT_FOUND,
UserStackAssociationErrorCode'
#-}