module Stratosphere.SecurityHub.AutomationRule.NoteUpdateProperty (
        NoteUpdateProperty(..), mkNoteUpdateProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data NoteUpdateProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-automationrule-noteupdate.html>
    NoteUpdateProperty {NoteUpdateProperty -> ()
haddock_workaround_ :: (),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-automationrule-noteupdate.html#cfn-securityhub-automationrule-noteupdate-text>
                        NoteUpdateProperty -> Value Text
text :: (Value Prelude.Text),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-automationrule-noteupdate.html#cfn-securityhub-automationrule-noteupdate-updatedby>
                        NoteUpdateProperty -> Object
updatedBy :: JSON.Object}
  deriving stock (NoteUpdateProperty -> NoteUpdateProperty -> Bool
(NoteUpdateProperty -> NoteUpdateProperty -> Bool)
-> (NoteUpdateProperty -> NoteUpdateProperty -> Bool)
-> Eq NoteUpdateProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: NoteUpdateProperty -> NoteUpdateProperty -> Bool
== :: NoteUpdateProperty -> NoteUpdateProperty -> Bool
$c/= :: NoteUpdateProperty -> NoteUpdateProperty -> Bool
/= :: NoteUpdateProperty -> NoteUpdateProperty -> Bool
Prelude.Eq, Int -> NoteUpdateProperty -> ShowS
[NoteUpdateProperty] -> ShowS
NoteUpdateProperty -> String
(Int -> NoteUpdateProperty -> ShowS)
-> (NoteUpdateProperty -> String)
-> ([NoteUpdateProperty] -> ShowS)
-> Show NoteUpdateProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> NoteUpdateProperty -> ShowS
showsPrec :: Int -> NoteUpdateProperty -> ShowS
$cshow :: NoteUpdateProperty -> String
show :: NoteUpdateProperty -> String
$cshowList :: [NoteUpdateProperty] -> ShowS
showList :: [NoteUpdateProperty] -> ShowS
Prelude.Show)
mkNoteUpdateProperty ::
  Value Prelude.Text -> JSON.Object -> NoteUpdateProperty
mkNoteUpdateProperty :: Value Text -> Object -> NoteUpdateProperty
mkNoteUpdateProperty Value Text
text Object
updatedBy
  = NoteUpdateProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), text :: Value Text
text = Value Text
text, updatedBy :: Object
updatedBy = Object
updatedBy}
instance ToResourceProperties NoteUpdateProperty where
  toResourceProperties :: NoteUpdateProperty -> ResourceProperties
toResourceProperties NoteUpdateProperty {()
Object
Value Text
haddock_workaround_ :: NoteUpdateProperty -> ()
text :: NoteUpdateProperty -> Value Text
updatedBy :: NoteUpdateProperty -> Object
haddock_workaround_ :: ()
text :: Value Text
updatedBy :: Object
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::SecurityHub::AutomationRule.NoteUpdate",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"Text" 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
text, Key
"UpdatedBy" Key -> Object -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Object
updatedBy]}
instance JSON.ToJSON NoteUpdateProperty where
  toJSON :: NoteUpdateProperty -> Value
toJSON NoteUpdateProperty {()
Object
Value Text
haddock_workaround_ :: NoteUpdateProperty -> ()
text :: NoteUpdateProperty -> Value Text
updatedBy :: NoteUpdateProperty -> Object
haddock_workaround_ :: ()
text :: Value Text
updatedBy :: Object
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"Text" 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
text, Key
"UpdatedBy" Key -> Object -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Object
updatedBy]
instance Property "Text" NoteUpdateProperty where
  type PropertyType "Text" NoteUpdateProperty = Value Prelude.Text
  set :: PropertyType "Text" NoteUpdateProperty
-> NoteUpdateProperty -> NoteUpdateProperty
set PropertyType "Text" NoteUpdateProperty
newValue NoteUpdateProperty {()
Object
Value Text
haddock_workaround_ :: NoteUpdateProperty -> ()
text :: NoteUpdateProperty -> Value Text
updatedBy :: NoteUpdateProperty -> Object
haddock_workaround_ :: ()
text :: Value Text
updatedBy :: Object
..}
    = NoteUpdateProperty {text :: Value Text
text = PropertyType "Text" NoteUpdateProperty
Value Text
newValue, ()
Object
haddock_workaround_ :: ()
updatedBy :: Object
haddock_workaround_ :: ()
updatedBy :: Object
..}
instance Property "UpdatedBy" NoteUpdateProperty where
  type PropertyType "UpdatedBy" NoteUpdateProperty = JSON.Object
  set :: PropertyType "UpdatedBy" NoteUpdateProperty
-> NoteUpdateProperty -> NoteUpdateProperty
set PropertyType "UpdatedBy" NoteUpdateProperty
newValue NoteUpdateProperty {()
Object
Value Text
haddock_workaround_ :: NoteUpdateProperty -> ()
text :: NoteUpdateProperty -> Value Text
updatedBy :: NoteUpdateProperty -> Object
haddock_workaround_ :: ()
text :: Value Text
updatedBy :: Object
..}
    = NoteUpdateProperty {updatedBy :: Object
updatedBy = Object
PropertyType "UpdatedBy" NoteUpdateProperty
newValue, ()
Value Text
haddock_workaround_ :: ()
text :: Value Text
haddock_workaround_ :: ()
text :: Value Text
..}