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

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

newtype ScriptType = ScriptType'
  { ScriptType -> Text
fromScriptType ::
      Core.Text
  }
  deriving stock
    ( Int -> ScriptType -> ShowS
[ScriptType] -> ShowS
ScriptType -> String
(Int -> ScriptType -> ShowS)
-> (ScriptType -> String)
-> ([ScriptType] -> ShowS)
-> Show ScriptType
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]
(Int -> ReadS ScriptType)
-> ReadS [ScriptType]
-> ReadPrec ScriptType
-> ReadPrec [ScriptType]
-> Read 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
(ScriptType -> ScriptType -> Bool)
-> (ScriptType -> ScriptType -> Bool) -> Eq ScriptType
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
Eq ScriptType
-> (ScriptType -> ScriptType -> Ordering)
-> (ScriptType -> ScriptType -> Bool)
-> (ScriptType -> ScriptType -> Bool)
-> (ScriptType -> ScriptType -> Bool)
-> (ScriptType -> ScriptType -> Bool)
-> (ScriptType -> ScriptType -> ScriptType)
-> (ScriptType -> ScriptType -> ScriptType)
-> Ord 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
$cp1Ord :: Eq ScriptType
Prelude.Ord,
      (forall x. ScriptType -> Rep ScriptType x)
-> (forall x. Rep ScriptType x -> ScriptType) -> Generic ScriptType
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
    ( Int -> ScriptType -> Int
ScriptType -> Int
(Int -> ScriptType -> Int)
-> (ScriptType -> Int) -> Hashable ScriptType
forall 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 -> ()
(ScriptType -> ()) -> NFData ScriptType
forall a. (a -> ()) -> NFData a
rnf :: ScriptType -> ()
$crnf :: ScriptType -> ()
Prelude.NFData,
      Text -> Either String ScriptType
(Text -> Either String ScriptType) -> FromText ScriptType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ScriptType
$cfromText :: Text -> Either String ScriptType
Core.FromText,
      ScriptType -> Text
(ScriptType -> Text) -> ToText ScriptType
forall a. (a -> Text) -> ToText a
toText :: ScriptType -> Text
$ctoText :: ScriptType -> Text
Core.ToText,
      ScriptType -> ByteString
(ScriptType -> ByteString) -> ToByteString ScriptType
forall a. (a -> ByteString) -> ToByteString a
toBS :: ScriptType -> ByteString
$ctoBS :: ScriptType -> ByteString
Core.ToByteString,
      ScriptType -> ByteStringBuilder
(ScriptType -> ByteStringBuilder) -> ToLog ScriptType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ScriptType -> ByteStringBuilder
$cbuild :: ScriptType -> ByteStringBuilder
Core.ToLog,
      HeaderName -> ScriptType -> [Header]
(HeaderName -> ScriptType -> [Header]) -> ToHeader ScriptType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ScriptType -> [Header]
$ctoHeader :: HeaderName -> ScriptType -> [Header]
Core.ToHeader,
      ScriptType -> QueryString
(ScriptType -> QueryString) -> ToQuery ScriptType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ScriptType -> QueryString
$ctoQuery :: ScriptType -> QueryString
Core.ToQuery,
      Value -> Parser [ScriptType]
Value -> Parser ScriptType
(Value -> Parser ScriptType)
-> (Value -> Parser [ScriptType]) -> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [ScriptType]
FromJSONKeyFunction ScriptType
FromJSONKeyFunction ScriptType
-> FromJSONKeyFunction [ScriptType] -> FromJSONKey ScriptType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ScriptType]
$cfromJSONKeyList :: FromJSONKeyFunction [ScriptType]
fromJSONKey :: FromJSONKeyFunction ScriptType
$cfromJSONKey :: FromJSONKeyFunction ScriptType
Core.FromJSONKey,
      [ScriptType] -> Encoding
[ScriptType] -> Value
ScriptType -> Encoding
ScriptType -> Value
(ScriptType -> Value)
-> (ScriptType -> Encoding)
-> ([ScriptType] -> Value)
-> ([ScriptType] -> Encoding)
-> ToJSON ScriptType
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
Core.ToJSON,
      ToJSONKeyFunction [ScriptType]
ToJSONKeyFunction ScriptType
ToJSONKeyFunction ScriptType
-> ToJSONKeyFunction [ScriptType] -> ToJSONKey ScriptType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ScriptType]
$ctoJSONKeyList :: ToJSONKeyFunction [ScriptType]
toJSONKey :: ToJSONKeyFunction ScriptType
$ctoJSONKey :: ToJSONKeyFunction ScriptType
Core.ToJSONKey,
      [Node] -> Either String ScriptType
([Node] -> Either String ScriptType) -> FromXML ScriptType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ScriptType
$cparseXML :: [Node] -> Either String ScriptType
Core.FromXML,
      ScriptType -> XML
(ScriptType -> XML) -> ToXML ScriptType
forall a. (a -> XML) -> ToXML a
toXML :: ScriptType -> XML
$ctoXML :: ScriptType -> XML
Core.ToXML
    )

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

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

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