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: DeviceConfigurationProperty {haddock_workaround_ :: (), -- | See: challengeRequiredOnNewDevice :: (Prelude.Maybe (Value Prelude.Bool)), -- | See: 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, ..}