stratosphere-cognito-1.0.0: gen/Stratosphere/Cognito/UserPool/DeviceConfigurationProperty.hs
module Stratosphere.Cognito.UserPool.DeviceConfigurationProperty (
DeviceConfigurationProperty(..), mkDeviceConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DeviceConfigurationProperty
= -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-deviceconfiguration.html>
DeviceConfigurationProperty {haddock_workaround_ :: (),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-deviceconfiguration.html#cfn-cognito-userpool-deviceconfiguration-challengerequiredonnewdevice>
challengeRequiredOnNewDevice :: (Prelude.Maybe (Value Prelude.Bool)),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-deviceconfiguration.html#cfn-cognito-userpool-deviceconfiguration-deviceonlyrememberedonuserprompt>
deviceOnlyRememberedOnUserPrompt :: (Prelude.Maybe (Value Prelude.Bool))}
deriving stock (Prelude.Eq, Prelude.Show)
mkDeviceConfigurationProperty :: DeviceConfigurationProperty
mkDeviceConfigurationProperty
= DeviceConfigurationProperty
{haddock_workaround_ = (),
challengeRequiredOnNewDevice = Prelude.Nothing,
deviceOnlyRememberedOnUserPrompt = Prelude.Nothing}
instance ToResourceProperties DeviceConfigurationProperty where
toResourceProperties DeviceConfigurationProperty {..}
= ResourceProperties
{awsType = "AWS::Cognito::UserPool.DeviceConfiguration",
supportsTags = Prelude.False,
properties = Prelude.fromList
(Prelude.catMaybes
[(JSON..=) "ChallengeRequiredOnNewDevice"
Prelude.<$> challengeRequiredOnNewDevice,
(JSON..=) "DeviceOnlyRememberedOnUserPrompt"
Prelude.<$> deviceOnlyRememberedOnUserPrompt])}
instance JSON.ToJSON DeviceConfigurationProperty where
toJSON DeviceConfigurationProperty {..}
= JSON.object
(Prelude.fromList
(Prelude.catMaybes
[(JSON..=) "ChallengeRequiredOnNewDevice"
Prelude.<$> challengeRequiredOnNewDevice,
(JSON..=) "DeviceOnlyRememberedOnUserPrompt"
Prelude.<$> deviceOnlyRememberedOnUserPrompt]))
instance Property "ChallengeRequiredOnNewDevice" DeviceConfigurationProperty where
type PropertyType "ChallengeRequiredOnNewDevice" DeviceConfigurationProperty = Value Prelude.Bool
set newValue DeviceConfigurationProperty {..}
= DeviceConfigurationProperty
{challengeRequiredOnNewDevice = Prelude.pure newValue, ..}
instance Property "DeviceOnlyRememberedOnUserPrompt" DeviceConfigurationProperty where
type PropertyType "DeviceOnlyRememberedOnUserPrompt" DeviceConfigurationProperty = Value Prelude.Bool
set newValue DeviceConfigurationProperty {..}
= DeviceConfigurationProperty
{deviceOnlyRememberedOnUserPrompt = Prelude.pure newValue, ..}