{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.CertificateManagerPCA.Types.ActionType
( ActionType
( ..,
ActionType_GetCertificate,
ActionType_IssueCertificate,
ActionType_ListPermissions
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
newtype ActionType = ActionType'
{ ActionType -> Text
fromActionType ::
Data.Text
}
deriving stock
( Int -> ActionType -> ShowS
[ActionType] -> ShowS
ActionType -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ActionType] -> ShowS
$cshowList :: [ActionType] -> ShowS
show :: ActionType -> String
$cshow :: ActionType -> String
showsPrec :: Int -> ActionType -> ShowS
$cshowsPrec :: Int -> ActionType -> ShowS
Prelude.Show,
ReadPrec [ActionType]
ReadPrec ActionType
Int -> ReadS ActionType
ReadS [ActionType]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ActionType]
$creadListPrec :: ReadPrec [ActionType]
readPrec :: ReadPrec ActionType
$creadPrec :: ReadPrec ActionType
readList :: ReadS [ActionType]
$creadList :: ReadS [ActionType]
readsPrec :: Int -> ReadS ActionType
$creadsPrec :: Int -> ReadS ActionType
Prelude.Read,
ActionType -> ActionType -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ActionType -> ActionType -> Bool
$c/= :: ActionType -> ActionType -> Bool
== :: ActionType -> ActionType -> Bool
$c== :: ActionType -> ActionType -> Bool
Prelude.Eq,
Eq ActionType
ActionType -> ActionType -> Bool
ActionType -> ActionType -> Ordering
ActionType -> ActionType -> ActionType
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 :: ActionType -> ActionType -> ActionType
$cmin :: ActionType -> ActionType -> ActionType
max :: ActionType -> ActionType -> ActionType
$cmax :: ActionType -> ActionType -> ActionType
>= :: ActionType -> ActionType -> Bool
$c>= :: ActionType -> ActionType -> Bool
> :: ActionType -> ActionType -> Bool
$c> :: ActionType -> ActionType -> Bool
<= :: ActionType -> ActionType -> Bool
$c<= :: ActionType -> ActionType -> Bool
< :: ActionType -> ActionType -> Bool
$c< :: ActionType -> ActionType -> Bool
compare :: ActionType -> ActionType -> Ordering
$ccompare :: ActionType -> ActionType -> Ordering
Prelude.Ord,
forall x. Rep ActionType x -> ActionType
forall x. ActionType -> Rep ActionType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ActionType x -> ActionType
$cfrom :: forall x. ActionType -> Rep ActionType x
Prelude.Generic
)
deriving newtype
( Eq ActionType
Int -> ActionType -> Int
ActionType -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ActionType -> Int
$chash :: ActionType -> Int
hashWithSalt :: Int -> ActionType -> Int
$chashWithSalt :: Int -> ActionType -> Int
Prelude.Hashable,
ActionType -> ()
forall a. (a -> ()) -> NFData a
rnf :: ActionType -> ()
$crnf :: ActionType -> ()
Prelude.NFData,
Text -> Either String ActionType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ActionType
$cfromText :: Text -> Either String ActionType
Data.FromText,
ActionType -> Text
forall a. (a -> Text) -> ToText a
toText :: ActionType -> Text
$ctoText :: ActionType -> Text
Data.ToText,
ActionType -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: ActionType -> ByteString
$ctoBS :: ActionType -> ByteString
Data.ToByteString,
ActionType -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ActionType -> ByteStringBuilder
$cbuild :: ActionType -> ByteStringBuilder
Data.ToLog,
HeaderName -> ActionType -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ActionType -> [Header]
$ctoHeader :: HeaderName -> ActionType -> [Header]
Data.ToHeader,
ActionType -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ActionType -> QueryString
$ctoQuery :: ActionType -> QueryString
Data.ToQuery,
Value -> Parser [ActionType]
Value -> Parser ActionType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ActionType]
$cparseJSONList :: Value -> Parser [ActionType]
parseJSON :: Value -> Parser ActionType
$cparseJSON :: Value -> Parser ActionType
Data.FromJSON,
FromJSONKeyFunction [ActionType]
FromJSONKeyFunction ActionType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ActionType]
$cfromJSONKeyList :: FromJSONKeyFunction [ActionType]
fromJSONKey :: FromJSONKeyFunction ActionType
$cfromJSONKey :: FromJSONKeyFunction ActionType
Data.FromJSONKey,
[ActionType] -> Encoding
[ActionType] -> Value
ActionType -> Encoding
ActionType -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ActionType] -> Encoding
$ctoEncodingList :: [ActionType] -> Encoding
toJSONList :: [ActionType] -> Value
$ctoJSONList :: [ActionType] -> Value
toEncoding :: ActionType -> Encoding
$ctoEncoding :: ActionType -> Encoding
toJSON :: ActionType -> Value
$ctoJSON :: ActionType -> Value
Data.ToJSON,
ToJSONKeyFunction [ActionType]
ToJSONKeyFunction ActionType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ActionType]
$ctoJSONKeyList :: ToJSONKeyFunction [ActionType]
toJSONKey :: ToJSONKeyFunction ActionType
$ctoJSONKey :: ToJSONKeyFunction ActionType
Data.ToJSONKey,
[Node] -> Either String ActionType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ActionType
$cparseXML :: [Node] -> Either String ActionType
Data.FromXML,
ActionType -> XML
forall a. (a -> XML) -> ToXML a
toXML :: ActionType -> XML
$ctoXML :: ActionType -> XML
Data.ToXML
)
pattern ActionType_GetCertificate :: ActionType
pattern $bActionType_GetCertificate :: ActionType
$mActionType_GetCertificate :: forall {r}. ActionType -> ((# #) -> r) -> ((# #) -> r) -> r
ActionType_GetCertificate = ActionType' "GetCertificate"
pattern ActionType_IssueCertificate :: ActionType
pattern $bActionType_IssueCertificate :: ActionType
$mActionType_IssueCertificate :: forall {r}. ActionType -> ((# #) -> r) -> ((# #) -> r) -> r
ActionType_IssueCertificate = ActionType' "IssueCertificate"
pattern ActionType_ListPermissions :: ActionType
pattern $bActionType_ListPermissions :: ActionType
$mActionType_ListPermissions :: forall {r}. ActionType -> ((# #) -> r) -> ((# #) -> r) -> r
ActionType_ListPermissions = ActionType' "ListPermissions"
{-# COMPLETE
ActionType_GetCertificate,
ActionType_IssueCertificate,
ActionType_ListPermissions,
ActionType'
#-}