module Stratosphere.Connect.UserHierarchyStructure.LevelThreeProperty (
LevelThreeProperty(..), mkLevelThreeProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data LevelThreeProperty
=
LevelThreeProperty {LevelThreeProperty -> ()
haddock_workaround_ :: (),
LevelThreeProperty -> Maybe (Value Text)
hierarchyLevelArn :: (Prelude.Maybe (Value Prelude.Text)),
LevelThreeProperty -> Maybe (Value Text)
hierarchyLevelId :: (Prelude.Maybe (Value Prelude.Text)),
LevelThreeProperty -> Value Text
name :: (Value Prelude.Text)}
deriving stock (LevelThreeProperty -> LevelThreeProperty -> Bool
(LevelThreeProperty -> LevelThreeProperty -> Bool)
-> (LevelThreeProperty -> LevelThreeProperty -> Bool)
-> Eq LevelThreeProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: LevelThreeProperty -> LevelThreeProperty -> Bool
== :: LevelThreeProperty -> LevelThreeProperty -> Bool
$c/= :: LevelThreeProperty -> LevelThreeProperty -> Bool
/= :: LevelThreeProperty -> LevelThreeProperty -> Bool
Prelude.Eq, Int -> LevelThreeProperty -> ShowS
[LevelThreeProperty] -> ShowS
LevelThreeProperty -> String
(Int -> LevelThreeProperty -> ShowS)
-> (LevelThreeProperty -> String)
-> ([LevelThreeProperty] -> ShowS)
-> Show LevelThreeProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> LevelThreeProperty -> ShowS
showsPrec :: Int -> LevelThreeProperty -> ShowS
$cshow :: LevelThreeProperty -> String
show :: LevelThreeProperty -> String
$cshowList :: [LevelThreeProperty] -> ShowS
showList :: [LevelThreeProperty] -> ShowS
Prelude.Show)
mkLevelThreeProperty :: Value Prelude.Text -> LevelThreeProperty
mkLevelThreeProperty :: Value Text -> LevelThreeProperty
mkLevelThreeProperty Value Text
name
= LevelThreeProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), name :: Value Text
name = Value Text
name,
hierarchyLevelArn :: Maybe (Value Text)
hierarchyLevelArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
hierarchyLevelId :: Maybe (Value Text)
hierarchyLevelId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties LevelThreeProperty where
toResourceProperties :: LevelThreeProperty -> ResourceProperties
toResourceProperties LevelThreeProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: LevelThreeProperty -> ()
hierarchyLevelArn :: LevelThreeProperty -> Maybe (Value Text)
hierarchyLevelId :: LevelThreeProperty -> Maybe (Value Text)
name :: LevelThreeProperty -> Value Text
haddock_workaround_ :: ()
hierarchyLevelArn :: Maybe (Value Text)
hierarchyLevelId :: Maybe (Value Text)
name :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Connect::UserHierarchyStructure.LevelThree",
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
"Name" 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
name]
([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
"HierarchyLevelArn" (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)
hierarchyLevelArn,
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
"HierarchyLevelId" (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)
hierarchyLevelId]))}
instance JSON.ToJSON LevelThreeProperty where
toJSON :: LevelThreeProperty -> Value
toJSON LevelThreeProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: LevelThreeProperty -> ()
hierarchyLevelArn :: LevelThreeProperty -> Maybe (Value Text)
hierarchyLevelId :: LevelThreeProperty -> Maybe (Value Text)
name :: LevelThreeProperty -> Value Text
haddock_workaround_ :: ()
hierarchyLevelArn :: Maybe (Value Text)
hierarchyLevelId :: Maybe (Value Text)
name :: Value Text
..}
= [(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
"Name" 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
name]
([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
"HierarchyLevelArn" (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)
hierarchyLevelArn,
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
"HierarchyLevelId" (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)
hierarchyLevelId])))
instance Property "HierarchyLevelArn" LevelThreeProperty where
type PropertyType "HierarchyLevelArn" LevelThreeProperty = Value Prelude.Text
set :: PropertyType "HierarchyLevelArn" LevelThreeProperty
-> LevelThreeProperty -> LevelThreeProperty
set PropertyType "HierarchyLevelArn" LevelThreeProperty
newValue LevelThreeProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: LevelThreeProperty -> ()
hierarchyLevelArn :: LevelThreeProperty -> Maybe (Value Text)
hierarchyLevelId :: LevelThreeProperty -> Maybe (Value Text)
name :: LevelThreeProperty -> Value Text
haddock_workaround_ :: ()
hierarchyLevelArn :: Maybe (Value Text)
hierarchyLevelId :: Maybe (Value Text)
name :: Value Text
..}
= LevelThreeProperty
{hierarchyLevelArn :: Maybe (Value Text)
hierarchyLevelArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "HierarchyLevelArn" LevelThreeProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
hierarchyLevelId :: Maybe (Value Text)
name :: Value Text
haddock_workaround_ :: ()
hierarchyLevelId :: Maybe (Value Text)
name :: Value Text
..}
instance Property "HierarchyLevelId" LevelThreeProperty where
type PropertyType "HierarchyLevelId" LevelThreeProperty = Value Prelude.Text
set :: PropertyType "HierarchyLevelId" LevelThreeProperty
-> LevelThreeProperty -> LevelThreeProperty
set PropertyType "HierarchyLevelId" LevelThreeProperty
newValue LevelThreeProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: LevelThreeProperty -> ()
hierarchyLevelArn :: LevelThreeProperty -> Maybe (Value Text)
hierarchyLevelId :: LevelThreeProperty -> Maybe (Value Text)
name :: LevelThreeProperty -> Value Text
haddock_workaround_ :: ()
hierarchyLevelArn :: Maybe (Value Text)
hierarchyLevelId :: Maybe (Value Text)
name :: Value Text
..}
= LevelThreeProperty {hierarchyLevelId :: Maybe (Value Text)
hierarchyLevelId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "HierarchyLevelId" LevelThreeProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
hierarchyLevelArn :: Maybe (Value Text)
name :: Value Text
haddock_workaround_ :: ()
hierarchyLevelArn :: Maybe (Value Text)
name :: Value Text
..}
instance Property "Name" LevelThreeProperty where
type PropertyType "Name" LevelThreeProperty = Value Prelude.Text
set :: PropertyType "Name" LevelThreeProperty
-> LevelThreeProperty -> LevelThreeProperty
set PropertyType "Name" LevelThreeProperty
newValue LevelThreeProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: LevelThreeProperty -> ()
hierarchyLevelArn :: LevelThreeProperty -> Maybe (Value Text)
hierarchyLevelId :: LevelThreeProperty -> Maybe (Value Text)
name :: LevelThreeProperty -> Value Text
haddock_workaround_ :: ()
hierarchyLevelArn :: Maybe (Value Text)
hierarchyLevelId :: Maybe (Value Text)
name :: Value Text
..}
= LevelThreeProperty {name :: Value Text
name = PropertyType "Name" LevelThreeProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
hierarchyLevelArn :: Maybe (Value Text)
hierarchyLevelId :: Maybe (Value Text)
haddock_workaround_ :: ()
hierarchyLevelArn :: Maybe (Value Text)
hierarchyLevelId :: Maybe (Value Text)
..}