module Stratosphere.ApplicationInsights.Application.CustomComponentProperty (
        CustomComponentProperty(..), mkCustomComponentProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data CustomComponentProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationinsights-application-customcomponent.html>
    CustomComponentProperty {CustomComponentProperty -> ()
haddock_workaround_ :: (),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationinsights-application-customcomponent.html#cfn-applicationinsights-application-customcomponent-componentname>
                             CustomComponentProperty -> Value Text
componentName :: (Value Prelude.Text),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationinsights-application-customcomponent.html#cfn-applicationinsights-application-customcomponent-resourcelist>
                             CustomComponentProperty -> ValueList Text
resourceList :: (ValueList Prelude.Text)}
  deriving stock (CustomComponentProperty -> CustomComponentProperty -> Bool
(CustomComponentProperty -> CustomComponentProperty -> Bool)
-> (CustomComponentProperty -> CustomComponentProperty -> Bool)
-> Eq CustomComponentProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CustomComponentProperty -> CustomComponentProperty -> Bool
== :: CustomComponentProperty -> CustomComponentProperty -> Bool
$c/= :: CustomComponentProperty -> CustomComponentProperty -> Bool
/= :: CustomComponentProperty -> CustomComponentProperty -> Bool
Prelude.Eq, Int -> CustomComponentProperty -> ShowS
[CustomComponentProperty] -> ShowS
CustomComponentProperty -> String
(Int -> CustomComponentProperty -> ShowS)
-> (CustomComponentProperty -> String)
-> ([CustomComponentProperty] -> ShowS)
-> Show CustomComponentProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CustomComponentProperty -> ShowS
showsPrec :: Int -> CustomComponentProperty -> ShowS
$cshow :: CustomComponentProperty -> String
show :: CustomComponentProperty -> String
$cshowList :: [CustomComponentProperty] -> ShowS
showList :: [CustomComponentProperty] -> ShowS
Prelude.Show)
mkCustomComponentProperty ::
  Value Prelude.Text
  -> ValueList Prelude.Text -> CustomComponentProperty
mkCustomComponentProperty :: Value Text -> ValueList Text -> CustomComponentProperty
mkCustomComponentProperty Value Text
componentName ValueList Text
resourceList
  = CustomComponentProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), componentName :: Value Text
componentName = Value Text
componentName,
       resourceList :: ValueList Text
resourceList = ValueList Text
resourceList}
instance ToResourceProperties CustomComponentProperty where
  toResourceProperties :: CustomComponentProperty -> ResourceProperties
toResourceProperties CustomComponentProperty {()
ValueList Text
Value Text
haddock_workaround_ :: CustomComponentProperty -> ()
componentName :: CustomComponentProperty -> Value Text
resourceList :: CustomComponentProperty -> ValueList Text
haddock_workaround_ :: ()
componentName :: Value Text
resourceList :: ValueList Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::ApplicationInsights::Application.CustomComponent",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"ComponentName" 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
componentName,
                       Key
"ResourceList" 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
resourceList]}
instance JSON.ToJSON CustomComponentProperty where
  toJSON :: CustomComponentProperty -> Value
toJSON CustomComponentProperty {()
ValueList Text
Value Text
haddock_workaround_ :: CustomComponentProperty -> ()
componentName :: CustomComponentProperty -> Value Text
resourceList :: CustomComponentProperty -> ValueList Text
haddock_workaround_ :: ()
componentName :: Value Text
resourceList :: ValueList Text
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"ComponentName" 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
componentName,
         Key
"ResourceList" 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
resourceList]
instance Property "ComponentName" CustomComponentProperty where
  type PropertyType "ComponentName" CustomComponentProperty = Value Prelude.Text
  set :: PropertyType "ComponentName" CustomComponentProperty
-> CustomComponentProperty -> CustomComponentProperty
set PropertyType "ComponentName" CustomComponentProperty
newValue CustomComponentProperty {()
ValueList Text
Value Text
haddock_workaround_ :: CustomComponentProperty -> ()
componentName :: CustomComponentProperty -> Value Text
resourceList :: CustomComponentProperty -> ValueList Text
haddock_workaround_ :: ()
componentName :: Value Text
resourceList :: ValueList Text
..}
    = CustomComponentProperty {componentName :: Value Text
componentName = PropertyType "ComponentName" CustomComponentProperty
Value Text
newValue, ()
ValueList Text
haddock_workaround_ :: ()
resourceList :: ValueList Text
haddock_workaround_ :: ()
resourceList :: ValueList Text
..}
instance Property "ResourceList" CustomComponentProperty where
  type PropertyType "ResourceList" CustomComponentProperty = ValueList Prelude.Text
  set :: PropertyType "ResourceList" CustomComponentProperty
-> CustomComponentProperty -> CustomComponentProperty
set PropertyType "ResourceList" CustomComponentProperty
newValue CustomComponentProperty {()
ValueList Text
Value Text
haddock_workaround_ :: CustomComponentProperty -> ()
componentName :: CustomComponentProperty -> Value Text
resourceList :: CustomComponentProperty -> ValueList Text
haddock_workaround_ :: ()
componentName :: Value Text
resourceList :: ValueList Text
..}
    = CustomComponentProperty {resourceList :: ValueList Text
resourceList = PropertyType "ResourceList" CustomComponentProperty
ValueList Text
newValue, ()
Value Text
haddock_workaround_ :: ()
componentName :: Value Text
haddock_workaround_ :: ()
componentName :: Value Text
..}