module Stratosphere.HealthImaging.Datastore (
Datastore(..), mkDatastore
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data Datastore
=
Datastore {Datastore -> ()
haddock_workaround_ :: (),
Datastore -> Maybe (Value Text)
datastoreName :: (Prelude.Maybe (Value Prelude.Text)),
Datastore -> Maybe (Value Text)
kmsKeyArn :: (Prelude.Maybe (Value Prelude.Text)),
Datastore -> Maybe (Map Text (Value Text))
tags :: (Prelude.Maybe (Prelude.Map Prelude.Text (Value Prelude.Text)))}
deriving stock (Datastore -> Datastore -> Bool
(Datastore -> Datastore -> Bool)
-> (Datastore -> Datastore -> Bool) -> Eq Datastore
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: Datastore -> Datastore -> Bool
== :: Datastore -> Datastore -> Bool
$c/= :: Datastore -> Datastore -> Bool
/= :: Datastore -> Datastore -> Bool
Prelude.Eq, Int -> Datastore -> ShowS
[Datastore] -> ShowS
Datastore -> String
(Int -> Datastore -> ShowS)
-> (Datastore -> String)
-> ([Datastore] -> ShowS)
-> Show Datastore
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> Datastore -> ShowS
showsPrec :: Int -> Datastore -> ShowS
$cshow :: Datastore -> String
show :: Datastore -> String
$cshowList :: [Datastore] -> ShowS
showList :: [Datastore] -> ShowS
Prelude.Show)
mkDatastore :: Datastore
mkDatastore :: Datastore
mkDatastore
= Datastore
{haddock_workaround_ :: ()
haddock_workaround_ = (), datastoreName :: Maybe (Value Text)
datastoreName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
kmsKeyArn :: Maybe (Value Text)
kmsKeyArn = 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 Datastore where
toResourceProperties :: Datastore -> ResourceProperties
toResourceProperties Datastore {Maybe (Map Text (Value Text))
Maybe (Value Text)
()
haddock_workaround_ :: Datastore -> ()
datastoreName :: Datastore -> Maybe (Value Text)
kmsKeyArn :: Datastore -> Maybe (Value Text)
tags :: Datastore -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
datastoreName :: Maybe (Value Text)
kmsKeyArn :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::HealthImaging::Datastore",
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 -> 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
"DatastoreName" (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)
datastoreName,
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
"KmsKeyArn" (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)
kmsKeyArn,
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 Datastore where
toJSON :: Datastore -> Value
toJSON Datastore {Maybe (Map Text (Value Text))
Maybe (Value Text)
()
haddock_workaround_ :: Datastore -> ()
datastoreName :: Datastore -> Maybe (Value Text)
kmsKeyArn :: Datastore -> Maybe (Value Text)
tags :: Datastore -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
datastoreName :: Maybe (Value Text)
kmsKeyArn :: 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
([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
"DatastoreName" (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)
datastoreName,
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
"KmsKeyArn" (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)
kmsKeyArn,
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 "DatastoreName" Datastore where
type PropertyType "DatastoreName" Datastore = Value Prelude.Text
set :: PropertyType "DatastoreName" Datastore -> Datastore -> Datastore
set PropertyType "DatastoreName" Datastore
newValue Datastore {Maybe (Map Text (Value Text))
Maybe (Value Text)
()
haddock_workaround_ :: Datastore -> ()
datastoreName :: Datastore -> Maybe (Value Text)
kmsKeyArn :: Datastore -> Maybe (Value Text)
tags :: Datastore -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
datastoreName :: Maybe (Value Text)
kmsKeyArn :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
= Datastore {datastoreName :: Maybe (Value Text)
datastoreName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DatastoreName" Datastore
Value Text
newValue, Maybe (Map Text (Value Text))
Maybe (Value Text)
()
haddock_workaround_ :: ()
kmsKeyArn :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
kmsKeyArn :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
instance Property "KmsKeyArn" Datastore where
type PropertyType "KmsKeyArn" Datastore = Value Prelude.Text
set :: PropertyType "KmsKeyArn" Datastore -> Datastore -> Datastore
set PropertyType "KmsKeyArn" Datastore
newValue Datastore {Maybe (Map Text (Value Text))
Maybe (Value Text)
()
haddock_workaround_ :: Datastore -> ()
datastoreName :: Datastore -> Maybe (Value Text)
kmsKeyArn :: Datastore -> Maybe (Value Text)
tags :: Datastore -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
datastoreName :: Maybe (Value Text)
kmsKeyArn :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
= Datastore {kmsKeyArn :: Maybe (Value Text)
kmsKeyArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "KmsKeyArn" Datastore
Value Text
newValue, Maybe (Map Text (Value Text))
Maybe (Value Text)
()
haddock_workaround_ :: ()
datastoreName :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
datastoreName :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
instance Property "Tags" Datastore where
type PropertyType "Tags" Datastore = Prelude.Map Prelude.Text (Value Prelude.Text)
set :: PropertyType "Tags" Datastore -> Datastore -> Datastore
set PropertyType "Tags" Datastore
newValue Datastore {Maybe (Map Text (Value Text))
Maybe (Value Text)
()
haddock_workaround_ :: Datastore -> ()
datastoreName :: Datastore -> Maybe (Value Text)
kmsKeyArn :: Datastore -> Maybe (Value Text)
tags :: Datastore -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
datastoreName :: Maybe (Value Text)
kmsKeyArn :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
= Datastore {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" Datastore
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
datastoreName :: Maybe (Value Text)
kmsKeyArn :: Maybe (Value Text)
haddock_workaround_ :: ()
datastoreName :: Maybe (Value Text)
kmsKeyArn :: Maybe (Value Text)
..}