module Stratosphere.EMR.WALWorkspace (
WALWorkspace(..), mkWALWorkspace
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data WALWorkspace
=
WALWorkspace {WALWorkspace -> ()
haddock_workaround_ :: (),
WALWorkspace -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag]),
WALWorkspace -> Maybe (Value Text)
wALWorkspaceName :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (WALWorkspace -> WALWorkspace -> Bool
(WALWorkspace -> WALWorkspace -> Bool)
-> (WALWorkspace -> WALWorkspace -> Bool) -> Eq WALWorkspace
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: WALWorkspace -> WALWorkspace -> Bool
== :: WALWorkspace -> WALWorkspace -> Bool
$c/= :: WALWorkspace -> WALWorkspace -> Bool
/= :: WALWorkspace -> WALWorkspace -> Bool
Prelude.Eq, Int -> WALWorkspace -> ShowS
[WALWorkspace] -> ShowS
WALWorkspace -> String
(Int -> WALWorkspace -> ShowS)
-> (WALWorkspace -> String)
-> ([WALWorkspace] -> ShowS)
-> Show WALWorkspace
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> WALWorkspace -> ShowS
showsPrec :: Int -> WALWorkspace -> ShowS
$cshow :: WALWorkspace -> String
show :: WALWorkspace -> String
$cshowList :: [WALWorkspace] -> ShowS
showList :: [WALWorkspace] -> ShowS
Prelude.Show)
mkWALWorkspace :: WALWorkspace
mkWALWorkspace :: WALWorkspace
mkWALWorkspace
= WALWorkspace
{haddock_workaround_ :: ()
haddock_workaround_ = (), tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
wALWorkspaceName :: Maybe (Value Text)
wALWorkspaceName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties WALWorkspace where
toResourceProperties :: WALWorkspace -> ResourceProperties
toResourceProperties WALWorkspace {Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: WALWorkspace -> ()
tags :: WALWorkspace -> Maybe [Tag]
wALWorkspaceName :: WALWorkspace -> Maybe (Value Text)
haddock_workaround_ :: ()
tags :: Maybe [Tag]
wALWorkspaceName :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::EMR::WALWorkspace", supportsTags :: Bool
supportsTags = Bool
Prelude.True,
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 -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags,
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
"WALWorkspaceName" (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)
wALWorkspaceName])}
instance JSON.ToJSON WALWorkspace where
toJSON :: WALWorkspace -> Value
toJSON WALWorkspace {Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: WALWorkspace -> ()
tags :: WALWorkspace -> Maybe [Tag]
wALWorkspaceName :: WALWorkspace -> Maybe (Value Text)
haddock_workaround_ :: ()
tags :: Maybe [Tag]
wALWorkspaceName :: 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 -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags,
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
"WALWorkspaceName" (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)
wALWorkspaceName]))
instance Property "Tags" WALWorkspace where
type PropertyType "Tags" WALWorkspace = [Tag]
set :: PropertyType "Tags" WALWorkspace -> WALWorkspace -> WALWorkspace
set PropertyType "Tags" WALWorkspace
newValue WALWorkspace {Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: WALWorkspace -> ()
tags :: WALWorkspace -> Maybe [Tag]
wALWorkspaceName :: WALWorkspace -> Maybe (Value Text)
haddock_workaround_ :: ()
tags :: Maybe [Tag]
wALWorkspaceName :: Maybe (Value Text)
..}
= WALWorkspace {tags :: Maybe [Tag]
tags = [Tag] -> Maybe [Tag]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [Tag]
PropertyType "Tags" WALWorkspace
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
wALWorkspaceName :: Maybe (Value Text)
haddock_workaround_ :: ()
wALWorkspaceName :: Maybe (Value Text)
..}
instance Property "WALWorkspaceName" WALWorkspace where
type PropertyType "WALWorkspaceName" WALWorkspace = Value Prelude.Text
set :: PropertyType "WALWorkspaceName" WALWorkspace
-> WALWorkspace -> WALWorkspace
set PropertyType "WALWorkspaceName" WALWorkspace
newValue WALWorkspace {Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: WALWorkspace -> ()
tags :: WALWorkspace -> Maybe [Tag]
wALWorkspaceName :: WALWorkspace -> Maybe (Value Text)
haddock_workaround_ :: ()
tags :: Maybe [Tag]
wALWorkspaceName :: Maybe (Value Text)
..}
= WALWorkspace {wALWorkspaceName :: Maybe (Value Text)
wALWorkspaceName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "WALWorkspaceName" WALWorkspace
Value Text
newValue, Maybe [Tag]
()
haddock_workaround_ :: ()
tags :: Maybe [Tag]
haddock_workaround_ :: ()
tags :: Maybe [Tag]
..}