module Stratosphere.IoTAnalytics.Dataset.DatasetContentDeliveryRuleProperty (
module Exports, DatasetContentDeliveryRuleProperty(..),
mkDatasetContentDeliveryRuleProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.IoTAnalytics.Dataset.DatasetContentDeliveryRuleDestinationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DatasetContentDeliveryRuleProperty
=
DatasetContentDeliveryRuleProperty {DatasetContentDeliveryRuleProperty -> ()
haddock_workaround_ :: (),
DatasetContentDeliveryRuleProperty
-> DatasetContentDeliveryRuleDestinationProperty
destination :: DatasetContentDeliveryRuleDestinationProperty,
DatasetContentDeliveryRuleProperty -> Maybe (Value Text)
entryName :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (DatasetContentDeliveryRuleProperty
-> DatasetContentDeliveryRuleProperty -> Bool
(DatasetContentDeliveryRuleProperty
-> DatasetContentDeliveryRuleProperty -> Bool)
-> (DatasetContentDeliveryRuleProperty
-> DatasetContentDeliveryRuleProperty -> Bool)
-> Eq DatasetContentDeliveryRuleProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DatasetContentDeliveryRuleProperty
-> DatasetContentDeliveryRuleProperty -> Bool
== :: DatasetContentDeliveryRuleProperty
-> DatasetContentDeliveryRuleProperty -> Bool
$c/= :: DatasetContentDeliveryRuleProperty
-> DatasetContentDeliveryRuleProperty -> Bool
/= :: DatasetContentDeliveryRuleProperty
-> DatasetContentDeliveryRuleProperty -> Bool
Prelude.Eq, Int -> DatasetContentDeliveryRuleProperty -> ShowS
[DatasetContentDeliveryRuleProperty] -> ShowS
DatasetContentDeliveryRuleProperty -> String
(Int -> DatasetContentDeliveryRuleProperty -> ShowS)
-> (DatasetContentDeliveryRuleProperty -> String)
-> ([DatasetContentDeliveryRuleProperty] -> ShowS)
-> Show DatasetContentDeliveryRuleProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DatasetContentDeliveryRuleProperty -> ShowS
showsPrec :: Int -> DatasetContentDeliveryRuleProperty -> ShowS
$cshow :: DatasetContentDeliveryRuleProperty -> String
show :: DatasetContentDeliveryRuleProperty -> String
$cshowList :: [DatasetContentDeliveryRuleProperty] -> ShowS
showList :: [DatasetContentDeliveryRuleProperty] -> ShowS
Prelude.Show)
mkDatasetContentDeliveryRuleProperty ::
DatasetContentDeliveryRuleDestinationProperty
-> DatasetContentDeliveryRuleProperty
mkDatasetContentDeliveryRuleProperty :: DatasetContentDeliveryRuleDestinationProperty
-> DatasetContentDeliveryRuleProperty
mkDatasetContentDeliveryRuleProperty DatasetContentDeliveryRuleDestinationProperty
destination
= DatasetContentDeliveryRuleProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), destination :: DatasetContentDeliveryRuleDestinationProperty
destination = DatasetContentDeliveryRuleDestinationProperty
destination,
entryName :: Maybe (Value Text)
entryName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DatasetContentDeliveryRuleProperty where
toResourceProperties :: DatasetContentDeliveryRuleProperty -> ResourceProperties
toResourceProperties DatasetContentDeliveryRuleProperty {Maybe (Value Text)
()
DatasetContentDeliveryRuleDestinationProperty
haddock_workaround_ :: DatasetContentDeliveryRuleProperty -> ()
destination :: DatasetContentDeliveryRuleProperty
-> DatasetContentDeliveryRuleDestinationProperty
entryName :: DatasetContentDeliveryRuleProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
destination :: DatasetContentDeliveryRuleDestinationProperty
entryName :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::IoTAnalytics::Dataset.DatasetContentDeliveryRule",
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
"Destination" Key
-> DatasetContentDeliveryRuleDestinationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= DatasetContentDeliveryRuleDestinationProperty
destination]
([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
"EntryName" (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)
entryName]))}
instance JSON.ToJSON DatasetContentDeliveryRuleProperty where
toJSON :: DatasetContentDeliveryRuleProperty -> Value
toJSON DatasetContentDeliveryRuleProperty {Maybe (Value Text)
()
DatasetContentDeliveryRuleDestinationProperty
haddock_workaround_ :: DatasetContentDeliveryRuleProperty -> ()
destination :: DatasetContentDeliveryRuleProperty
-> DatasetContentDeliveryRuleDestinationProperty
entryName :: DatasetContentDeliveryRuleProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
destination :: DatasetContentDeliveryRuleDestinationProperty
entryName :: Maybe (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
"Destination" Key
-> DatasetContentDeliveryRuleDestinationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= DatasetContentDeliveryRuleDestinationProperty
destination]
([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
"EntryName" (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)
entryName])))
instance Property "Destination" DatasetContentDeliveryRuleProperty where
type PropertyType "Destination" DatasetContentDeliveryRuleProperty = DatasetContentDeliveryRuleDestinationProperty
set :: PropertyType "Destination" DatasetContentDeliveryRuleProperty
-> DatasetContentDeliveryRuleProperty
-> DatasetContentDeliveryRuleProperty
set PropertyType "Destination" DatasetContentDeliveryRuleProperty
newValue DatasetContentDeliveryRuleProperty {Maybe (Value Text)
()
DatasetContentDeliveryRuleDestinationProperty
haddock_workaround_ :: DatasetContentDeliveryRuleProperty -> ()
destination :: DatasetContentDeliveryRuleProperty
-> DatasetContentDeliveryRuleDestinationProperty
entryName :: DatasetContentDeliveryRuleProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
destination :: DatasetContentDeliveryRuleDestinationProperty
entryName :: Maybe (Value Text)
..}
= DatasetContentDeliveryRuleProperty {destination :: DatasetContentDeliveryRuleDestinationProperty
destination = PropertyType "Destination" DatasetContentDeliveryRuleProperty
DatasetContentDeliveryRuleDestinationProperty
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
entryName :: Maybe (Value Text)
haddock_workaround_ :: ()
entryName :: Maybe (Value Text)
..}
instance Property "EntryName" DatasetContentDeliveryRuleProperty where
type PropertyType "EntryName" DatasetContentDeliveryRuleProperty = Value Prelude.Text
set :: PropertyType "EntryName" DatasetContentDeliveryRuleProperty
-> DatasetContentDeliveryRuleProperty
-> DatasetContentDeliveryRuleProperty
set PropertyType "EntryName" DatasetContentDeliveryRuleProperty
newValue DatasetContentDeliveryRuleProperty {Maybe (Value Text)
()
DatasetContentDeliveryRuleDestinationProperty
haddock_workaround_ :: DatasetContentDeliveryRuleProperty -> ()
destination :: DatasetContentDeliveryRuleProperty
-> DatasetContentDeliveryRuleDestinationProperty
entryName :: DatasetContentDeliveryRuleProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
destination :: DatasetContentDeliveryRuleDestinationProperty
entryName :: Maybe (Value Text)
..}
= DatasetContentDeliveryRuleProperty
{entryName :: Maybe (Value Text)
entryName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "EntryName" DatasetContentDeliveryRuleProperty
Value Text
newValue, ()
DatasetContentDeliveryRuleDestinationProperty
haddock_workaround_ :: ()
destination :: DatasetContentDeliveryRuleDestinationProperty
haddock_workaround_ :: ()
destination :: DatasetContentDeliveryRuleDestinationProperty
..}