module Stratosphere.MSK.Replicator.ConsumerGroupReplicationProperty (
        ConsumerGroupReplicationProperty(..),
        mkConsumerGroupReplicationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ConsumerGroupReplicationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-replicator-consumergroupreplication.html>
    ConsumerGroupReplicationProperty {ConsumerGroupReplicationProperty -> ()
haddock_workaround_ :: (),
                                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-replicator-consumergroupreplication.html#cfn-msk-replicator-consumergroupreplication-consumergroupstoexclude>
                                      ConsumerGroupReplicationProperty -> Maybe (ValueList Text)
consumerGroupsToExclude :: (Prelude.Maybe (ValueList Prelude.Text)),
                                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-replicator-consumergroupreplication.html#cfn-msk-replicator-consumergroupreplication-consumergroupstoreplicate>
                                      ConsumerGroupReplicationProperty -> ValueList Text
consumerGroupsToReplicate :: (ValueList Prelude.Text),
                                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-replicator-consumergroupreplication.html#cfn-msk-replicator-consumergroupreplication-detectandcopynewconsumergroups>
                                      ConsumerGroupReplicationProperty -> Maybe (Value Bool)
detectAndCopyNewConsumerGroups :: (Prelude.Maybe (Value Prelude.Bool)),
                                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-replicator-consumergroupreplication.html#cfn-msk-replicator-consumergroupreplication-synchroniseconsumergroupoffsets>
                                      ConsumerGroupReplicationProperty -> Maybe (Value Bool)
synchroniseConsumerGroupOffsets :: (Prelude.Maybe (Value Prelude.Bool))}
  deriving stock (ConsumerGroupReplicationProperty
-> ConsumerGroupReplicationProperty -> Bool
(ConsumerGroupReplicationProperty
 -> ConsumerGroupReplicationProperty -> Bool)
-> (ConsumerGroupReplicationProperty
    -> ConsumerGroupReplicationProperty -> Bool)
-> Eq ConsumerGroupReplicationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ConsumerGroupReplicationProperty
-> ConsumerGroupReplicationProperty -> Bool
== :: ConsumerGroupReplicationProperty
-> ConsumerGroupReplicationProperty -> Bool
$c/= :: ConsumerGroupReplicationProperty
-> ConsumerGroupReplicationProperty -> Bool
/= :: ConsumerGroupReplicationProperty
-> ConsumerGroupReplicationProperty -> Bool
Prelude.Eq, Int -> ConsumerGroupReplicationProperty -> ShowS
[ConsumerGroupReplicationProperty] -> ShowS
ConsumerGroupReplicationProperty -> String
(Int -> ConsumerGroupReplicationProperty -> ShowS)
-> (ConsumerGroupReplicationProperty -> String)
-> ([ConsumerGroupReplicationProperty] -> ShowS)
-> Show ConsumerGroupReplicationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ConsumerGroupReplicationProperty -> ShowS
showsPrec :: Int -> ConsumerGroupReplicationProperty -> ShowS
$cshow :: ConsumerGroupReplicationProperty -> String
show :: ConsumerGroupReplicationProperty -> String
$cshowList :: [ConsumerGroupReplicationProperty] -> ShowS
showList :: [ConsumerGroupReplicationProperty] -> ShowS
Prelude.Show)
mkConsumerGroupReplicationProperty ::
  ValueList Prelude.Text -> ConsumerGroupReplicationProperty
mkConsumerGroupReplicationProperty :: ValueList Text -> ConsumerGroupReplicationProperty
mkConsumerGroupReplicationProperty ValueList Text
consumerGroupsToReplicate
  = ConsumerGroupReplicationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       consumerGroupsToReplicate :: ValueList Text
consumerGroupsToReplicate = ValueList Text
consumerGroupsToReplicate,
       consumerGroupsToExclude :: Maybe (ValueList Text)
consumerGroupsToExclude = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
       detectAndCopyNewConsumerGroups :: Maybe (Value Bool)
detectAndCopyNewConsumerGroups = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
       synchroniseConsumerGroupOffsets :: Maybe (Value Bool)
synchroniseConsumerGroupOffsets = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ConsumerGroupReplicationProperty where
  toResourceProperties :: ConsumerGroupReplicationProperty -> ResourceProperties
toResourceProperties ConsumerGroupReplicationProperty {Maybe (ValueList Text)
Maybe (Value Bool)
()
ValueList Text
haddock_workaround_ :: ConsumerGroupReplicationProperty -> ()
consumerGroupsToExclude :: ConsumerGroupReplicationProperty -> Maybe (ValueList Text)
consumerGroupsToReplicate :: ConsumerGroupReplicationProperty -> ValueList Text
detectAndCopyNewConsumerGroups :: ConsumerGroupReplicationProperty -> Maybe (Value Bool)
synchroniseConsumerGroupOffsets :: ConsumerGroupReplicationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
consumerGroupsToExclude :: Maybe (ValueList Text)
consumerGroupsToReplicate :: ValueList Text
detectAndCopyNewConsumerGroups :: Maybe (Value Bool)
synchroniseConsumerGroupOffsets :: Maybe (Value Bool)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::MSK::Replicator.ConsumerGroupReplication",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         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
"ConsumerGroupsToReplicate" Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ValueList Text
consumerGroupsToReplicate]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key -> ValueList 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
"ConsumerGroupsToExclude"
                                 (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
consumerGroupsToExclude,
                               Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DetectAndCopyNewConsumerGroups"
                                 (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
detectAndCopyNewConsumerGroups,
                               Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SynchroniseConsumerGroupOffsets"
                                 (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
synchroniseConsumerGroupOffsets]))}
instance JSON.ToJSON ConsumerGroupReplicationProperty where
  toJSON :: ConsumerGroupReplicationProperty -> Value
