module Stratosphere.IoTAnalytics.Pipeline.DeviceRegistryEnrichProperty (
        DeviceRegistryEnrichProperty(..), mkDeviceRegistryEnrichProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DeviceRegistryEnrichProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-pipeline-deviceregistryenrich.html>
    DeviceRegistryEnrichProperty {DeviceRegistryEnrichProperty -> ()
haddock_workaround_ :: (),
                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-pipeline-deviceregistryenrich.html#cfn-iotanalytics-pipeline-deviceregistryenrich-attribute>
                                  DeviceRegistryEnrichProperty -> Value Text
attribute :: (Value Prelude.Text),
                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-pipeline-deviceregistryenrich.html#cfn-iotanalytics-pipeline-deviceregistryenrich-name>
                                  DeviceRegistryEnrichProperty -> Value Text
name :: (Value Prelude.Text),
                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-pipeline-deviceregistryenrich.html#cfn-iotanalytics-pipeline-deviceregistryenrich-next>
                                  DeviceRegistryEnrichProperty -> Maybe (Value Text)
next :: (Prelude.Maybe (Value Prelude.Text)),
                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-pipeline-deviceregistryenrich.html#cfn-iotanalytics-pipeline-deviceregistryenrich-rolearn>
                                  DeviceRegistryEnrichProperty -> Value Text
roleArn :: (Value Prelude.Text),
                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-pipeline-deviceregistryenrich.html#cfn-iotanalytics-pipeline-deviceregistryenrich-thingname>
                                  DeviceRegistryEnrichProperty -> Value Text
thingName :: (Value Prelude.Text)}
  deriving stock (DeviceRegistryEnrichProperty
-> DeviceRegistryEnrichProperty -> Bool
(DeviceRegistryEnrichProperty
 -> DeviceRegistryEnrichProperty -> Bool)
-> (DeviceRegistryEnrichProperty
    -> DeviceRegistryEnrichProperty -> Bool)
-> Eq DeviceRegistryEnrichProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DeviceRegistryEnrichProperty
-> DeviceRegistryEnrichProperty -> Bool
== :: DeviceRegistryEnrichProperty
-> DeviceRegistryEnrichProperty -> Bool
$c/= :: DeviceRegistryEnrichProperty
-> DeviceRegistryEnrichProperty -> Bool
/= :: DeviceRegistryEnrichProperty
-> DeviceRegistryEnrichProperty -> Bool
Prelude.Eq, Int -> DeviceRegistryEnrichProperty -> ShowS
[DeviceRegistryEnrichProperty] -> ShowS
DeviceRegistryEnrichProperty -> String
(Int -> DeviceRegistryEnrichProperty -> ShowS)
-> (DeviceRegistryEnrichProperty -> String)
-> ([DeviceRegistryEnrichProperty] -> ShowS)
-> Show DeviceRegistryEnrichProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DeviceRegistryEnrichProperty -> ShowS
showsPrec :: Int -> DeviceRegistryEnrichProperty -> ShowS
$cshow :: DeviceRegistryEnrichProperty -> String
show :: DeviceRegistryEnrichProperty -> String
$cshowList :: [DeviceRegistryEnrichProperty] -> ShowS
showList :: [DeviceRegistryEnrichProperty] -> ShowS
Prelude.Show)
mkDeviceRegistryEnrichProperty ::
  Value Prelude.Text
  -> Value Prelude.Text
     -> Value Prelude.Text
        -> Value Prelude.Text -> DeviceRegistryEnrichProperty
mkDeviceRegistryEnrichProperty :: Value Text
-> Value Text
-> Value Text
-> Value Text
-> DeviceRegistryEnrichProperty
mkDeviceRegistryEnrichProperty Value Text
attribute Value Text
name Value Text
roleArn Value Text
thingName
  = DeviceRegistryEnrichProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), attribute :: Value Text
attribute = Value Text
attribute, name :: Value Text
name = Value Text
name,
       roleArn :: Value Text
roleArn = Value Text
roleArn, thingName :: Value Text
thingName = Value Text
thingName, next :: Maybe (Value Text)
next = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DeviceRegistryEnrichProperty where
  toResourceProperties :: DeviceRegistryEnrichProperty -> ResourceProperties
toResourceProperties DeviceRegistryEnrichProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: DeviceRegistryEnrichProperty -> ()
attribute :: DeviceRegistryEnrichProperty -> Value Text
name :: DeviceRegistryEnrichProperty -> Value Text
next :: DeviceRegistryEnrichProperty -> Maybe (Value Text)
roleArn :: DeviceRegistryEnrichProperty -> Value Text
thingName :: DeviceRegistryEnrichProperty -> Value Text
haddock_workaround_ :: ()
attribute :: Value Text
name :: Value Text
next :: Maybe (Value Text)
roleArn :: Value Text
thingName :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::IoTAnalytics::Pipeline.DeviceRegistryEnrich",
         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
"Attribute" 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
attribute, Key
"Name" 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
name,
                            Key
"RoleArn" 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
roleArn, Key
"ThingName" 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
thingName]
                           ([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
"Next" (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)
next]))}
instance JSON.ToJSON DeviceRegistryEnrichProperty where
  toJSON :: DeviceRegistryEnrichProperty -> Value
toJSON DeviceRegistryEnrichProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: DeviceRegistryEnrichProperty -> ()
attribute :: DeviceRegistryEnrichProperty -> Value Text
name :: DeviceRegistryEnrichProperty -> Value Text
next :: DeviceRegistryEnrichProperty -> Maybe (Value Text)
roleArn :: DeviceRegistryEnrichProperty -> Value Text
thingName :: DeviceRegistryEnrichProperty -> Value Text
haddock_workaround_ :: ()
attribute :: Value Text
name :: Value Text
next :: Maybe (Value Text)
roleArn :: Value Text
thingName :: 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
"Attribute" 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
attribute, Key
"Name" 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
name,
               Key
"RoleArn" 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
roleArn, Key
"ThingName" 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
thingName]
              ([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
"Next" (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)
next])))
instance Property "Attribute" DeviceRegistryEnrichProperty where
  type PropertyType "Attribute" DeviceRegistryEnrichProperty = Value Prelude.Text
  set :: PropertyType "Attribute" DeviceRegistryEnrichProperty
-> DeviceRegistryEnrichProperty -> DeviceRegistryEnrichProperty
set PropertyType "Attribute" DeviceRegistryEnrichProperty
newValue DeviceRegistryEnrichProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: DeviceRegistryEnrichProperty -> ()
attribute :: DeviceRegistryEnrichProperty -> Value Text
name :: DeviceRegistryEnrichProperty -> Value Text
next :: DeviceRegistryEnrichProperty -> Maybe (Value Text)
roleArn :: DeviceRegistryEnrichProperty -> Value Text
thingName :: DeviceRegistryEnrichProperty -> Value Text
haddock_workaround_ :: ()
attribute :: Value Text
name :: Value Text
next :: Maybe (Value Text)
roleArn :: Value Text
thingName :: Value Text
..}
    = DeviceRegistryEnrichProperty {attribute :: Value Text
attribute = PropertyType "Attribute" DeviceRegistryEnrichProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
name :: Value Text
next :: Maybe (Value Text)
roleArn :: Value Text
thingName :: Value Text
haddock_workaround_ :: ()
name :: Value Text
next :: Maybe (Value Text)
roleArn :: Value Text
thingName :: Value Text
..}
instance Property "Name" DeviceRegistryEnrichProperty where
  type PropertyType "Name" DeviceRegistryEnrichProperty = Value Prelude.Text
  set :: PropertyType "Name" DeviceRegistryEnrichProperty
-> DeviceRegistryEnrichProperty -> DeviceRegistryEnrichProperty
set PropertyType "Name" DeviceRegistryEnrichProperty
newValue DeviceRegistryEnrichProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: DeviceRegistryEnrichProperty -> ()
attribute :: DeviceRegistryEnrichProperty -> Value Text
name :: DeviceRegistryEnrichProperty -> Value Text
next :: DeviceRegistryEnrichProperty -> Maybe (Value Text)
roleArn :: DeviceRegistryEnrichProperty -> Value Text
thingName :: DeviceRegistryEnrichProperty -> Value Text
haddock_workaround_ :: ()
attribute :: Value Text
name :: Value Text
next :: Maybe (Value Text)
roleArn :: Value Text
thingName :: Value Text
..}
    = DeviceRegistryEnrichProperty {name :: Value Text
name = PropertyType "Name" DeviceRegistryEnrichProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
attribute :: Value Text
next :: Maybe (Value Text)
roleArn :: Value Text
thingName :: Value Text
haddock_workaround_ :: ()
attribute :: Value Text
next :: Maybe (Value Text)
roleArn :: Value Text
thingName :: Value Text
..}
instance Property "Next" DeviceRegistryEnrichProperty where
  type PropertyType "Next" DeviceRegistryEnrichProperty = Value Prelude.Text
  set :: PropertyType "Next" DeviceRegistryEnrichProperty
