module Stratosphere.InspectorV2.CodeSecurityScanConfiguration.PeriodicScanConfigurationProperty (
PeriodicScanConfigurationProperty(..),
mkPeriodicScanConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data PeriodicScanConfigurationProperty
=
PeriodicScanConfigurationProperty {PeriodicScanConfigurationProperty -> ()
haddock_workaround_ :: (),
PeriodicScanConfigurationProperty -> Maybe (Value Text)
frequency :: (Prelude.Maybe (Value Prelude.Text)),
PeriodicScanConfigurationProperty -> Maybe (Value Text)
frequencyExpression :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (PeriodicScanConfigurationProperty
-> PeriodicScanConfigurationProperty -> Bool
(PeriodicScanConfigurationProperty
-> PeriodicScanConfigurationProperty -> Bool)
-> (PeriodicScanConfigurationProperty
-> PeriodicScanConfigurationProperty -> Bool)
-> Eq PeriodicScanConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: PeriodicScanConfigurationProperty
-> PeriodicScanConfigurationProperty -> Bool
== :: PeriodicScanConfigurationProperty
-> PeriodicScanConfigurationProperty -> Bool
$c/= :: PeriodicScanConfigurationProperty
-> PeriodicScanConfigurationProperty -> Bool
/= :: PeriodicScanConfigurationProperty
-> PeriodicScanConfigurationProperty -> Bool
Prelude.Eq, Int -> PeriodicScanConfigurationProperty -> ShowS
[PeriodicScanConfigurationProperty] -> ShowS
PeriodicScanConfigurationProperty -> String
(Int -> PeriodicScanConfigurationProperty -> ShowS)
-> (PeriodicScanConfigurationProperty -> String)
-> ([PeriodicScanConfigurationProperty] -> ShowS)
-> Show PeriodicScanConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> PeriodicScanConfigurationProperty -> ShowS
showsPrec :: Int -> PeriodicScanConfigurationProperty -> ShowS
$cshow :: PeriodicScanConfigurationProperty -> String
show :: PeriodicScanConfigurationProperty -> String
$cshowList :: [PeriodicScanConfigurationProperty] -> ShowS
showList :: [PeriodicScanConfigurationProperty] -> ShowS
Prelude.Show)
mkPeriodicScanConfigurationProperty ::
PeriodicScanConfigurationProperty
mkPeriodicScanConfigurationProperty :: PeriodicScanConfigurationProperty
mkPeriodicScanConfigurationProperty
= PeriodicScanConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), frequency :: Maybe (Value Text)
frequency = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
frequencyExpression :: Maybe (Value Text)
frequencyExpression = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties PeriodicScanConfigurationProperty where
toResourceProperties :: PeriodicScanConfigurationProperty -> ResourceProperties
toResourceProperties PeriodicScanConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: PeriodicScanConfigurationProperty -> ()
frequency :: PeriodicScanConfigurationProperty -> Maybe (Value Text)
frequencyExpression :: PeriodicScanConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
frequency :: Maybe (Value Text)
frequencyExpression :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::InspectorV2::CodeSecurityScanConfiguration.PeriodicScanConfiguration",
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
"frequency" (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)
frequency,
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
"frequencyExpression" (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)
frequencyExpression])}
instance JSON.ToJSON PeriodicScanConfigurationProperty where
toJSON :: PeriodicScanConfigurationProperty -> Value
toJSON PeriodicScanConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: PeriodicScanConfigurationProperty -> ()
frequency :: PeriodicScanConfigurationProperty -> Maybe (Value Text)
frequencyExpression :: PeriodicScanConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
frequency :: Maybe (Value Text)
frequencyExpression :: 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
"frequency" (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)
frequency,
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
"frequencyExpression" (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)
frequencyExpression]))
instance Property "frequency" PeriodicScanConfigurationProperty where
type PropertyType "frequency" PeriodicScanConfigurationProperty = Value Prelude.Text
set :: PropertyType "frequency" PeriodicScanConfigurationProperty
-> PeriodicScanConfigurationProperty
-> PeriodicScanConfigurationProperty
set PropertyType "frequency" PeriodicScanConfigurationProperty
newValue PeriodicScanConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: PeriodicScanConfigurationProperty -> ()
frequency :: PeriodicScanConfigurationProperty -> Maybe (Value Text)
frequencyExpression :: PeriodicScanConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
frequency :: Maybe (Value Text)
frequencyExpression :: Maybe (Value Text)
..}
= PeriodicScanConfigurationProperty
{frequency :: Maybe (Value Text)
frequency = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "frequency" PeriodicScanConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
frequencyExpression :: Maybe (Value Text)
haddock_workaround_ :: ()
frequencyExpression :: Maybe (Value Text)
..}
instance Property "frequencyExpression" PeriodicScanConfigurationProperty where
type PropertyType "frequencyExpression" PeriodicScanConfigurationProperty = Value Prelude.Text
set :: PropertyType
"frequencyExpression" PeriodicScanConfigurationProperty
-> PeriodicScanConfigurationProperty
-> PeriodicScanConfigurationProperty
set PropertyType
"frequencyExpression" PeriodicScanConfigurationProperty
newValue PeriodicScanConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: PeriodicScanConfigurationProperty -> ()
frequency :: PeriodicScanConfigurationProperty -> Maybe (Value Text)
frequencyExpression :: PeriodicScanConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
frequency :: Maybe (Value Text)
frequencyExpression :: Maybe (Value Text)
..}
= PeriodicScanConfigurationProperty
{frequencyExpression :: Maybe (Value Text)
frequencyExpression = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"frequencyExpression" PeriodicScanConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
frequency :: Maybe (Value Text)
haddock_workaround_ :: ()
frequency :: Maybe (Value Text)
..}