{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.Glue.Types.KafkaStreamingSourceOptions
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Glue.Types.KafkaStreamingSourceOptions where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

-- | Additional options for streaming.
--
-- /See:/ 'newKafkaStreamingSourceOptions' smart constructor.
data KafkaStreamingSourceOptions = KafkaStreamingSourceOptions'
  { -- | The specific @TopicPartitions@ to consume. You must specify at least one
    -- of @\"topicName\"@, @\"assign\"@ or @\"subscribePattern\"@.
    KafkaStreamingSourceOptions -> Maybe Text
assign :: Prelude.Maybe Prelude.Text,
    -- | A list of bootstrap server URLs, for example, as
    -- @b-1.vpc-test-2.o4q88o.c6.kafka.us-east-1.amazonaws.com:9094@. This
    -- option must be specified in the API call or defined in the table
    -- metadata in the Data Catalog.
    KafkaStreamingSourceOptions -> Maybe Text
bootstrapServers :: Prelude.Maybe Prelude.Text,
    -- | An optional classification.
    KafkaStreamingSourceOptions -> Maybe Text
classification :: Prelude.Maybe Prelude.Text,
    -- | The name of the connection.
    KafkaStreamingSourceOptions -> Maybe Text
connectionName :: Prelude.Maybe Prelude.Text,
    -- | Specifies the delimiter character.
    KafkaStreamingSourceOptions -> Maybe Text
delimiter :: Prelude.Maybe Prelude.Text,
    -- | The end point when a batch query is ended. Possible values are either
    -- @\"latest\"@ or a JSON string that specifies an ending offset for each
    -- @TopicPartition@.
    KafkaStreamingSourceOptions -> Maybe Text
endingOffsets :: Prelude.Maybe Prelude.Text,
    -- | The rate limit on the maximum number of offsets that are processed per
    -- trigger interval. The specified total number of offsets is
    -- proportionally split across @topicPartitions@ of different volumes. The
    -- default value is null, which means that the consumer reads all offsets
    -- until the known latest offset.
    KafkaStreamingSourceOptions -> Maybe Natural
maxOffsetsPerTrigger :: Prelude.Maybe Prelude.Natural,
    -- | The desired minimum number of partitions to read from Kafka. The default
    -- value is null, which means that the number of spark partitions is equal
    -- to the number of Kafka partitions.
    KafkaStreamingSourceOptions -> Maybe Natural
minPartitions :: Prelude.Maybe Prelude.Natural,
    -- | The number of times to retry before failing to fetch Kafka offsets. The
    -- default value is @3@.
    KafkaStreamingSourceOptions -> Maybe Natural
numRetries :: Prelude.Maybe Prelude.Natural,
    -- | The timeout in milliseconds to poll data from Kafka in Spark job
    -- executors. The default value is @512@.
    KafkaStreamingSourceOptions -> Maybe Natural
pollTimeoutMs :: Prelude.Maybe Prelude.Natural,
    -- | The time in milliseconds to wait before retrying to fetch Kafka offsets.
    -- The default value is @10@.
    KafkaStreamingSourceOptions -> Maybe Natural
retryIntervalMs :: Prelude.Maybe Prelude.Natural,
    -- | The protocol used to communicate with brokers. The possible values are
    -- @\"SSL\"@ or @\"PLAINTEXT\"@.
    KafkaStreamingSourceOptions -> Maybe Text
securityProtocol :: Prelude.Maybe Prelude.Text,
    -- | The starting position in the Kafka topic to read data from. The possible
    -- values are @\"earliest\"@ or @\"latest\"@. The default value is
    -- @\"latest\"@.
    KafkaStreamingSourceOptions -> Maybe Text
startingOffsets :: Prelude.Maybe Prelude.Text,
    -- | A Java regex string that identifies the topic list to subscribe to. You
    -- must specify at least one of @\"topicName\"@, @\"assign\"@ or
    -- @\"subscribePattern\"@.
    KafkaStreamingSourceOptions -> Maybe Text
subscribePattern :: Prelude.Maybe Prelude.Text,
    -- | The topic name as specified in Apache Kafka. You must specify at least
    -- one of @\"topicName\"@, @\"assign\"@ or @\"subscribePattern\"@.
    KafkaStreamingSourceOptions -> Maybe Text
topicName :: Prelude.Maybe Prelude.Text
  }
  deriving (KafkaStreamingSourceOptions -> KafkaStreamingSourceOptions -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: KafkaStreamingSourceOptions -> KafkaStreamingSourceOptions -> Bool
$c/= :: KafkaStreamingSourceOptions -> KafkaStreamingSourceOptions -> Bool
== :: KafkaStreamingSourceOptions -> KafkaStreamingSourceOptions -> Bool
$c== :: KafkaStreamingSourceOptions -> KafkaStreamingSourceOptions -> Bool
Prelude.Eq, ReadPrec [KafkaStreamingSourceOptions]
ReadPrec KafkaStreamingSourceOptions
Int -> ReadS KafkaStreamingSourceOptions
ReadS [KafkaStreamingSourceOptions]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [KafkaStreamingSourceOptions]
$creadListPrec :: ReadPrec [KafkaStreamingSourceOptions]
readPrec :: ReadPrec KafkaStreamingSourceOptions
$creadPrec :: ReadPrec KafkaStreamingSourceOptions
readList :: ReadS [KafkaStreamingSourceOptions]
$creadList :: ReadS [KafkaStreamingSourceOptions]
readsPrec :: Int -> ReadS KafkaStreamingSourceOptions
$creadsPrec :: Int -> ReadS KafkaStreamingSourceOptions
Prelude.Read, Int -> KafkaStreamingSourceOptions -> ShowS
[KafkaStreamingSourceOptions] -> ShowS
KafkaStreamingSourceOptions -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [KafkaStreamingSourceOptions] -> ShowS
$cshowList :: [KafkaStreamingSourceOptions] -> ShowS
show :: KafkaStreamingSourceOptions -> String
$cshow :: KafkaStreamingSourceOptions -> String
showsPrec :: Int -> KafkaStreamingSourceOptions -> ShowS
$cshowsPrec :: Int -> KafkaStreamingSourceOptions -> ShowS
Prelude.Show, forall x.
Rep KafkaStreamingSourceOptions x -> KafkaStreamingSourceOptions
forall x.
KafkaStreamingSourceOptions -> Rep KafkaStreamingSourceOptions x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep KafkaStreamingSourceOptions x -> KafkaStreamingSourceOptions
$cfrom :: forall x.
KafkaStreamingSourceOptions -> Rep KafkaStreamingSourceOptions x
Prelude.Generic)

-- |
-- Create a value of 'KafkaStreamingSourceOptions' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'assign', 'kafkaStreamingSourceOptions_assign' - The specific @TopicPartitions@ to consume. You must specify at least one
-- of @\"topicName\"@, @\"assign\"@ or @\"subscribePattern\"@.
--
-- 'bootstrapServers', 'kafkaStreamingSourceOptions_bootstrapServers' - A list of bootstrap server URLs, for example, as
-- @b-1.vpc-test-2.o4q88o.c6.kafka.us-east-1.amazonaws.com:9094@. This
-- option must be specified in the API call or defined in the table
-- metadata in the Data Catalog.
--
-- 'classification', 'kafkaStreamingSourceOptions_classification' - An optional classification.
--
-- 'connectionName', 'kafkaStreamingSourceOptions_connectionName' - The name of the connection.
--
-- 'delimiter', 'kafkaStreamingSourceOptions_delimiter' - Specifies the delimiter character.
--
-- 'endingOffsets', 'kafkaStreamingSourceOptions_endingOffsets' - The end point when a batch query is ended. Possible values are either
-- @\"latest\"@ or a JSON string that specifies an ending offset for each
-- @TopicPartition@.
--
-- 'maxOffsetsPerTrigger', 'kafkaStreamingSourceOptions_maxOffsetsPerTrigger' - The rate limit on the maximum number of offsets that are processed per
-- trigger interval. The specified total number of offsets is
-- proportionally split across @topicPartitions@ of different volumes. The
-- default value is null, which means that the consumer reads all offsets
-- until the known latest offset.
--
-- 'minPartitions', 'kafkaStreamingSourceOptions_minPartitions' - The desired minimum number of partitions to read from Kafka. The default
-- value is null, which means that the number of spark partitions is equal
-- to the number of Kafka partitions.
--
-- 'numRetries', 'kafkaStreamingSourceOptions_numRetries' - The number of times to retry before failing to fetch Kafka offsets. The
-- default value is @3@.
--
-- 'pollTimeoutMs', 'kafkaStreamingSourceOptions_pollTimeoutMs' - The timeout in milliseconds to poll data from Kafka in Spark job
-- executors. The default value is @512@.
--
-- 'retryIntervalMs', 'kafkaStreamingSourceOptions_retryIntervalMs' - The time in milliseconds to wait before retrying to fetch Kafka offsets.
-- The default value is @10@.
--
-- 'securityProtocol', 'kafkaStreamingSourceOptions_securityProtocol' - The protocol used to communicate with brokers. The possible values are
-- @\"SSL\"@ or @\"PLAINTEXT\"@.
--
-- 'startingOffsets', 'kafkaStreamingSourceOptions_startingOffsets' - The starting position in the Kafka topic to read data from. The possible
-- values are @\"earliest\"@ or @\"latest\"@. The default value is
-- @\"latest\"@.
--
-- 'subscribePattern', 'kafkaStreamingSourceOptions_subscribePattern' - A Java regex string that identifies the topic list to subscribe to. You
-- must specify at least one of @\"topicName\"@, @\"assign\"@ or
-- @\"subscribePattern\"@.
--
-- 'topicName', 'kafkaStreamingSourceOptions_topicName' - The topic name as specified in Apache Kafka. You must specify at least
-- one of @\"topicName\"@, @\"assign\"@ or @\"subscribePattern\"@.
newKafkaStreamingSourceOptions ::
  KafkaStreamingSourceOptions
newKafkaStreamingSourceOptions :: KafkaStreamingSourceOptions
newKafkaStreamingSourceOptions =
  KafkaStreamingSourceOptions'
    { $sel:assign:KafkaStreamingSourceOptions' :: Maybe Text
assign =
        forall a. Maybe a
Prelude.Nothing,
      $sel:bootstrapServers:KafkaStreamingSourceOptions' :: Maybe Text
bootstrapServers = forall a. Maybe a
Prelude.Nothing,
      $sel:classification:KafkaStreamingSourceOptions' :: Maybe Text
classification = forall a. Maybe a
Prelude.Nothing,
      $sel:connectionName:KafkaStreamingSourceOptions' :: Maybe Text
connectionName = forall a. Maybe a
Prelude.Nothing,
      $sel:delimiter:KafkaStreamingSourceOptions' :: Maybe Text
delimiter = forall a. Maybe a
Prelude.Nothing,
      $sel:endingOffsets:KafkaStreamingSourceOptions' :: Maybe Text
endingOffsets = forall a. Maybe a
Prelude.Nothing,
      $sel:maxOffsetsPerTrigger:KafkaStreamingSourceOptions' :: Maybe Natural
maxOffsetsPerTrigger = forall a. Maybe a
Prelude.Nothing,
      $sel:minPartitions:KafkaStreamingSourceOptions' :: Maybe Natural
minPartitions = forall a. Maybe a
Prelude.Nothing,
      $sel:numRetries:KafkaStreamingSourceOptions' :: Maybe Natural
numRetries = forall a. Maybe a
Prelude.Nothing,
      $sel:pollTimeoutMs:KafkaStreamingSourceOptions' :: Maybe Natural
pollTimeoutMs = forall a. Maybe a
Prelude.Nothing,
      $sel:retryIntervalMs:KafkaStreamingSourceOptions' :: Maybe Natural
retryIntervalMs = forall a. Maybe a
Prelude.Nothing,
      $sel:securityProtocol:KafkaStreamingSourceOptions' :: Maybe Text
securityProtocol = forall a. Maybe a
Prelude.Nothing,
      $sel:startingOffsets:KafkaStreamingSourceOptions' :: Maybe Text
startingOffsets = forall a. Maybe a
Prelude.Nothing,
      $sel:subscribePattern:KafkaStreamingSourceOptions' :: Maybe Text
subscribePattern = forall a. Maybe a
Prelude.Nothing,
      $sel:topicName:KafkaStreamingSourceOptions' :: Maybe Text
topicName = forall a. Maybe a
Prelude.Nothing
    }

-- | The specific @TopicPartitions@ to consume. You must specify at least one
-- of @\"topicName\"@, @\"assign\"@ or @\"subscribePattern\"@.
kafkaStreamingSourceOptions_assign :: Lens.Lens' KafkaStreamingSourceOptions (Prelude.Maybe Prelude.Text)
kafkaStreamingSourceOptions_assign :: Lens' KafkaStreamingSourceOptions (Maybe Text)
kafkaStreamingSourceOptions_assign = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\KafkaStreamingSourceOptions' {Maybe Text
assign :: Maybe Text
$sel:assign:KafkaStreamingSourceOptions' :: KafkaStreamingSourceOptions -> Maybe Text
assign} -> Maybe Text
assign) (\s :: KafkaStreamingSourceOptions
s@KafkaStreamingSourceOptions' {} Maybe Text
a -> KafkaStreamingSourceOptions
s {$sel:assign:KafkaStreamingSourceOptions' :: Maybe Text
assign = Maybe Text
a} :: KafkaStreamingSourceOptions)

