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