module Stratosphere.SystemsManagerSAP.Application.ComponentInfoProperty (
        ComponentInfoProperty(..), mkComponentInfoProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ComponentInfoProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-systemsmanagersap-application-componentinfo.html>
    ComponentInfoProperty {ComponentInfoProperty -> ()
haddock_workaround_ :: (),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-systemsmanagersap-application-componentinfo.html#cfn-systemsmanagersap-application-componentinfo-componenttype>
                           ComponentInfoProperty -> Maybe (Value Text)
componentType :: (Prelude.Maybe (Value Prelude.Text)),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-systemsmanagersap-application-componentinfo.html#cfn-systemsmanagersap-application-componentinfo-ec2instanceid>
                           ComponentInfoProperty -> Maybe (Value Text)
ec2InstanceId :: (Prelude.Maybe (Value Prelude.Text)),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-systemsmanagersap-application-componentinfo.html#cfn-systemsmanagersap-application-componentinfo-sid>
                           ComponentInfoProperty -> Maybe (Value Text)
sid :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (ComponentInfoProperty -> ComponentInfoProperty -> Bool
(ComponentInfoProperty -> ComponentInfoProperty -> Bool)
-> (ComponentInfoProperty -> ComponentInfoProperty -> Bool)
-> Eq ComponentInfoProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ComponentInfoProperty -> ComponentInfoProperty -> Bool
== :: ComponentInfoProperty -> ComponentInfoProperty -> Bool
$c/= :: ComponentInfoProperty -> ComponentInfoProperty -> Bool
/= :: ComponentInfoProperty -> ComponentInfoProperty -> Bool
Prelude.Eq, Int -> ComponentInfoProperty -> ShowS
[ComponentInfoProperty] -> ShowS
ComponentInfoProperty -> String
(Int -> ComponentInfoProperty -> ShowS)
-> (ComponentInfoProperty -> String)
-> ([ComponentInfoProperty] -> ShowS)
-> Show ComponentInfoProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ComponentInfoProperty -> ShowS
showsPrec :: Int -> ComponentInfoProperty -> ShowS
$cshow :: ComponentInfoProperty -> String
show :: ComponentInfoProperty -> String
$cshowList :: [ComponentInfoProperty] -> ShowS
showList :: [ComponentInfoProperty] -> ShowS
Prelude.Show)
mkComponentInfoProperty :: ComponentInfoProperty
mkComponentInfoProperty :: ComponentInfoProperty
mkComponentInfoProperty
  = ComponentInfoProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), componentType :: Maybe (Value Text)
componentType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       ec2InstanceId :: Maybe (Value Text)
ec2InstanceId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, sid :: Maybe (Value Text)
sid = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ComponentInfoProperty where
  toResourceProperties :: ComponentInfoProperty -> ResourceProperties
toResourceProperties ComponentInfoProperty {Maybe (Value Text)
()
haddock_workaround_ :: ComponentInfoProperty -> ()
componentType :: ComponentInfoProperty -> Maybe (Value Text)
ec2InstanceId :: ComponentInfoProperty -> Maybe (Value Text)
sid :: ComponentInfoProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
componentType :: Maybe (Value Text)
ec2InstanceId :: Maybe (Value Text)
sid :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::SystemsManagerSAP::Application.ComponentInfo",
         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
"ComponentType" (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)
componentType,
                            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
"Ec2InstanceId" (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)
ec2InstanceId,
                            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
"Sid" (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)
sid])}
instance JSON.ToJSON ComponentInfoProperty where
  toJSON :: ComponentInfoProperty -> Value
toJSON ComponentInfoProperty {Maybe (Value Text)
()
haddock_workaround_ :: ComponentInfoProperty -> ()
componentType :: ComponentInfoProperty -> Maybe (Value Text)
ec2InstanceId :: ComponentInfoProperty -> Maybe (Value Text)
sid :: ComponentInfoProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
componentType :: Maybe (Value Text)
ec2InstanceId :: Maybe (Value Text)
sid :: 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
"ComponentType" (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)
componentType,
               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
"Ec2InstanceId" (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)
ec2InstanceId,
               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
"Sid" (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)
sid]))
instance Property "ComponentType" ComponentInfoProperty where
  type PropertyType "ComponentType" ComponentInfoProperty = Value Prelude.Text
  set :: PropertyType "ComponentType" ComponentInfoProperty
-> ComponentInfoProperty -> ComponentInfoProperty
set PropertyType "ComponentType" ComponentInfoProperty
newValue ComponentInfoProperty {Maybe (Value Text)
()
haddock_workaround_ :: ComponentInfoProperty -> ()
componentType :: ComponentInfoProperty -> Maybe (Value Text)
ec2InstanceId :: ComponentInfoProperty -> Maybe (Value Text)
sid :: ComponentInfoProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
componentType :: Maybe (Value Text)
ec2InstanceId :: Maybe (Value Text)
sid :: Maybe (Value Text)
..}
    = ComponentInfoProperty {componentType :: Maybe (Value Text)
componentType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ComponentType" ComponentInfoProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
ec2InstanceId :: Maybe (Value Text)
sid :: Maybe (Value Text)
haddock_workaround_ :: ()
ec2InstanceId :: Maybe (Value Text)
sid :: Maybe (Value Text)
..}
instance Property "Ec2InstanceId" ComponentInfoProperty where
  type PropertyType "Ec2InstanceId" ComponentInfoProperty = Value Prelude.Text
  set :: PropertyType "Ec2InstanceId" ComponentInfoProperty
-> ComponentInfoProperty -> ComponentInfoProperty
set PropertyType "Ec2InstanceId" ComponentInfoProperty
newValue ComponentInfoProperty {Maybe (Value Text)
()
haddock_workaround_ :: ComponentInfoProperty -> ()
componentType :: ComponentInfoProperty -> Maybe (Value Text)
ec2InstanceId :: ComponentInfoProperty -> Maybe (Value Text)
sid :: ComponentInfoProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
componentType :: Maybe (Value Text)
ec2InstanceId :: Maybe (Value Text)
sid :: Maybe (Value Text)
..}
    = ComponentInfoProperty {ec2InstanceId :: Maybe (Value Text)
ec2InstanceId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Ec2InstanceId" ComponentInfoProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
componentType :: Maybe (Value Text)
sid :: Maybe (Value Text)
haddock_workaround_ :: ()
componentType :: Maybe (Value Text)
sid :: Maybe (Value Text)
..}
instance Property "Sid" ComponentInfoProperty where
  type PropertyType "Sid" ComponentInfoProperty = Value Prelude.Text
  set :: PropertyType "Sid" ComponentInfoProperty
-> ComponentInfoProperty -> ComponentInfoProperty
set PropertyType "Sid" ComponentInfoProperty
newValue ComponentInfoProperty {Maybe (Value Text)
()
haddock_workaround_ :: ComponentInfoProperty -> ()
componentType :: ComponentInfoProperty -> Maybe (Value Text)
ec2InstanceId :: ComponentInfoProperty -> Maybe (Value Text)
sid :: ComponentInfoProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
componentType :: Maybe (Value Text)
ec2InstanceId :: Maybe (Value Text)
sid :: Maybe (Value Text)
..}
    = ComponentInfoProperty {sid :: Maybe (Value Text)
sid = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Sid" ComponentInfoProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
componentType :: Maybe (Value Text)
ec2InstanceId :: Maybe (Value Text)
haddock_workaround_ :: ()
componentType :: Maybe (Value Text)
ec2InstanceId :: Maybe (Value Text)
..}