module Stratosphere.Cognito.UserPoolRiskConfigurationAttachment.AccountTakeoverActionTypeProperty (
        AccountTakeoverActionTypeProperty(..),
        mkAccountTakeoverActionTypeProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AccountTakeoverActionTypeProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolriskconfigurationattachment-accounttakeoveractiontype.html>
    AccountTakeoverActionTypeProperty {AccountTakeoverActionTypeProperty -> ()
haddock_workaround_ :: (),
                                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolriskconfigurationattachment-accounttakeoveractiontype.html#cfn-cognito-userpoolriskconfigurationattachment-accounttakeoveractiontype-eventaction>
                                       AccountTakeoverActionTypeProperty -> Value Text
eventAction :: (Value Prelude.Text),
                                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpoolriskconfigurationattachment-accounttakeoveractiontype.html#cfn-cognito-userpoolriskconfigurationattachment-accounttakeoveractiontype-notify>
                                       AccountTakeoverActionTypeProperty -> Value Bool
notify :: (Value Prelude.Bool)}
  deriving stock (AccountTakeoverActionTypeProperty
-> AccountTakeoverActionTypeProperty -> Bool
(AccountTakeoverActionTypeProperty
 -> AccountTakeoverActionTypeProperty -> Bool)
-> (AccountTakeoverActionTypeProperty
    -> AccountTakeoverActionTypeProperty -> Bool)
-> Eq AccountTakeoverActionTypeProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AccountTakeoverActionTypeProperty
-> AccountTakeoverActionTypeProperty -> Bool
== :: AccountTakeoverActionTypeProperty
-> AccountTakeoverActionTypeProperty -> Bool
$c/= :: AccountTakeoverActionTypeProperty
-> AccountTakeoverActionTypeProperty -> Bool
/= :: AccountTakeoverActionTypeProperty
-> AccountTakeoverActionTypeProperty -> Bool
Prelude.Eq, Int -> AccountTakeoverActionTypeProperty -> ShowS
[AccountTakeoverActionTypeProperty] -> ShowS
AccountTakeoverActionTypeProperty -> String
(Int -> AccountTakeoverActionTypeProperty -> ShowS)
-> (AccountTakeoverActionTypeProperty -> String)
-> ([AccountTakeoverActionTypeProperty] -> ShowS)
-> Show AccountTakeoverActionTypeProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AccountTakeoverActionTypeProperty -> ShowS
showsPrec :: Int -> AccountTakeoverActionTypeProperty -> ShowS
$cshow :: AccountTakeoverActionTypeProperty -> String
show :: AccountTakeoverActionTypeProperty -> String
$cshowList :: [AccountTakeoverActionTypeProperty] -> ShowS
showList :: [AccountTakeoverActionTypeProperty] -> ShowS
Prelude.Show)
mkAccountTakeoverActionTypeProperty ::
  Value Prelude.Text
  -> Value Prelude.Bool -> AccountTakeoverActionTypeProperty
mkAccountTakeoverActionTypeProperty :: Value Text -> Value Bool -> AccountTakeoverActionTypeProperty
mkAccountTakeoverActionTypeProperty Value Text
eventAction Value Bool
notify
  = AccountTakeoverActionTypeProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), eventAction :: Value Text
eventAction = Value Text
eventAction,
       notify :: Value Bool
notify = Value Bool
notify}
instance ToResourceProperties AccountTakeoverActionTypeProperty where
  toResourceProperties :: AccountTakeoverActionTypeProperty -> ResourceProperties
toResourceProperties AccountTakeoverActionTypeProperty {()
Value Bool
Value Text
haddock_workaround_ :: AccountTakeoverActionTypeProperty -> ()
eventAction :: AccountTakeoverActionTypeProperty -> Value Text
notify :: AccountTakeoverActionTypeProperty -> Value Bool
haddock_workaround_ :: ()
eventAction :: Value Text
notify :: Value Bool
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Cognito::UserPoolRiskConfigurationAttachment.AccountTakeoverActionType",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"EventAction" 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
eventAction,
                       Key
"Notify" 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
notify]}
instance JSON.ToJSON AccountTakeoverActionTypeProperty where
  toJSON :: AccountTakeoverActionTypeProperty -> Value
toJSON AccountTakeoverActionTypeProperty {()
Value Bool
Value Text
haddock_workaround_ :: AccountTakeoverActionTypeProperty -> ()
eventAction :: AccountTakeoverActionTypeProperty -> Value Text
notify :: AccountTakeoverActionTypeProperty -> Value Bool
haddock_workaround_ :: ()
eventAction :: Value Text
notify :: Value Bool
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"EventAction" 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
eventAction, Key
"Notify" 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
notify]
instance Property "EventAction" AccountTakeoverActionTypeProperty where
  type PropertyType "EventAction" AccountTakeoverActionTypeProperty = Value Prelude.Text
  set :: PropertyType "EventAction" AccountTakeoverActionTypeProperty
-> AccountTakeoverActionTypeProperty
-> AccountTakeoverActionTypeProperty
set PropertyType "EventAction" AccountTakeoverActionTypeProperty
newValue AccountTakeoverActionTypeProperty {()
Value Bool
Value Text
haddock_workaround_ :: AccountTakeoverActionTypeProperty -> ()
eventAction :: AccountTakeoverActionTypeProperty -> Value Text
notify :: AccountTakeoverActionTypeProperty -> Value Bool
haddock_workaround_ :: ()
eventAction :: Value Text
notify :: Value Bool
..}
    = AccountTakeoverActionTypeProperty {eventAction :: Value Text
eventAction = PropertyType "EventAction" AccountTakeoverActionTypeProperty
Value Text
newValue, ()
Value Bool
haddock_workaround_ :: ()
notify :: Value Bool
haddock_workaround_ :: ()
notify :: Value Bool
..}
instance Property "Notify" AccountTakeoverActionTypeProperty where
  type PropertyType "Notify" AccountTakeoverActionTypeProperty = Value Prelude.Bool
  set :: PropertyType "Notify" AccountTakeoverActionTypeProperty
-> AccountTakeoverActionTypeProperty
-> AccountTakeoverActionTypeProperty
set PropertyType "Notify" AccountTakeoverActionTypeProperty
newValue AccountTakeoverActionTypeProperty {()
Value Bool
Value Text
haddock_workaround_ :: AccountTakeoverActionTypeProperty -> ()
eventAction :: AccountTakeoverActionTypeProperty -> Value Text
notify :: AccountTakeoverActionTypeProperty -> Value Bool
haddock_workaround_ :: ()
eventAction :: Value Text
notify :: Value Bool
..}
    = AccountTakeoverActionTypeProperty {notify :: Value Bool
notify = PropertyType "Notify" AccountTakeoverActionTypeProperty
Value Bool
newValue, ()
Value Text
haddock_workaround_ :: ()
eventAction :: Value Text
haddock_workaround_ :: ()
eventAction :: Value Text
..}