module Stratosphere.KafkaConnect.CustomPlugin.CustomPluginLocationProperty (
module Exports, CustomPluginLocationProperty(..),
mkCustomPluginLocationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.KafkaConnect.CustomPlugin.S3LocationProperty as Exports
import Stratosphere.ResourceProperties
data CustomPluginLocationProperty
=
CustomPluginLocationProperty {CustomPluginLocationProperty -> ()
haddock_workaround_ :: (),
CustomPluginLocationProperty -> S3LocationProperty
s3Location :: S3LocationProperty}
deriving stock (CustomPluginLocationProperty
-> CustomPluginLocationProperty -> Bool
(CustomPluginLocationProperty
-> CustomPluginLocationProperty -> Bool)
-> (CustomPluginLocationProperty
-> CustomPluginLocationProperty -> Bool)
-> Eq CustomPluginLocationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CustomPluginLocationProperty
-> CustomPluginLocationProperty -> Bool
== :: CustomPluginLocationProperty
-> CustomPluginLocationProperty -> Bool
$c/= :: CustomPluginLocationProperty
-> CustomPluginLocationProperty -> Bool
/= :: CustomPluginLocationProperty
-> CustomPluginLocationProperty -> Bool
Prelude.Eq, Int -> CustomPluginLocationProperty -> ShowS
[CustomPluginLocationProperty] -> ShowS
CustomPluginLocationProperty -> String
(Int -> CustomPluginLocationProperty -> ShowS)
-> (CustomPluginLocationProperty -> String)
-> ([CustomPluginLocationProperty] -> ShowS)
-> Show CustomPluginLocationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CustomPluginLocationProperty -> ShowS
showsPrec :: Int -> CustomPluginLocationProperty -> ShowS
$cshow :: CustomPluginLocationProperty -> String
show :: CustomPluginLocationProperty -> String
$cshowList :: [CustomPluginLocationProperty] -> ShowS
showList :: [CustomPluginLocationProperty] -> ShowS
Prelude.Show)
mkCustomPluginLocationProperty ::
S3LocationProperty -> CustomPluginLocationProperty
mkCustomPluginLocationProperty :: S3LocationProperty -> CustomPluginLocationProperty
mkCustomPluginLocationProperty S3LocationProperty
s3Location
= CustomPluginLocationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), s3Location :: S3LocationProperty
s3Location = S3LocationProperty
s3Location}
instance ToResourceProperties CustomPluginLocationProperty where
toResourceProperties :: CustomPluginLocationProperty -> ResourceProperties
toResourceProperties CustomPluginLocationProperty {()
S3LocationProperty
haddock_workaround_ :: CustomPluginLocationProperty -> ()
s3Location :: CustomPluginLocationProperty -> S3LocationProperty
haddock_workaround_ :: ()
s3Location :: S3LocationProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::KafkaConnect::CustomPlugin.CustomPluginLocation",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"S3Location" Key -> S3LocationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= S3LocationProperty
s3Location]}
instance JSON.ToJSON CustomPluginLocationProperty where
toJSON :: CustomPluginLocationProperty -> Value
toJSON CustomPluginLocationProperty {()
S3LocationProperty
haddock_workaround_ :: CustomPluginLocationProperty -> ()
s3Location :: CustomPluginLocationProperty -> S3LocationProperty
haddock_workaround_ :: ()
s3Location :: S3LocationProperty
..}
= [(Key, Value)] -> Value
JSON.object [Key
"S3Location" Key -> S3LocationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= S3LocationProperty
s3Location]
instance Property "S3Location" CustomPluginLocationProperty where
type PropertyType "S3Location" CustomPluginLocationProperty = S3LocationProperty
set :: PropertyType "S3Location" CustomPluginLocationProperty
-> CustomPluginLocationProperty -> CustomPluginLocationProperty
set PropertyType "S3Location" CustomPluginLocationProperty
newValue CustomPluginLocationProperty {()
S3LocationProperty
haddock_workaround_ :: CustomPluginLocationProperty -> ()
s3Location :: CustomPluginLocationProperty -> S3LocationProperty
haddock_workaround_ :: ()
s3Location :: S3LocationProperty
..}
= CustomPluginLocationProperty {s3Location :: S3LocationProperty
s3Location = PropertyType "S3Location" CustomPluginLocationProperty
S3LocationProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}