module Stratosphere.Pipes.Pipe.PipeTargetCloudWatchLogsParametersProperty (
PipeTargetCloudWatchLogsParametersProperty(..),
mkPipeTargetCloudWatchLogsParametersProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data PipeTargetCloudWatchLogsParametersProperty
=
PipeTargetCloudWatchLogsParametersProperty {PipeTargetCloudWatchLogsParametersProperty -> ()
haddock_workaround_ :: (),
PipeTargetCloudWatchLogsParametersProperty -> Maybe (Value Text)
logStreamName :: (Prelude.Maybe (Value Prelude.Text)),
PipeTargetCloudWatchLogsParametersProperty -> Maybe (Value Text)
timestamp :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (PipeTargetCloudWatchLogsParametersProperty
-> PipeTargetCloudWatchLogsParametersProperty -> Bool
(PipeTargetCloudWatchLogsParametersProperty
-> PipeTargetCloudWatchLogsParametersProperty -> Bool)
-> (PipeTargetCloudWatchLogsParametersProperty
-> PipeTargetCloudWatchLogsParametersProperty -> Bool)
-> Eq PipeTargetCloudWatchLogsParametersProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: PipeTargetCloudWatchLogsParametersProperty
-> PipeTargetCloudWatchLogsParametersProperty -> Bool
== :: PipeTargetCloudWatchLogsParametersProperty
-> PipeTargetCloudWatchLogsParametersProperty -> Bool
$c/= :: PipeTargetCloudWatchLogsParametersProperty
-> PipeTargetCloudWatchLogsParametersProperty -> Bool
/= :: PipeTargetCloudWatchLogsParametersProperty
-> PipeTargetCloudWatchLogsParametersProperty -> Bool
Prelude.Eq, Int -> PipeTargetCloudWatchLogsParametersProperty -> ShowS
[PipeTargetCloudWatchLogsParametersProperty] -> ShowS
PipeTargetCloudWatchLogsParametersProperty -> String
(Int -> PipeTargetCloudWatchLogsParametersProperty -> ShowS)
-> (PipeTargetCloudWatchLogsParametersProperty -> String)
-> ([PipeTargetCloudWatchLogsParametersProperty] -> ShowS)
-> Show PipeTargetCloudWatchLogsParametersProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> PipeTargetCloudWatchLogsParametersProperty -> ShowS
showsPrec :: Int -> PipeTargetCloudWatchLogsParametersProperty -> ShowS
$cshow :: PipeTargetCloudWatchLogsParametersProperty -> String
show :: PipeTargetCloudWatchLogsParametersProperty -> String
$cshowList :: [PipeTargetCloudWatchLogsParametersProperty] -> ShowS
showList :: [PipeTargetCloudWatchLogsParametersProperty] -> ShowS
Prelude.Show)
mkPipeTargetCloudWatchLogsParametersProperty ::
PipeTargetCloudWatchLogsParametersProperty
mkPipeTargetCloudWatchLogsParametersProperty :: PipeTargetCloudWatchLogsParametersProperty
mkPipeTargetCloudWatchLogsParametersProperty
= PipeTargetCloudWatchLogsParametersProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), logStreamName :: Maybe (Value Text)
logStreamName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
timestamp :: Maybe (Value Text)
timestamp = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties PipeTargetCloudWatchLogsParametersProperty where
toResourceProperties :: PipeTargetCloudWatchLogsParametersProperty -> ResourceProperties
toResourceProperties
PipeTargetCloudWatchLogsParametersProperty {Maybe (Value Text)
()
haddock_workaround_ :: PipeTargetCloudWatchLogsParametersProperty -> ()
logStreamName :: PipeTargetCloudWatchLogsParametersProperty -> Maybe (Value Text)
timestamp :: PipeTargetCloudWatchLogsParametersProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
logStreamName :: Maybe (Value Text)
timestamp :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Pipes::Pipe.PipeTargetCloudWatchLogsParameters",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([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
"LogStreamName" (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)
logStreamName,
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
"Timestamp" (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)
timestamp])}
instance JSON.ToJSON PipeTargetCloudWatchLogsParametersProperty where
toJSON :: PipeTargetCloudWatchLogsParametersProperty -> Value
toJSON PipeTargetCloudWatchLogsParametersProperty {Maybe (Value Text)
()
haddock_workaround_ :: PipeTargetCloudWatchLogsParametersProperty -> ()
logStreamName :: PipeTargetCloudWatchLogsParametersProperty -> Maybe (Value Text)
timestamp :: PipeTargetCloudWatchLogsParametersProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
logStreamName :: Maybe (Value Text)
timestamp :: Maybe (Value Text)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([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
"LogStreamName" (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)
logStreamName,
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
"Timestamp" (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)
timestamp]))
instance Property "LogStreamName" PipeTargetCloudWatchLogsParametersProperty where
type PropertyType "LogStreamName" PipeTargetCloudWatchLogsParametersProperty = Value Prelude.Text
set :: PropertyType
"LogStreamName" PipeTargetCloudWatchLogsParametersProperty
-> PipeTargetCloudWatchLogsParametersProperty
-> PipeTargetCloudWatchLogsParametersProperty
set PropertyType
"LogStreamName" PipeTargetCloudWatchLogsParametersProperty
newValue PipeTargetCloudWatchLogsParametersProperty {Maybe (Value Text)
()
haddock_workaround_ :: PipeTargetCloudWatchLogsParametersProperty -> ()
logStreamName :: PipeTargetCloudWatchLogsParametersProperty -> Maybe (Value Text)
timestamp :: PipeTargetCloudWatchLogsParametersProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
logStreamName :: Maybe (Value Text)
timestamp :: Maybe (Value Text)
..}
= PipeTargetCloudWatchLogsParametersProperty
{logStreamName :: Maybe (Value Text)
logStreamName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"LogStreamName" PipeTargetCloudWatchLogsParametersProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
timestamp :: Maybe (Value Text)
haddock_workaround_ :: ()
timestamp :: Maybe (Value Text)
..}
instance Property "Timestamp" PipeTargetCloudWatchLogsParametersProperty where
type PropertyType "Timestamp" PipeTargetCloudWatchLogsParametersProperty = Value Prelude.Text
set :: PropertyType "Timestamp" PipeTargetCloudWatchLogsParametersProperty
-> PipeTargetCloudWatchLogsParametersProperty
-> PipeTargetCloudWatchLogsParametersProperty
set PropertyType "Timestamp" PipeTargetCloudWatchLogsParametersProperty
newValue PipeTargetCloudWatchLogsParametersProperty {Maybe (Value Text)
()
haddock_workaround_ :: PipeTargetCloudWatchLogsParametersProperty -> ()
logStreamName :: PipeTargetCloudWatchLogsParametersProperty -> Maybe (Value Text)
timestamp :: PipeTargetCloudWatchLogsParametersProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
logStreamName :: Maybe (Value Text)
timestamp :: Maybe (Value Text)
..}
= PipeTargetCloudWatchLogsParametersProperty
{timestamp :: Maybe (Value Text)
timestamp = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Timestamp" PipeTargetCloudWatchLogsParametersProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
logStreamName :: Maybe (Value Text)
haddock_workaround_ :: ()
logStreamName :: Maybe (Value Text)
..}