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