toJSON ConsumerGroupReplicationProperty {Maybe (ValueList Text)
Maybe (Value Bool)
()
ValueList Text
haddock_workaround_ :: ConsumerGroupReplicationProperty -> ()
consumerGroupsToExclude :: ConsumerGroupReplicationProperty -> Maybe (ValueList Text)
consumerGroupsToReplicate :: ConsumerGroupReplicationProperty -> ValueList Text
detectAndCopyNewConsumerGroups :: ConsumerGroupReplicationProperty -> Maybe (Value Bool)
synchroniseConsumerGroupOffsets :: ConsumerGroupReplicationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
consumerGroupsToExclude :: Maybe (ValueList Text)
consumerGroupsToReplicate :: ValueList Text
detectAndCopyNewConsumerGroups :: Maybe (Value Bool)
synchroniseConsumerGroupOffsets :: Maybe (Value Bool)
..}
    = [(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
"ConsumerGroupsToReplicate" Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ValueList Text
consumerGroupsToReplicate]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key -> ValueList 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
"ConsumerGroupsToExclude"
                    (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
consumerGroupsToExclude,
                  Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DetectAndCopyNewConsumerGroups"
                    (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
detectAndCopyNewConsumerGroups,
                  Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SynchroniseConsumerGroupOffsets"
                    (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
synchroniseConsumerGroupOffsets])))
instance Property "ConsumerGroupsToExclude" ConsumerGroupReplicationProperty where
  type PropertyType "ConsumerGroupsToExclude" ConsumerGroupReplicationProperty = ValueList Prelude.Text
  set :: PropertyType
  "ConsumerGroupsToExclude" ConsumerGroupReplicationProperty
-> ConsumerGroupReplicationProperty
-> ConsumerGroupReplicationProperty
set PropertyType
  "ConsumerGroupsToExclude" ConsumerGroupReplicationProperty
