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