module Stratosphere.KafkaConnect.Connector.WorkerConfigurationProperty (
        WorkerConfigurationProperty(..), mkWorkerConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data WorkerConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kafkaconnect-connector-workerconfiguration.html>
    WorkerConfigurationProperty {WorkerConfigurationProperty -> ()
haddock_workaround_ :: (),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kafkaconnect-connector-workerconfiguration.html#cfn-kafkaconnect-connector-workerconfiguration-revision>
                                 WorkerConfigurationProperty -> Value Integer
revision :: (Value Prelude.Integer),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kafkaconnect-connector-workerconfiguration.html#cfn-kafkaconnect-connector-workerconfiguration-workerconfigurationarn>
                                 WorkerConfigurationProperty -> Value Text
workerConfigurationArn :: (Value Prelude.Text)}
  deriving stock (WorkerConfigurationProperty -> WorkerConfigurationProperty -> Bool
(WorkerConfigurationProperty
 -> WorkerConfigurationProperty -> Bool)
-> (WorkerConfigurationProperty
    -> WorkerConfigurationProperty -> Bool)
-> Eq WorkerConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: WorkerConfigurationProperty -> WorkerConfigurationProperty -> Bool
== :: WorkerConfigurationProperty -> WorkerConfigurationProperty -> Bool
$c/= :: WorkerConfigurationProperty -> WorkerConfigurationProperty -> Bool
/= :: WorkerConfigurationProperty -> WorkerConfigurationProperty -> Bool
Prelude.Eq, Int -> WorkerConfigurationProperty -> ShowS
[WorkerConfigurationProperty] -> ShowS
WorkerConfigurationProperty -> String
(Int -> WorkerConfigurationProperty -> ShowS)
-> (WorkerConfigurationProperty -> String)
-> ([WorkerConfigurationProperty] -> ShowS)
-> Show WorkerConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> WorkerConfigurationProperty -> ShowS
showsPrec :: Int -> WorkerConfigurationProperty -> ShowS
$cshow :: WorkerConfigurationProperty -> String
show :: WorkerConfigurationProperty -> String
$cshowList :: [WorkerConfigurationProperty] -> ShowS
showList :: [WorkerConfigurationProperty] -> ShowS
Prelude.Show)
mkWorkerConfigurationProperty ::
  Value Prelude.Integer
  -> Value Prelude.Text -> WorkerConfigurationProperty
mkWorkerConfigurationProperty :: Value Integer -> Value Text -> WorkerConfigurationProperty
mkWorkerConfigurationProperty Value Integer
revision Value Text
workerConfigurationArn
  = WorkerConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), revision :: Value Integer
revision = Value Integer
revision,
       workerConfigurationArn :: Value Text
workerConfigurationArn = Value Text
workerConfigurationArn}
instance ToResourceProperties WorkerConfigurationProperty where
  toResourceProperties :: WorkerConfigurationProperty -> ResourceProperties
toResourceProperties WorkerConfigurationProperty {()
Value Integer
Value Text
haddock_workaround_ :: WorkerConfigurationProperty -> ()
revision :: WorkerConfigurationProperty -> Value Integer
workerConfigurationArn :: WorkerConfigurationProperty -> Value Text
haddock_workaround_ :: ()
revision :: Value Integer
workerConfigurationArn :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::KafkaConnect::Connector.WorkerConfiguration",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [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,
                       Key
"WorkerConfigurationArn" 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
workerConfigurationArn]}
instance JSON.ToJSON WorkerConfigurationProperty where
  toJSON :: WorkerConfigurationProperty -> Value
toJSON WorkerConfigurationProperty {()
Value Integer
Value Text
haddock_workaround_ :: WorkerConfigurationProperty -> ()
revision :: WorkerConfigurationProperty -> Value Integer
workerConfigurationArn :: WorkerConfigurationProperty -> Value Text
haddock_workaround_ :: ()
revision :: Value Integer
workerConfigurationArn :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        [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,
         Key
"WorkerConfigurationArn" 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
workerConfigurationArn]
instance Property "Revision" WorkerConfigurationProperty where
  type PropertyType "Revision" WorkerConfigurationProperty = Value Prelude.Integer
  set :: PropertyType "Revision" WorkerConfigurationProperty
-> WorkerConfigurationProperty -> WorkerConfigurationProperty
set PropertyType "Revision" WorkerConfigurationProperty
newValue WorkerConfigurationProperty {()
Value Integer
Value Text
haddock_workaround_ :: WorkerConfigurationProperty -> ()
revision :: WorkerConfigurationProperty -> Value Integer
workerConfigurationArn :: WorkerConfigurationProperty -> Value Text
haddock_workaround_ :: ()
revision :: Value Integer
workerConfigurationArn :: Value Text
..}
    = WorkerConfigurationProperty {revision :: Value Integer
revision = PropertyType "Revision" WorkerConfigurationProperty
Value Integer
newValue, ()
Value Text
haddock_workaround_ :: ()
workerConfigurationArn :: Value Text
haddock_workaround_ :: ()
workerConfigurationArn :: Value Text
..}
instance Property "WorkerConfigurationArn" WorkerConfigurationProperty where
  type PropertyType "WorkerConfigurationArn" WorkerConfigurationProperty = Value Prelude.Text
  set :: PropertyType "WorkerConfigurationArn" WorkerConfigurationProperty
-> WorkerConfigurationProperty -> WorkerConfigurationProperty
set PropertyType "WorkerConfigurationArn" WorkerConfigurationProperty
newValue WorkerConfigurationProperty {()
Value Integer
Value Text
haddock_workaround_ :: WorkerConfigurationProperty -> ()
revision :: WorkerConfigurationProperty -> Value Integer
workerConfigurationArn :: WorkerConfigurationProperty -> Value Text
haddock_workaround_ :: ()
revision :: Value Integer
workerConfigurationArn :: Value Text
..}
    = WorkerConfigurationProperty
        {workerConfigurationArn :: Value Text
workerConfigurationArn = PropertyType "WorkerConfigurationArn" WorkerConfigurationProperty
Value Text
newValue, ()
Value Integer
haddock_workaround_ :: ()
revision :: Value Integer
haddock_workaround_ :: ()
revision :: Value Integer
..}