module Stratosphere.Glue.Classifier.XMLClassifierProperty (
        XMLClassifierProperty(..), mkXMLClassifierProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data XMLClassifierProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-classifier-xmlclassifier.html>
    XMLClassifierProperty {XMLClassifierProperty -> ()
haddock_workaround_ :: (),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-classifier-xmlclassifier.html#cfn-glue-classifier-xmlclassifier-classification>
                           XMLClassifierProperty -> Value Text
classification :: (Value Prelude.Text),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-classifier-xmlclassifier.html#cfn-glue-classifier-xmlclassifier-name>
                           XMLClassifierProperty -> Maybe (Value Text)
name :: (Prelude.Maybe (Value Prelude.Text)),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-classifier-xmlclassifier.html#cfn-glue-classifier-xmlclassifier-rowtag>
                           XMLClassifierProperty -> Value Text
rowTag :: (Value Prelude.Text)}
  deriving stock (XMLClassifierProperty -> XMLClassifierProperty -> Bool
(XMLClassifierProperty -> XMLClassifierProperty -> Bool)
-> (XMLClassifierProperty -> XMLClassifierProperty -> Bool)
-> Eq XMLClassifierProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: XMLClassifierProperty -> XMLClassifierProperty -> Bool
== :: XMLClassifierProperty -> XMLClassifierProperty -> Bool
$c/= :: XMLClassifierProperty -> XMLClassifierProperty -> Bool
/= :: XMLClassifierProperty -> XMLClassifierProperty -> Bool
Prelude.Eq, Int -> XMLClassifierProperty -> ShowS
[XMLClassifierProperty] -> ShowS
XMLClassifierProperty -> String
(Int -> XMLClassifierProperty -> ShowS)
-> (XMLClassifierProperty -> String)
-> ([XMLClassifierProperty] -> ShowS)
-> Show XMLClassifierProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> XMLClassifierProperty -> ShowS
showsPrec :: Int -> XMLClassifierProperty -> ShowS
$cshow :: XMLClassifierProperty -> String
show :: XMLClassifierProperty -> String
$cshowList :: [XMLClassifierProperty] -> ShowS
showList :: [XMLClassifierProperty] -> ShowS
Prelude.Show)
mkXMLClassifierProperty ::
  Value Prelude.Text -> Value Prelude.Text -> XMLClassifierProperty
mkXMLClassifierProperty :: Value Text -> Value Text -> XMLClassifierProperty
mkXMLClassifierProperty Value Text
classification Value Text
rowTag
  = XMLClassifierProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), classification :: Value Text
classification = Value Text
classification,
       rowTag :: Value Text
rowTag = Value Text
rowTag, name :: Maybe (Value Text)
name = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties XMLClassifierProperty where
  toResourceProperties :: XMLClassifierProperty -> ResourceProperties
toResourceProperties XMLClassifierProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: XMLClassifierProperty -> ()
classification :: XMLClassifierProperty -> Value Text
name :: XMLClassifierProperty -> Maybe (Value Text)
rowTag :: XMLClassifierProperty -> Value Text
haddock_workaround_ :: ()
classification :: Value Text
name :: Maybe (Value Text)
rowTag :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Glue::Classifier.XMLClassifier",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         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
"Classification" 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
classification, Key
"RowTag" 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
rowTag]
                           ([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
"Name" (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)
name]))}
instance JSON.ToJSON XMLClassifierProperty where
  toJSON :: XMLClassifierProperty -> Value
toJSON XMLClassifierProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: XMLClassifierProperty -> ()
classification :: XMLClassifierProperty -> Value Text
name :: XMLClassifierProperty -> Maybe (Value Text)
rowTag :: XMLClassifierProperty -> Value Text
haddock_workaround_ :: ()
classification :: Value Text
name :: Maybe (Value Text)
rowTag :: 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
"Classification" 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
classification, Key
"RowTag" 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
rowTag]
              ([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
"Name" (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)
name])))
instance Property "Classification" XMLClassifierProperty where
  type PropertyType "Classification" XMLClassifierProperty = Value Prelude.Text
  set :: PropertyType "Classification" XMLClassifierProperty
-> XMLClassifierProperty -> XMLClassifierProperty
set PropertyType "Classification" XMLClassifierProperty
newValue XMLClassifierProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: XMLClassifierProperty -> ()
classification :: XMLClassifierProperty -> Value Text
name :: XMLClassifierProperty -> Maybe (Value Text)
rowTag :: XMLClassifierProperty -> Value Text
haddock_workaround_ :: ()
classification :: Value Text
name :: Maybe (Value Text)
rowTag :: Value Text
..}
    = XMLClassifierProperty {classification :: Value Text
classification = PropertyType "Classification" XMLClassifierProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
name :: Maybe (Value Text)
rowTag :: Value Text
haddock_workaround_ :: ()
name :: Maybe (Value Text)
rowTag :: Value Text
..}
instance Property "Name" XMLClassifierProperty where
  type PropertyType "Name" XMLClassifierProperty = Value Prelude.Text
  set :: PropertyType "Name" XMLClassifierProperty
-> XMLClassifierProperty -> XMLClassifierProperty
set PropertyType "Name" XMLClassifierProperty
newValue XMLClassifierProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: XMLClassifierProperty -> ()
classification :: XMLClassifierProperty -> Value Text
name :: XMLClassifierProperty -> Maybe (Value Text)
rowTag :: XMLClassifierProperty -> Value Text
haddock_workaround_ :: ()
classification :: Value Text
name :: Maybe (Value Text)
rowTag :: Value Text
..}
    = XMLClassifierProperty {name :: Maybe (Value Text)
name = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Name" XMLClassifierProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
classification :: Value Text
rowTag :: Value Text
haddock_workaround_ :: ()
classification :: Value Text
rowTag :: Value Text
..}
instance Property "RowTag" XMLClassifierProperty where
  type PropertyType "RowTag" XMLClassifierProperty = Value Prelude.Text
  set :: PropertyType "RowTag" XMLClassifierProperty
-> XMLClassifierProperty -> XMLClassifierProperty
set PropertyType "RowTag" XMLClassifierProperty
newValue XMLClassifierProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: XMLClassifierProperty -> ()
classification :: XMLClassifierProperty -> Value Text
name :: XMLClassifierProperty -> Maybe (Value Text)
rowTag :: XMLClassifierProperty -> Value Text
haddock_workaround_ :: ()
classification :: Value Text
name :: Maybe (Value Text)
rowTag :: Value Text
..}
    = XMLClassifierProperty {rowTag :: Value Text
rowTag = PropertyType "RowTag" XMLClassifierProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
classification :: Value Text
name :: Maybe (Value Text)
haddock_workaround_ :: ()
classification :: Value Text
name :: Maybe (Value Text)
..}