{-# 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.ServiceCatalog.Types.ServiceActionDefinitionType
-- 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.ServiceCatalog.Types.ServiceActionDefinitionType
  ( ServiceActionDefinitionType
      ( ..,
        ServiceActionDefinitionType_SSM_AUTOMATION
      ),
  )
where

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

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

pattern ServiceActionDefinitionType_SSM_AUTOMATION :: ServiceActionDefinitionType
pattern $bServiceActionDefinitionType_SSM_AUTOMATION :: ServiceActionDefinitionType
$mServiceActionDefinitionType_SSM_AUTOMATION :: forall {r}.
ServiceActionDefinitionType -> ((# #) -> r) -> ((# #) -> r) -> r
ServiceActionDefinitionType_SSM_AUTOMATION = ServiceActionDefinitionType' "SSM_AUTOMATION"

{-# COMPLETE
  ServiceActionDefinitionType_SSM_AUTOMATION,
  ServiceActionDefinitionType'
  #-}