newValue ConsumerGroupReplicationProperty {Maybe (ValueList Text)
Maybe (Value Bool)
()
ValueList Text
haddock_workaround_ :: ConsumerGroupReplicationProperty -> ()
consumerGroupsToExclude :: ConsumerGroupReplicationProperty -> Maybe (ValueList Text)
consumerGroupsToReplicate :: ConsumerGroupReplicationProperty -> ValueList Text
detectAndCopyNewConsumerGroups :: ConsumerGroupReplicationProperty -> Maybe (Value Bool)
synchroniseConsumerGroupOffsets :: ConsumerGroupReplicationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
consumerGroupsToExclude :: Maybe (ValueList Text)
consumerGroupsToReplicate :: ValueList Text
detectAndCopyNewConsumerGroups :: Maybe (Value Bool)
synchroniseConsumerGroupOffsets :: Maybe (Value Bool)
..}
    = ConsumerGroupReplicationProperty
        {consumerGroupsToExclude :: Maybe (ValueList Text)
consumerGroupsToExclude = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "ConsumerGroupsToExclude" ConsumerGroupReplicationProperty
ValueList Text
newValue, Maybe (Value Bool)
()
ValueList Text
haddock_workaround_ :: ()
consumerGroupsToReplicate :: ValueList Text
detectAndCopyNewConsumerGroups :: Maybe (Value Bool)
synchroniseConsumerGroupOffsets :: Maybe (Value Bool)
haddock_workaround_ :: ()
consumerGroupsToReplicate :: ValueList Text
detectAndCopyNewConsumerGroups :: Maybe (Value Bool)
synchroniseConsumerGroupOffsets :: Maybe (Value Bool)
..}
instance Property "ConsumerGroupsToReplicate" ConsumerGroupReplicationProperty where
  type PropertyType "ConsumerGroupsToReplicate" ConsumerGroupReplicationProperty = ValueList Prelude.Text
  set :: PropertyType
  "ConsumerGroupsToReplicate" ConsumerGroupReplicationProperty
-> ConsumerGroupReplicationProperty
-> ConsumerGroupReplicationProperty
set PropertyType
  "ConsumerGroupsToReplicate" ConsumerGroupReplicationProperty
newValue ConsumerGroupReplicationProperty {Maybe (ValueList Text)
Maybe (Value Bool)
()
ValueList Text
haddock_workaround_ :: ConsumerGroupReplicationProperty -> ()
consumerGroupsToExclude :: ConsumerGroupReplicationProperty -> Maybe (ValueList Text)
consumerGroupsToReplicate :: ConsumerGroupReplicationProperty -> ValueList Text
detectAndCopyNewConsumerGroups :: ConsumerGroupReplicationProperty -> Maybe (Value Bool)
synchroniseConsumerGroupOffsets :: ConsumerGroupReplicationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
consumerGroupsToExclude :: Maybe (ValueList Text)
consumerGroupsToReplicate :: ValueList Text
detectAndCopyNewConsumerGroups :: Maybe (Value Bool)
synchroniseConsumerGroupOffsets :: Maybe (Value Bool)
..}
    = ConsumerGroupReplicationProperty
        {consumerGroupsToReplicate :: ValueList Text
consumerGroupsToReplicate = PropertyType
  "ConsumerGroupsToReplicate" ConsumerGroupReplicationProperty
ValueList Text
newValue, Maybe (ValueList Text)
Maybe (Value Bool)
()
haddock_workaround_ :: ()
consumerGroupsToExclude :: Maybe (ValueList Text)
detectAndCopyNewConsumerGroups :: Maybe (Value Bool)
synchroniseConsumerGroupOffsets :: Maybe (Value Bool)
haddock_workaround_ :: ()
consumerGroupsToExclude :: Maybe (ValueList Text)
detectAndCopyNewConsumerGroups :: Maybe (Value Bool)
synchroniseConsumerGroupOffsets :: Maybe (Value Bool)
..}
instance Property "DetectAndCopyNewConsumerGroups" ConsumerGroupReplicationProperty where
  type PropertyType "DetectAndCopyNewConsumerGroups" ConsumerGroupReplicationProperty = Value Prelude.Bool
  set :: PropertyType
  "DetectAndCopyNewConsumerGroups" ConsumerGroupReplicationProperty
-> ConsumerGroupReplicationProperty
-> ConsumerGroupReplicationProperty
set PropertyType
  "DetectAndCopyNewConsumerGroups" ConsumerGroupReplicationProperty
