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

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

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

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

{-# COMPLETE
  ServiceActionDefinitionType_SSM_AUTOMATION,
  ServiceActionDefinitionType'
  #-}