module Stratosphere.SES.EmailIdentity.FeedbackAttributesProperty (
        FeedbackAttributesProperty(..), mkFeedbackAttributesProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data FeedbackAttributesProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-emailidentity-feedbackattributes.html>
    FeedbackAttributesProperty {FeedbackAttributesProperty -> ()
haddock_workaround_ :: (),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-emailidentity-feedbackattributes.html#cfn-ses-emailidentity-feedbackattributes-emailforwardingenabled>
                                FeedbackAttributesProperty -> Maybe (Value Bool)
emailForwardingEnabled :: (Prelude.Maybe (Value Prelude.Bool))}
  deriving stock (FeedbackAttributesProperty -> FeedbackAttributesProperty -> Bool
(FeedbackAttributesProperty -> FeedbackAttributesProperty -> Bool)
-> (FeedbackAttributesProperty
    -> FeedbackAttributesProperty -> Bool)
-> Eq FeedbackAttributesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: FeedbackAttributesProperty -> FeedbackAttributesProperty -> Bool
== :: FeedbackAttributesProperty -> FeedbackAttributesProperty -> Bool
$c/= :: FeedbackAttributesProperty -> FeedbackAttributesProperty -> Bool
/= :: FeedbackAttributesProperty -> FeedbackAttributesProperty -> Bool
Prelude.Eq, Int -> FeedbackAttributesProperty -> ShowS
[FeedbackAttributesProperty] -> ShowS
FeedbackAttributesProperty -> String
(Int -> FeedbackAttributesProperty -> ShowS)
-> (FeedbackAttributesProperty -> String)
-> ([FeedbackAttributesProperty] -> ShowS)
-> Show FeedbackAttributesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> FeedbackAttributesProperty -> ShowS
showsPrec :: Int -> FeedbackAttributesProperty -> ShowS
$cshow :: FeedbackAttributesProperty -> String
show :: FeedbackAttributesProperty -> String
$cshowList :: [FeedbackAttributesProperty] -> ShowS
showList :: [FeedbackAttributesProperty] -> ShowS
Prelude.Show)
mkFeedbackAttributesProperty :: FeedbackAttributesProperty
mkFeedbackAttributesProperty :: FeedbackAttributesProperty
mkFeedbackAttributesProperty
  = FeedbackAttributesProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       emailForwardingEnabled :: Maybe (Value Bool)
emailForwardingEnabled = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties FeedbackAttributesProperty where
  toResourceProperties :: FeedbackAttributesProperty -> ResourceProperties
toResourceProperties FeedbackAttributesProperty {Maybe (Value Bool)
()
haddock_workaround_ :: FeedbackAttributesProperty -> ()
emailForwardingEnabled :: FeedbackAttributesProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
emailForwardingEnabled :: Maybe (Value Bool)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::SES::EmailIdentity.FeedbackAttributes",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                           [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
"EmailForwardingEnabled"
                              (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)
emailForwardingEnabled])}
instance JSON.ToJSON FeedbackAttributesProperty where
  toJSON :: FeedbackAttributesProperty -> Value
toJSON FeedbackAttributesProperty {Maybe (Value Bool)
()
haddock_workaround_ :: FeedbackAttributesProperty -> ()
emailForwardingEnabled :: FeedbackAttributesProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
emailForwardingEnabled :: Maybe (Value Bool)
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
              [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
"EmailForwardingEnabled"
                 (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)
emailForwardingEnabled]))
instance Property "EmailForwardingEnabled" FeedbackAttributesProperty where
  type PropertyType "EmailForwardingEnabled" FeedbackAttributesProperty = Value Prelude.Bool
  set :: PropertyType "EmailForwardingEnabled" FeedbackAttributesProperty
-> FeedbackAttributesProperty -> FeedbackAttributesProperty
set PropertyType "EmailForwardingEnabled" FeedbackAttributesProperty
newValue FeedbackAttributesProperty {Maybe (Value Bool)
()
haddock_workaround_ :: FeedbackAttributesProperty -> ()
emailForwardingEnabled :: FeedbackAttributesProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
emailForwardingEnabled :: Maybe (Value Bool)
..}
    = FeedbackAttributesProperty
        {emailForwardingEnabled :: Maybe (Value Bool)
emailForwardingEnabled = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "EmailForwardingEnabled" FeedbackAttributesProperty
Value Bool
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}