module Stratosphere.DataZone.UserProfile.IamUserProfileDetailsProperty (
IamUserProfileDetailsProperty(..), mkIamUserProfileDetailsProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data IamUserProfileDetailsProperty
=
IamUserProfileDetailsProperty {IamUserProfileDetailsProperty -> ()
haddock_workaround_ :: (),
IamUserProfileDetailsProperty -> Maybe (Value Text)
arn :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (IamUserProfileDetailsProperty
-> IamUserProfileDetailsProperty -> Bool
(IamUserProfileDetailsProperty
-> IamUserProfileDetailsProperty -> Bool)
-> (IamUserProfileDetailsProperty
-> IamUserProfileDetailsProperty -> Bool)
-> Eq IamUserProfileDetailsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: IamUserProfileDetailsProperty
-> IamUserProfileDetailsProperty -> Bool
== :: IamUserProfileDetailsProperty
-> IamUserProfileDetailsProperty -> Bool
$c/= :: IamUserProfileDetailsProperty
-> IamUserProfileDetailsProperty -> Bool
/= :: IamUserProfileDetailsProperty
-> IamUserProfileDetailsProperty -> Bool
Prelude.Eq, Int -> IamUserProfileDetailsProperty -> ShowS
[IamUserProfileDetailsProperty] -> ShowS
IamUserProfileDetailsProperty -> String
(Int -> IamUserProfileDetailsProperty -> ShowS)
-> (IamUserProfileDetailsProperty -> String)
-> ([IamUserProfileDetailsProperty] -> ShowS)
-> Show IamUserProfileDetailsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> IamUserProfileDetailsProperty -> ShowS
showsPrec :: Int -> IamUserProfileDetailsProperty -> ShowS
$cshow :: IamUserProfileDetailsProperty -> String
show :: IamUserProfileDetailsProperty -> String
$cshowList :: [IamUserProfileDetailsProperty] -> ShowS
showList :: [IamUserProfileDetailsProperty] -> ShowS
Prelude.Show)
mkIamUserProfileDetailsProperty :: IamUserProfileDetailsProperty
mkIamUserProfileDetailsProperty :: IamUserProfileDetailsProperty
mkIamUserProfileDetailsProperty
= IamUserProfileDetailsProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), arn :: Maybe (Value Text)
arn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties IamUserProfileDetailsProperty where
toResourceProperties :: IamUserProfileDetailsProperty -> ResourceProperties
toResourceProperties IamUserProfileDetailsProperty {Maybe (Value Text)
()
haddock_workaround_ :: IamUserProfileDetailsProperty -> ()
arn :: IamUserProfileDetailsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
arn :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::DataZone::UserProfile.IamUserProfileDetails",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Arn" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
arn])}
instance JSON.ToJSON IamUserProfileDetailsProperty where
toJSON :: IamUserProfileDetailsProperty -> Value
toJSON IamUserProfileDetailsProperty {Maybe (Value Text)
()
haddock_workaround_ :: IamUserProfileDetailsProperty -> ()
arn :: IamUserProfileDetailsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
arn :: Maybe (Value Text)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Arn" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
arn]))
instance Property "Arn" IamUserProfileDetailsProperty where
type PropertyType "Arn" IamUserProfileDetailsProperty = Value Prelude.Text
set :: PropertyType "Arn" IamUserProfileDetailsProperty
-> IamUserProfileDetailsProperty -> IamUserProfileDetailsProperty
set PropertyType "Arn" IamUserProfileDetailsProperty
newValue IamUserProfileDetailsProperty {Maybe (Value Text)
()
haddock_workaround_ :: IamUserProfileDetailsProperty -> ()
arn :: IamUserProfileDetailsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
arn :: Maybe (Value Text)
..}
= IamUserProfileDetailsProperty {arn :: Maybe (Value Text)
arn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Arn" IamUserProfileDetailsProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}