module Stratosphere.IoTAnalytics.Pipeline.SelectAttributesProperty (
SelectAttributesProperty(..), mkSelectAttributesProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SelectAttributesProperty
=
SelectAttributesProperty {SelectAttributesProperty -> ()
haddock_workaround_ :: (),
SelectAttributesProperty -> ValueList Text
attributes :: (ValueList Prelude.Text),
SelectAttributesProperty -> Value Text
name :: (Value Prelude.Text),
SelectAttributesProperty -> Maybe (Value Text)
next :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (SelectAttributesProperty -> SelectAttributesProperty -> Bool
(SelectAttributesProperty -> SelectAttributesProperty -> Bool)
-> (SelectAttributesProperty -> SelectAttributesProperty -> Bool)
-> Eq SelectAttributesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SelectAttributesProperty -> SelectAttributesProperty -> Bool
== :: SelectAttributesProperty -> SelectAttributesProperty -> Bool
$c/= :: SelectAttributesProperty -> SelectAttributesProperty -> Bool
/= :: SelectAttributesProperty -> SelectAttributesProperty -> Bool
Prelude.Eq, Int -> SelectAttributesProperty -> ShowS
[SelectAttributesProperty] -> ShowS
SelectAttributesProperty -> String
(Int -> SelectAttributesProperty -> ShowS)
-> (SelectAttributesProperty -> String)
-> ([SelectAttributesProperty] -> ShowS)
-> Show SelectAttributesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SelectAttributesProperty -> ShowS
showsPrec :: Int -> SelectAttributesProperty -> ShowS
$cshow :: SelectAttributesProperty -> String
show :: SelectAttributesProperty -> String
$cshowList :: [SelectAttributesProperty] -> ShowS
showList :: [SelectAttributesProperty] -> ShowS
Prelude.Show)
mkSelectAttributesProperty ::
ValueList Prelude.Text
-> Value Prelude.Text -> SelectAttributesProperty
mkSelectAttributesProperty :: ValueList Text -> Value Text -> SelectAttributesProperty
mkSelectAttributesProperty ValueList Text
attributes Value Text
name
= SelectAttributesProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), attributes :: ValueList Text
attributes = ValueList Text
attributes, name :: Value Text
name = Value Text
name,
next :: Maybe (Value Text)
next = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SelectAttributesProperty where
toResourceProperties :: SelectAttributesProperty -> ResourceProperties
toResourceProperties SelectAttributesProperty {Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: SelectAttributesProperty -> ()
attributes :: SelectAttributesProperty -> ValueList Text
name :: SelectAttributesProperty -> Value Text
next :: SelectAttributesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
attributes :: ValueList Text
name :: Value Text
next :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::IoTAnalytics::Pipeline.SelectAttributes",
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
"Attributes" Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ValueList Text
attributes, 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]
([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 SelectAttributesProperty where
toJSON :: SelectAttributesProperty -> Value
toJSON SelectAttributesProperty {Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: SelectAttributesProperty -> ()
attributes :: SelectAttributesProperty -> ValueList Text
name :: SelectAttributesProperty -> Value Text
next :: SelectAttributesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
attributes :: ValueList Text
name :: Value Text
next :: 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
"Attributes" Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ValueList Text
attributes, 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]
([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 "Attributes" SelectAttributesProperty where
type PropertyType "Attributes" SelectAttributesProperty = ValueList Prelude.Text
set :: PropertyType "Attributes" SelectAttributesProperty
-> SelectAttributesProperty -> SelectAttributesProperty
set PropertyType "Attributes" SelectAttributesProperty
newValue SelectAttributesProperty {Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: SelectAttributesProperty -> ()
attributes :: SelectAttributesProperty -> ValueList Text
name :: SelectAttributesProperty -> Value Text
next :: SelectAttributesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
attributes :: ValueList Text
name :: Value Text
next :: Maybe (Value Text)
..}
= SelectAttributesProperty {attributes :: ValueList Text
attributes = PropertyType "Attributes" SelectAttributesProperty
ValueList Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
name :: Value Text
next :: Maybe (Value Text)
haddock_workaround_ :: ()
name :: Value Text
next :: Maybe (Value Text)
..}
instance Property "Name" SelectAttributesProperty where
type PropertyType "Name" SelectAttributesProperty = Value Prelude.Text
set :: PropertyType "Name" SelectAttributesProperty
-> SelectAttributesProperty -> SelectAttributesProperty
set PropertyType "Name" SelectAttributesProperty
newValue SelectAttributesProperty {Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: SelectAttributesProperty -> ()
attributes :: SelectAttributesProperty -> ValueList Text
name :: SelectAttributesProperty -> Value Text
next :: SelectAttributesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
attributes :: ValueList Text
name :: Value Text
next :: Maybe (Value Text)
..}
= SelectAttributesProperty {name :: Value Text
name = PropertyType "Name" SelectAttributesProperty
Value Text
newValue, Maybe (Value Text)
()
ValueList Text
haddock_workaround_ :: ()
attributes :: ValueList Text
next :: Maybe (Value Text)
haddock_workaround_ :: ()
attributes :: ValueList Text
next :: Maybe (Value Text)
..}
instance Property "Next" SelectAttributesProperty where
type PropertyType "Next" SelectAttributesProperty = Value Prelude.Text
set :: PropertyType "Next" SelectAttributesProperty
-> SelectAttributesProperty -> SelectAttributesProperty
set PropertyType "Next" SelectAttributesProperty
newValue SelectAttributesProperty {Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: SelectAttributesProperty -> ()
attributes :: SelectAttributesProperty -> ValueList Text
name :: SelectAttributesProperty -> Value Text
next :: SelectAttributesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
attributes :: ValueList Text
name :: Value Text
next :: Maybe (Value Text)
..}
= SelectAttributesProperty {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" SelectAttributesProperty
Value Text
newValue, ()
ValueList Text
Value Text
haddock_workaround_ :: ()
attributes :: ValueList Text
name :: Value Text
haddock_workaround_ :: ()
attributes :: ValueList Text
name :: Value Text
..}