module Stratosphere.DataBrew.Dataset.PathParameterProperty (
        module Exports, PathParameterProperty(..), mkPathParameterProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.DataBrew.Dataset.DatasetParameterProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data PathParameterProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-databrew-dataset-pathparameter.html>
    PathParameterProperty {PathParameterProperty -> ()
haddock_workaround_ :: (),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-databrew-dataset-pathparameter.html#cfn-databrew-dataset-pathparameter-datasetparameter>
                           PathParameterProperty -> DatasetParameterProperty
datasetParameter :: DatasetParameterProperty,
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-databrew-dataset-pathparameter.html#cfn-databrew-dataset-pathparameter-pathparametername>
                           PathParameterProperty -> Value Text
pathParameterName :: (Value Prelude.Text)}
  deriving stock (PathParameterProperty -> PathParameterProperty -> Bool
(PathParameterProperty -> PathParameterProperty -> Bool)
-> (PathParameterProperty -> PathParameterProperty -> Bool)
-> Eq PathParameterProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: PathParameterProperty -> PathParameterProperty -> Bool
== :: PathParameterProperty -> PathParameterProperty -> Bool
$c/= :: PathParameterProperty -> PathParameterProperty -> Bool
/= :: PathParameterProperty -> PathParameterProperty -> Bool
Prelude.Eq, Int -> PathParameterProperty -> ShowS
[PathParameterProperty] -> ShowS
PathParameterProperty -> String
(Int -> PathParameterProperty -> ShowS)
-> (PathParameterProperty -> String)
-> ([PathParameterProperty] -> ShowS)
-> Show PathParameterProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> PathParameterProperty -> ShowS
showsPrec :: Int -> PathParameterProperty -> ShowS
$cshow :: PathParameterProperty -> String
show :: PathParameterProperty -> String
$cshowList :: [PathParameterProperty] -> ShowS
showList :: [PathParameterProperty] -> ShowS
Prelude.Show)
mkPathParameterProperty ::
  DatasetParameterProperty
  -> Value Prelude.Text -> PathParameterProperty
mkPathParameterProperty :: DatasetParameterProperty -> Value Text -> PathParameterProperty
mkPathParameterProperty DatasetParameterProperty
datasetParameter Value Text
pathParameterName
  = PathParameterProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), datasetParameter :: DatasetParameterProperty
datasetParameter = DatasetParameterProperty
datasetParameter,
       pathParameterName :: Value Text
pathParameterName = Value Text
pathParameterName}
instance ToResourceProperties PathParameterProperty where
  toResourceProperties :: PathParameterProperty -> ResourceProperties
toResourceProperties PathParameterProperty {()
Value Text
DatasetParameterProperty
haddock_workaround_ :: PathParameterProperty -> ()
datasetParameter :: PathParameterProperty -> DatasetParameterProperty
pathParameterName :: PathParameterProperty -> Value Text
haddock_workaround_ :: ()
datasetParameter :: DatasetParameterProperty
pathParameterName :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::DataBrew::Dataset.PathParameter",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"DatasetParameter" Key -> DatasetParameterProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= DatasetParameterProperty
datasetParameter,
                       Key
"PathParameterName" 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
pathParameterName]}
instance JSON.ToJSON PathParameterProperty where
  toJSON :: PathParameterProperty -> Value
toJSON PathParameterProperty {()
Value Text
DatasetParameterProperty
haddock_workaround_ :: PathParameterProperty -> ()
datasetParameter :: PathParameterProperty -> DatasetParameterProperty
pathParameterName :: PathParameterProperty -> Value Text
haddock_workaround_ :: ()
datasetParameter :: DatasetParameterProperty
pathParameterName :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"DatasetParameter" Key -> DatasetParameterProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= DatasetParameterProperty
datasetParameter,
         Key
"PathParameterName" 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
pathParameterName]
instance Property "DatasetParameter" PathParameterProperty where
  type PropertyType "DatasetParameter" PathParameterProperty = DatasetParameterProperty
  set :: PropertyType "DatasetParameter" PathParameterProperty
-> PathParameterProperty -> PathParameterProperty
set PropertyType "DatasetParameter" PathParameterProperty
newValue PathParameterProperty {()
Value Text
DatasetParameterProperty
haddock_workaround_ :: PathParameterProperty -> ()
datasetParameter :: PathParameterProperty -> DatasetParameterProperty
pathParameterName :: PathParameterProperty -> Value Text
haddock_workaround_ :: ()
datasetParameter :: DatasetParameterProperty
pathParameterName :: Value Text
..}
    = PathParameterProperty {datasetParameter :: DatasetParameterProperty
datasetParameter = PropertyType "DatasetParameter" PathParameterProperty
DatasetParameterProperty
newValue, ()
Value Text
haddock_workaround_ :: ()
pathParameterName :: Value Text
haddock_workaround_ :: ()
pathParameterName :: Value Text
..}
instance Property "PathParameterName" PathParameterProperty where
  type PropertyType "PathParameterName" PathParameterProperty = Value Prelude.Text
  set :: PropertyType "PathParameterName" PathParameterProperty
-> PathParameterProperty -> PathParameterProperty
set PropertyType "PathParameterName" PathParameterProperty
newValue PathParameterProperty {()
Value Text
DatasetParameterProperty
haddock_workaround_ :: PathParameterProperty -> ()
datasetParameter :: PathParameterProperty -> DatasetParameterProperty
pathParameterName :: PathParameterProperty -> Value Text
haddock_workaround_ :: ()
datasetParameter :: DatasetParameterProperty
pathParameterName :: Value Text
..}
    = PathParameterProperty {pathParameterName :: Value Text
pathParameterName = PropertyType "PathParameterName" PathParameterProperty
Value Text
newValue, ()
DatasetParameterProperty
haddock_workaround_ :: ()
datasetParameter :: DatasetParameterProperty
haddock_workaround_ :: ()
datasetParameter :: DatasetParameterProperty
..}