-- | A list of bootstrap server URLs, for example, as
-- @b-1.vpc-test-2.o4q88o.c6.kafka.us-east-1.amazonaws.com:9094@. This
-- option must be specified in the API call or defined in the table
-- metadata in the Data Catalog.
kafkaStreamingSourceOptions_bootstrapServers :: Lens.Lens' KafkaStreamingSourceOptions (Prelude.Maybe Prelude.Text)
kafkaStreamingSourceOptions_bootstrapServers :: Lens' KafkaStreamingSourceOptions (Maybe Text)
kafkaStreamingSourceOptions_bootstrapServers = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\KafkaStreamingSourceOptions' {Maybe Text
bootstrapServers :: Maybe Text
$sel:bootstrapServers:KafkaStreamingSourceOptions' :: KafkaStreamingSourceOptions -> Maybe Text
bootstrapServers} -> Maybe Text
bootstrapServers) (\s :: KafkaStreamingSourceOptions
s@KafkaStreamingSourceOptions' {} Maybe Text
a -> KafkaStreamingSourceOptions
s {$sel:bootstrapServers:KafkaStreamingSourceOptions' :: Maybe Text
bootstrapServers = Maybe Text
a} :: KafkaStreamingSourceOptions)

-- | An optional classification.
kafkaStreamingSourceOptions_classification :: Lens.Lens' KafkaStreamingSourceOptions (Prelude.Maybe Prelude.Text)
kafkaStreamingSourceOptions_classification :: Lens' KafkaStreamingSourceOptions (Maybe Text)
kafkaStreamingSourceOptions_classification = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\KafkaStreamingSourceOptions' {Maybe Text
classification :: Maybe Text
$sel:classification:KafkaStreamingSourceOptions' :: KafkaStreamingSourceOptions -> Maybe Text
classification} -> Maybe Text
classification) (\s :: KafkaStreamingSourceOptions
s@KafkaStreamingSourceOptions' {} Maybe Text
a -> KafkaStreamingSourceOptions
s {$sel:classification:KafkaStreamingSourceOptions' :: Maybe Text
classification = Maybe Text
a} :: KafkaStreamingSourceOptions)

