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