module Stratosphere.WAFv2.WebACL.CaptchaConfigProperty ( module Exports, CaptchaConfigProperty(..), mkCaptchaConfigProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import {-# SOURCE #-} Stratosphere.WAFv2.WebACL.ImmunityTimePropertyProperty as Exports import Stratosphere.ResourceProperties data CaptchaConfigProperty = -- | See: CaptchaConfigProperty {haddock_workaround_ :: (), -- | See: immunityTimeProperty :: (Prelude.Maybe ImmunityTimePropertyProperty)} deriving stock (Prelude.Eq, Prelude.Show) mkCaptchaConfigProperty :: CaptchaConfigProperty mkCaptchaConfigProperty = CaptchaConfigProperty {haddock_workaround_ = (), immunityTimeProperty = Prelude.Nothing} instance ToResourceProperties CaptchaConfigProperty where toResourceProperties CaptchaConfigProperty {..} = ResourceProperties {awsType = "AWS::WAFv2::WebACL.CaptchaConfig", supportsTags = Prelude.False, properties = Prelude.fromList (Prelude.catMaybes [(JSON..=) "ImmunityTimeProperty" Prelude.<$> immunityTimeProperty])} instance JSON.ToJSON CaptchaConfigProperty where toJSON CaptchaConfigProperty {..} = JSON.object (Prelude.fromList (Prelude.catMaybes [(JSON..=) "ImmunityTimeProperty" Prelude.<$> immunityTimeProperty])) instance Property "ImmunityTimeProperty" CaptchaConfigProperty where type PropertyType "ImmunityTimeProperty" CaptchaConfigProperty = ImmunityTimePropertyProperty set newValue CaptchaConfigProperty {..} = CaptchaConfigProperty {immunityTimeProperty = Prelude.pure newValue, ..}