module Stratosphere.LookoutMetrics.AnomalyDetector.CloudwatchConfigProperty (
        CloudwatchConfigProperty(..), mkCloudwatchConfigProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data CloudwatchConfigProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-anomalydetector-cloudwatchconfig.html>
    CloudwatchConfigProperty {CloudwatchConfigProperty -> ()
haddock_workaround_ :: (),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-anomalydetector-cloudwatchconfig.html#cfn-lookoutmetrics-anomalydetector-cloudwatchconfig-rolearn>
                              CloudwatchConfigProperty -> Value Text
roleArn :: (Value Prelude.Text)}
  deriving stock (CloudwatchConfigProperty -> CloudwatchConfigProperty -> Bool
(CloudwatchConfigProperty -> CloudwatchConfigProperty -> Bool)
-> (CloudwatchConfigProperty -> CloudwatchConfigProperty -> Bool)
-> Eq CloudwatchConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CloudwatchConfigProperty -> CloudwatchConfigProperty -> Bool
== :: CloudwatchConfigProperty -> CloudwatchConfigProperty -> Bool
$c/= :: CloudwatchConfigProperty -> CloudwatchConfigProperty -> Bool
/= :: CloudwatchConfigProperty -> CloudwatchConfigProperty -> Bool
Prelude.Eq, Int -> CloudwatchConfigProperty -> ShowS
[CloudwatchConfigProperty] -> ShowS
CloudwatchConfigProperty -> String
(Int -> CloudwatchConfigProperty -> ShowS)
-> (CloudwatchConfigProperty -> String)
-> ([CloudwatchConfigProperty] -> ShowS)
-> Show CloudwatchConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CloudwatchConfigProperty -> ShowS
showsPrec :: Int -> CloudwatchConfigProperty -> ShowS
$cshow :: CloudwatchConfigProperty -> String
show :: CloudwatchConfigProperty -> String
$cshowList :: [CloudwatchConfigProperty] -> ShowS
showList :: [CloudwatchConfigProperty] -> ShowS
Prelude.Show)
mkCloudwatchConfigProperty ::
  Value Prelude.Text -> CloudwatchConfigProperty
mkCloudwatchConfigProperty :: Value Text -> CloudwatchConfigProperty
mkCloudwatchConfigProperty Value Text
roleArn
  = CloudwatchConfigProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), roleArn :: Value Text
roleArn = Value Text
roleArn}
instance ToResourceProperties CloudwatchConfigProperty where
  toResourceProperties :: CloudwatchConfigProperty -> ResourceProperties
toResourceProperties CloudwatchConfigProperty {()
Value Text
haddock_workaround_ :: CloudwatchConfigProperty -> ()
roleArn :: CloudwatchConfigProperty -> Value Text
haddock_workaround_ :: ()
roleArn :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::LookoutMetrics::AnomalyDetector.CloudwatchConfig",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [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 CloudwatchConfigProperty where
  toJSON :: CloudwatchConfigProperty -> Value
toJSON CloudwatchConfigProperty {()
Value Text
haddock_workaround_ :: CloudwatchConfigProperty -> ()
roleArn :: CloudwatchConfigProperty -> Value Text
haddock_workaround_ :: ()
roleArn :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object [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 "RoleArn" CloudwatchConfigProperty where
  type PropertyType "RoleArn" CloudwatchConfigProperty = Value Prelude.Text
  set :: PropertyType "RoleArn" CloudwatchConfigProperty
-> CloudwatchConfigProperty -> CloudwatchConfigProperty
set PropertyType "RoleArn" CloudwatchConfigProperty
newValue CloudwatchConfigProperty {()
Value Text
haddock_workaround_ :: CloudwatchConfigProperty -> ()
roleArn :: CloudwatchConfigProperty -> Value Text
haddock_workaround_ :: ()
roleArn :: Value Text
..}
    = CloudwatchConfigProperty {roleArn :: Value Text
roleArn = PropertyType "RoleArn" CloudwatchConfigProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}