module Stratosphere.RoboMaker.Robot (
Robot(..), mkRobot
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data Robot
=
Robot {Robot -> ()
haddock_workaround_ :: (),
Robot -> Value Text
architecture :: (Value Prelude.Text),
Robot -> Maybe (Value Text)
fleet :: (Prelude.Maybe (Value Prelude.Text)),
Robot -> Value Text
greengrassGroupId :: (Value Prelude.Text),
Robot -> Maybe (Value Text)
name :: (Prelude.Maybe (Value Prelude.Text)),
Robot -> Maybe (Map Text (Value Text))
tags :: (Prelude.Maybe (Prelude.Map Prelude.Text (Value Prelude.Text)))}
deriving stock (Robot -> Robot -> Bool
(Robot -> Robot -> Bool) -> (Robot -> Robot -> Bool) -> Eq Robot
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: Robot -> Robot -> Bool
== :: Robot -> Robot -> Bool
$c/= :: Robot -> Robot -> Bool
/= :: Robot -> Robot -> Bool
Prelude.Eq, Int -> Robot -> ShowS
[Robot] -> ShowS
Robot -> String
(Int -> Robot -> ShowS)
-> (Robot -> String) -> ([Robot] -> ShowS) -> Show Robot
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> Robot -> ShowS
showsPrec :: Int -> Robot -> ShowS
$cshow :: Robot -> String
show :: Robot -> String
$cshowList :: [Robot] -> ShowS
showList :: [Robot] -> ShowS
Prelude.Show)
mkRobot :: Value Prelude.Text -> Value Prelude.Text -> Robot
mkRobot :: Value Text -> Value Text -> Robot
mkRobot Value Text
architecture Value Text
greengrassGroupId
= Robot
{haddock_workaround_ :: ()
haddock_workaround_ = (), architecture :: Value Text
architecture = Value Text
architecture,
greengrassGroupId :: Value Text
greengrassGroupId = Value Text
greengrassGroupId, fleet :: Maybe (Value Text)
fleet = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
name :: Maybe (Value Text)
name = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, tags :: Maybe (Map Text (Value Text))
tags = Maybe (Map Text (Value Text))
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties Robot where
toResourceProperties :: Robot -> ResourceProperties
toResourceProperties Robot {Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: Robot -> ()
architecture :: Robot -> Value Text
fleet :: Robot -> Maybe (Value Text)
greengrassGroupId :: Robot -> Value Text
name :: Robot -> Maybe (Value Text)
tags :: Robot -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
architecture :: Value Text
fleet :: Maybe (Value Text)
greengrassGroupId :: Value Text
name :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::RoboMaker::Robot", supportsTags :: Bool
supportsTags = Bool
Prelude.True,
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
"Architecture" 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
architecture,
Key
"GreengrassGroupId" 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
greengrassGroupId]
([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
"Fleet" (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)
fleet,
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
"Name" (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)
name,
Key -> Map Text (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
"Tags" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
tags]))}
instance JSON.ToJSON Robot where
toJSON :: Robot -> Value
toJSON Robot {Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: Robot -> ()
architecture :: Robot -> Value Text
fleet :: Robot -> Maybe (Value Text)
greengrassGroupId :: Robot -> Value Text
name :: Robot -> Maybe (Value Text)
tags :: Robot -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
architecture :: Value Text
fleet :: Maybe (Value Text)
greengrassGroupId :: Value Text
name :: Maybe (Value Text)
tags :: Maybe (Map Text (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
"Architecture" 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
architecture,
Key
"GreengrassGroupId" 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
greengrassGroupId]
([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
"Fleet" (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)
fleet,
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
"Name" (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)
name,
Key -> Map Text (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
"Tags" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
tags])))
instance Property "Architecture" Robot where
type PropertyType "Architecture" Robot = Value Prelude.Text
set :: PropertyType "Architecture" Robot -> Robot -> Robot
set PropertyType "Architecture" Robot
newValue Robot {Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: Robot -> ()
architecture :: Robot -> Value Text
fleet :: Robot -> Maybe (Value Text)
greengrassGroupId :: Robot -> Value Text
name :: Robot -> Maybe (Value Text)
tags :: Robot -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
architecture :: Value Text
fleet :: Maybe (Value Text)
greengrassGroupId :: Value Text
name :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..} = Robot {architecture :: Value Text
architecture = PropertyType "Architecture" Robot
Value Text
newValue, Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
fleet :: Maybe (Value Text)
greengrassGroupId :: Value Text
name :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
fleet :: Maybe (Value Text)
greengrassGroupId :: Value Text
name :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
instance Property "Fleet" Robot where
type PropertyType "Fleet" Robot = Value Prelude.Text
set :: PropertyType "Fleet" Robot -> Robot -> Robot
set PropertyType "Fleet" Robot
newValue Robot {Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: Robot -> ()
architecture :: Robot -> Value Text
fleet :: Robot -> Maybe (Value Text)
greengrassGroupId :: Robot -> Value Text
name :: Robot -> Maybe (Value Text)
tags :: Robot -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
architecture :: Value Text
fleet :: Maybe (Value Text)
greengrassGroupId :: Value Text
name :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..} = Robot {fleet :: Maybe (Value Text)
fleet = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Fleet" Robot
Value Text
newValue, Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
architecture :: Value Text
greengrassGroupId :: Value Text
name :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
architecture :: Value Text
greengrassGroupId :: Value Text
name :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
instance Property "GreengrassGroupId" Robot where
type PropertyType "GreengrassGroupId" Robot = Value Prelude.Text
set :: PropertyType "GreengrassGroupId" Robot -> Robot -> Robot
set PropertyType "GreengrassGroupId" Robot
newValue Robot {Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: Robot -> ()
architecture :: Robot -> Value Text
fleet :: Robot -> Maybe (Value Text)
greengrassGroupId :: Robot -> Value Text
name :: Robot -> Maybe (Value Text)
tags :: Robot -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
architecture :: Value Text
fleet :: Maybe (Value Text)
greengrassGroupId :: Value Text
name :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..} = Robot {greengrassGroupId :: Value Text
greengrassGroupId = PropertyType "GreengrassGroupId" Robot
Value Text
newValue, Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
architecture :: Value Text
fleet :: Maybe (Value Text)
name :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
architecture :: Value Text
fleet :: Maybe (Value Text)
name :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
instance Property "Name" Robot where
type PropertyType "Name" Robot = Value Prelude.Text
set :: PropertyType "Name" Robot -> Robot -> Robot
set PropertyType "Name" Robot
newValue Robot {Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: Robot -> ()
architecture :: Robot -> Value Text
fleet :: Robot -> Maybe (Value Text)
greengrassGroupId :: Robot -> Value Text
name :: Robot -> Maybe (Value Text)
tags :: Robot -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
architecture :: Value Text
fleet :: Maybe (Value Text)
greengrassGroupId :: Value Text
name :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..} = Robot {name :: Maybe (Value Text)
name = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Name" Robot
Value Text
newValue, Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
architecture :: Value Text
fleet :: Maybe (Value Text)
greengrassGroupId :: Value Text
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
architecture :: Value Text
fleet :: Maybe (Value Text)
greengrassGroupId :: Value Text
tags :: Maybe (Map Text (Value Text))
..}
instance Property "Tags" Robot where
type PropertyType "Tags" Robot = Prelude.Map Prelude.Text (Value Prelude.Text)
set :: PropertyType "Tags" Robot -> Robot -> Robot
set PropertyType "Tags" Robot
newValue Robot {Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: Robot -> ()
architecture :: Robot -> Value Text
fleet :: Robot -> Maybe (Value Text)
greengrassGroupId :: Robot -> Value Text
name :: Robot -> Maybe (Value Text)
tags :: Robot -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
architecture :: Value Text
fleet :: Maybe (Value Text)
greengrassGroupId :: Value Text
name :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..} = Robot {tags :: Maybe (Map Text (Value Text))
tags = Map Text (Value Text) -> Maybe (Map Text (Value Text))
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Map Text (Value Text)
PropertyType "Tags" Robot
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
architecture :: Value Text
fleet :: Maybe (Value Text)
greengrassGroupId :: Value Text
name :: Maybe (Value Text)
haddock_workaround_ :: ()
architecture :: Value Text
fleet :: Maybe (Value Text)
greengrassGroupId :: Value Text
name :: Maybe (Value Text)
..}