module Stratosphere.ResourceExplorer2.View.IncludedPropertyProperty (
        IncludedPropertyProperty(..), mkIncludedPropertyProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data IncludedPropertyProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resourceexplorer2-view-includedproperty.html>
    IncludedPropertyProperty {IncludedPropertyProperty -> ()
haddock_workaround_ :: (),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resourceexplorer2-view-includedproperty.html#cfn-resourceexplorer2-view-includedproperty-name>
                              IncludedPropertyProperty -> Value Text
name :: (Value Prelude.Text)}
  deriving stock (IncludedPropertyProperty -> IncludedPropertyProperty -> Bool
(IncludedPropertyProperty -> IncludedPropertyProperty -> Bool)
-> (IncludedPropertyProperty -> IncludedPropertyProperty -> Bool)
-> Eq IncludedPropertyProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: IncludedPropertyProperty -> IncludedPropertyProperty -> Bool
== :: IncludedPropertyProperty -> IncludedPropertyProperty -> Bool
$c/= :: IncludedPropertyProperty -> IncludedPropertyProperty -> Bool
/= :: IncludedPropertyProperty -> IncludedPropertyProperty -> Bool
Prelude.Eq, Int -> IncludedPropertyProperty -> ShowS
[IncludedPropertyProperty] -> ShowS
IncludedPropertyProperty -> String
(Int -> IncludedPropertyProperty -> ShowS)
-> (IncludedPropertyProperty -> String)
-> ([IncludedPropertyProperty] -> ShowS)
-> Show IncludedPropertyProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> IncludedPropertyProperty -> ShowS
showsPrec :: Int -> IncludedPropertyProperty -> ShowS
$cshow :: IncludedPropertyProperty -> String
show :: IncludedPropertyProperty -> String
$cshowList :: [IncludedPropertyProperty] -> ShowS
showList :: [IncludedPropertyProperty] -> ShowS
Prelude.Show)
mkIncludedPropertyProperty ::
  Value Prelude.Text -> IncludedPropertyProperty
mkIncludedPropertyProperty :: Value Text -> IncludedPropertyProperty
mkIncludedPropertyProperty Value Text
name
  = IncludedPropertyProperty {haddock_workaround_ :: ()
haddock_workaround_ = (), name :: Value Text
name = Value Text
name}
instance ToResourceProperties IncludedPropertyProperty where
  toResourceProperties :: IncludedPropertyProperty -> ResourceProperties
toResourceProperties IncludedPropertyProperty {()
Value Text
haddock_workaround_ :: IncludedPropertyProperty -> ()
name :: IncludedPropertyProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::ResourceExplorer2::View.IncludedProperty",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False, properties :: Object
properties = [Key
"Name" 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
name]}
instance JSON.ToJSON IncludedPropertyProperty where
  toJSON :: IncludedPropertyProperty -> Value
toJSON IncludedPropertyProperty {()
Value Text
haddock_workaround_ :: IncludedPropertyProperty -> ()
name :: IncludedPropertyProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"Name" 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
name]
instance Property "Name" IncludedPropertyProperty where
  type PropertyType "Name" IncludedPropertyProperty = Value Prelude.Text
  set :: PropertyType "Name" IncludedPropertyProperty
-> IncludedPropertyProperty -> IncludedPropertyProperty
set PropertyType "Name" IncludedPropertyProperty
newValue IncludedPropertyProperty {()
Value Text
haddock_workaround_ :: IncludedPropertyProperty -> ()
name :: IncludedPropertyProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
..}
    = IncludedPropertyProperty {name :: Value Text
name = PropertyType "Name" IncludedPropertyProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}