module Stratosphere.IoTEvents.Input.AttributeProperty (
        AttributeProperty(..), mkAttributeProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AttributeProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotevents-input-attribute.html>
    AttributeProperty {AttributeProperty -> ()
haddock_workaround_ :: (),
                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotevents-input-attribute.html#cfn-iotevents-input-attribute-jsonpath>
                       AttributeProperty -> Value Text
jsonPath :: (Value Prelude.Text)}
  deriving stock (AttributeProperty -> AttributeProperty -> Bool
(AttributeProperty -> AttributeProperty -> Bool)
-> (AttributeProperty -> AttributeProperty -> Bool)
-> Eq AttributeProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AttributeProperty -> AttributeProperty -> Bool
== :: AttributeProperty -> AttributeProperty -> Bool
$c/= :: AttributeProperty -> AttributeProperty -> Bool
/= :: AttributeProperty -> AttributeProperty -> Bool
Prelude.Eq, Int -> AttributeProperty -> ShowS
[AttributeProperty] -> ShowS
AttributeProperty -> String
(Int -> AttributeProperty -> ShowS)
-> (AttributeProperty -> String)
-> ([AttributeProperty] -> ShowS)
-> Show AttributeProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AttributeProperty -> ShowS
showsPrec :: Int -> AttributeProperty -> ShowS
$cshow :: AttributeProperty -> String
show :: AttributeProperty -> String
$cshowList :: [AttributeProperty] -> ShowS
showList :: [AttributeProperty] -> ShowS
Prelude.Show)
mkAttributeProperty :: Value Prelude.Text -> AttributeProperty
mkAttributeProperty :: Value Text -> AttributeProperty
mkAttributeProperty Value Text
jsonPath
  = AttributeProperty {haddock_workaround_ :: ()
haddock_workaround_ = (), jsonPath :: Value Text
jsonPath = Value Text
jsonPath}
instance ToResourceProperties AttributeProperty where
  toResourceProperties :: AttributeProperty -> ResourceProperties
toResourceProperties AttributeProperty {()
Value Text
haddock_workaround_ :: AttributeProperty -> ()
jsonPath :: AttributeProperty -> Value Text
haddock_workaround_ :: ()
jsonPath :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::IoTEvents::Input.Attribute",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"JsonPath" 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
jsonPath]}
instance JSON.ToJSON AttributeProperty where
  toJSON :: AttributeProperty -> Value
toJSON AttributeProperty {()
Value Text
haddock_workaround_ :: AttributeProperty -> ()
jsonPath :: AttributeProperty -> Value Text
haddock_workaround_ :: ()
jsonPath :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"JsonPath" 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
jsonPath]
instance Property "JsonPath" AttributeProperty where
  type PropertyType "JsonPath" AttributeProperty = Value Prelude.Text
  set :: PropertyType "JsonPath" AttributeProperty
-> AttributeProperty -> AttributeProperty
set PropertyType "JsonPath" AttributeProperty
newValue AttributeProperty {()
Value Text
haddock_workaround_ :: AttributeProperty -> ()
jsonPath :: AttributeProperty -> Value Text
haddock_workaround_ :: ()
jsonPath :: Value Text
..}
    = AttributeProperty {jsonPath :: Value Text
jsonPath = PropertyType "JsonPath" AttributeProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}