module Stratosphere.Forecast.DatasetGroup (
        DatasetGroup(..), mkDatasetGroup
    ) 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 DatasetGroup
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-forecast-datasetgroup.html>
    DatasetGroup {DatasetGroup -> ()
haddock_workaround_ :: (),
                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-forecast-datasetgroup.html#cfn-forecast-datasetgroup-datasetarns>
                  DatasetGroup -> Maybe (ValueList Text)
datasetArns :: (Prelude.Maybe (ValueList Prelude.Text)),
                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-forecast-datasetgroup.html#cfn-forecast-datasetgroup-datasetgroupname>
                  DatasetGroup -> Value Text
datasetGroupName :: (Value Prelude.Text),
                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-forecast-datasetgroup.html#cfn-forecast-datasetgroup-domain>
                  DatasetGroup -> Value Text
domain :: (Value Prelude.Text),
                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-forecast-datasetgroup.html#cfn-forecast-datasetgroup-tags>
                  DatasetGroup -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag])}
  deriving stock (DatasetGroup -> DatasetGroup -> Bool
(DatasetGroup -> DatasetGroup -> Bool)
-> (DatasetGroup -> DatasetGroup -> Bool) -> Eq DatasetGroup
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DatasetGroup -> DatasetGroup -> Bool
== :: DatasetGroup -> DatasetGroup -> Bool
$c/= :: DatasetGroup -> DatasetGroup -> Bool
/= :: DatasetGroup -> DatasetGroup -> Bool
Prelude.Eq, Int -> DatasetGroup -> ShowS
[DatasetGroup] -> ShowS
DatasetGroup -> String
(Int -> DatasetGroup -> ShowS)
-> (DatasetGroup -> String)
-> ([DatasetGroup] -> ShowS)
-> Show DatasetGroup
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DatasetGroup -> ShowS
showsPrec :: Int -> DatasetGroup -> ShowS
$cshow :: DatasetGroup -> String
show :: DatasetGroup -> String
$cshowList :: [DatasetGroup] -> ShowS
showList :: [DatasetGroup] -> ShowS
Prelude.Show)
mkDatasetGroup ::
  Value Prelude.Text -> Value Prelude.Text -> DatasetGroup
mkDatasetGroup :: Value Text -> Value Text -> DatasetGroup
mkDatasetGroup Value Text
datasetGroupName Value Text
domain
  = DatasetGroup
      {haddock_workaround_ :: ()
haddock_workaround_ = (), datasetGroupName :: Value Text
datasetGroupName = Value Text
datasetGroupName,
       domain :: Value Text
domain = Value Text
domain, datasetArns :: Maybe (ValueList Text)
datasetArns = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
       tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DatasetGroup where
  toResourceProperties :: DatasetGroup -> ResourceProperties
toResourceProperties DatasetGroup {Maybe [Tag]
Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: DatasetGroup -> ()
datasetArns :: DatasetGroup -> Maybe (ValueList Text)
datasetGroupName :: DatasetGroup -> Value Text
domain :: DatasetGroup -> Value Text
tags :: DatasetGroup -> Maybe [Tag]
haddock_workaround_ :: ()
datasetArns :: Maybe (ValueList Text)
datasetGroupName :: Value Text
domain :: Value Text
tags :: Maybe [Tag]
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Forecast::DatasetGroup",
         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
"DatasetGroupName" 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
datasetGroupName,
                            Key
"Domain" 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
domain]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key -> ValueList 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
"DatasetArns" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
datasetArns,
                               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]))}
instance JSON.ToJSON DatasetGroup where
  toJSON :: DatasetGroup -> Value
toJSON DatasetGroup {Maybe [Tag]
Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: DatasetGroup -> ()
datasetArns :: DatasetGroup -> Maybe (ValueList Text)
datasetGroupName :: DatasetGroup -> Value Text
domain :: DatasetGroup -> Value Text
tags :: DatasetGroup -> Maybe [Tag]
haddock_workaround_ :: ()
datasetArns :: Maybe (ValueList Text)
datasetGroupName :: Value Text
domain :: Value Text
tags :: Maybe [Tag]
..}
    = [(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
"DatasetGroupName" 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
datasetGroupName,
               Key
"Domain" 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
domain]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key -> ValueList 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
"DatasetArns" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
datasetArns,
                  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])))
instance Property "DatasetArns" DatasetGroup where
  type PropertyType "DatasetArns" DatasetGroup = ValueList Prelude.Text
  set :: PropertyType "DatasetArns" DatasetGroup
