module Stratosphere.IoTAnalytics.Pipeline.RemoveAttributesProperty (
        RemoveAttributesProperty(..), mkRemoveAttributesProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data RemoveAttributesProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-pipeline-removeattributes.html>
    RemoveAttributesProperty {RemoveAttributesProperty -> ()
haddock_workaround_ :: (),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-pipeline-removeattributes.html#cfn-iotanalytics-pipeline-removeattributes-attributes>
                              RemoveAttributesProperty -> ValueList Text
attributes :: (ValueList Prelude.Text),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-pipeline-removeattributes.html#cfn-iotanalytics-pipeline-removeattributes-name>
                              RemoveAttributesProperty -> Value Text
name :: (Value Prelude.Text),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-pipeline-removeattributes.html#cfn-iotanalytics-pipeline-removeattributes-next>
                              RemoveAttributesProperty -> Maybe (Value Text)
next :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (RemoveAttributesProperty -> RemoveAttributesProperty -> Bool
(RemoveAttributesProperty -> RemoveAttributesProperty -> Bool)
-> (RemoveAttributesProperty -> RemoveAttributesProperty -> Bool)
-> Eq RemoveAttributesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: RemoveAttributesProperty -> RemoveAttributesProperty -> Bool
== :: RemoveAttributesProperty -> RemoveAttributesProperty -> Bool
$c/= :: RemoveAttributesProperty -> RemoveAttributesProperty -> Bool
/= :: RemoveAttributesProperty -> RemoveAttributesProperty -> Bool
Prelude.Eq, Int -> RemoveAttributesProperty -> ShowS
[RemoveAttributesProperty] -> ShowS
RemoveAttributesProperty -> String
(Int -> RemoveAttributesProperty -> ShowS)
-> (RemoveAttributesProperty -> String)
-> ([RemoveAttributesProperty] -> ShowS)
-> Show RemoveAttributesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> RemoveAttributesProperty -> ShowS
showsPrec :: Int -> RemoveAttributesProperty -> ShowS
$cshow :: RemoveAttributesProperty -> String
show :: RemoveAttributesProperty -> String
$cshowList :: [RemoveAttributesProperty] -> ShowS
showList :: [RemoveAttributesProperty] -> ShowS
Prelude.Show)
mkRemoveAttributesProperty ::
  ValueList Prelude.Text
  -> Value Prelude.Text -> RemoveAttributesProperty
mkRemoveAttributesProperty :: ValueList Text -> Value Text -> RemoveAttributesProperty
mkRemoveAttributesProperty ValueList Text
attributes Value Text
name
  = RemoveAttributesProperty
      {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 RemoveAttributesProperty where
  toResourceProperties :: RemoveAttributesProperty -> ResourceProperties
toResourceProperties RemoveAttributesProperty {Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: RemoveAttributesProperty -> ()
attributes :: RemoveAttributesProperty -> ValueList Text
name :: RemoveAttributesProperty -> Value Text
next :: RemoveAttributesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
attributes :: ValueList Text
name :: Value Text
next :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::IoTAnalytics::Pipeline.RemoveAttributes",
         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 RemoveAttributesProperty where
  toJSON :: RemoveAttributesProperty -> Value
toJSON RemoveAttributesProperty {Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: RemoveAttributesProperty -> ()
attributes :: RemoveAttributesProperty -> ValueList Text
name :: RemoveAttributesProperty -> Value Text
next :: RemoveAttributesProperty -> 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" RemoveAttributesProperty where
  type PropertyType "Attributes" RemoveAttributesProperty = ValueList Prelude.Text
  set :: PropertyType "Attributes" RemoveAttributesProperty
-> RemoveAttributesProperty -> RemoveAttributesProperty
set PropertyType "Attributes" RemoveAttributesProperty
newValue RemoveAttributesProperty {Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: RemoveAttributesProperty -> ()
attributes :: RemoveAttributesProperty -> ValueList Text
name :: RemoveAttributesProperty -> Value Text
next :: RemoveAttributesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
attributes :: ValueList Text
name :: Value Text
next :: Maybe (Value Text)
..}
    = RemoveAttributesProperty {attributes :: ValueList Text
attributes = PropertyType "Attributes" RemoveAttributesProperty
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" RemoveAttributesProperty where
  type PropertyType "Name" RemoveAttributesProperty = Value Prelude.Text
  set :: PropertyType "Name" RemoveAttributesProperty
-> RemoveAttributesProperty -> RemoveAttributesProperty
set PropertyType "Name" RemoveAttributesProperty
newValue RemoveAttributesProperty {Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: RemoveAttributesProperty -> ()
attributes :: RemoveAttributesProperty -> ValueList Text
name :: RemoveAttributesProperty -> Value Text
next :: RemoveAttributesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
attributes :: ValueList Text
name :: Value Text
next :: Maybe (Value Text)
..}
    = RemoveAttributesProperty {name :: Value Text
name = PropertyType "Name" RemoveAttributesProperty
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" RemoveAttributesProperty where
  type PropertyType "Next" RemoveAttributesProperty = Value Prelude.Text
  set :: PropertyType "Next" RemoveAttributesProperty
-> RemoveAttributesProperty -> RemoveAttributesProperty
set PropertyType "Next" RemoveAttributesProperty
newValue RemoveAttributesProperty {Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: RemoveAttributesProperty -> ()
attributes :: RemoveAttributesProperty -> ValueList Text
name :: RemoveAttributesProperty -> Value Text
next :: RemoveAttributesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
attributes :: ValueList Text
name :: Value Text
next :: Maybe (Value Text)
..}
    = RemoveAttributesProperty {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" RemoveAttributesProperty
Value Text
newValue, ()
ValueList Text
Value Text
haddock_workaround_ :: ()
attributes :: ValueList Text
name :: Value Text
haddock_workaround_ :: ()
attributes :: ValueList Text
name :: Value Text
..}