{-# 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.ServiceActionDefinitionKey
-- 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.ServiceActionDefinitionKey
  ( ServiceActionDefinitionKey
      ( ..,
        ServiceActionDefinitionKey_AssumeRole,
        ServiceActionDefinitionKey_Name,
        ServiceActionDefinitionKey_Parameters,
        ServiceActionDefinitionKey_Version
      ),
  )
where

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

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

pattern ServiceActionDefinitionKey_AssumeRole :: ServiceActionDefinitionKey
pattern $bServiceActionDefinitionKey_AssumeRole :: ServiceActionDefinitionKey
$mServiceActionDefinitionKey_AssumeRole :: forall {r}.
ServiceActionDefinitionKey -> ((# #) -> r) -> ((# #) -> r) -> r
ServiceActionDefinitionKey_AssumeRole = ServiceActionDefinitionKey' "AssumeRole"

pattern ServiceActionDefinitionKey_Name :: ServiceActionDefinitionKey
pattern $bServiceActionDefinitionKey_Name :: ServiceActionDefinitionKey
$mServiceActionDefinitionKey_Name :: forall {r}.
ServiceActionDefinitionKey -> ((# #) -> r) -> ((# #) -> r) -> r
ServiceActionDefinitionKey_Name = ServiceActionDefinitionKey' "Name"

pattern ServiceActionDefinitionKey_Parameters :: ServiceActionDefinitionKey
pattern $bServiceActionDefinitionKey_Parameters :: ServiceActionDefinitionKey
$mServiceActionDefinitionKey_Parameters :: forall {r}.
ServiceActionDefinitionKey -> ((# #) -> r) -> ((# #) -> r) -> r
ServiceActionDefinitionKey_Parameters = ServiceActionDefinitionKey' "Parameters"

pattern ServiceActionDefinitionKey_Version :: ServiceActionDefinitionKey
pattern $bServiceActionDefinitionKey_Version :: ServiceActionDefinitionKey
$mServiceActionDefinitionKey_Version :: forall {r}.
ServiceActionDefinitionKey -> ((# #) -> r) -> ((# #) -> r) -> r
ServiceActionDefinitionKey_Version = ServiceActionDefinitionKey' "Version"

{-# COMPLETE
  ServiceActionDefinitionKey_AssumeRole,
  ServiceActionDefinitionKey_Name,
  ServiceActionDefinitionKey_Parameters,
  ServiceActionDefinitionKey_Version,
  ServiceActionDefinitionKey'
  #-}