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