module Stratosphere.FIS.ExperimentTemplate.CloudWatchDashboardProperty (
        CloudWatchDashboardProperty(..), mkCloudWatchDashboardProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data CloudWatchDashboardProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fis-experimenttemplate-cloudwatchdashboard.html>
    CloudWatchDashboardProperty {CloudWatchDashboardProperty -> ()
haddock_workaround_ :: (),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fis-experimenttemplate-cloudwatchdashboard.html#cfn-fis-experimenttemplate-cloudwatchdashboard-dashboardidentifier>
                                 CloudWatchDashboardProperty -> Value Text
dashboardIdentifier :: (Value Prelude.Text)}
  deriving stock (CloudWatchDashboardProperty -> CloudWatchDashboardProperty -> Bool
(CloudWatchDashboardProperty
 -> CloudWatchDashboardProperty -> Bool)
-> (CloudWatchDashboardProperty
    -> CloudWatchDashboardProperty -> Bool)
-> Eq CloudWatchDashboardProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CloudWatchDashboardProperty -> CloudWatchDashboardProperty -> Bool
== :: CloudWatchDashboardProperty -> CloudWatchDashboardProperty -> Bool
$c/= :: CloudWatchDashboardProperty -> CloudWatchDashboardProperty -> Bool
/= :: CloudWatchDashboardProperty -> CloudWatchDashboardProperty -> Bool
Prelude.Eq, Int -> CloudWatchDashboardProperty -> ShowS
[CloudWatchDashboardProperty] -> ShowS
CloudWatchDashboardProperty -> String
(Int -> CloudWatchDashboardProperty -> ShowS)
-> (CloudWatchDashboardProperty -> String)
-> ([CloudWatchDashboardProperty] -> ShowS)
-> Show CloudWatchDashboardProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CloudWatchDashboardProperty -> ShowS
showsPrec :: Int -> CloudWatchDashboardProperty -> ShowS
$cshow :: CloudWatchDashboardProperty -> String
show :: CloudWatchDashboardProperty -> String
$cshowList :: [CloudWatchDashboardProperty] -> ShowS
showList :: [CloudWatchDashboardProperty] -> ShowS
Prelude.Show)
mkCloudWatchDashboardProperty ::
  Value Prelude.Text -> CloudWatchDashboardProperty
mkCloudWatchDashboardProperty :: Value Text -> CloudWatchDashboardProperty
mkCloudWatchDashboardProperty Value Text
dashboardIdentifier
  = CloudWatchDashboardProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       dashboardIdentifier :: Value Text
dashboardIdentifier = Value Text
dashboardIdentifier}
instance ToResourceProperties CloudWatchDashboardProperty where
  toResourceProperties :: CloudWatchDashboardProperty -> ResourceProperties
toResourceProperties CloudWatchDashboardProperty {()
Value Text
haddock_workaround_ :: CloudWatchDashboardProperty -> ()
dashboardIdentifier :: CloudWatchDashboardProperty -> Value Text
haddock_workaround_ :: ()
dashboardIdentifier :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::FIS::ExperimentTemplate.CloudWatchDashboard",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"DashboardIdentifier" 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
dashboardIdentifier]}
instance JSON.ToJSON CloudWatchDashboardProperty where
  toJSON :: CloudWatchDashboardProperty -> Value
toJSON CloudWatchDashboardProperty {()
Value Text
haddock_workaround_ :: CloudWatchDashboardProperty -> ()
dashboardIdentifier :: CloudWatchDashboardProperty -> Value Text
haddock_workaround_ :: ()
dashboardIdentifier :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"DashboardIdentifier" 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
dashboardIdentifier]
instance Property "DashboardIdentifier" CloudWatchDashboardProperty where
  type PropertyType "DashboardIdentifier" CloudWatchDashboardProperty = Value Prelude.Text
  set :: PropertyType "DashboardIdentifier" CloudWatchDashboardProperty
-> CloudWatchDashboardProperty -> CloudWatchDashboardProperty
set PropertyType "DashboardIdentifier" CloudWatchDashboardProperty
newValue CloudWatchDashboardProperty {()
Value Text
haddock_workaround_ :: CloudWatchDashboardProperty -> ()
dashboardIdentifier :: CloudWatchDashboardProperty -> Value Text
haddock_workaround_ :: ()
dashboardIdentifier :: Value Text
..}
    = CloudWatchDashboardProperty {dashboardIdentifier :: Value Text
dashboardIdentifier = PropertyType "DashboardIdentifier" CloudWatchDashboardProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}