{-# 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.FSx.Types.LustreDeploymentType
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.FSx.Types.LustreDeploymentType
  ( LustreDeploymentType
      ( ..,
        LustreDeploymentType_PERSISTENT_1,
        LustreDeploymentType_PERSISTENT_2,
        LustreDeploymentType_SCRATCH_1,
        LustreDeploymentType_SCRATCH_2
      ),
  )
where

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

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

pattern LustreDeploymentType_PERSISTENT_1 :: LustreDeploymentType
pattern $bLustreDeploymentType_PERSISTENT_1 :: LustreDeploymentType
$mLustreDeploymentType_PERSISTENT_1 :: forall {r}.
LustreDeploymentType -> ((# #) -> r) -> ((# #) -> r) -> r
LustreDeploymentType_PERSISTENT_1 = LustreDeploymentType' "PERSISTENT_1"

pattern LustreDeploymentType_PERSISTENT_2 :: LustreDeploymentType
pattern $bLustreDeploymentType_PERSISTENT_2 :: LustreDeploymentType
$mLustreDeploymentType_PERSISTENT_2 :: forall {r}.
LustreDeploymentType -> ((# #) -> r) -> ((# #) -> r) -> r
LustreDeploymentType_PERSISTENT_2 = LustreDeploymentType' "PERSISTENT_2"

pattern LustreDeploymentType_SCRATCH_1 :: LustreDeploymentType
pattern $bLustreDeploymentType_SCRATCH_1 :: LustreDeploymentType
$mLustreDeploymentType_SCRATCH_1 :: forall {r}.
LustreDeploymentType -> ((# #) -> r) -> ((# #) -> r) -> r
LustreDeploymentType_SCRATCH_1 = LustreDeploymentType' "SCRATCH_1"

pattern LustreDeploymentType_SCRATCH_2 :: LustreDeploymentType
pattern $bLustreDeploymentType_SCRATCH_2 :: LustreDeploymentType
$mLustreDeploymentType_SCRATCH_2 :: forall {r}.
LustreDeploymentType -> ((# #) -> r) -> ((# #) -> r) -> r
LustreDeploymentType_SCRATCH_2 = LustreDeploymentType' "SCRATCH_2"

{-# COMPLETE
  LustreDeploymentType_PERSISTENT_1,
  LustreDeploymentType_PERSISTENT_2,
  LustreDeploymentType_SCRATCH_1,
  LustreDeploymentType_SCRATCH_2,
  LustreDeploymentType'
  #-}