-- | The name of the connection.
kafkaStreamingSourceOptions_connectionName :: Lens.Lens' KafkaStreamingSourceOptions (Prelude.Maybe Prelude.Text)
kafkaStreamingSourceOptions_connectionName :: Lens' KafkaStreamingSourceOptions (Maybe Text)
kafkaStreamingSourceOptions_connectionName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\KafkaStreamingSourceOptions' {Maybe Text
connectionName :: Maybe Text
$sel:connectionName:KafkaStreamingSourceOptions' :: KafkaStreamingSourceOptions -> Maybe Text
connectionName} -> Maybe Text
connectionName) (\s :: KafkaStreamingSourceOptions
s@KafkaStreamingSourceOptions' {} Maybe Text
a -> KafkaStreamingSourceOptions
s {$sel:connectionName:KafkaStreamingSourceOptions' :: Maybe Text
connectionName = Maybe Text
a} :: KafkaStreamingSourceOptions)

-- | Specifies the delimiter character.
kafkaStreamingSourceOptions_delimiter :: Lens.Lens' KafkaStreamingSourceOptions (Prelude.Maybe Prelude.Text)
kafkaStreamingSourceOptions_delimiter :: Lens' KafkaStreamingSourceOptions (Maybe Text)
kafkaStreamingSourceOptions_delimiter = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\KafkaStreamingSourceOptions' {Maybe Text
delimiter :: Maybe Text
$sel:delimiter:KafkaStreamingSourceOptions' :: KafkaStreamingSourceOptions -> Maybe Text
delimiter} -> Maybe Text
delimiter) (\s :: KafkaStreamingSourceOptions
s@KafkaStreamingSourceOptions' {} Maybe Text
a -> KafkaStreamingSourceOptions
s {$sel:delimiter:KafkaStreamingSourceOptions' :: Maybe Text
delimiter = Maybe Text
a} :: KafkaStreamingSourceOptions)

