module Stratosphere.IoTAnalytics.Dataset.OutputFileUriValueProperty (
OutputFileUriValueProperty(..), mkOutputFileUriValueProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data OutputFileUriValueProperty
=
OutputFileUriValueProperty {OutputFileUriValueProperty -> ()
haddock_workaround_ :: (),
OutputFileUriValueProperty -> Value Text
fileName :: (Value Prelude.Text)}
deriving stock (OutputFileUriValueProperty -> OutputFileUriValueProperty -> Bool
(OutputFileUriValueProperty -> OutputFileUriValueProperty -> Bool)
-> (OutputFileUriValueProperty
-> OutputFileUriValueProperty -> Bool)
-> Eq OutputFileUriValueProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: OutputFileUriValueProperty -> OutputFileUriValueProperty -> Bool
== :: OutputFileUriValueProperty -> OutputFileUriValueProperty -> Bool
$c/= :: OutputFileUriValueProperty -> OutputFileUriValueProperty -> Bool
/= :: OutputFileUriValueProperty -> OutputFileUriValueProperty -> Bool
Prelude.Eq, Int -> OutputFileUriValueProperty -> ShowS
[OutputFileUriValueProperty] -> ShowS
OutputFileUriValueProperty -> String
(Int -> OutputFileUriValueProperty -> ShowS)
-> (OutputFileUriValueProperty -> String)
-> ([OutputFileUriValueProperty] -> ShowS)
-> Show OutputFileUriValueProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> OutputFileUriValueProperty -> ShowS
showsPrec :: Int -> OutputFileUriValueProperty -> ShowS
$cshow :: OutputFileUriValueProperty -> String
show :: OutputFileUriValueProperty -> String
$cshowList :: [OutputFileUriValueProperty] -> ShowS
showList :: [OutputFileUriValueProperty] -> ShowS
Prelude.Show)
mkOutputFileUriValueProperty ::
Value Prelude.Text -> OutputFileUriValueProperty
mkOutputFileUriValueProperty :: Value Text -> OutputFileUriValueProperty
mkOutputFileUriValueProperty Value Text
fileName
= OutputFileUriValueProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), fileName :: Value Text
fileName = Value Text
fileName}
instance ToResourceProperties OutputFileUriValueProperty where
toResourceProperties :: OutputFileUriValueProperty -> ResourceProperties
toResourceProperties OutputFileUriValueProperty {()
Value Text
haddock_workaround_ :: OutputFileUriValueProperty -> ()
fileName :: OutputFileUriValueProperty -> Value Text
haddock_workaround_ :: ()
fileName :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::IoTAnalytics::Dataset.OutputFileUriValue",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"FileName" 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
fileName]}
instance JSON.ToJSON OutputFileUriValueProperty where
toJSON :: OutputFileUriValueProperty -> Value
toJSON OutputFileUriValueProperty {()
Value Text
haddock_workaround_ :: OutputFileUriValueProperty -> ()
fileName :: OutputFileUriValueProperty -> Value Text
haddock_workaround_ :: ()
fileName :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object [Key
"FileName" 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
fileName]
instance Property "FileName" OutputFileUriValueProperty where
type PropertyType "FileName" OutputFileUriValueProperty = Value Prelude.Text
set :: PropertyType "FileName" OutputFileUriValueProperty
-> OutputFileUriValueProperty -> OutputFileUriValueProperty
set PropertyType "FileName" OutputFileUriValueProperty
newValue OutputFileUriValueProperty {()
Value Text
haddock_workaround_ :: OutputFileUriValueProperty -> ()
fileName :: OutputFileUriValueProperty -> Value Text
haddock_workaround_ :: ()
fileName :: Value Text
..}
= OutputFileUriValueProperty {fileName :: Value Text
fileName = PropertyType "FileName" OutputFileUriValueProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}