module Stratosphere.Connect.UserHierarchyStructure (
module Exports, UserHierarchyStructure(..),
mkUserHierarchyStructure
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Connect.UserHierarchyStructure.UserHierarchyStructureProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data UserHierarchyStructure
=
UserHierarchyStructure {UserHierarchyStructure -> ()
haddock_workaround_ :: (),
UserHierarchyStructure -> Value Text
instanceArn :: (Value Prelude.Text),
UserHierarchyStructure -> Maybe UserHierarchyStructureProperty
userHierarchyStructure :: (Prelude.Maybe UserHierarchyStructureProperty)}
deriving stock (UserHierarchyStructure -> UserHierarchyStructure -> Bool
(UserHierarchyStructure -> UserHierarchyStructure -> Bool)
-> (UserHierarchyStructure -> UserHierarchyStructure -> Bool)
-> Eq UserHierarchyStructure
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: UserHierarchyStructure -> UserHierarchyStructure -> Bool
== :: UserHierarchyStructure -> UserHierarchyStructure -> Bool
$c/= :: UserHierarchyStructure -> UserHierarchyStructure -> Bool
/= :: UserHierarchyStructure -> UserHierarchyStructure -> Bool
Prelude.Eq, Int -> UserHierarchyStructure -> ShowS
[UserHierarchyStructure] -> ShowS
UserHierarchyStructure -> String
(Int -> UserHierarchyStructure -> ShowS)
-> (UserHierarchyStructure -> String)
-> ([UserHierarchyStructure] -> ShowS)
-> Show UserHierarchyStructure
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> UserHierarchyStructure -> ShowS
showsPrec :: Int -> UserHierarchyStructure -> ShowS
$cshow :: UserHierarchyStructure -> String
show :: UserHierarchyStructure -> String
$cshowList :: [UserHierarchyStructure] -> ShowS
showList :: [UserHierarchyStructure] -> ShowS
Prelude.Show)
mkUserHierarchyStructure ::
Value Prelude.Text -> UserHierarchyStructure
mkUserHierarchyStructure :: Value Text -> UserHierarchyStructure
mkUserHierarchyStructure Value Text
instanceArn
= UserHierarchyStructure
{haddock_workaround_ :: ()
haddock_workaround_ = (), instanceArn :: Value Text
instanceArn = Value Text
instanceArn,
userHierarchyStructure :: Maybe UserHierarchyStructureProperty
userHierarchyStructure = Maybe UserHierarchyStructureProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties UserHierarchyStructure where
toResourceProperties :: UserHierarchyStructure -> ResourceProperties
toResourceProperties UserHierarchyStructure {Maybe UserHierarchyStructureProperty
()
Value Text
haddock_workaround_ :: UserHierarchyStructure -> ()
instanceArn :: UserHierarchyStructure -> Value Text
userHierarchyStructure :: UserHierarchyStructure -> Maybe UserHierarchyStructureProperty
haddock_workaround_ :: ()
instanceArn :: Value Text
userHierarchyStructure :: Maybe UserHierarchyStructureProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Connect::UserHierarchyStructure",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"InstanceArn" 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..= Value Text
instanceArn]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> UserHierarchyStructureProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"UserHierarchyStructure"
(UserHierarchyStructureProperty -> (Key, Value))
-> Maybe UserHierarchyStructureProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe UserHierarchyStructureProperty
userHierarchyStructure]))}
instance JSON.ToJSON UserHierarchyStructure where
toJSON :: UserHierarchyStructure -> Value
toJSON UserHierarchyStructure {Maybe UserHierarchyStructureProperty
()
Value Text
haddock_workaround_ :: UserHierarchyStructure -> ()
instanceArn :: UserHierarchyStructure -> Value Text
userHierarchyStructure :: UserHierarchyStructure -> Maybe UserHierarchyStructureProperty
haddock_workaround_ :: ()
instanceArn :: Value Text
userHierarchyStructure :: Maybe UserHierarchyStructureProperty
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"InstanceArn" 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..= Value Text
instanceArn]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> UserHierarchyStructureProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"UserHierarchyStructure"
(UserHierarchyStructureProperty -> (Key, Value))
-> Maybe UserHierarchyStructureProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe UserHierarchyStructureProperty
userHierarchyStructure])))
instance Property "InstanceArn" UserHierarchyStructure where
type PropertyType "InstanceArn" UserHierarchyStructure = Value Prelude.Text
set :: PropertyType "InstanceArn" UserHierarchyStructure
-> UserHierarchyStructure -> UserHierarchyStructure
set PropertyType "InstanceArn" UserHierarchyStructure
newValue UserHierarchyStructure {Maybe UserHierarchyStructureProperty
()
Value Text
haddock_workaround_ :: UserHierarchyStructure -> ()
instanceArn :: UserHierarchyStructure -> Value Text
userHierarchyStructure :: UserHierarchyStructure -> Maybe UserHierarchyStructureProperty
haddock_workaround_ :: ()
instanceArn :: Value Text
userHierarchyStructure :: Maybe UserHierarchyStructureProperty
..}
= UserHierarchyStructure {instanceArn :: Value Text
instanceArn = PropertyType "InstanceArn" UserHierarchyStructure
Value Text
newValue, Maybe UserHierarchyStructureProperty
()
haddock_workaround_ :: ()
userHierarchyStructure :: Maybe UserHierarchyStructureProperty
haddock_workaround_ :: ()
userHierarchyStructure :: Maybe UserHierarchyStructureProperty
..}
instance Property "UserHierarchyStructure" UserHierarchyStructure where
type PropertyType "UserHierarchyStructure" UserHierarchyStructure = UserHierarchyStructureProperty
set :: PropertyType "UserHierarchyStructure" UserHierarchyStructure
-> UserHierarchyStructure -> UserHierarchyStructure
set PropertyType "UserHierarchyStructure" UserHierarchyStructure
newValue UserHierarchyStructure {Maybe UserHierarchyStructureProperty
()
Value Text
haddock_workaround_ :: UserHierarchyStructure -> ()
instanceArn :: UserHierarchyStructure -> Value Text
userHierarchyStructure :: UserHierarchyStructure -> Maybe UserHierarchyStructureProperty
haddock_workaround_ :: ()
instanceArn :: Value Text
userHierarchyStructure :: Maybe UserHierarchyStructureProperty
..}
= UserHierarchyStructure
{userHierarchyStructure :: Maybe UserHierarchyStructureProperty
userHierarchyStructure = UserHierarchyStructureProperty
-> Maybe UserHierarchyStructureProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "UserHierarchyStructure" UserHierarchyStructure
UserHierarchyStructureProperty
newValue, ()
Value Text
haddock_workaround_ :: ()
instanceArn :: Value Text
haddock_workaround_ :: ()
instanceArn :: Value Text
..}