-- | The end point when a batch query is ended. Possible values are either
-- @\"latest\"@ or a JSON string that specifies an ending offset for each
-- @TopicPartition@.
kafkaStreamingSourceOptions_endingOffsets :: Lens.Lens' KafkaStreamingSourceOptions (Prelude.Maybe Prelude.Text)
kafkaStreamingSourceOptions_endingOffsets :: Lens' KafkaStreamingSourceOptions (Maybe Text)
kafkaStreamingSourceOptions_endingOffsets = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\KafkaStreamingSourceOptions' {Maybe Text
endingOffsets :: Maybe Text
$sel:endingOffsets:KafkaStreamingSourceOptions' :: KafkaStreamingSourceOptions -> Maybe Text
endingOffsets} -> Maybe Text
endingOffsets) (\s :: KafkaStreamingSourceOptions
s@KafkaStreamingSourceOptions' {} Maybe Text
a -> KafkaStreamingSourceOptions
s {$sel:endingOffsets:KafkaStreamingSourceOptions' :: Maybe Text
endingOffsets = Maybe Text
a} :: KafkaStreamingSourceOptions)

-- | The rate limit on the maximum number of offsets that are processed per
-- trigger interval. The specified total number of offsets is
-- proportionally split across @topicPartitions@ of different volumes. The
-- default value is null, which means that the consumer reads all offsets
-- until the known latest offset.
kafkaStreamingSourceOptions_maxOffsetsPerTrigger :: Lens.Lens' KafkaStreamingSourceOptions (Prelude.Maybe Prelude.Natural)
kafkaStreamingSourceOptions_maxOffsetsPerTrigger :: Lens' KafkaStreamingSourceOptions (Maybe Natural)
kafkaStreamingSourceOptions_maxOffsetsPerTrigger = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\KafkaStreamingSourceOptions' {Maybe Natural
maxOffsetsPerTrigger :: Maybe Natural
$sel:maxOffsetsPerTrigger:KafkaStreamingSourceOptions' :: KafkaStreamingSourceOptions -> Maybe Natural
maxOffsetsPerTrigger} -> Maybe Natural
maxOffsetsPerTrigger) (\s :: KafkaStreamingSourceOptions
s@KafkaStreamingSourceOptions' {} Maybe Natural
a -> KafkaStreamingSourceOptions
s {$sel:maxOffsetsPerTrigger:KafkaStreamingSourceOptions' :: Maybe Natural
maxOffsetsPerTrigger = Maybe Natural
a} :: KafkaStreamingSourceOptions)