newValue ConsumerGroupReplicationProperty {Maybe (ValueList Text)
Maybe (Value Bool)
()
ValueList Text
haddock_workaround_ :: ConsumerGroupReplicationProperty -> ()
consumerGroupsToExclude :: ConsumerGroupReplicationProperty -> Maybe (ValueList Text)
consumerGroupsToReplicate :: ConsumerGroupReplicationProperty -> ValueList Text
detectAndCopyNewConsumerGroups :: ConsumerGroupReplicationProperty -> Maybe (Value Bool)
synchroniseConsumerGroupOffsets :: ConsumerGroupReplicationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
consumerGroupsToExclude :: Maybe (ValueList Text)
consumerGroupsToReplicate :: ValueList Text
detectAndCopyNewConsumerGroups :: Maybe (Value Bool)
synchroniseConsumerGroupOffsets :: Maybe (Value Bool)
..}
    = ConsumerGroupReplicationProperty
        {detectAndCopyNewConsumerGroups :: Maybe (Value Bool)
detectAndCopyNewConsumerGroups = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "DetectAndCopyNewConsumerGroups" ConsumerGroupReplicationProperty
Value Bool
newValue, Maybe (ValueList Text)
Maybe (Value Bool)
()
ValueList Text
haddock_workaround_ :: ()
consumerGroupsToExclude :: Maybe (ValueList Text)
consumerGroupsToReplicate :: ValueList Text
synchroniseConsumerGroupOffsets :: Maybe (Value Bool)
haddock_workaround_ :: ()
consumerGroupsToExclude :: Maybe (ValueList Text)
consumerGroupsToReplicate :: ValueList Text
synchroniseConsumerGroupOffsets :: Maybe (Value Bool)
..}
instance Property "SynchroniseConsumerGroupOffsets" ConsumerGroupReplicationProperty where
  type PropertyType "SynchroniseConsumerGroupOffsets" ConsumerGroupReplicationProperty = Value Prelude.Bool
  set :: PropertyType
  "SynchroniseConsumerGroupOffsets" ConsumerGroupReplicationProperty
-> ConsumerGroupReplicationProperty
-> ConsumerGroupReplicationProperty
set PropertyType
  "SynchroniseConsumerGroupOffsets" ConsumerGroupReplicationProperty
newValue ConsumerGroupReplicationProperty {Maybe (ValueList Text)
Maybe (Value Bool)
()
ValueList Text
haddock_workaround_ :: ConsumerGroupReplicationProperty -> ()
consumerGroupsToExclude :: ConsumerGroupReplicationProperty -> Maybe (ValueList Text)
consumerGroupsToReplicate :: ConsumerGroupReplicationProperty -> ValueList Text
detectAndCopyNewConsumerGroups :: ConsumerGroupReplicationProperty -> Maybe (Value Bool)
synchroniseConsumerGroupOffsets :: ConsumerGroupReplicationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
consumerGroupsToExclude :: Maybe (ValueList Text)
consumerGroupsToReplicate :: ValueList Text
detectAndCopyNewConsumerGroups :: Maybe (Value Bool)
synchroniseConsumerGroupOffsets :: Maybe (Value Bool)
..}
    = ConsumerGroupReplicationProperty
        {synchroniseConsumerGroupOffsets :: Maybe (Value Bool)
synchroniseConsumerGroupOffsets = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "SynchroniseConsumerGroupOffsets" ConsumerGroupReplicationProperty
Value Bool
newValue, Maybe (ValueList Text)
Maybe (Value Bool)
()
ValueList Text
haddock_workaround_ :: ()
consumerGroupsToExclude :: Maybe (ValueList Text)
consumerGroupsToReplicate :: ValueList Text
detectAndCopyNewConsumerGroups :: Maybe (Value Bool)
haddock_workaround_ :: ()
consumerGroupsToExclude :: Maybe (ValueList Text)
consumerGroupsToReplicate :: ValueList Text
detectAndCopyNewConsumerGroups :: Maybe (Value Bool)
..}