-> DatasetGroup -> DatasetGroup
set PropertyType "DatasetArns" DatasetGroup
newValue DatasetGroup {Maybe [Tag]
Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: DatasetGroup -> ()
datasetArns :: DatasetGroup -> Maybe (ValueList Text)
datasetGroupName :: DatasetGroup -> Value Text
domain :: DatasetGroup -> Value Text
tags :: DatasetGroup -> Maybe [Tag]
haddock_workaround_ :: ()
datasetArns :: Maybe (ValueList Text)
datasetGroupName :: Value Text
domain :: Value Text
tags :: Maybe [Tag]
..}
    = DatasetGroup {datasetArns :: Maybe (ValueList Text)
datasetArns = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DatasetArns" DatasetGroup
ValueList Text
newValue, Maybe [Tag]
()
Value Text
haddock_workaround_ :: ()
datasetGroupName :: Value Text
domain :: Value Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
datasetGroupName :: Value Text
domain :: Value Text
tags :: Maybe [Tag]
..}
instance Property "DatasetGroupName" DatasetGroup where
  type PropertyType "DatasetGroupName" DatasetGroup = Value Prelude.Text
  set :: PropertyType "DatasetGroupName" DatasetGroup
-> DatasetGroup -> DatasetGroup
set PropertyType "DatasetGroupName" DatasetGroup
newValue DatasetGroup {Maybe [Tag]
Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: DatasetGroup -> ()
datasetArns :: DatasetGroup -> Maybe (ValueList Text)
datasetGroupName :: DatasetGroup -> Value Text
domain :: DatasetGroup -> Value Text
tags :: DatasetGroup -> Maybe [Tag]
haddock_workaround_ :: ()
datasetArns :: Maybe (ValueList Text)
datasetGroupName :: Value Text
domain :: Value Text
tags :: Maybe [Tag]
..}
    = DatasetGroup {datasetGroupName :: Value Text
datasetGroupName = PropertyType "DatasetGroupName" DatasetGroup
Value Text
newValue, Maybe [Tag]
Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: ()
datasetArns :: Maybe (ValueList Text)
domain :: Value Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
datasetArns :: Maybe (ValueList Text)
domain :: Value Text
tags :: Maybe [Tag]
..}
instance Property "Domain" DatasetGroup where
  type PropertyType "Domain" DatasetGroup = Value Prelude.Text
  set :: PropertyType "Domain" DatasetGroup -> DatasetGroup -> DatasetGroup
set PropertyType "Domain" DatasetGroup
newValue DatasetGroup {Maybe [Tag]
Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: DatasetGroup -> ()
datasetArns :: DatasetGroup -> Maybe (ValueList Text)
datasetGroupName :: DatasetGroup -> Value Text
domain :: DatasetGroup -> Value Text
tags :: DatasetGroup -> Maybe [Tag]
haddock_workaround_ :: ()
datasetArns :: Maybe (ValueList Text)
datasetGroupName :: Value Text
domain :: Value Text
tags :: Maybe [Tag]
..}
    = DatasetGroup {domain :: Value Text
domain = PropertyType "Domain" DatasetGroup
Value Text
newValue, Maybe [Tag]
Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: ()
datasetArns :: Maybe (ValueList Text)
datasetGroupName :: Value Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
datasetArns :: Maybe (ValueList Text)
datasetGroupName :: Value Text
tags :: Maybe [Tag]
..}
instance Property "Tags" DatasetGroup where
  type PropertyType "Tags" DatasetGroup = [Tag]
  set :: PropertyType "Tags" DatasetGroup -> DatasetGroup -> DatasetGroup
set PropertyType "Tags" DatasetGroup
newValue DatasetGroup {Maybe [Tag]
Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: DatasetGroup -> ()
datasetArns :: DatasetGroup -> Maybe (ValueList Text)
datasetGroupName :: DatasetGroup -> Value Text
domain :: DatasetGroup -> Value Text
tags :: DatasetGroup -> Maybe [Tag]
haddock_workaround_ :: ()
datasetArns :: Maybe (ValueList Text)
datasetGroupName :: Value Text
domain :: Value Text
tags :: Maybe [Tag]
..}
    = DatasetGroup {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" DatasetGroup
newValue, Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: ()
datasetArns :: Maybe (ValueList Text)
datasetGroupName :: Value Text
domain :: Value Text
haddock_workaround_ :: ()
datasetArns :: Maybe (ValueList Text)
datasetGroupName :: Value Text
domain :: Value Text
..}