-- | The desired minimum number of partitions to read from Kafka. The default
-- value is null, which means that the number of spark partitions is equal
-- to the number of Kafka partitions.
kafkaStreamingSourceOptions_minPartitions :: Lens.Lens' KafkaStreamingSourceOptions (Prelude.Maybe Prelude.Natural)
kafkaStreamingSourceOptions_minPartitions :: Lens' KafkaStreamingSourceOptions (Maybe Natural)
kafkaStreamingSourceOptions_minPartitions = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\KafkaStreamingSourceOptions' {Maybe Natural
minPartitions :: Maybe Natural
$sel:minPartitions:KafkaStreamingSourceOptions' :: KafkaStreamingSourceOptions -> Maybe Natural
minPartitions} -> Maybe Natural
minPartitions) (\s :: KafkaStreamingSourceOptions
s@KafkaStreamingSourceOptions' {} Maybe Natural
a -> KafkaStreamingSourceOptions
s {$sel:minPartitions:KafkaStreamingSourceOptions' :: Maybe Natural
minPartitions = Maybe Natural
a} :: KafkaStreamingSourceOptions)

-- | The number of times to retry before failing to fetch Kafka offsets. The
-- default value is @3@.
kafkaStreamingSourceOptions_numRetries :: Lens.Lens' KafkaStreamingSourceOptions (Prelude.Maybe Prelude.Natural)
kafkaStreamingSourceOptions_numRetries :: Lens' KafkaStreamingSourceOptions (Maybe Natural)
kafkaStreamingSourceOptions_numRetries = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\KafkaStreamingSourceOptions' {Maybe Natural
numRetries :: Maybe Natural
$sel:numRetries:KafkaStreamingSourceOptions' :: KafkaStreamingSourceOptions -> Maybe Natural
numRetries} -> Maybe Natural
numRetries) (\s :: KafkaStreamingSourceOptions
s@KafkaStreamingSourceOptions' {} Maybe Natural
a -> KafkaStreamingSourceOptions
s {$sel:numRetries:KafkaStreamingSourceOptions' :: Maybe Natural
numRetries = Maybe Natural
a} :: KafkaStreamingSourceOptions)

-- | The timeout in milliseconds to poll data from Kafka in Spark job
-- executors. The default value is @512@.
kafkaStreamingSourceOptions_pollTimeoutMs :: Lens.Lens' KafkaStreamingSourceOptions (Prelude.Maybe Prelude.Natural)
kafkaStreamingSourceOptions_pollTimeoutMs :: Lens' KafkaStreamingSourceOptions (Maybe Natural)
kafkaStreamingSourceOptions_pollTimeoutMs = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\KafkaStreamingSourceOptions' {Maybe Natural
pollTimeoutMs :: Maybe Natural
$sel:pollTimeoutMs:KafkaStreamingSourceOptions' :: KafkaStreamingSourceOptions -> Maybe Natural
pollTimeoutMs} -> Maybe Natural
pollTimeoutMs) (\s :: KafkaStreamingSourceOptions
s@KafkaStreamingSourceOptions' {} Maybe Natural
a -> KafkaStreamingSourceOptions
s {$sel:pollTimeoutMs:KafkaStreamingSourceOptions' :: Maybe Natural
pollTimeoutMs = Maybe Natural
a} :: KafkaStreamingSourceOptions)

-- | The time in milliseconds to wait before retrying to fetch Kafka offsets.
-- The default value is @10@.
kafkaStreamingSourceOptions_retryIntervalMs :: Lens.Lens' KafkaStreamingSourceOptions (Prelude.Maybe Prelude.Natural)
kafkaStreamingSourceOptions_retryIntervalMs :: Lens' KafkaStreamingSourceOptions (Maybe Natural)
kafkaStreamingSourceOptions_retryIntervalMs = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\KafkaStreamingSourceOptions' {Maybe Natural
retryIntervalMs :: Maybe Natural
$sel:retryIntervalMs:KafkaStreamingSourceOptions' :: KafkaStreamingSourceOptions -> Maybe Natural
retryIntervalMs} -> Maybe Natural
retryIntervalMs) (\s :: KafkaStreamingSourceOptions
s@KafkaStreamingSourceOptions' {} Maybe Natural
a -> KafkaStreamingSourceOptions
s {$sel:retryIntervalMs:KafkaStreamingSourceOptions' :: Maybe Natural
retryIntervalMs = Maybe Natural
a} :: KafkaStreamingSourceOptions)

