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