module Stratosphere.CodeBuild.Project.WebhookFilterProperty (
WebhookFilterProperty(..), mkWebhookFilterProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data WebhookFilterProperty
=
WebhookFilterProperty {WebhookFilterProperty -> ()
haddock_workaround_ :: (),
WebhookFilterProperty -> Maybe (Value Bool)
excludeMatchedPattern :: (Prelude.Maybe (Value Prelude.Bool)),
WebhookFilterProperty -> Value Text
pattern :: (Value Prelude.Text),
WebhookFilterProperty -> Value Text
type' :: (Value Prelude.Text)}
deriving stock (WebhookFilterProperty -> WebhookFilterProperty -> Bool
(WebhookFilterProperty -> WebhookFilterProperty -> Bool)
-> (WebhookFilterProperty -> WebhookFilterProperty -> Bool)
-> Eq WebhookFilterProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: WebhookFilterProperty -> WebhookFilterProperty -> Bool
== :: WebhookFilterProperty -> WebhookFilterProperty -> Bool
$c/= :: WebhookFilterProperty -> WebhookFilterProperty -> Bool
/= :: WebhookFilterProperty -> WebhookFilterProperty -> Bool
Prelude.Eq, Int -> WebhookFilterProperty -> ShowS
[WebhookFilterProperty] -> ShowS
WebhookFilterProperty -> String
(Int -> WebhookFilterProperty -> ShowS)
-> (WebhookFilterProperty -> String)
-> ([WebhookFilterProperty] -> ShowS)
-> Show WebhookFilterProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> WebhookFilterProperty -> ShowS
showsPrec :: Int -> WebhookFilterProperty -> ShowS
$cshow :: WebhookFilterProperty -> String
show :: WebhookFilterProperty -> String
$cshowList :: [WebhookFilterProperty] -> ShowS
showList :: [WebhookFilterProperty] -> ShowS
Prelude.Show)
mkWebhookFilterProperty ::
Value Prelude.Text -> Value Prelude.Text -> WebhookFilterProperty
mkWebhookFilterProperty :: Value Text -> Value Text -> WebhookFilterProperty
mkWebhookFilterProperty Value Text
pattern Value Text
type'
= WebhookFilterProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), pattern :: Value Text
pattern = Value Text
pattern, type' :: Value Text
type' = Value Text
type',
excludeMatchedPattern :: Maybe (Value Bool)
excludeMatchedPattern = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties WebhookFilterProperty where
toResourceProperties :: WebhookFilterProperty -> ResourceProperties
toResourceProperties WebhookFilterProperty {Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: WebhookFilterProperty -> ()
excludeMatchedPattern :: WebhookFilterProperty -> Maybe (Value Bool)
pattern :: WebhookFilterProperty -> Value Text
type' :: WebhookFilterProperty -> Value Text
haddock_workaround_ :: ()
excludeMatchedPattern :: Maybe (Value Bool)
pattern :: Value Text
type' :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::CodeBuild::Project.WebhookFilter",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Pattern" 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
pattern, Key
"Type" 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
type']
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ExcludeMatchedPattern"
(Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
excludeMatchedPattern]))}
instance JSON.ToJSON WebhookFilterProperty where
toJSON :: WebhookFilterProperty -> Value
toJSON WebhookFilterProperty {Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: WebhookFilterProperty -> ()
excludeMatchedPattern :: WebhookFilterProperty -> Maybe (Value Bool)
pattern :: WebhookFilterProperty -> Value Text
type' :: WebhookFilterProperty -> Value Text
haddock_workaround_ :: ()
excludeMatchedPattern :: Maybe (Value Bool)
pattern :: Value Text
type' :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Pattern" 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
pattern, Key
"Type" 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
type']
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ExcludeMatchedPattern"
(Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
excludeMatchedPattern])))
instance Property "ExcludeMatchedPattern" WebhookFilterProperty where
type PropertyType "ExcludeMatchedPattern" WebhookFilterProperty = Value Prelude.Bool
set :: PropertyType "ExcludeMatchedPattern" WebhookFilterProperty
-> WebhookFilterProperty -> WebhookFilterProperty
set PropertyType "ExcludeMatchedPattern" WebhookFilterProperty
newValue WebhookFilterProperty {Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: WebhookFilterProperty -> ()
excludeMatchedPattern :: WebhookFilterProperty -> Maybe (Value Bool)
pattern :: WebhookFilterProperty -> Value Text
type' :: WebhookFilterProperty -> Value Text
haddock_workaround_ :: ()
excludeMatchedPattern :: Maybe (Value Bool)
pattern :: Value Text
type' :: Value Text
..}
= WebhookFilterProperty
{excludeMatchedPattern :: Maybe (Value Bool)
excludeMatchedPattern = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ExcludeMatchedPattern" WebhookFilterProperty
Value Bool
newValue, ()
Value Text
haddock_workaround_ :: ()
pattern :: Value Text
type' :: Value Text
haddock_workaround_ :: ()
pattern :: Value Text
type' :: Value Text
..}
instance Property "Pattern" WebhookFilterProperty where
type PropertyType "Pattern" WebhookFilterProperty = Value Prelude.Text
set :: PropertyType "Pattern" WebhookFilterProperty
-> WebhookFilterProperty -> WebhookFilterProperty
set PropertyType "Pattern" WebhookFilterProperty
newValue WebhookFilterProperty {Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: WebhookFilterProperty -> ()
excludeMatchedPattern :: WebhookFilterProperty -> Maybe (Value Bool)
pattern :: WebhookFilterProperty -> Value Text
type' :: WebhookFilterProperty -> Value Text
haddock_workaround_ :: ()
excludeMatchedPattern :: Maybe (Value Bool)
pattern :: Value Text
type' :: Value Text
..}
= WebhookFilterProperty {pattern :: Value Text
pattern = PropertyType "Pattern" WebhookFilterProperty
Value Text
newValue, Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: ()
excludeMatchedPattern :: Maybe (Value Bool)
type' :: Value Text
haddock_workaround_ :: ()
excludeMatchedPattern :: Maybe (Value Bool)
type' :: Value Text
..}
instance Property "Type" WebhookFilterProperty where
type PropertyType "Type" WebhookFilterProperty = Value Prelude.Text
set :: PropertyType "Type" WebhookFilterProperty
-> WebhookFilterProperty -> WebhookFilterProperty
set PropertyType "Type" WebhookFilterProperty
newValue WebhookFilterProperty {Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: WebhookFilterProperty -> ()
excludeMatchedPattern :: WebhookFilterProperty -> Maybe (Value Bool)
pattern :: WebhookFilterProperty -> Value Text
type' :: WebhookFilterProperty -> Value Text
haddock_workaround_ :: ()
excludeMatchedPattern :: Maybe (Value Bool)
pattern :: Value Text
type' :: Value Text
..}
= WebhookFilterProperty {type' :: Value Text
type' = PropertyType "Type" WebhookFilterProperty
Value Text
newValue, Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: ()
excludeMatchedPattern :: Maybe (Value Bool)
pattern :: Value Text
haddock_workaround_ :: ()
excludeMatchedPattern :: Maybe (Value Bool)
pattern :: Value Text
..}