module Stratosphere.Omics.ReferenceStore (
        module Exports, ReferenceStore(..), mkReferenceStore
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Omics.ReferenceStore.SseConfigProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ReferenceStore
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-omics-referencestore.html>
    ReferenceStore {ReferenceStore -> ()
haddock_workaround_ :: (),
                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-omics-referencestore.html#cfn-omics-referencestore-description>
                    ReferenceStore -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-omics-referencestore.html#cfn-omics-referencestore-name>
                    ReferenceStore -> Value Text
name :: (Value Prelude.Text),
                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-omics-referencestore.html#cfn-omics-referencestore-sseconfig>
                    ReferenceStore -> Maybe SseConfigProperty
sseConfig :: (Prelude.Maybe SseConfigProperty),
                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-omics-referencestore.html#cfn-omics-referencestore-tags>
                    ReferenceStore -> Maybe (Map Text (Value Text))
tags :: (Prelude.Maybe (Prelude.Map Prelude.Text (Value Prelude.Text)))}
  deriving stock (ReferenceStore -> ReferenceStore -> Bool
(ReferenceStore -> ReferenceStore -> Bool)
-> (ReferenceStore -> ReferenceStore -> Bool) -> Eq ReferenceStore
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ReferenceStore -> ReferenceStore -> Bool
== :: ReferenceStore -> ReferenceStore -> Bool
$c/= :: ReferenceStore -> ReferenceStore -> Bool
/= :: ReferenceStore -> ReferenceStore -> Bool
Prelude.Eq, Int -> ReferenceStore -> ShowS
[ReferenceStore] -> ShowS
ReferenceStore -> String
(Int -> ReferenceStore -> ShowS)
-> (ReferenceStore -> String)
-> ([ReferenceStore] -> ShowS)
-> Show ReferenceStore
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ReferenceStore -> ShowS
showsPrec :: Int -> ReferenceStore -> ShowS
$cshow :: ReferenceStore -> String
show :: ReferenceStore -> String
$cshowList :: [ReferenceStore] -> ShowS
showList :: [ReferenceStore] -> ShowS
Prelude.Show)
mkReferenceStore :: Value Prelude.Text -> ReferenceStore
mkReferenceStore :: Value Text -> ReferenceStore
mkReferenceStore Value Text
name
  = ReferenceStore
      {haddock_workaround_ :: ()
haddock_workaround_ = (), name :: Value Text
name = Value Text
name,
       description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, sseConfig :: Maybe SseConfigProperty
sseConfig = Maybe SseConfigProperty
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 ReferenceStore where
  toResourceProperties :: ReferenceStore -> ResourceProperties
toResourceProperties ReferenceStore {Maybe (Map Text (Value Text))
Maybe (Value Text)
Maybe SseConfigProperty
()
Value Text
haddock_workaround_ :: ReferenceStore -> ()
description :: ReferenceStore -> Maybe (Value Text)
name :: ReferenceStore -> Value Text
sseConfig :: ReferenceStore -> Maybe SseConfigProperty
tags :: ReferenceStore -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Value Text
sseConfig :: Maybe SseConfigProperty
tags :: Maybe (Map Text (Value Text))
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Omics::ReferenceStore",
         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
"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
"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,
                               Key -> SseConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SseConfig" (SseConfigProperty -> (Key, Value))
-> Maybe SseConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SseConfigProperty
sseConfig,
                               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 ReferenceStore where
  toJSON :: ReferenceStore -> Value
toJSON ReferenceStore {Maybe (Map Text (Value Text))
Maybe (Value Text)
Maybe SseConfigProperty
()
Value Text
haddock_workaround_ :: ReferenceStore -> ()
description :: ReferenceStore -> Maybe (Value Text)
name :: ReferenceStore -> Value Text
sseConfig :: ReferenceStore -> Maybe SseConfigProperty
tags :: ReferenceStore -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Value Text
sseConfig :: Maybe SseConfigProperty
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
"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
"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,
                  Key -> SseConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SseConfig" (SseConfigProperty -> (Key, Value))
-> Maybe SseConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SseConfigProperty
sseConfig,
                  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 "Description" ReferenceStore where
  type PropertyType "Description" ReferenceStore = Value Prelude.Text
  set :: PropertyType "Description" ReferenceStore
-> ReferenceStore -> ReferenceStore
set PropertyType "Description" ReferenceStore
newValue ReferenceStore {Maybe (Map Text (Value Text))
Maybe (Value Text)
Maybe SseConfigProperty
()
Value Text
haddock_workaround_ :: ReferenceStore -> ()
description :: ReferenceStore -> Maybe (Value Text)
name :: ReferenceStore -> Value Text
sseConfig :: ReferenceStore -> Maybe SseConfigProperty
tags :: ReferenceStore -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Value Text
sseConfig :: Maybe SseConfigProperty
tags :: Maybe (Map Text (Value Text))
..}
    = ReferenceStore {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" ReferenceStore
Value Text
newValue, Maybe (Map Text (Value Text))
Maybe SseConfigProperty
()
Value Text
haddock_workaround_ :: ()
name :: Value Text
sseConfig :: Maybe SseConfigProperty
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
name :: Value Text
sseConfig :: Maybe SseConfigProperty
tags :: Maybe (Map Text (Value Text))
..}
instance Property "Name" ReferenceStore where
  type PropertyType "Name" ReferenceStore = Value Prelude.Text
  set :: PropertyType "Name" ReferenceStore
-> ReferenceStore -> ReferenceStore
set PropertyType "Name" ReferenceStore
newValue ReferenceStore {Maybe (Map Text (Value Text))
Maybe (Value Text)
Maybe SseConfigProperty
()
Value Text
haddock_workaround_ :: ReferenceStore -> ()
description :: ReferenceStore -> Maybe (Value Text)
name :: ReferenceStore -> Value Text
sseConfig :: ReferenceStore -> Maybe SseConfigProperty
tags :: ReferenceStore -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Value Text
sseConfig :: Maybe SseConfigProperty
tags :: Maybe (Map Text (Value Text))
..}
    = ReferenceStore {name :: Value Text
name = PropertyType "Name" ReferenceStore
Value Text
newValue, Maybe (Map Text (Value Text))
Maybe (Value Text)
Maybe SseConfigProperty
()
haddock_workaround_ :: ()
description :: Maybe (Value Text)
sseConfig :: Maybe SseConfigProperty
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
description :: Maybe (Value Text)
sseConfig :: Maybe SseConfigProperty
tags :: Maybe (Map Text (Value Text))
..}
instance Property "SseConfig" ReferenceStore where
  type PropertyType "SseConfig" ReferenceStore = SseConfigProperty
  set :: PropertyType "SseConfig" ReferenceStore
-> ReferenceStore -> ReferenceStore
set PropertyType "SseConfig" ReferenceStore
newValue ReferenceStore {Maybe (Map Text (Value Text))
Maybe (Value Text)
Maybe SseConfigProperty
()
Value Text
haddock_workaround_ :: ReferenceStore -> ()
description :: ReferenceStore -> Maybe (Value Text)
name :: ReferenceStore -> Value Text
sseConfig :: ReferenceStore -> Maybe SseConfigProperty
tags :: ReferenceStore -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Value Text
sseConfig :: Maybe SseConfigProperty
tags :: Maybe (Map Text (Value Text))
..}
    = ReferenceStore {sseConfig :: Maybe SseConfigProperty
sseConfig = SseConfigProperty -> Maybe SseConfigProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SseConfig" ReferenceStore
SseConfigProperty
newValue, Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Value Text
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Value Text
tags :: Maybe (Map Text (Value Text))
..}
instance Property "Tags" ReferenceStore where
  type PropertyType "Tags" ReferenceStore = Prelude.Map Prelude.Text (Value Prelude.Text)
  set :: PropertyType "Tags" ReferenceStore
-> ReferenceStore -> ReferenceStore
set PropertyType "Tags" ReferenceStore
newValue ReferenceStore {Maybe (Map Text (Value Text))
Maybe (Value Text)
Maybe SseConfigProperty
()
Value Text
haddock_workaround_ :: ReferenceStore -> ()
description :: ReferenceStore -> Maybe (Value Text)
name :: ReferenceStore -> Value Text
sseConfig :: ReferenceStore -> Maybe SseConfigProperty
tags :: ReferenceStore -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Value Text
sseConfig :: Maybe SseConfigProperty
tags :: Maybe (Map Text (Value Text))
..}
    = ReferenceStore {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" ReferenceStore
newValue, Maybe (Value Text)
Maybe SseConfigProperty
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Value Text
sseConfig :: Maybe SseConfigProperty
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Value Text
sseConfig :: Maybe SseConfigProperty
..}