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