-- | The protocol used to communicate with brokers. The possible values are
-- @\"SSL\"@ or @\"PLAINTEXT\"@.
kafkaStreamingSourceOptions_securityProtocol :: Lens.Lens' KafkaStreamingSourceOptions (Prelude.Maybe Prelude.Text)
kafkaStreamingSourceOptions_securityProtocol :: Lens' KafkaStreamingSourceOptions (Maybe Text)
kafkaStreamingSourceOptions_securityProtocol = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\KafkaStreamingSourceOptions' {Maybe Text
securityProtocol :: Maybe Text
$sel:securityProtocol:KafkaStreamingSourceOptions' :: KafkaStreamingSourceOptions -> Maybe Text
securityProtocol} -> Maybe Text
securityProtocol) (\s :: KafkaStreamingSourceOptions
s@KafkaStreamingSourceOptions' {} Maybe Text
a -> KafkaStreamingSourceOptions
s {$sel:securityProtocol:KafkaStreamingSourceOptions' :: Maybe Text
securityProtocol = Maybe Text
a} :: KafkaStreamingSourceOptions)

-- | The starting position in the Kafka topic to read data from. The possible
-- values are @\"earliest\"@ or @\"latest\"@. The default value is
-- @\"latest\"@.
kafkaStreamingSourceOptions_startingOffsets :: Lens.Lens' KafkaStreamingSourceOptions (Prelude.Maybe Prelude.Text)
kafkaStreamingSourceOptions_startingOffsets :: Lens' KafkaStreamingSourceOptions (Maybe Text)
kafkaStreamingSourceOptions_startingOffsets = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\KafkaStreamingSourceOptions' {Maybe Text
startingOffsets :: Maybe Text
$sel:startingOffsets:KafkaStreamingSourceOptions' :: KafkaStreamingSourceOptions -> Maybe Text
startingOffsets} -> Maybe Text
startingOffsets) (\s :: KafkaStreamingSourceOptions
s@KafkaStreamingSourceOptions' {} Maybe Text
a -> KafkaStreamingSourceOptions
s {$sel:startingOffsets:KafkaStreamingSourceOptions' :: Maybe Text
startingOffsets = Maybe Text
a} :: KafkaStreamingSourceOptions)

-- | A Java regex string that identifies the topic list to subscribe to. You
-- must specify at least one of @\"topicName\"@, @\"assign\"@ or
-- @\"subscribePattern\"@.
kafkaStreamingSourceOptions_subscribePattern :: Lens.Lens' KafkaStreamingSourceOptions (Prelude.Maybe Prelude.Text)
kafkaStreamingSourceOptions_subscribePattern :: Lens' KafkaStreamingSourceOptions (Maybe Text)
kafkaStreamingSourceOptions_subscribePattern = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\KafkaStreamingSourceOptions' {Maybe Text
subscribePattern :: Maybe Text
$sel:subscribePattern:KafkaStreamingSourceOptions' :: KafkaStreamingSourceOptions -> Maybe Text
subscribePattern} -> Maybe Text
subscribePattern) (\s :: KafkaStreamingSourceOptions
s@KafkaStreamingSourceOptions' {} Maybe Text
a -> KafkaStreamingSourceOptions
s {$sel:subscribePattern:KafkaStreamingSourceOptions' :: Maybe Text
subscribePattern = Maybe Text
a} :: KafkaStreamingSourceOptions)

-- | The topic name as specified in Apache Kafka. You must specify at least
-- one of @\"topicName\"@, @\"assign\"@ or @\"subscribePattern\"@.
kafkaStreamingSourceOptions_topicName :: Lens.Lens' KafkaStreamingSourceOptions (Prelude.Maybe Prelude.Text)
kafkaStreamingSourceOptions_topicName :: Lens' KafkaStreamingSourceOptions (Maybe Text)
kafkaStreamingSourceOptions_topicName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\KafkaStreamingSourceOptions' {Maybe Text
topicName :: Maybe Text
$sel:topicName:KafkaStreamingSourceOptions' :: KafkaStreamingSourceOptions -> Maybe Text
topicName} -> Maybe Text
topicName) (\s :: KafkaStreamingSourceOptions
s@KafkaStreamingSourceOptions' {} Maybe Text
a -> KafkaStreamingSourceOptions
s {$sel:topicName:KafkaStreamingSourceOptions' :: Maybe Text
topicName = Maybe Text
a} :: KafkaStreamingSourceOptions)

instance Data.FromJSON KafkaStreamingSourceOptions where
  parseJSON :: Value -> Parser KafkaStreamingSourceOptions
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"KafkaStreamingSourceOptions"
      ( \Object
x ->
          Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> KafkaStreamingSourceOptions
KafkaStreamingSourceOptions'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Assign")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"BootstrapServers")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Classification")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ConnectionName")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Delimiter")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"EndingOffsets")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"MaxOffsetsPerTrigger")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"MinPartitions")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"NumRetries")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"PollTimeoutMs")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"RetryIntervalMs")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"SecurityProtocol")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"StartingOffsets")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"SubscribePattern")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"TopicName")
      )

