module Stratosphere.Glue.Trigger.ActionProperty (
module Exports, ActionProperty(..), mkActionProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Glue.Trigger.NotificationPropertyProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ActionProperty
=
ActionProperty {ActionProperty -> ()
haddock_workaround_ :: (),
ActionProperty -> Maybe Object
arguments :: (Prelude.Maybe JSON.Object),
ActionProperty -> Maybe (Value Text)
crawlerName :: (Prelude.Maybe (Value Prelude.Text)),
ActionProperty -> Maybe (Value Text)
jobName :: (Prelude.Maybe (Value Prelude.Text)),
ActionProperty -> Maybe NotificationPropertyProperty
notificationProperty :: (Prelude.Maybe NotificationPropertyProperty),
ActionProperty -> Maybe (Value Text)
securityConfiguration :: (Prelude.Maybe (Value Prelude.Text)),
ActionProperty -> Maybe (Value Integer)
timeout :: (Prelude.Maybe (Value Prelude.Integer))}
deriving stock (ActionProperty -> ActionProperty -> Bool
(ActionProperty -> ActionProperty -> Bool)
-> (ActionProperty -> ActionProperty -> Bool) -> Eq ActionProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ActionProperty -> ActionProperty -> Bool
== :: ActionProperty -> ActionProperty -> Bool
$c/= :: ActionProperty -> ActionProperty -> Bool
/= :: ActionProperty -> ActionProperty -> Bool
Prelude.Eq, Int -> ActionProperty -> ShowS
[ActionProperty] -> ShowS
ActionProperty -> String
(Int -> ActionProperty -> ShowS)
-> (ActionProperty -> String)
-> ([ActionProperty] -> ShowS)
-> Show ActionProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ActionProperty -> ShowS
showsPrec :: Int -> ActionProperty -> ShowS
$cshow :: ActionProperty -> String
show :: ActionProperty -> String
$cshowList :: [ActionProperty] -> ShowS
showList :: [ActionProperty] -> ShowS
Prelude.Show)
mkActionProperty :: ActionProperty
mkActionProperty :: ActionProperty
mkActionProperty
= ActionProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), arguments :: Maybe Object
arguments = Maybe Object
forall a. Maybe a
Prelude.Nothing,
crawlerName :: Maybe (Value Text)
crawlerName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, jobName :: Maybe (Value Text)
jobName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
notificationProperty :: Maybe NotificationPropertyProperty
notificationProperty = Maybe NotificationPropertyProperty
forall a. Maybe a
Prelude.Nothing,
securityConfiguration :: Maybe (Value Text)
securityConfiguration = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, timeout :: Maybe (Value Integer)
timeout = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ActionProperty where
toResourceProperties :: ActionProperty -> ResourceProperties
toResourceProperties ActionProperty {Maybe Object
Maybe (Value Integer)
Maybe (Value Text)
Maybe NotificationPropertyProperty
()
haddock_workaround_ :: ActionProperty -> ()
arguments :: ActionProperty -> Maybe Object
crawlerName :: ActionProperty -> Maybe (Value Text)
jobName :: ActionProperty -> Maybe (Value Text)
notificationProperty :: ActionProperty -> Maybe NotificationPropertyProperty
securityConfiguration :: ActionProperty -> Maybe (Value Text)
timeout :: ActionProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
arguments :: Maybe Object
crawlerName :: Maybe (Value Text)
jobName :: Maybe (Value Text)
notificationProperty :: Maybe NotificationPropertyProperty
securityConfiguration :: Maybe (Value Text)
timeout :: Maybe (Value Integer)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Glue::Trigger.Action",
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 -> Object -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Arguments" (Object -> (Key, Value)) -> Maybe Object -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Object
arguments,
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
"CrawlerName" (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)
crawlerName,
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
"JobName" (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)
jobName,
Key -> NotificationPropertyProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"NotificationProperty" (NotificationPropertyProperty -> (Key, Value))
-> Maybe NotificationPropertyProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe NotificationPropertyProperty
notificationProperty,
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
"SecurityConfiguration"
(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)
securityConfiguration,
Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Timeout" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
timeout])}
instance JSON.ToJSON ActionProperty where
toJSON :: ActionProperty -> Value
toJSON ActionProperty {Maybe Object
Maybe (Value Integer)
Maybe (Value Text)
Maybe NotificationPropertyProperty
()
haddock_workaround_ :: ActionProperty -> ()
arguments :: ActionProperty -> Maybe Object
crawlerName :: ActionProperty -> Maybe (Value Text)
jobName :: ActionProperty -> Maybe (Value Text)
notificationProperty :: ActionProperty -> Maybe NotificationPropertyProperty
securityConfiguration :: ActionProperty -> Maybe (Value Text)
timeout :: ActionProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
arguments :: Maybe Object
crawlerName :: Maybe (Value Text)
jobName :: Maybe (Value Text)
notificationProperty :: Maybe NotificationPropertyProperty
securityConfiguration :: Maybe (Value Text)
timeout :: Maybe (Value Integer)
..}
= [(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 -> Object -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Arguments" (Object -> (Key, Value)) -> Maybe Object -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Object
arguments,
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
"CrawlerName" (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)
crawlerName,
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
"JobName" (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)
jobName,
Key -> NotificationPropertyProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"NotificationProperty" (NotificationPropertyProperty -> (Key, Value))
-> Maybe NotificationPropertyProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe NotificationPropertyProperty
notificationProperty,
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
"SecurityConfiguration"
(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)
securityConfiguration,
Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Timeout" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
timeout]))
instance Property "Arguments" ActionProperty where
type PropertyType "Arguments" ActionProperty = JSON.Object
set :: PropertyType "Arguments" ActionProperty
-> ActionProperty -> ActionProperty
set PropertyType "Arguments" ActionProperty
newValue ActionProperty {Maybe Object
Maybe (Value Integer)
Maybe (Value Text)
Maybe NotificationPropertyProperty
()
haddock_workaround_ :: ActionProperty -> ()
arguments :: ActionProperty -> Maybe Object
crawlerName :: ActionProperty -> Maybe (Value Text)
jobName :: ActionProperty -> Maybe (Value Text)
notificationProperty :: ActionProperty -> Maybe NotificationPropertyProperty
securityConfiguration :: ActionProperty -> Maybe (Value Text)
timeout :: ActionProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
arguments :: Maybe Object
crawlerName :: Maybe (Value Text)
jobName :: Maybe (Value Text)
notificationProperty :: Maybe NotificationPropertyProperty
securityConfiguration :: Maybe (Value Text)
timeout :: Maybe (Value Integer)
..}
= ActionProperty {arguments :: Maybe Object
arguments = Object -> Maybe Object
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Object
PropertyType "Arguments" ActionProperty
newValue, Maybe (Value Integer)
Maybe (Value Text)
Maybe NotificationPropertyProperty
()
haddock_workaround_ :: ()
crawlerName :: Maybe (Value Text)
jobName :: Maybe (Value Text)
notificationProperty :: Maybe NotificationPropertyProperty
securityConfiguration :: Maybe (Value Text)
timeout :: Maybe (Value Integer)
haddock_workaround_ :: ()
crawlerName :: Maybe (Value Text)
jobName :: Maybe (Value Text)
notificationProperty :: Maybe NotificationPropertyProperty
securityConfiguration :: Maybe (Value Text)
timeout :: Maybe (Value Integer)
..}
instance Property "CrawlerName" ActionProperty where
type PropertyType "CrawlerName" ActionProperty = Value Prelude.Text
set :: PropertyType "CrawlerName" ActionProperty
-> ActionProperty -> ActionProperty
set PropertyType "CrawlerName" ActionProperty
newValue ActionProperty {Maybe Object
Maybe (Value Integer)
Maybe (Value Text)
Maybe NotificationPropertyProperty
()
haddock_workaround_ :: ActionProperty -> ()
arguments :: ActionProperty -> Maybe Object
crawlerName :: ActionProperty -> Maybe (Value Text)
jobName :: ActionProperty -> Maybe (Value Text)
notificationProperty :: ActionProperty -> Maybe NotificationPropertyProperty
securityConfiguration :: ActionProperty -> Maybe (Value Text)
timeout :: ActionProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
arguments :: Maybe Object
crawlerName :: Maybe (Value Text)
jobName :: Maybe (Value Text)
notificationProperty :: Maybe NotificationPropertyProperty
securityConfiguration :: Maybe (Value Text)
timeout :: Maybe (Value Integer)
..}
= ActionProperty {crawlerName :: Maybe (Value Text)
crawlerName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CrawlerName" ActionProperty
Value Text
newValue, Maybe Object
Maybe (Value Integer)
Maybe (Value Text)
Maybe NotificationPropertyProperty
()
haddock_workaround_ :: ()
arguments :: Maybe Object
jobName :: Maybe (Value Text)
notificationProperty :: Maybe NotificationPropertyProperty
securityConfiguration :: Maybe (Value Text)
timeout :: Maybe (Value Integer)
haddock_workaround_ :: ()
arguments :: Maybe Object
jobName :: Maybe (Value Text)
notificationProperty :: Maybe NotificationPropertyProperty
securityConfiguration :: Maybe (Value Text)
timeout :: Maybe (Value Integer)
..}
instance Property "JobName" ActionProperty where
type PropertyType "JobName" ActionProperty = Value Prelude.Text
set :: PropertyType "JobName" ActionProperty
-> ActionProperty -> ActionProperty
set PropertyType "JobName" ActionProperty
newValue ActionProperty {Maybe Object
Maybe (Value Integer)
Maybe (Value Text)
Maybe NotificationPropertyProperty
()
haddock_workaround_ :: ActionProperty -> ()
arguments :: ActionProperty -> Maybe Object
crawlerName :: ActionProperty -> Maybe (Value Text)
jobName :: ActionProperty -> Maybe (Value Text)
notificationProperty :: ActionProperty -> Maybe NotificationPropertyProperty
securityConfiguration :: ActionProperty -> Maybe (Value Text)
timeout :: ActionProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
arguments :: Maybe Object
crawlerName :: Maybe (Value Text)
jobName :: Maybe (Value Text)
notificationProperty :: Maybe NotificationPropertyProperty
securityConfiguration :: Maybe (Value Text)
timeout :: Maybe (Value Integer)
..}
= ActionProperty {jobName :: Maybe (Value Text)
jobName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "JobName" ActionProperty
Value Text
newValue, Maybe Object
Maybe (Value Integer)
Maybe (Value Text)
Maybe NotificationPropertyProperty
()
haddock_workaround_ :: ()
arguments :: Maybe Object
crawlerName :: Maybe (Value Text)
notificationProperty :: Maybe NotificationPropertyProperty
securityConfiguration :: Maybe (Value Text)
timeout :: Maybe (Value Integer)
haddock_workaround_ :: ()
arguments :: Maybe Object
crawlerName :: Maybe (Value Text)
notificationProperty :: Maybe NotificationPropertyProperty
securityConfiguration :: Maybe (Value Text)
timeout :: Maybe (Value Integer)
..}
instance Property "NotificationProperty" ActionProperty where
type PropertyType "NotificationProperty" ActionProperty = NotificationPropertyProperty
set :: PropertyType "NotificationProperty" ActionProperty
-> ActionProperty -> ActionProperty
set PropertyType "NotificationProperty" ActionProperty
newValue ActionProperty {Maybe Object
Maybe (Value Integer)
Maybe (Value Text)
Maybe NotificationPropertyProperty
()
haddock_workaround_ :: ActionProperty -> ()
arguments :: ActionProperty -> Maybe Object
crawlerName :: ActionProperty -> Maybe (Value Text)
jobName :: ActionProperty -> Maybe (Value Text)
notificationProperty :: ActionProperty -> Maybe NotificationPropertyProperty
securityConfiguration :: ActionProperty -> Maybe (Value Text)
timeout :: ActionProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
arguments :: Maybe Object
crawlerName :: Maybe (Value Text)
jobName :: Maybe (Value Text)
notificationProperty :: Maybe NotificationPropertyProperty
securityConfiguration :: Maybe (Value Text)
timeout :: Maybe (Value Integer)
..}
= ActionProperty {notificationProperty :: Maybe NotificationPropertyProperty
notificationProperty = NotificationPropertyProperty -> Maybe NotificationPropertyProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "NotificationProperty" ActionProperty
NotificationPropertyProperty
newValue, Maybe Object
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
arguments :: Maybe Object
crawlerName :: Maybe (Value Text)
jobName :: Maybe (Value Text)
securityConfiguration :: Maybe (Value Text)
timeout :: Maybe (Value Integer)
haddock_workaround_ :: ()
arguments :: Maybe Object
crawlerName :: Maybe (Value Text)
jobName :: Maybe (Value Text)
securityConfiguration :: Maybe (Value Text)
timeout :: Maybe (Value Integer)
..}
instance Property "SecurityConfiguration" ActionProperty where
type PropertyType "SecurityConfiguration" ActionProperty = Value Prelude.Text
set :: PropertyType "SecurityConfiguration" ActionProperty
-> ActionProperty -> ActionProperty
set PropertyType "SecurityConfiguration" ActionProperty
newValue ActionProperty {Maybe Object
Maybe (Value Integer)
Maybe (Value Text)
Maybe NotificationPropertyProperty
()
haddock_workaround_ :: ActionProperty -> ()
arguments :: ActionProperty -> Maybe Object
crawlerName :: ActionProperty -> Maybe (Value Text)
jobName :: ActionProperty -> Maybe (Value Text)
notificationProperty :: ActionProperty -> Maybe NotificationPropertyProperty
securityConfiguration :: ActionProperty -> Maybe (Value Text)
timeout :: ActionProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
arguments :: Maybe Object
crawlerName :: Maybe (Value Text)
jobName :: Maybe (Value Text)
notificationProperty :: Maybe NotificationPropertyProperty
securityConfiguration :: Maybe (Value Text)
timeout :: Maybe (Value Integer)
..}
= ActionProperty
{securityConfiguration :: Maybe (Value Text)
securityConfiguration = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SecurityConfiguration" ActionProperty
Value Text
newValue, Maybe Object
Maybe (Value Integer)
Maybe (Value Text)
Maybe NotificationPropertyProperty
()
haddock_workaround_ :: ()
arguments :: Maybe Object
crawlerName :: Maybe (Value Text)
jobName :: Maybe (Value Text)
notificationProperty :: Maybe NotificationPropertyProperty
timeout :: Maybe (Value Integer)
haddock_workaround_ :: ()
arguments :: Maybe Object
crawlerName :: Maybe (Value Text)
jobName :: Maybe (Value Text)
notificationProperty :: Maybe NotificationPropertyProperty
timeout :: Maybe (Value Integer)
..}
instance Property "Timeout" ActionProperty where
type PropertyType "Timeout" ActionProperty = Value Prelude.Integer
set :: PropertyType "Timeout" ActionProperty
-> ActionProperty -> ActionProperty
set PropertyType "Timeout" ActionProperty
newValue ActionProperty {Maybe Object
Maybe (Value Integer)
Maybe (Value Text)
Maybe NotificationPropertyProperty
()
haddock_workaround_ :: ActionProperty -> ()
arguments :: ActionProperty -> Maybe Object
crawlerName :: ActionProperty -> Maybe (Value Text)
jobName :: ActionProperty -> Maybe (Value Text)
notificationProperty :: ActionProperty -> Maybe NotificationPropertyProperty
securityConfiguration :: ActionProperty -> Maybe (Value Text)
timeout :: ActionProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
arguments :: Maybe Object
crawlerName :: Maybe (Value Text)
jobName :: Maybe (Value Text)
notificationProperty :: Maybe NotificationPropertyProperty
securityConfiguration :: Maybe (Value Text)
timeout :: Maybe (Value Integer)
..}
= ActionProperty {timeout :: Maybe (Value Integer)
timeout = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Timeout" ActionProperty
Value Integer
newValue, Maybe Object
Maybe (Value Text)
Maybe NotificationPropertyProperty
()
haddock_workaround_ :: ()
arguments :: Maybe Object
crawlerName :: Maybe (Value Text)
jobName :: Maybe (Value Text)
notificationProperty :: Maybe NotificationPropertyProperty
securityConfiguration :: Maybe (Value Text)
haddock_workaround_ :: ()
arguments :: Maybe Object
crawlerName :: Maybe (Value Text)
jobName :: Maybe (Value Text)
notificationProperty :: Maybe NotificationPropertyProperty
securityConfiguration :: Maybe (Value Text)
..}