module Stratosphere.S3.Bucket.EventBridgeConfigurationProperty (
        EventBridgeConfigurationProperty(..),
        mkEventBridgeConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data EventBridgeConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-eventbridgeconfiguration.html>
    EventBridgeConfigurationProperty {EventBridgeConfigurationProperty -> ()
haddock_workaround_ :: (),
                                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-eventbridgeconfiguration.html#cfn-s3-bucket-eventbridgeconfiguration-eventbridgeenabled>
                                      EventBridgeConfigurationProperty -> Value Bool
eventBridgeEnabled :: (Value Prelude.Bool)}
  deriving stock (EventBridgeConfigurationProperty
-> EventBridgeConfigurationProperty -> Bool
(EventBridgeConfigurationProperty
 -> EventBridgeConfigurationProperty -> Bool)
-> (EventBridgeConfigurationProperty
    -> EventBridgeConfigurationProperty -> Bool)
-> Eq EventBridgeConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: EventBridgeConfigurationProperty
-> EventBridgeConfigurationProperty -> Bool
== :: EventBridgeConfigurationProperty
-> EventBridgeConfigurationProperty -> Bool
$c/= :: EventBridgeConfigurationProperty
-> EventBridgeConfigurationProperty -> Bool
/= :: EventBridgeConfigurationProperty
-> EventBridgeConfigurationProperty -> Bool
Prelude.Eq, Int -> EventBridgeConfigurationProperty -> ShowS
[EventBridgeConfigurationProperty] -> ShowS
EventBridgeConfigurationProperty -> String
(Int -> EventBridgeConfigurationProperty -> ShowS)
-> (EventBridgeConfigurationProperty -> String)
-> ([EventBridgeConfigurationProperty] -> ShowS)
-> Show EventBridgeConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> EventBridgeConfigurationProperty -> ShowS
showsPrec :: Int -> EventBridgeConfigurationProperty -> ShowS
$cshow :: EventBridgeConfigurationProperty -> String
show :: EventBridgeConfigurationProperty -> String
$cshowList :: [EventBridgeConfigurationProperty] -> ShowS
showList :: [EventBridgeConfigurationProperty] -> ShowS
Prelude.Show)
mkEventBridgeConfigurationProperty ::
  Value Prelude.Bool -> EventBridgeConfigurationProperty
mkEventBridgeConfigurationProperty :: Value Bool -> EventBridgeConfigurationProperty
mkEventBridgeConfigurationProperty Value Bool
eventBridgeEnabled
  = EventBridgeConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), eventBridgeEnabled :: Value Bool
eventBridgeEnabled = Value Bool
eventBridgeEnabled}
instance ToResourceProperties EventBridgeConfigurationProperty where
  toResourceProperties :: EventBridgeConfigurationProperty -> ResourceProperties
toResourceProperties EventBridgeConfigurationProperty {()
Value Bool
haddock_workaround_ :: EventBridgeConfigurationProperty -> ()
eventBridgeEnabled :: EventBridgeConfigurationProperty -> Value Bool
haddock_workaround_ :: ()
eventBridgeEnabled :: Value Bool
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::S3::Bucket.EventBridgeConfiguration",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"EventBridgeEnabled" 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..= Value Bool
eventBridgeEnabled]}
instance JSON.ToJSON EventBridgeConfigurationProperty where
  toJSON :: EventBridgeConfigurationProperty -> Value
toJSON EventBridgeConfigurationProperty {()
Value Bool
haddock_workaround_ :: EventBridgeConfigurationProperty -> ()
eventBridgeEnabled :: EventBridgeConfigurationProperty -> Value Bool
haddock_workaround_ :: ()
eventBridgeEnabled :: Value Bool
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"EventBridgeEnabled" 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..= Value Bool
eventBridgeEnabled]
instance Property "EventBridgeEnabled" EventBridgeConfigurationProperty where
  type PropertyType "EventBridgeEnabled" EventBridgeConfigurationProperty = Value Prelude.Bool
  set :: PropertyType "EventBridgeEnabled" EventBridgeConfigurationProperty
-> EventBridgeConfigurationProperty
-> EventBridgeConfigurationProperty
set PropertyType "EventBridgeEnabled" EventBridgeConfigurationProperty
newValue EventBridgeConfigurationProperty {()
Value Bool
haddock_workaround_ :: EventBridgeConfigurationProperty -> ()
eventBridgeEnabled :: EventBridgeConfigurationProperty -> Value Bool
haddock_workaround_ :: ()
eventBridgeEnabled :: Value Bool
..}
    = EventBridgeConfigurationProperty
        {eventBridgeEnabled :: Value Bool
eventBridgeEnabled = PropertyType "EventBridgeEnabled" EventBridgeConfigurationProperty
Value Bool
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}