module Stratosphere.KafkaConnect.CustomPlugin (
module Exports, CustomPlugin(..), mkCustomPlugin
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.KafkaConnect.CustomPlugin.CustomPluginLocationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data CustomPlugin
=
CustomPlugin {CustomPlugin -> ()
haddock_workaround_ :: (),
CustomPlugin -> Value Text
contentType :: (Value Prelude.Text),
CustomPlugin -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
CustomPlugin -> CustomPluginLocationProperty
location :: CustomPluginLocationProperty,
CustomPlugin -> Value Text
name :: (Value Prelude.Text),
CustomPlugin -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag])}
deriving stock (CustomPlugin -> CustomPlugin -> Bool
(CustomPlugin -> CustomPlugin -> Bool)
-> (CustomPlugin -> CustomPlugin -> Bool) -> Eq CustomPlugin
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CustomPlugin -> CustomPlugin -> Bool
== :: CustomPlugin -> CustomPlugin -> Bool
$c/= :: CustomPlugin -> CustomPlugin -> Bool
/= :: CustomPlugin -> CustomPlugin -> Bool
Prelude.Eq, Int -> CustomPlugin -> ShowS
[CustomPlugin] -> ShowS
CustomPlugin -> String
(Int -> CustomPlugin -> ShowS)
-> (CustomPlugin -> String)
-> ([CustomPlugin] -> ShowS)
-> Show CustomPlugin
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CustomPlugin -> ShowS
showsPrec :: Int -> CustomPlugin -> ShowS
$cshow :: CustomPlugin -> String
show :: CustomPlugin -> String
$cshowList :: [CustomPlugin] -> ShowS
showList :: [CustomPlugin] -> ShowS
Prelude.Show)
mkCustomPlugin ::
Value Prelude.Text
-> CustomPluginLocationProperty
-> Value Prelude.Text -> CustomPlugin
mkCustomPlugin :: Value Text
-> CustomPluginLocationProperty -> Value Text -> CustomPlugin
mkCustomPlugin Value Text
contentType CustomPluginLocationProperty
location Value Text
name
= CustomPlugin
{haddock_workaround_ :: ()
haddock_workaround_ = (), contentType :: Value Text
contentType = Value Text
contentType,
location :: CustomPluginLocationProperty
location = CustomPluginLocationProperty
location, name :: Value Text
name = Value Text
name, description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties CustomPlugin where
toResourceProperties :: CustomPlugin -> ResourceProperties
toResourceProperties CustomPlugin {Maybe [Tag]
Maybe (Value Text)
()
Value Text
CustomPluginLocationProperty
haddock_workaround_ :: CustomPlugin -> ()
contentType :: CustomPlugin -> Value Text
description :: CustomPlugin -> Maybe (Value Text)
location :: CustomPlugin -> CustomPluginLocationProperty
name :: CustomPlugin -> Value Text
tags :: CustomPlugin -> Maybe [Tag]
haddock_workaround_ :: ()
contentType :: Value Text
description :: Maybe (Value Text)
location :: CustomPluginLocationProperty
name :: Value Text
tags :: Maybe [Tag]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::KafkaConnect::CustomPlugin",
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
"ContentType" 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
contentType, Key
"Location" Key -> CustomPluginLocationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= CustomPluginLocationProperty
location,
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]
([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
"Description" (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)
description,
Key -> [Tag] -> (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" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags]))}
instance JSON.ToJSON CustomPlugin where
toJSON :: CustomPlugin -> Value
toJSON CustomPlugin {Maybe [Tag]
Maybe (Value Text)
()
Value Text
CustomPluginLocationProperty
haddock_workaround_ :: CustomPlugin -> ()
contentType :: CustomPlugin -> Value Text
description :: CustomPlugin -> Maybe (Value Text)
location :: CustomPlugin -> CustomPluginLocationProperty
name :: CustomPlugin -> Value Text
tags :: CustomPlugin -> Maybe [Tag]
haddock_workaround_ :: ()
contentType :: Value Text
description :: Maybe (Value Text)
location :: CustomPluginLocationProperty
name :: Value Text
tags :: Maybe [Tag]
..}
= [(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
"ContentType" 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
contentType, Key
"Location" Key -> CustomPluginLocationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= CustomPluginLocationProperty
location,
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]
([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
"Description" (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)
description,
Key -> [Tag] -> (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" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags])))
instance Property "ContentType" CustomPlugin where
type PropertyType "ContentType" CustomPlugin = Value Prelude.Text
set :: PropertyType "ContentType" CustomPlugin
-> CustomPlugin -> CustomPlugin
set PropertyType "ContentType" CustomPlugin
newValue CustomPlugin {Maybe [Tag]
Maybe (Value Text)
()
Value Text
CustomPluginLocationProperty
haddock_workaround_ :: CustomPlugin -> ()
contentType :: CustomPlugin -> Value Text
description :: CustomPlugin -> Maybe (Value Text)
location :: CustomPlugin -> CustomPluginLocationProperty
name :: CustomPlugin -> Value Text
tags :: CustomPlugin -> Maybe [Tag]
haddock_workaround_ :: ()
contentType :: Value Text
description :: Maybe (Value Text)
location :: CustomPluginLocationProperty
name :: Value Text
tags :: Maybe [Tag]
..}
= CustomPlugin {contentType :: Value Text
contentType = PropertyType "ContentType" CustomPlugin
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
Value Text
CustomPluginLocationProperty
haddock_workaround_ :: ()
description :: Maybe (Value Text)
location :: CustomPluginLocationProperty
name :: Value Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
location :: CustomPluginLocationProperty
name :: Value Text
tags :: Maybe [Tag]
..}
instance Property "Description" CustomPlugin where
type PropertyType "Description" CustomPlugin = Value Prelude.Text
set :: PropertyType "Description" CustomPlugin
-> CustomPlugin -> CustomPlugin
set PropertyType "Description" CustomPlugin
newValue CustomPlugin {Maybe [Tag]
Maybe (Value Text)
()
Value Text
CustomPluginLocationProperty
haddock_workaround_ :: CustomPlugin -> ()
contentType :: CustomPlugin -> Value Text
description :: CustomPlugin -> Maybe (Value Text)
location :: CustomPlugin -> CustomPluginLocationProperty
name :: CustomPlugin -> Value Text
tags :: CustomPlugin -> Maybe [Tag]
haddock_workaround_ :: ()
contentType :: Value Text
description :: Maybe (Value Text)
location :: CustomPluginLocationProperty
name :: Value Text
tags :: Maybe [Tag]
..}
= CustomPlugin {description :: Maybe (Value Text)
description = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Description" CustomPlugin
Value Text
newValue, Maybe [Tag]
()
Value Text
CustomPluginLocationProperty
haddock_workaround_ :: ()
contentType :: Value Text
location :: CustomPluginLocationProperty
name :: Value Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
contentType :: Value Text
location :: CustomPluginLocationProperty
name :: Value Text
tags :: Maybe [Tag]
..}
instance Property "Location" CustomPlugin where
type PropertyType "Location" CustomPlugin = CustomPluginLocationProperty
set :: PropertyType "Location" CustomPlugin
-> CustomPlugin -> CustomPlugin
set PropertyType "Location" CustomPlugin
newValue CustomPlugin {Maybe [Tag]
Maybe (Value Text)
()
Value Text
CustomPluginLocationProperty
haddock_workaround_ :: CustomPlugin -> ()
contentType :: CustomPlugin -> Value Text
description :: CustomPlugin -> Maybe (Value Text)
location :: CustomPlugin -> CustomPluginLocationProperty
name :: CustomPlugin -> Value Text
tags :: CustomPlugin -> Maybe [Tag]
haddock_workaround_ :: ()
contentType :: Value Text
description :: Maybe (Value Text)
location :: CustomPluginLocationProperty
name :: Value Text
tags :: Maybe [Tag]
..}
= CustomPlugin {location :: CustomPluginLocationProperty
location = PropertyType "Location" CustomPlugin
CustomPluginLocationProperty
newValue, Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
contentType :: Value Text
description :: Maybe (Value Text)
name :: Value Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
contentType :: Value Text
description :: Maybe (Value Text)
name :: Value Text
tags :: Maybe [Tag]
..}
instance Property "Name" CustomPlugin where
type PropertyType "Name" CustomPlugin = Value Prelude.Text
set :: PropertyType "Name" CustomPlugin -> CustomPlugin -> CustomPlugin
set PropertyType "Name" CustomPlugin
newValue CustomPlugin {Maybe [Tag]
Maybe (Value Text)
()
Value Text
CustomPluginLocationProperty
haddock_workaround_ :: CustomPlugin -> ()
contentType :: CustomPlugin -> Value Text
description :: CustomPlugin -> Maybe (Value Text)
location :: CustomPlugin -> CustomPluginLocationProperty
name :: CustomPlugin -> Value Text
tags :: CustomPlugin -> Maybe [Tag]
haddock_workaround_ :: ()
contentType :: Value Text
description :: Maybe (Value Text)
location :: CustomPluginLocationProperty
name :: Value Text
tags :: Maybe [Tag]
..} = CustomPlugin {name :: Value Text
name = PropertyType "Name" CustomPlugin
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
Value Text
CustomPluginLocationProperty
haddock_workaround_ :: ()
contentType :: Value Text
description :: Maybe (Value Text)
location :: CustomPluginLocationProperty
tags :: Maybe [Tag]
haddock_workaround_ :: ()
contentType :: Value Text
description :: Maybe (Value Text)
location :: CustomPluginLocationProperty
tags :: Maybe [Tag]
..}
instance Property "Tags" CustomPlugin where
type PropertyType "Tags" CustomPlugin = [Tag]
set :: PropertyType "Tags" CustomPlugin -> CustomPlugin -> CustomPlugin
set PropertyType "Tags" CustomPlugin
newValue CustomPlugin {Maybe [Tag]
Maybe (Value Text)
()
Value Text
CustomPluginLocationProperty
haddock_workaround_ :: CustomPlugin -> ()
contentType :: CustomPlugin -> Value Text
description :: CustomPlugin -> Maybe (Value Text)
location :: CustomPlugin -> CustomPluginLocationProperty
name :: CustomPlugin -> Value Text
tags :: CustomPlugin -> Maybe [Tag]
haddock_workaround_ :: ()
contentType :: Value Text
description :: Maybe (Value Text)
location :: CustomPluginLocationProperty
name :: Value Text
tags :: Maybe [Tag]
..}
= CustomPlugin {tags :: Maybe [Tag]
tags = [Tag] -> Maybe [Tag]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [Tag]
PropertyType "Tags" CustomPlugin
newValue, Maybe (Value Text)
()
Value Text
CustomPluginLocationProperty
haddock_workaround_ :: ()
contentType :: Value Text
description :: Maybe (Value Text)
location :: CustomPluginLocationProperty
name :: Value Text
haddock_workaround_ :: ()
contentType :: Value Text
description :: Maybe (Value Text)
location :: CustomPluginLocationProperty
name :: Value Text
..}