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