module Stratosphere.IoTAnalytics.Dataset.IotEventsDestinationConfigurationProperty (
        IotEventsDestinationConfigurationProperty(..),
        mkIotEventsDestinationConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data IotEventsDestinationConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-ioteventsdestinationconfiguration.html>
    IotEventsDestinationConfigurationProperty {IotEventsDestinationConfigurationProperty -> ()
haddock_workaround_ :: (),
                                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-ioteventsdestinationconfiguration.html#cfn-iotanalytics-dataset-ioteventsdestinationconfiguration-inputname>
                                               IotEventsDestinationConfigurationProperty -> Value Text
inputName :: (Value Prelude.Text),
                                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-ioteventsdestinationconfiguration.html#cfn-iotanalytics-dataset-ioteventsdestinationconfiguration-rolearn>
                                               IotEventsDestinationConfigurationProperty -> Value Text
roleArn :: (Value Prelude.Text)}
  deriving stock (IotEventsDestinationConfigurationProperty
-> IotEventsDestinationConfigurationProperty -> Bool
(IotEventsDestinationConfigurationProperty
 -> IotEventsDestinationConfigurationProperty -> Bool)
-> (IotEventsDestinationConfigurationProperty
    -> IotEventsDestinationConfigurationProperty -> Bool)
-> Eq IotEventsDestinationConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: IotEventsDestinationConfigurationProperty
-> IotEventsDestinationConfigurationProperty -> Bool
== :: IotEventsDestinationConfigurationProperty
-> IotEventsDestinationConfigurationProperty -> Bool
$c/= :: IotEventsDestinationConfigurationProperty
-> IotEventsDestinationConfigurationProperty -> Bool
/= :: IotEventsDestinationConfigurationProperty
-> IotEventsDestinationConfigurationProperty -> Bool
Prelude.Eq, Int -> IotEventsDestinationConfigurationProperty -> ShowS
[IotEventsDestinationConfigurationProperty] -> ShowS
IotEventsDestinationConfigurationProperty -> String
(Int -> IotEventsDestinationConfigurationProperty -> ShowS)
-> (IotEventsDestinationConfigurationProperty -> String)
-> ([IotEventsDestinationConfigurationProperty] -> ShowS)
-> Show IotEventsDestinationConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> IotEventsDestinationConfigurationProperty -> ShowS
showsPrec :: Int -> IotEventsDestinationConfigurationProperty -> ShowS
$cshow :: IotEventsDestinationConfigurationProperty -> String
show :: IotEventsDestinationConfigurationProperty -> String
$cshowList :: [IotEventsDestinationConfigurationProperty] -> ShowS
showList :: [IotEventsDestinationConfigurationProperty] -> ShowS
Prelude.Show)
mkIotEventsDestinationConfigurationProperty ::
  Value Prelude.Text
  -> Value Prelude.Text -> IotEventsDestinationConfigurationProperty
mkIotEventsDestinationConfigurationProperty :: Value Text
-> Value Text -> IotEventsDestinationConfigurationProperty
mkIotEventsDestinationConfigurationProperty Value Text
inputName Value Text
roleArn
  = IotEventsDestinationConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), inputName :: Value Text
inputName = Value Text
inputName,
       roleArn :: Value Text
roleArn = Value Text
roleArn}
instance ToResourceProperties IotEventsDestinationConfigurationProperty where
  toResourceProperties :: IotEventsDestinationConfigurationProperty -> ResourceProperties
toResourceProperties IotEventsDestinationConfigurationProperty {()
Value Text
haddock_workaround_ :: IotEventsDestinationConfigurationProperty -> ()
inputName :: IotEventsDestinationConfigurationProperty -> Value Text
roleArn :: IotEventsDestinationConfigurationProperty -> Value Text
haddock_workaround_ :: ()
inputName :: Value Text
roleArn :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::IoTAnalytics::Dataset.IotEventsDestinationConfiguration",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"InputName" 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
inputName,
                       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]}
instance JSON.ToJSON IotEventsDestinationConfigurationProperty where
  toJSON :: IotEventsDestinationConfigurationProperty -> Value
toJSON IotEventsDestinationConfigurationProperty {()
Value Text
haddock_workaround_ :: IotEventsDestinationConfigurationProperty -> ()
inputName :: IotEventsDestinationConfigurationProperty -> Value Text
roleArn :: IotEventsDestinationConfigurationProperty -> Value Text
haddock_workaround_ :: ()
inputName :: Value Text
roleArn :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"InputName" 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
inputName, 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]
instance Property "InputName" IotEventsDestinationConfigurationProperty where
  type PropertyType "InputName" IotEventsDestinationConfigurationProperty = Value Prelude.Text
  set :: PropertyType "InputName" IotEventsDestinationConfigurationProperty
-> IotEventsDestinationConfigurationProperty
-> IotEventsDestinationConfigurationProperty
set PropertyType "InputName" IotEventsDestinationConfigurationProperty
newValue IotEventsDestinationConfigurationProperty {()
Value Text
haddock_workaround_ :: IotEventsDestinationConfigurationProperty -> ()
inputName :: IotEventsDestinationConfigurationProperty -> Value Text
roleArn :: IotEventsDestinationConfigurationProperty -> Value Text
haddock_workaround_ :: ()
inputName :: Value Text
roleArn :: Value Text
..}
    = IotEventsDestinationConfigurationProperty
        {inputName :: Value Text
inputName = PropertyType "InputName" IotEventsDestinationConfigurationProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
roleArn :: Value Text
haddock_workaround_ :: ()
roleArn :: Value Text
..}
instance Property "RoleArn" IotEventsDestinationConfigurationProperty where
  type PropertyType "RoleArn" IotEventsDestinationConfigurationProperty = Value Prelude.Text
  set :: PropertyType "RoleArn" IotEventsDestinationConfigurationProperty
-> IotEventsDestinationConfigurationProperty
-> IotEventsDestinationConfigurationProperty
set PropertyType "RoleArn" IotEventsDestinationConfigurationProperty
newValue IotEventsDestinationConfigurationProperty {()
Value Text
haddock_workaround_ :: IotEventsDestinationConfigurationProperty -> ()
inputName :: IotEventsDestinationConfigurationProperty -> Value Text
roleArn :: IotEventsDestinationConfigurationProperty -> Value Text
haddock_workaround_ :: ()
inputName :: Value Text
roleArn :: Value Text
..}
    = IotEventsDestinationConfigurationProperty
        {roleArn :: Value Text
roleArn = PropertyType "RoleArn" IotEventsDestinationConfigurationProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
inputName :: Value Text
haddock_workaround_ :: ()
inputName :: Value Text
..}