-> DeviceRegistryEnrichProperty -> DeviceRegistryEnrichProperty
set PropertyType "Next" DeviceRegistryEnrichProperty
newValue DeviceRegistryEnrichProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: DeviceRegistryEnrichProperty -> ()
attribute :: DeviceRegistryEnrichProperty -> Value Text
name :: DeviceRegistryEnrichProperty -> Value Text
next :: DeviceRegistryEnrichProperty -> Maybe (Value Text)
roleArn :: DeviceRegistryEnrichProperty -> Value Text
thingName :: DeviceRegistryEnrichProperty -> Value Text
haddock_workaround_ :: ()
attribute :: Value Text
name :: Value Text
next :: Maybe (Value Text)
roleArn :: Value Text
thingName :: Value Text
..}
    = DeviceRegistryEnrichProperty {next :: Maybe (Value Text)
next = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Next" DeviceRegistryEnrichProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
attribute :: Value Text
name :: Value Text
roleArn :: Value Text
thingName :: Value Text
haddock_workaround_ :: ()
attribute :: Value Text
name :: Value Text
roleArn :: Value Text
thingName :: Value Text
..}
instance Property "RoleArn" DeviceRegistryEnrichProperty where
  type PropertyType "RoleArn" DeviceRegistryEnrichProperty = Value Prelude.Text
  set :: PropertyType "RoleArn" DeviceRegistryEnrichProperty
-> DeviceRegistryEnrichProperty -> DeviceRegistryEnrichProperty
set PropertyType "RoleArn" DeviceRegistryEnrichProperty
newValue DeviceRegistryEnrichProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: DeviceRegistryEnrichProperty -> ()
attribute :: DeviceRegistryEnrichProperty -> Value Text
name :: DeviceRegistryEnrichProperty -> Value Text
next :: DeviceRegistryEnrichProperty -> Maybe (Value Text)
roleArn :: DeviceRegistryEnrichProperty -> Value Text
thingName :: DeviceRegistryEnrichProperty -> Value Text
haddock_workaround_ :: ()
attribute :: Value Text
name :: Value Text
next :: Maybe (Value Text)
roleArn :: Value Text
thingName :: Value Text
..}
    = DeviceRegistryEnrichProperty {roleArn :: Value Text
roleArn = PropertyType "RoleArn" DeviceRegistryEnrichProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
attribute :: Value Text
name :: Value Text
next :: Maybe (Value Text)
thingName :: Value Text
haddock_workaround_ :: ()
attribute :: Value Text
name :: Value Text
next :: Maybe (Value Text)
thingName :: Value Text
..}
instance Property "ThingName" DeviceRegistryEnrichProperty where
  type PropertyType "ThingName" DeviceRegistryEnrichProperty = Value Prelude.Text
  set :: PropertyType "ThingName" DeviceRegistryEnrichProperty
-> DeviceRegistryEnrichProperty -> DeviceRegistryEnrichProperty
set PropertyType "ThingName" DeviceRegistryEnrichProperty
newValue DeviceRegistryEnrichProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: DeviceRegistryEnrichProperty -> ()
attribute :: DeviceRegistryEnrichProperty -> Value Text
name :: DeviceRegistryEnrichProperty -> Value Text
next :: DeviceRegistryEnrichProperty -> Maybe (Value Text)
roleArn :: DeviceRegistryEnrichProperty -> Value Text
thingName :: DeviceRegistryEnrichProperty -> Value Text
haddock_workaround_ :: ()
attribute :: Value Text
name :: Value Text
next :: Maybe (Value Text)
roleArn :: Value Text
thingName :: Value Text
..}
    = DeviceRegistryEnrichProperty {thingName :: Value Text
thingName = PropertyType "ThingName" DeviceRegistryEnrichProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
attribute :: Value Text
name :: Value Text
next :: Maybe (Value Text)
roleArn :: Value Text
haddock_workaround_ :: ()
attribute :: Value Text
name :: Value Text
next :: Maybe (Value Text)
roleArn :: Value Text
..}