module Stratosphere.KafkaConnect.Connector.CustomPluginProperty (
CustomPluginProperty(..), mkCustomPluginProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data CustomPluginProperty
=
CustomPluginProperty {CustomPluginProperty -> ()
haddock_workaround_ :: (),
CustomPluginProperty -> Value Text
customPluginArn :: (Value Prelude.Text),
CustomPluginProperty -> Value Integer
revision :: (Value Prelude.Integer)}
deriving stock (CustomPluginProperty -> CustomPluginProperty -> Bool
(CustomPluginProperty -> CustomPluginProperty -> Bool)
-> (CustomPluginProperty -> CustomPluginProperty -> Bool)
-> Eq CustomPluginProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CustomPluginProperty -> CustomPluginProperty -> Bool
== :: CustomPluginProperty -> CustomPluginProperty -> Bool
$c/= :: CustomPluginProperty -> CustomPluginProperty -> Bool
/= :: CustomPluginProperty -> CustomPluginProperty -> Bool
Prelude.Eq, Int -> CustomPluginProperty -> ShowS
[CustomPluginProperty] -> ShowS
CustomPluginProperty -> String
(Int -> CustomPluginProperty -> ShowS)
-> (CustomPluginProperty -> String)
-> ([CustomPluginProperty] -> ShowS)
-> Show CustomPluginProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CustomPluginProperty -> ShowS
showsPrec :: Int -> CustomPluginProperty -> ShowS
$cshow :: CustomPluginProperty -> String
show :: CustomPluginProperty -> String
$cshowList :: [CustomPluginProperty] -> ShowS
showList :: [CustomPluginProperty] -> ShowS
Prelude.Show)
mkCustomPluginProperty ::
Value Prelude.Text -> Value Prelude.Integer -> CustomPluginProperty
mkCustomPluginProperty :: Value Text -> Value Integer -> CustomPluginProperty
mkCustomPluginProperty Value Text
customPluginArn Value Integer
revision
= CustomPluginProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), customPluginArn :: Value Text
customPluginArn = Value Text
customPluginArn,
revision :: Value Integer
revision = Value Integer
revision}
instance ToResourceProperties CustomPluginProperty where
toResourceProperties :: CustomPluginProperty -> ResourceProperties
toResourceProperties CustomPluginProperty {()
Value Integer
Value Text
haddock_workaround_ :: CustomPluginProperty -> ()
customPluginArn :: CustomPluginProperty -> Value Text
revision :: CustomPluginProperty -> Value Integer
haddock_workaround_ :: ()
customPluginArn :: Value Text
revision :: Value Integer
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::KafkaConnect::Connector.CustomPlugin",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"CustomPluginArn" 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
customPluginArn,
Key
"Revision" 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..= Value Integer
revision]}
instance JSON.ToJSON CustomPluginProperty where
toJSON :: CustomPluginProperty -> Value
toJSON CustomPluginProperty {()
Value Integer
Value Text
haddock_workaround_ :: CustomPluginProperty -> ()
customPluginArn :: CustomPluginProperty -> Value Text
revision :: CustomPluginProperty -> Value Integer
haddock_workaround_ :: ()
customPluginArn :: Value Text
revision :: Value Integer
..}
= [(Key, Value)] -> Value
JSON.object
[Key
"CustomPluginArn" 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
customPluginArn,
Key
"Revision" 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..= Value Integer
revision]
instance Property "CustomPluginArn" CustomPluginProperty where
type PropertyType "CustomPluginArn" CustomPluginProperty = Value Prelude.Text
set :: PropertyType "CustomPluginArn" CustomPluginProperty
-> CustomPluginProperty -> CustomPluginProperty
set PropertyType "CustomPluginArn" CustomPluginProperty
newValue CustomPluginProperty {()
Value Integer
Value Text
haddock_workaround_ :: CustomPluginProperty -> ()
customPluginArn :: CustomPluginProperty -> Value Text
revision :: CustomPluginProperty -> Value Integer
haddock_workaround_ :: ()
customPluginArn :: Value Text
revision :: Value Integer
..}
= CustomPluginProperty {customPluginArn :: Value Text
customPluginArn = PropertyType "CustomPluginArn" CustomPluginProperty
Value Text
newValue, ()
Value Integer
haddock_workaround_ :: ()
revision :: Value Integer
haddock_workaround_ :: ()
revision :: Value Integer
..}
instance Property "Revision" CustomPluginProperty where
type PropertyType "Revision" CustomPluginProperty = Value Prelude.Integer
set :: PropertyType "Revision" CustomPluginProperty
-> CustomPluginProperty -> CustomPluginProperty
set PropertyType "Revision" CustomPluginProperty
newValue CustomPluginProperty {()
Value Integer
Value Text
haddock_workaround_ :: CustomPluginProperty -> ()
customPluginArn :: CustomPluginProperty -> Value Text
revision :: CustomPluginProperty -> Value Integer
haddock_workaround_ :: ()
customPluginArn :: Value Text
revision :: Value Integer
..}
= CustomPluginProperty {revision :: Value Integer
revision = PropertyType "Revision" CustomPluginProperty
Value Integer
newValue, ()
Value Text
haddock_workaround_ :: ()
customPluginArn :: Value Text
haddock_workaround_ :: ()
customPluginArn :: Value Text
..}