instance Prelude.Hashable KafkaStreamingSourceOptions where
  hashWithSalt :: Int -> KafkaStreamingSourceOptions -> Int
hashWithSalt Int
_salt KafkaStreamingSourceOptions' {Maybe Natural
Maybe Text
topicName :: Maybe Text
subscribePattern :: Maybe Text
startingOffsets :: Maybe Text
securityProtocol :: Maybe Text
retryIntervalMs :: Maybe Natural
pollTimeoutMs :: Maybe Natural
numRetries :: Maybe Natural
minPartitions :: Maybe Natural
maxOffsetsPerTrigger :: Maybe Natural
endingOffsets :: Maybe Text
delimiter :: Maybe Text
connectionName :: Maybe Text
classification :: Maybe Text
bootstrapServers :: Maybe Text
assign :: Maybe Text
$sel:topicName:KafkaStreamingSourceOptions' :: KafkaStreamingSourceOptions -> Maybe Text
$sel:subscribePattern:KafkaStreamingSourceOptions' :: KafkaStreamingSourceOptions -> Maybe Text
$sel:startingOffsets:KafkaStreamingSourceOptions' :: KafkaStreamingSourceOptions -> Maybe Text
$sel:securityProtocol:KafkaStreamingSourceOptions' :: KafkaStreamingSourceOptions -> Maybe Text
$sel:retryIntervalMs:KafkaStreamingSourceOptions' :: KafkaStreamingSourceOptions -> Maybe Natural
$sel:pollTimeoutMs:KafkaStreamingSourceOptions' :: KafkaStreamingSourceOptions -> Maybe Natural
$sel:numRetries:KafkaStreamingSourceOptions' :: KafkaStreamingSourceOptions -> Maybe Natural
$sel:minPartitions:KafkaStreamingSourceOptions' :: KafkaStreamingSourceOptions -> Maybe Natural
$sel:maxOffsetsPerTrigger:KafkaStreamingSourceOptions' :: KafkaStreamingSourceOptions -> Maybe Natural
$sel:endingOffsets:KafkaStreamingSourceOptions' :: KafkaStreamingSourceOptions -> Maybe Text
$sel:delimiter:KafkaStreamingSourceOptions' :: KafkaStreamingSourceOptions -> Maybe Text
$sel:connectionName:KafkaStreamingSourceOptions' :: KafkaStreamingSourceOptions -> Maybe Text
$sel:classification:KafkaStreamingSourceOptions' :: KafkaStreamingSourceOptions -> Maybe Text
$sel:bootstrapServers:KafkaStreamingSourceOptions' :: KafkaStreamingSourceOptions -> Maybe Text
$sel:assign:KafkaStreamingSourceOptions' :: KafkaStreamingSourceOptions -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
assign
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
bootstrapServers
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
classification
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
connectionName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
delimiter
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
endingOffsets
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
maxOffsetsPerTrigger
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
minPartitions
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
numRetries
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
pollTimeoutMs
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
retryIntervalMs
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
securityProtocol
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
startingOffsets
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
subscribePattern
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
topicName

instance Prelude.NFData KafkaStreamingSourceOptions where
  rnf :: KafkaStreamingSourceOptions -> ()
rnf KafkaStreamingSourceOptions' {Maybe Natural
Maybe Text
topicName :: Maybe Text
subscribePattern :: Maybe Text
startingOffsets :: Maybe Text
securityProtocol :: Maybe Text
retryIntervalMs :: Maybe Natural
pollTimeoutMs :: Maybe Natural
numRetries :: Maybe Natural
minPartitions :: Maybe Natural
maxOffsetsPerTrigger :: Maybe Natural
endingOffsets :: Maybe Text
delimiter :: Maybe Text
connectionName :: Maybe Text
classification :: Maybe Text
bootstrapServers :: Maybe Text
assign :: Maybe Text
$sel:topicName:KafkaStreamingSourceOptions' :: KafkaStreamingSourceOptions -> Maybe Text
$sel:subscribePattern:KafkaStreamingSourceOptions' :: KafkaStreamingSourceOptions -> Maybe Text
$sel:startingOffsets:KafkaStreamingSourceOptions' :: KafkaStreamingSourceOptions -> Maybe Text
$sel:securityProtocol:KafkaStreamingSourceOptions' :: KafkaStreamingSourceOptions -> Maybe Text
$sel:retryIntervalMs:KafkaStreamingSourceOptions' :: KafkaStreamingSourceOptions -> Maybe Natural
$sel:pollTimeoutMs:KafkaStreamingSourceOptions' :: KafkaStreamingSourceOptions -> Maybe Natural
$sel:numRetries:KafkaStreamingSourceOptions' :: KafkaStreamingSourceOptions -> Maybe Natural
$sel:minPartitions:KafkaStreamingSourceOptions' :: KafkaStreamingSourceOptions -> Maybe Natural
$sel:maxOffsetsPerTrigger:KafkaStreamingSourceOptions' :: KafkaStreamingSourceOptions -> Maybe Natural
$sel:endingOffsets:KafkaStreamingSourceOptions' :: KafkaStreamingSourceOptions -> Maybe Text
$sel:delimiter:KafkaStreamingSourceOptions' :: KafkaStreamingSourceOptions -> Maybe Text
$sel:connectionName:KafkaStreamingSourceOptions' :: KafkaStreamingSourceOptions -> Maybe Text
$sel:classification:KafkaStreamingSourceOptions' :: KafkaStreamingSourceOptions -> Maybe Text
$sel:bootstrapServers:KafkaStreamingSourceOptions' :: KafkaStreamingSourceOptions -> Maybe Text
$sel:assign:KafkaStreamingSourceOptions' :: KafkaStreamingSourceOptions -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
assign
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
bootstrapServers
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
classification
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
connectionName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
delimiter
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
endingOffsets
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
maxOffsetsPerTrigger
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
minPartitions
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
numRetries
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
pollTimeoutMs
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
retryIntervalMs
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
securityProtocol
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
startingOffsets
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
subscribePattern
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
topicName

