module Stratosphere.DataZone.DomainUnit (
DomainUnit(..), mkDomainUnit
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DomainUnit
=
DomainUnit {DomainUnit -> ()
haddock_workaround_ :: (),
DomainUnit -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
DomainUnit -> Value Text
domainIdentifier :: (Value Prelude.Text),
DomainUnit -> Value Text
name :: (Value Prelude.Text),
DomainUnit -> Value Text
parentDomainUnitIdentifier :: (Value Prelude.Text)}
deriving stock (DomainUnit -> DomainUnit -> Bool
(DomainUnit -> DomainUnit -> Bool)
-> (DomainUnit -> DomainUnit -> Bool) -> Eq DomainUnit
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DomainUnit -> DomainUnit -> Bool
== :: DomainUnit -> DomainUnit -> Bool
$c/= :: DomainUnit -> DomainUnit -> Bool
/= :: DomainUnit -> DomainUnit -> Bool
Prelude.Eq, Int -> DomainUnit -> ShowS
[DomainUnit] -> ShowS
DomainUnit -> String
(Int -> DomainUnit -> ShowS)
-> (DomainUnit -> String)
-> ([DomainUnit] -> ShowS)
-> Show DomainUnit
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DomainUnit -> ShowS
showsPrec :: Int -> DomainUnit -> ShowS
$cshow :: DomainUnit -> String
show :: DomainUnit -> String
$cshowList :: [DomainUnit] -> ShowS
showList :: [DomainUnit] -> ShowS
Prelude.Show)
mkDomainUnit ::
Value Prelude.Text
-> Value Prelude.Text -> Value Prelude.Text -> DomainUnit
mkDomainUnit :: Value Text -> Value Text -> Value Text -> DomainUnit
mkDomainUnit Value Text
domainIdentifier Value Text
name Value Text
parentDomainUnitIdentifier
= DomainUnit
{haddock_workaround_ :: ()
haddock_workaround_ = (), domainIdentifier :: Value Text
domainIdentifier = Value Text
domainIdentifier,
name :: Value Text
name = Value Text
name,
parentDomainUnitIdentifier :: Value Text
parentDomainUnitIdentifier = Value Text
parentDomainUnitIdentifier,
description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DomainUnit where
toResourceProperties :: DomainUnit -> ResourceProperties
toResourceProperties DomainUnit {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: DomainUnit -> ()
description :: DomainUnit -> Maybe (Value Text)
domainIdentifier :: DomainUnit -> Value Text
name :: DomainUnit -> Value Text
parentDomainUnitIdentifier :: DomainUnit -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
domainIdentifier :: Value Text
name :: Value Text
parentDomainUnitIdentifier :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::DataZone::DomainUnit",
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
"DomainIdentifier" 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
domainIdentifier, 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,
Key
"ParentDomainUnitIdentifier" 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
parentDomainUnitIdentifier]
([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
"Description" (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)
description]))}
instance JSON.ToJSON DomainUnit where
toJSON :: DomainUnit -> Value
toJSON DomainUnit {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: DomainUnit -> ()
description :: DomainUnit -> Maybe (Value Text)
domainIdentifier :: DomainUnit -> Value Text
name :: DomainUnit -> Value Text
parentDomainUnitIdentifier :: DomainUnit -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
domainIdentifier :: Value Text
name :: Value Text
parentDomainUnitIdentifier :: 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
"DomainIdentifier" 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
domainIdentifier, 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,
Key
"ParentDomainUnitIdentifier" 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
parentDomainUnitIdentifier]
([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
"Description" (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)
description])))
instance Property "Description" DomainUnit where
type PropertyType "Description" DomainUnit = Value Prelude.Text
set :: PropertyType "Description" DomainUnit -> DomainUnit -> DomainUnit
set PropertyType "Description" DomainUnit
newValue DomainUnit {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: DomainUnit -> ()
description :: DomainUnit -> Maybe (Value Text)
domainIdentifier :: DomainUnit -> Value Text
name :: DomainUnit -> Value Text
parentDomainUnitIdentifier :: DomainUnit -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
domainIdentifier :: Value Text
name :: Value Text
parentDomainUnitIdentifier :: Value Text
..}
= DomainUnit {description :: Maybe (Value Text)
description = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Description" DomainUnit
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
domainIdentifier :: Value Text
name :: Value Text
parentDomainUnitIdentifier :: Value Text
haddock_workaround_ :: ()
domainIdentifier :: Value Text
name :: Value Text
parentDomainUnitIdentifier :: Value Text
..}
instance Property "DomainIdentifier" DomainUnit where
type PropertyType "DomainIdentifier" DomainUnit = Value Prelude.Text
set :: PropertyType "DomainIdentifier" DomainUnit
-> DomainUnit -> DomainUnit
set PropertyType "DomainIdentifier" DomainUnit
newValue DomainUnit {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: DomainUnit -> ()
description :: DomainUnit -> Maybe (Value Text)
domainIdentifier :: DomainUnit -> Value Text
name :: DomainUnit -> Value Text
parentDomainUnitIdentifier :: DomainUnit -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
domainIdentifier :: Value Text
name :: Value Text
parentDomainUnitIdentifier :: Value Text
..}
= DomainUnit {domainIdentifier :: Value Text
domainIdentifier = PropertyType "DomainIdentifier" DomainUnit
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Value Text
parentDomainUnitIdentifier :: Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Value Text
parentDomainUnitIdentifier :: Value Text
..}
instance Property "Name" DomainUnit where
type PropertyType "Name" DomainUnit = Value Prelude.Text
set :: PropertyType "Name" DomainUnit -> DomainUnit -> DomainUnit
set PropertyType "Name" DomainUnit
newValue DomainUnit {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: DomainUnit -> ()
description :: DomainUnit -> Maybe (Value Text)
domainIdentifier :: DomainUnit -> Value Text
name :: DomainUnit -> Value Text
parentDomainUnitIdentifier :: DomainUnit -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
domainIdentifier :: Value Text
name :: Value Text
parentDomainUnitIdentifier :: Value Text
..} = DomainUnit {name :: Value Text
name = PropertyType "Name" DomainUnit
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
domainIdentifier :: Value Text
parentDomainUnitIdentifier :: Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
domainIdentifier :: Value Text
parentDomainUnitIdentifier :: Value Text
..}
instance Property "ParentDomainUnitIdentifier" DomainUnit where
type PropertyType "ParentDomainUnitIdentifier" DomainUnit = Value Prelude.Text
set :: PropertyType "ParentDomainUnitIdentifier" DomainUnit
-> DomainUnit -> DomainUnit
set PropertyType "ParentDomainUnitIdentifier" DomainUnit
newValue DomainUnit {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: DomainUnit -> ()
description :: DomainUnit -> Maybe (Value Text)
domainIdentifier :: DomainUnit -> Value Text
name :: DomainUnit -> Value Text
parentDomainUnitIdentifier :: DomainUnit -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
domainIdentifier :: Value Text
name :: Value Text
parentDomainUnitIdentifier :: Value Text
..}
= DomainUnit {parentDomainUnitIdentifier :: Value Text
parentDomainUnitIdentifier = PropertyType "ParentDomainUnitIdentifier" DomainUnit
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
domainIdentifier :: Value Text
name :: Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
domainIdentifier :: Value Text
name :: Value Text
..}