module Stratosphere.CodeStarNotifications.NotificationRule (
module Exports, NotificationRule(..), mkNotificationRule
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.CodeStarNotifications.NotificationRule.TargetProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data NotificationRule
=
NotificationRule {NotificationRule -> ()
haddock_workaround_ :: (),
NotificationRule -> Maybe (Value Text)
createdBy :: (Prelude.Maybe (Value Prelude.Text)),
NotificationRule -> Value Text
detailType :: (Value Prelude.Text),
NotificationRule -> Maybe (Value Text)
eventTypeId :: (Prelude.Maybe (Value Prelude.Text)),
NotificationRule -> ValueList Text
eventTypeIds :: (ValueList Prelude.Text),
NotificationRule -> Value Text
name :: (Value Prelude.Text),
NotificationRule -> Value Text
resource :: (Value Prelude.Text),
NotificationRule -> Maybe (Value Text)
status :: (Prelude.Maybe (Value Prelude.Text)),
NotificationRule -> Maybe (Map Text (Value Text))
tags :: (Prelude.Maybe (Prelude.Map Prelude.Text (Value Prelude.Text))),
NotificationRule -> Maybe (Value Text)
targetAddress :: (Prelude.Maybe (Value Prelude.Text)),
NotificationRule -> [TargetProperty]
targets :: [TargetProperty]}
deriving stock (NotificationRule -> NotificationRule -> Bool
(NotificationRule -> NotificationRule -> Bool)
-> (NotificationRule -> NotificationRule -> Bool)
-> Eq NotificationRule
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: NotificationRule -> NotificationRule -> Bool
== :: NotificationRule -> NotificationRule -> Bool
$c/= :: NotificationRule -> NotificationRule -> Bool
/= :: NotificationRule -> NotificationRule -> Bool
Prelude.Eq, Int -> NotificationRule -> ShowS
[NotificationRule] -> ShowS
NotificationRule -> String
(Int -> NotificationRule -> ShowS)
-> (NotificationRule -> String)
-> ([NotificationRule] -> ShowS)
-> Show NotificationRule
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> NotificationRule -> ShowS
showsPrec :: Int -> NotificationRule -> ShowS
$cshow :: NotificationRule -> String
show :: NotificationRule -> String
$cshowList :: [NotificationRule] -> ShowS
showList :: [NotificationRule] -> ShowS
Prelude.Show)
mkNotificationRule ::
Value Prelude.Text
-> ValueList Prelude.Text
-> Value Prelude.Text
-> Value Prelude.Text -> [TargetProperty] -> NotificationRule
mkNotificationRule :: Value Text
-> ValueList Text
-> Value Text
-> Value Text
-> [TargetProperty]
-> NotificationRule
mkNotificationRule Value Text
detailType ValueList Text
eventTypeIds Value Text
name Value Text
resource [TargetProperty]
targets
= NotificationRule
{haddock_workaround_ :: ()
haddock_workaround_ = (), detailType :: Value Text
detailType = Value Text
detailType,
eventTypeIds :: ValueList Text
eventTypeIds = ValueList Text
eventTypeIds, name :: Value Text
name = Value Text
name, resource :: Value Text
resource = Value Text
resource,
targets :: [TargetProperty]
targets = [TargetProperty]
targets, createdBy :: Maybe (Value Text)
createdBy = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
eventTypeId :: Maybe (Value Text)
eventTypeId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, status :: Maybe (Value Text)
status = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
tags :: Maybe (Map Text (Value Text))
tags = Maybe (Map Text (Value Text))
forall a. Maybe a
Prelude.Nothing, targetAddress :: Maybe (Value Text)
targetAddress = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties NotificationRule where
toResourceProperties :: NotificationRule -> ResourceProperties
toResourceProperties NotificationRule {[TargetProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: NotificationRule -> ()
createdBy :: NotificationRule -> Maybe (Value Text)
detailType :: NotificationRule -> Value Text
eventTypeId :: NotificationRule -> Maybe (Value Text)
eventTypeIds :: NotificationRule -> ValueList Text
name :: NotificationRule -> Value Text
resource :: NotificationRule -> Value Text
status :: NotificationRule -> Maybe (Value Text)
tags :: NotificationRule -> Maybe (Map Text (Value Text))
targetAddress :: NotificationRule -> Maybe (Value Text)
targets :: NotificationRule -> [TargetProperty]
haddock_workaround_ :: ()
createdBy :: Maybe (Value Text)
detailType :: Value Text
eventTypeId :: Maybe (Value Text)
eventTypeIds :: ValueList Text
name :: Value Text
resource :: Value Text
status :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
targetAddress :: Maybe (Value Text)
targets :: [TargetProperty]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::CodeStarNotifications::NotificationRule",
supportsTags :: Bool
supportsTags = Bool
Prelude.True,
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
"DetailType" 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
detailType,
Key
"EventTypeIds" Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ValueList Text
eventTypeIds, Key
"Name" 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
name,
Key
"Resource" 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
resource, Key
"Targets" Key -> [TargetProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [TargetProperty]
targets]
([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
"CreatedBy" (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)
createdBy,
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
"EventTypeId" (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)
eventTypeId,
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
"Status" (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)
status,
Key -> Map Text (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
"Tags" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
tags,
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
"TargetAddress" (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)
targetAddress]))}
instance JSON.ToJSON NotificationRule where
toJSON :: NotificationRule -> Value
toJSON NotificationRule {[TargetProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: NotificationRule -> ()
createdBy :: NotificationRule -> Maybe (Value Text)
detailType :: NotificationRule -> Value Text
eventTypeId :: NotificationRule -> Maybe (Value Text)
eventTypeIds :: NotificationRule -> ValueList Text
name :: NotificationRule -> Value Text
resource :: NotificationRule -> Value Text
status :: NotificationRule -> Maybe (Value Text)
tags :: NotificationRule -> Maybe (Map Text (Value Text))
targetAddress :: NotificationRule -> Maybe (Value Text)
targets :: NotificationRule -> [TargetProperty]
haddock_workaround_ :: ()
createdBy :: Maybe (Value Text)
detailType :: Value Text
eventTypeId :: Maybe (Value Text)
eventTypeIds :: ValueList Text
name :: Value Text
resource :: Value Text
status :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
targetAddress :: Maybe (Value Text)
targets :: [TargetProperty]
..}
= [(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
"DetailType" 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
detailType,
Key
"EventTypeIds" Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ValueList Text
eventTypeIds, Key
"Name" 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
name,
Key
"Resource" 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
resource, Key
"Targets" Key -> [TargetProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [TargetProperty]
targets]
([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
"CreatedBy" (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)
createdBy,
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
"EventTypeId" (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)
eventTypeId,
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
"Status" (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)
status,
Key -> Map Text (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
"Tags" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
tags,
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
"TargetAddress" (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)
targetAddress])))
instance Property "CreatedBy" NotificationRule where
type PropertyType "CreatedBy" NotificationRule = Value Prelude.Text
set :: PropertyType "CreatedBy" NotificationRule
-> NotificationRule -> NotificationRule
set PropertyType "CreatedBy" NotificationRule
newValue NotificationRule {[TargetProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: NotificationRule -> ()
createdBy :: NotificationRule -> Maybe (Value Text)
detailType :: NotificationRule -> Value Text
eventTypeId :: NotificationRule -> Maybe (Value Text)
eventTypeIds :: NotificationRule -> ValueList Text
name :: NotificationRule -> Value Text
resource :: NotificationRule -> Value Text
status :: NotificationRule -> Maybe (Value Text)
tags :: NotificationRule -> Maybe (Map Text (Value Text))
targetAddress :: NotificationRule -> Maybe (Value Text)
targets :: NotificationRule -> [TargetProperty]
haddock_workaround_ :: ()
createdBy :: Maybe (Value Text)
detailType :: Value Text
eventTypeId :: Maybe (Value Text)
eventTypeIds :: ValueList Text
name :: Value Text
resource :: Value Text
status :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
targetAddress :: Maybe (Value Text)
targets :: [TargetProperty]
..}
= NotificationRule {createdBy :: Maybe (Value Text)
createdBy = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CreatedBy" NotificationRule
Value Text
newValue, [TargetProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: ()
detailType :: Value Text
eventTypeId :: Maybe (Value Text)
eventTypeIds :: ValueList Text
name :: Value Text
resource :: Value Text
status :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
targetAddress :: Maybe (Value Text)
targets :: [TargetProperty]
haddock_workaround_ :: ()
detailType :: Value Text
eventTypeId :: Maybe (Value Text)
eventTypeIds :: ValueList Text
name :: Value Text
resource :: Value Text
status :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
targetAddress :: Maybe (Value Text)
targets :: [TargetProperty]
..}
instance Property "DetailType" NotificationRule where
type PropertyType "DetailType" NotificationRule = Value Prelude.Text
set :: PropertyType "DetailType" NotificationRule
-> NotificationRule -> NotificationRule
set PropertyType "DetailType" NotificationRule
newValue NotificationRule {[TargetProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: NotificationRule -> ()
createdBy :: NotificationRule -> Maybe (Value Text)
detailType :: NotificationRule -> Value Text
eventTypeId :: NotificationRule -> Maybe (Value Text)
eventTypeIds :: NotificationRule -> ValueList Text
name :: NotificationRule -> Value Text
resource :: NotificationRule -> Value Text
status :: NotificationRule -> Maybe (Value Text)
tags :: NotificationRule -> Maybe (Map Text (Value Text))
targetAddress :: NotificationRule -> Maybe (Value Text)
targets :: NotificationRule -> [TargetProperty]
haddock_workaround_ :: ()
createdBy :: Maybe (Value Text)
detailType :: Value Text
eventTypeId :: Maybe (Value Text)
eventTypeIds :: ValueList Text
name :: Value Text
resource :: Value Text
status :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
targetAddress :: Maybe (Value Text)
targets :: [TargetProperty]
..}
= NotificationRule {detailType :: Value Text
detailType = PropertyType "DetailType" NotificationRule
Value Text
newValue, [TargetProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: ()
createdBy :: Maybe (Value Text)
eventTypeId :: Maybe (Value Text)
eventTypeIds :: ValueList Text
name :: Value Text
resource :: Value Text
status :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
targetAddress :: Maybe (Value Text)
targets :: [TargetProperty]
haddock_workaround_ :: ()
createdBy :: Maybe (Value Text)
eventTypeId :: Maybe (Value Text)
eventTypeIds :: ValueList Text
name :: Value Text
resource :: Value Text
status :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
targetAddress :: Maybe (Value Text)
targets :: [TargetProperty]
..}
instance Property "EventTypeId" NotificationRule where
type PropertyType "EventTypeId" NotificationRule = Value Prelude.Text
set :: PropertyType "EventTypeId" NotificationRule
-> NotificationRule -> NotificationRule
set PropertyType "EventTypeId" NotificationRule
newValue NotificationRule {[TargetProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: NotificationRule -> ()
createdBy :: NotificationRule -> Maybe (Value Text)
detailType :: NotificationRule -> Value Text
eventTypeId :: NotificationRule -> Maybe (Value Text)
eventTypeIds :: NotificationRule -> ValueList Text
name :: NotificationRule -> Value Text
resource :: NotificationRule -> Value Text
status :: NotificationRule -> Maybe (Value Text)
tags :: NotificationRule -> Maybe (Map Text (Value Text))
targetAddress :: NotificationRule -> Maybe (Value Text)
targets :: NotificationRule -> [TargetProperty]
haddock_workaround_ :: ()
createdBy :: Maybe (Value Text)
detailType :: Value Text
eventTypeId :: Maybe (Value Text)
eventTypeIds :: ValueList Text
name :: Value Text
resource :: Value Text
status :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
targetAddress :: Maybe (Value Text)
targets :: [TargetProperty]
..}
= NotificationRule {eventTypeId :: Maybe (Value Text)
eventTypeId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "EventTypeId" NotificationRule
Value Text
newValue, [TargetProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: ()
createdBy :: Maybe (Value Text)
detailType :: Value Text
eventTypeIds :: ValueList Text
name :: Value Text
resource :: Value Text
status :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
targetAddress :: Maybe (Value Text)
targets :: [TargetProperty]
haddock_workaround_ :: ()
createdBy :: Maybe (Value Text)
detailType :: Value Text
eventTypeIds :: ValueList Text
name :: Value Text
resource :: Value Text
status :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
targetAddress :: Maybe (Value Text)
targets :: [TargetProperty]
..}
instance Property "EventTypeIds" NotificationRule where
type PropertyType "EventTypeIds" NotificationRule = ValueList Prelude.Text
set :: PropertyType "EventTypeIds" NotificationRule
-> NotificationRule -> NotificationRule
set PropertyType "EventTypeIds" NotificationRule
newValue NotificationRule {[TargetProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: NotificationRule -> ()
createdBy :: NotificationRule -> Maybe (Value Text)
detailType :: NotificationRule -> Value Text
eventTypeId :: NotificationRule -> Maybe (Value Text)
eventTypeIds :: NotificationRule -> ValueList Text
name :: NotificationRule -> Value Text
resource :: NotificationRule -> Value Text
status :: NotificationRule -> Maybe (Value Text)
tags :: NotificationRule -> Maybe (Map Text (Value Text))
targetAddress :: NotificationRule -> Maybe (Value Text)
targets :: NotificationRule -> [TargetProperty]
haddock_workaround_ :: ()
createdBy :: Maybe (Value Text)
detailType :: Value Text
eventTypeId :: Maybe (Value Text)
eventTypeIds :: ValueList Text
name :: Value Text
resource :: Value Text
status :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
targetAddress :: Maybe (Value Text)
targets :: [TargetProperty]
..}
= NotificationRule {eventTypeIds :: ValueList Text
eventTypeIds = PropertyType "EventTypeIds" NotificationRule
ValueList Text
newValue, [TargetProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
createdBy :: Maybe (Value Text)
detailType :: Value Text
eventTypeId :: Maybe (Value Text)
name :: Value Text
resource :: Value Text
status :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
targetAddress :: Maybe (Value Text)
targets :: [TargetProperty]
haddock_workaround_ :: ()
createdBy :: Maybe (Value Text)
detailType :: Value Text
eventTypeId :: Maybe (Value Text)
name :: Value Text
resource :: Value Text
status :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
targetAddress :: Maybe (Value Text)
targets :: [TargetProperty]
..}
instance Property "Name" NotificationRule where
type PropertyType "Name" NotificationRule = Value Prelude.Text
set :: PropertyType "Name" NotificationRule
-> NotificationRule -> NotificationRule
set PropertyType "Name" NotificationRule
newValue NotificationRule {[TargetProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: NotificationRule -> ()
createdBy :: NotificationRule -> Maybe (Value Text)
detailType :: NotificationRule -> Value Text
eventTypeId :: NotificationRule -> Maybe (Value Text)
eventTypeIds :: NotificationRule -> ValueList Text
name :: NotificationRule -> Value Text
resource :: NotificationRule -> Value Text
status :: NotificationRule -> Maybe (Value Text)
tags :: NotificationRule -> Maybe (Map Text (Value Text))
targetAddress :: NotificationRule -> Maybe (Value Text)
targets :: NotificationRule -> [TargetProperty]
haddock_workaround_ :: ()
createdBy :: Maybe (Value Text)
detailType :: Value Text
eventTypeId :: Maybe (Value Text)
eventTypeIds :: ValueList Text
name :: Value Text
resource :: Value Text
status :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
targetAddress :: Maybe (Value Text)
targets :: [TargetProperty]
..}
= NotificationRule {name :: Value Text
name = PropertyType "Name" NotificationRule
Value Text
newValue, [TargetProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: ()
createdBy :: Maybe (Value Text)
detailType :: Value Text
eventTypeId :: Maybe (Value Text)
eventTypeIds :: ValueList Text
resource :: Value Text
status :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
targetAddress :: Maybe (Value Text)
targets :: [TargetProperty]
haddock_workaround_ :: ()
createdBy :: Maybe (Value Text)
detailType :: Value Text
eventTypeId :: Maybe (Value Text)
eventTypeIds :: ValueList Text
resource :: Value Text
status :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
targetAddress :: Maybe (Value Text)
targets :: [TargetProperty]
..}
instance Property "Resource" NotificationRule where
type PropertyType "Resource" NotificationRule = Value Prelude.Text
set :: PropertyType "Resource" NotificationRule
-> NotificationRule -> NotificationRule
set PropertyType "Resource" NotificationRule
newValue NotificationRule {[TargetProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: NotificationRule -> ()
createdBy :: NotificationRule -> Maybe (Value Text)
detailType :: NotificationRule -> Value Text
eventTypeId :: NotificationRule -> Maybe (Value Text)
eventTypeIds :: NotificationRule -> ValueList Text
name :: NotificationRule -> Value Text
resource :: NotificationRule -> Value Text
status :: NotificationRule -> Maybe (Value Text)
tags :: NotificationRule -> Maybe (Map Text (Value Text))
targetAddress :: NotificationRule -> Maybe (Value Text)
targets :: NotificationRule -> [TargetProperty]
haddock_workaround_ :: ()
createdBy :: Maybe (Value Text)
detailType :: Value Text
eventTypeId :: Maybe (Value Text)
eventTypeIds :: ValueList Text
name :: Value Text
resource :: Value Text
status :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
targetAddress :: Maybe (Value Text)
targets :: [TargetProperty]
..}
= NotificationRule {resource :: Value Text
resource = PropertyType "Resource" NotificationRule
Value Text
newValue, [TargetProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: ()
createdBy :: Maybe (Value Text)
detailType :: Value Text
eventTypeId :: Maybe (Value Text)
eventTypeIds :: ValueList Text
name :: Value Text
status :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
targetAddress :: Maybe (Value Text)
targets :: [TargetProperty]
haddock_workaround_ :: ()
createdBy :: Maybe (Value Text)
detailType :: Value Text
eventTypeId :: Maybe (Value Text)
eventTypeIds :: ValueList Text
name :: Value Text
status :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
targetAddress :: Maybe (Value Text)
targets :: [TargetProperty]
..}
instance Property "Status" NotificationRule where
type PropertyType "Status" NotificationRule = Value Prelude.Text
set :: PropertyType "Status" NotificationRule
-> NotificationRule -> NotificationRule
set PropertyType "Status" NotificationRule
newValue NotificationRule {[TargetProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: NotificationRule -> ()
createdBy :: NotificationRule -> Maybe (Value Text)
detailType :: NotificationRule -> Value Text
eventTypeId :: NotificationRule -> Maybe (Value Text)
eventTypeIds :: NotificationRule -> ValueList Text
name :: NotificationRule -> Value Text
resource :: NotificationRule -> Value Text
status :: NotificationRule -> Maybe (Value Text)
tags :: NotificationRule -> Maybe (Map Text (Value Text))
targetAddress :: NotificationRule -> Maybe (Value Text)
targets :: NotificationRule -> [TargetProperty]
haddock_workaround_ :: ()
createdBy :: Maybe (Value Text)
detailType :: Value Text
eventTypeId :: Maybe (Value Text)
eventTypeIds :: ValueList Text
name :: Value Text
resource :: Value Text
status :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
targetAddress :: Maybe (Value Text)
targets :: [TargetProperty]
..}
= NotificationRule {status :: Maybe (Value Text)
status = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Status" NotificationRule
Value Text
newValue, [TargetProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: ()
createdBy :: Maybe (Value Text)
detailType :: Value Text
eventTypeId :: Maybe (Value Text)
eventTypeIds :: ValueList Text
name :: Value Text
resource :: Value Text
tags :: Maybe (Map Text (Value Text))
targetAddress :: Maybe (Value Text)
targets :: [TargetProperty]
haddock_workaround_ :: ()
createdBy :: Maybe (Value Text)
detailType :: Value Text
eventTypeId :: Maybe (Value Text)
eventTypeIds :: ValueList Text
name :: Value Text
resource :: Value Text
tags :: Maybe (Map Text (Value Text))
targetAddress :: Maybe (Value Text)
targets :: [TargetProperty]
..}
instance Property "Tags" NotificationRule where
type PropertyType "Tags" NotificationRule = Prelude.Map Prelude.Text (Value Prelude.Text)
set :: PropertyType "Tags" NotificationRule
-> NotificationRule -> NotificationRule
set PropertyType "Tags" NotificationRule
newValue NotificationRule {[TargetProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: NotificationRule -> ()
createdBy :: NotificationRule -> Maybe (Value Text)
detailType :: NotificationRule -> Value Text
eventTypeId :: NotificationRule -> Maybe (Value Text)
eventTypeIds :: NotificationRule -> ValueList Text
name :: NotificationRule -> Value Text
resource :: NotificationRule -> Value Text
status :: NotificationRule -> Maybe (Value Text)
tags :: NotificationRule -> Maybe (Map Text (Value Text))
targetAddress :: NotificationRule -> Maybe (Value Text)
targets :: NotificationRule -> [TargetProperty]
haddock_workaround_ :: ()
createdBy :: Maybe (Value Text)
detailType :: Value Text
eventTypeId :: Maybe (Value Text)
eventTypeIds :: ValueList Text
name :: Value Text
resource :: Value Text
status :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
targetAddress :: Maybe (Value Text)
targets :: [TargetProperty]
..}
= NotificationRule {tags :: Maybe (Map Text (Value Text))
tags = Map Text (Value Text) -> Maybe (Map Text (Value Text))
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Map Text (Value Text)
PropertyType "Tags" NotificationRule
newValue, [TargetProperty]
Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: ()
createdBy :: Maybe (Value Text)
detailType :: Value Text
eventTypeId :: Maybe (Value Text)
eventTypeIds :: ValueList Text
name :: Value Text
resource :: Value Text
status :: Maybe (Value Text)
targetAddress :: Maybe (Value Text)
targets :: [TargetProperty]
haddock_workaround_ :: ()
createdBy :: Maybe (Value Text)
detailType :: Value Text
eventTypeId :: Maybe (Value Text)
eventTypeIds :: ValueList Text
name :: Value Text
resource :: Value Text
status :: Maybe (Value Text)
targetAddress :: Maybe (Value Text)
targets :: [TargetProperty]
..}
instance Property "TargetAddress" NotificationRule where
type PropertyType "TargetAddress" NotificationRule = Value Prelude.Text
set :: PropertyType "TargetAddress" NotificationRule
-> NotificationRule -> NotificationRule
set PropertyType "TargetAddress" NotificationRule
newValue NotificationRule {[TargetProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: NotificationRule -> ()
createdBy :: NotificationRule -> Maybe (Value Text)
detailType :: NotificationRule -> Value Text
eventTypeId :: NotificationRule -> Maybe (Value Text)
eventTypeIds :: NotificationRule -> ValueList Text
name :: NotificationRule -> Value Text
resource :: NotificationRule -> Value Text
status :: NotificationRule -> Maybe (Value Text)
tags :: NotificationRule -> Maybe (Map Text (Value Text))
targetAddress :: NotificationRule -> Maybe (Value Text)
targets :: NotificationRule -> [TargetProperty]
haddock_workaround_ :: ()
createdBy :: Maybe (Value Text)
detailType :: Value Text
eventTypeId :: Maybe (Value Text)
eventTypeIds :: ValueList Text
name :: Value Text
resource :: Value Text
status :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
targetAddress :: Maybe (Value Text)
targets :: [TargetProperty]
..}
= NotificationRule {targetAddress :: Maybe (Value Text)
targetAddress = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TargetAddress" NotificationRule
Value Text
newValue, [TargetProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: ()
createdBy :: Maybe (Value Text)
detailType :: Value Text
eventTypeId :: Maybe (Value Text)
eventTypeIds :: ValueList Text
name :: Value Text
resource :: Value Text
status :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
targets :: [TargetProperty]
haddock_workaround_ :: ()
createdBy :: Maybe (Value Text)
detailType :: Value Text
eventTypeId :: Maybe (Value Text)
eventTypeIds :: ValueList Text
name :: Value Text
resource :: Value Text
status :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
targets :: [TargetProperty]
..}
instance Property "Targets" NotificationRule where
type PropertyType "Targets" NotificationRule = [TargetProperty]
set :: PropertyType "Targets" NotificationRule
-> NotificationRule -> NotificationRule
set PropertyType "Targets" NotificationRule
newValue NotificationRule {[TargetProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: NotificationRule -> ()
createdBy :: NotificationRule -> Maybe (Value Text)
detailType :: NotificationRule -> Value Text
eventTypeId :: NotificationRule -> Maybe (Value Text)
eventTypeIds :: NotificationRule -> ValueList Text
name :: NotificationRule -> Value Text
resource :: NotificationRule -> Value Text
status :: NotificationRule -> Maybe (Value Text)
tags :: NotificationRule -> Maybe (Map Text (Value Text))
targetAddress :: NotificationRule -> Maybe (Value Text)
targets :: NotificationRule -> [TargetProperty]
haddock_workaround_ :: ()
createdBy :: Maybe (Value Text)
detailType :: Value Text
eventTypeId :: Maybe (Value Text)
eventTypeIds :: ValueList Text
name :: Value Text
resource :: Value Text
status :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
targetAddress :: Maybe (Value Text)
targets :: [TargetProperty]
..}
= NotificationRule {targets :: [TargetProperty]
targets = [TargetProperty]
PropertyType "Targets" NotificationRule
newValue, Maybe (Map Text (Value Text))
Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: ()
createdBy :: Maybe (Value Text)
detailType :: Value Text
eventTypeId :: Maybe (Value Text)
eventTypeIds :: ValueList Text
name :: Value Text
resource :: Value Text
status :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
targetAddress :: Maybe (Value Text)
haddock_workaround_ :: ()
createdBy :: Maybe (Value Text)
detailType :: Value Text
eventTypeId :: Maybe (Value Text)
eventTypeIds :: ValueList Text
name :: Value Text
resource :: Value Text
status :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
targetAddress :: Maybe (Value Text)
..}