instance Data.ToJSON KafkaStreamingSourceOptions where
  toJSON :: KafkaStreamingSourceOptions -> Value
toJSON KafkaStreamingSourceOptions' {Maybe Natural
Maybe Text
topicName :: Maybe Text
subscribePattern :: Maybe Text
startingOffsets :: Maybe Text
securityProtocol :: Maybe Text
retryIntervalMs :: Maybe Natural
pollTimeoutMs :: Maybe Natural
numRetries :: Maybe Natural
minPartitions :: Maybe Natural
maxOffsetsPerTrigger :: Maybe Natural
endingOffsets :: Maybe Text
delimiter :: Maybe Text
connectionName :: Maybe Text
classification :: Maybe Text
bootstrapServers :: Maybe Text
assign :: Maybe Text
$sel:topicName:KafkaStreamingSourceOptions' :: KafkaStreamingSourceOptions -> Maybe Text
$sel:subscribePattern:KafkaStreamingSourceOptions' :: KafkaStreamingSourceOptions -> Maybe Text
$sel:startingOffsets:KafkaStreamingSourceOptions' :: KafkaStreamingSourceOptions -> Maybe Text
$sel:securityProtocol:KafkaStreamingSourceOptions' :: KafkaStreamingSourceOptions -> Maybe Text
$sel:retryIntervalMs:KafkaStreamingSourceOptions' :: KafkaStreamingSourceOptions -> Maybe Natural
$sel:pollTimeoutMs:KafkaStreamingSourceOptions' :: KafkaStreamingSourceOptions -> Maybe Natural
$sel:numRetries:KafkaStreamingSourceOptions' :: KafkaStreamingSourceOptions -> Maybe Natural
$sel:minPartitions:KafkaStreamingSourceOptions' :: KafkaStreamingSourceOptions -> Maybe Natural
$sel:maxOffsetsPerTrigger:KafkaStreamingSourceOptions' :: KafkaStreamingSourceOptions -> Maybe Natural
$sel:endingOffsets:KafkaStreamingSourceOptions' :: KafkaStreamingSourceOptions -> Maybe Text
$sel:delimiter:KafkaStreamingSourceOptions' :: KafkaStreamingSourceOptions -> Maybe Text
$sel:connectionName:KafkaStreamingSourceOptions' :: KafkaStreamingSourceOptions -> Maybe Text
$sel:classification:KafkaStreamingSourceOptions' :: KafkaStreamingSourceOptions -> Maybe Text
$sel:bootstrapServers:KafkaStreamingSourceOptions' :: KafkaStreamingSourceOptions -> Maybe Text
$sel:assign:KafkaStreamingSourceOptions' :: KafkaStreamingSourceOptions -> Maybe Text
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"Assign" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
assign,
            (Key
"BootstrapServers" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
bootstrapServers,
            (Key
"Classification" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
classification,
            (Key
"ConnectionName" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
connectionName,
            (Key
"Delimiter" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
delimiter,
            (Key
"EndingOffsets" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
endingOffsets,
            (Key
"MaxOffsetsPerTrigger" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxOffsetsPerTrigger,
            (Key
"MinPartitions" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
minPartitions,
            (Key
"NumRetries" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
numRetries,
            (Key
"PollTimeoutMs" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
pollTimeoutMs,
            (Key
"RetryIntervalMs" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
retryIntervalMs,
            (Key
"SecurityProtocol" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
securityProtocol,
            (Key
"StartingOffsets" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
startingOffsets,
            (Key
"SubscribePattern" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
subscribePattern,
            (Key
"TopicName" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
topicName
          ]
      )