{-# 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.SMS.Types.ScriptType
-- 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.SMS.Types.ScriptType
  ( ScriptType
      ( ..,
        ScriptType_POWERSHELL_SCRIPT,
        ScriptType_SHELL_SCRIPT
      ),
  )
where

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

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

pattern ScriptType_POWERSHELL_SCRIPT :: ScriptType
pattern $bScriptType_POWERSHELL_SCRIPT :: ScriptType
$mScriptType_POWERSHELL_SCRIPT :: forall {r}. ScriptType -> ((# #) -> r) -> ((# #) -> r) -> r
ScriptType_POWERSHELL_SCRIPT = ScriptType' "POWERSHELL_SCRIPT"

pattern ScriptType_SHELL_SCRIPT :: ScriptType
pattern $bScriptType_SHELL_SCRIPT :: ScriptType
$mScriptType_SHELL_SCRIPT :: forall {r}. ScriptType -> ((# #) -> r) -> ((# #) -> r) -> r
ScriptType_SHELL_SCRIPT = ScriptType' "SHELL_SCRIPT"

{-# COMPLETE
  ScriptType_POWERSHELL_SCRIPT,
  ScriptType_SHELL_SCRIPT,
  ScriptType'
  #-}