content: module Stratosphere.Athena.DataCatalog (
          DataCatalog(..), mkDataCatalog
      ) 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 DataCatalog
    = DataCatalog {description :: (Prelude.Maybe (Value Prelude.Text)),
                   name :: (Value Prelude.Text),
                   parameters :: (Prelude.Maybe (Prelude.Map Prelude.Text (Value Prelude.Text))),
                   tags :: (Prelude.Maybe [Tag]),
                   type' :: (Value Prelude.Text)}
    deriving stock (Prelude.Eq, Prelude.Show)
  mkDataCatalog ::
    Value Prelude.Text -> Value Prelude.Text -> DataCatalog
  mkDataCatalog name type'
    = DataCatalog
        {name = name, type' = type', description = Prelude.Nothing,
         parameters = Prelude.Nothing, tags = Prelude.Nothing}
  instance ToResourceProperties DataCatalog where
    toResourceProperties DataCatalog {..}
      = ResourceProperties
          {awsType = "AWS::Athena::DataCatalog", supportsTags = Prelude.True,
           properties = Prelude.fromList
                          ((Prelude.<>)
                             ["Name" JSON..= name, "Type" JSON..= type']
                             (Prelude.catMaybes
                                [(JSON..=) "Description" Prelude.<$> description,
                                 (JSON..=) "Parameters" Prelude.<$> parameters,
                                 (JSON..=) "Tags" Prelude.<$> tags]))}
  instance JSON.ToJSON DataCatalog where
    toJSON DataCatalog {..}
      = JSON.object
          (Prelude.fromList
             ((Prelude.<>)
                ["Name" JSON..= name, "Type" JSON..= type']
                (Prelude.catMaybes
                   [(JSON..=) "Description" Prelude.<$> description,
                    (JSON..=) "Parameters" Prelude.<$> parameters,
                    (JSON..=) "Tags" Prelude.<$> tags])))
  instance Property "Description" DataCatalog where
    type PropertyType "Description" DataCatalog = Value Prelude.Text
    set newValue DataCatalog {..}
      = DataCatalog {description = Prelude.pure newValue, ..}
  instance Property "Name" DataCatalog where
    type PropertyType "Name" DataCatalog = Value Prelude.Text
    set newValue DataCatalog {..} = DataCatalog {name = newValue, ..}
  instance Property "Parameters" DataCatalog where
    type PropertyType "Parameters" DataCatalog = Prelude.Map Prelude.Text (Value Prelude.Text)
    set newValue DataCatalog {..}
      = DataCatalog {parameters = Prelude.pure newValue, ..}
  instance Property "Tags" DataCatalog where
    type PropertyType "Tags" DataCatalog = [Tag]
    set newValue DataCatalog {..}
      = DataCatalog {tags = Prelude.pure newValue, ..}
  instance Property "Type" DataCatalog where
    type PropertyType "Type" DataCatalog = Value Prelude.Text
    set newValue DataCatalog {..} = DataCatalog {type' = newValue, ..}