{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.ServiceCatalog.Types.ServiceActionDefinitionKey
( ServiceActionDefinitionKey
( ..,
ServiceActionDefinitionKey_AssumeRole,
ServiceActionDefinitionKey_Name,
ServiceActionDefinitionKey_Parameters,
ServiceActionDefinitionKey_Version
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype ServiceActionDefinitionKey = ServiceActionDefinitionKey'
{ ServiceActionDefinitionKey -> Text
fromServiceActionDefinitionKey ::
Core.Text
}
deriving stock
( Int -> ServiceActionDefinitionKey -> ShowS
[ServiceActionDefinitionKey] -> ShowS
ServiceActionDefinitionKey -> String
(Int -> ServiceActionDefinitionKey -> ShowS)
-> (ServiceActionDefinitionKey -> String)
-> ([ServiceActionDefinitionKey] -> ShowS)
-> Show ServiceActionDefinitionKey
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]
(Int -> ReadS ServiceActionDefinitionKey)
-> ReadS [ServiceActionDefinitionKey]
-> ReadPrec ServiceActionDefinitionKey
-> ReadPrec [ServiceActionDefinitionKey]
-> Read 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
(ServiceActionDefinitionKey -> ServiceActionDefinitionKey -> Bool)
-> (ServiceActionDefinitionKey
-> ServiceActionDefinitionKey -> Bool)
-> Eq ServiceActionDefinitionKey
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
Eq ServiceActionDefinitionKey
-> (ServiceActionDefinitionKey
-> ServiceActionDefinitionKey -> Ordering)
-> (ServiceActionDefinitionKey
-> ServiceActionDefinitionKey -> Bool)
-> (ServiceActionDefinitionKey
-> ServiceActionDefinitionKey -> Bool)
-> (ServiceActionDefinitionKey
-> ServiceActionDefinitionKey -> Bool)
-> (ServiceActionDefinitionKey
-> ServiceActionDefinitionKey -> Bool)
-> (ServiceActionDefinitionKey
-> ServiceActionDefinitionKey -> ServiceActionDefinitionKey)
-> (ServiceActionDefinitionKey
-> ServiceActionDefinitionKey -> ServiceActionDefinitionKey)
-> Ord 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
$cp1Ord :: Eq ServiceActionDefinitionKey
Prelude.Ord,
(forall x.
ServiceActionDefinitionKey -> Rep ServiceActionDefinitionKey x)
-> (forall x.
Rep ServiceActionDefinitionKey x -> ServiceActionDefinitionKey)
-> Generic ServiceActionDefinitionKey
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
( Int -> ServiceActionDefinitionKey -> Int
ServiceActionDefinitionKey -> Int
(Int -> ServiceActionDefinitionKey -> Int)
-> (ServiceActionDefinitionKey -> Int)
-> Hashable ServiceActionDefinitionKey
forall 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 -> ()
(ServiceActionDefinitionKey -> ())
-> NFData ServiceActionDefinitionKey
forall a. (a -> ()) -> NFData a
rnf :: ServiceActionDefinitionKey -> ()
$crnf :: ServiceActionDefinitionKey -> ()
Prelude.NFData,
Text -> Either String ServiceActionDefinitionKey
(Text -> Either String ServiceActionDefinitionKey)
-> FromText ServiceActionDefinitionKey
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ServiceActionDefinitionKey
$cfromText :: Text -> Either String ServiceActionDefinitionKey
Core.FromText,
ServiceActionDefinitionKey -> Text
(ServiceActionDefinitionKey -> Text)
-> ToText ServiceActionDefinitionKey
forall a. (a -> Text) -> ToText a
toText :: ServiceActionDefinitionKey -> Text
$ctoText :: ServiceActionDefinitionKey -> Text
Core.ToText,
ServiceActionDefinitionKey -> ByteString
(ServiceActionDefinitionKey -> ByteString)
-> ToByteString ServiceActionDefinitionKey
forall a. (a -> ByteString) -> ToByteString a
toBS :: ServiceActionDefinitionKey -> ByteString
$ctoBS :: ServiceActionDefinitionKey -> ByteString
Core.ToByteString,
ServiceActionDefinitionKey -> ByteStringBuilder
(ServiceActionDefinitionKey -> ByteStringBuilder)
-> ToLog ServiceActionDefinitionKey
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ServiceActionDefinitionKey -> ByteStringBuilder
$cbuild :: ServiceActionDefinitionKey -> ByteStringBuilder
Core.ToLog,
HeaderName -> ServiceActionDefinitionKey -> [Header]
(HeaderName -> ServiceActionDefinitionKey -> [Header])
-> ToHeader ServiceActionDefinitionKey
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ServiceActionDefinitionKey -> [Header]
$ctoHeader :: HeaderName -> ServiceActionDefinitionKey -> [Header]
Core.ToHeader,
ServiceActionDefinitionKey -> QueryString
(ServiceActionDefinitionKey -> QueryString)
-> ToQuery ServiceActionDefinitionKey
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ServiceActionDefinitionKey -> QueryString
$ctoQuery :: ServiceActionDefinitionKey -> QueryString
Core.ToQuery,
Value -> Parser [ServiceActionDefinitionKey]
Value -> Parser ServiceActionDefinitionKey
(Value -> Parser ServiceActionDefinitionKey)
-> (Value -> Parser [ServiceActionDefinitionKey])
-> FromJSON 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
Core.FromJSON,
FromJSONKeyFunction [ServiceActionDefinitionKey]
FromJSONKeyFunction ServiceActionDefinitionKey
FromJSONKeyFunction ServiceActionDefinitionKey
-> FromJSONKeyFunction [ServiceActionDefinitionKey]
-> FromJSONKey ServiceActionDefinitionKey
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ServiceActionDefinitionKey]
$cfromJSONKeyList :: FromJSONKeyFunction [ServiceActionDefinitionKey]
fromJSONKey :: FromJSONKeyFunction ServiceActionDefinitionKey
$cfromJSONKey :: FromJSONKeyFunction ServiceActionDefinitionKey
Core.FromJSONKey,
[ServiceActionDefinitionKey] -> Encoding
[ServiceActionDefinitionKey] -> Value
ServiceActionDefinitionKey -> Encoding
ServiceActionDefinitionKey -> Value
(ServiceActionDefinitionKey -> Value)
-> (ServiceActionDefinitionKey -> Encoding)
-> ([ServiceActionDefinitionKey] -> Value)
-> ([ServiceActionDefinitionKey] -> Encoding)
-> ToJSON ServiceActionDefinitionKey
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
Core.ToJSON,
ToJSONKeyFunction [ServiceActionDefinitionKey]
ToJSONKeyFunction ServiceActionDefinitionKey
ToJSONKeyFunction ServiceActionDefinitionKey
-> ToJSONKeyFunction [ServiceActionDefinitionKey]
-> ToJSONKey ServiceActionDefinitionKey
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ServiceActionDefinitionKey]
$ctoJSONKeyList :: ToJSONKeyFunction [ServiceActionDefinitionKey]
toJSONKey :: ToJSONKeyFunction ServiceActionDefinitionKey
$ctoJSONKey :: ToJSONKeyFunction ServiceActionDefinitionKey
Core.ToJSONKey,
[Node] -> Either String ServiceActionDefinitionKey
([Node] -> Either String ServiceActionDefinitionKey)
-> FromXML ServiceActionDefinitionKey
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ServiceActionDefinitionKey
$cparseXML :: [Node] -> Either String ServiceActionDefinitionKey
Core.FromXML,
ServiceActionDefinitionKey -> XML
(ServiceActionDefinitionKey -> XML)
-> ToXML ServiceActionDefinitionKey
forall a. (a -> XML) -> ToXML a
toXML :: ServiceActionDefinitionKey -> XML
$ctoXML :: ServiceActionDefinitionKey -> XML
Core.ToXML
)
pattern ServiceActionDefinitionKey_AssumeRole :: ServiceActionDefinitionKey
pattern $bServiceActionDefinitionKey_AssumeRole :: ServiceActionDefinitionKey
$mServiceActionDefinitionKey_AssumeRole :: forall r.
ServiceActionDefinitionKey -> (Void# -> r) -> (Void# -> r) -> r
ServiceActionDefinitionKey_AssumeRole = ServiceActionDefinitionKey' "AssumeRole"
pattern ServiceActionDefinitionKey_Name :: ServiceActionDefinitionKey
pattern $bServiceActionDefinitionKey_Name :: ServiceActionDefinitionKey
$mServiceActionDefinitionKey_Name :: forall r.
ServiceActionDefinitionKey -> (Void# -> r) -> (Void# -> r) -> r
ServiceActionDefinitionKey_Name = ServiceActionDefinitionKey' "Name"
pattern ServiceActionDefinitionKey_Parameters :: ServiceActionDefinitionKey
pattern $bServiceActionDefinitionKey_Parameters :: ServiceActionDefinitionKey
$mServiceActionDefinitionKey_Parameters :: forall r.
ServiceActionDefinitionKey -> (Void# -> r) -> (Void# -> r) -> r
ServiceActionDefinitionKey_Parameters = ServiceActionDefinitionKey' "Parameters"
pattern ServiceActionDefinitionKey_Version :: ServiceActionDefinitionKey
pattern $bServiceActionDefinitionKey_Version :: ServiceActionDefinitionKey
$mServiceActionDefinitionKey_Version :: forall r.
ServiceActionDefinitionKey -> (Void# -> r) -> (Void# -> r) -> r
ServiceActionDefinitionKey_Version = ServiceActionDefinitionKey' "Version"
{-# COMPLETE
ServiceActionDefinitionKey_AssumeRole,
ServiceActionDefinitionKey_Name,
ServiceActionDefinitionKey_Parameters,
ServiceActionDefinitionKey_Version,
ServiceActionDefinitionKey'
#-}