module Stratosphere.AppIntegrations.Application.IframeConfigProperty ( IframeConfigProperty(..), mkIframeConfigProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data IframeConfigProperty = -- | See: IframeConfigProperty {haddock_workaround_ :: (), -- | See: allow :: (Prelude.Maybe (ValueList Prelude.Text)), -- | See: sandbox :: (Prelude.Maybe (ValueList Prelude.Text))} deriving stock (Prelude.Eq, Prelude.Show) mkIframeConfigProperty :: IframeConfigProperty mkIframeConfigProperty = IframeConfigProperty {haddock_workaround_ = (), allow = Prelude.Nothing, sandbox = Prelude.Nothing} instance ToResourceProperties IframeConfigProperty where toResourceProperties IframeConfigProperty {..} = ResourceProperties {awsType = "AWS::AppIntegrations::Application.IframeConfig", supportsTags = Prelude.False, properties = Prelude.fromList (Prelude.catMaybes [(JSON..=) "Allow" Prelude.<$> allow, (JSON..=) "Sandbox" Prelude.<$> sandbox])} instance JSON.ToJSON IframeConfigProperty where toJSON IframeConfigProperty {..} = JSON.object (Prelude.fromList (Prelude.catMaybes [(JSON..=) "Allow" Prelude.<$> allow, (JSON..=) "Sandbox" Prelude.<$> sandbox])) instance Property "Allow" IframeConfigProperty where type PropertyType "Allow" IframeConfigProperty = ValueList Prelude.Text set newValue IframeConfigProperty {..} = IframeConfigProperty {allow = Prelude.pure newValue, ..} instance Property "Sandbox" IframeConfigProperty where type PropertyType "Sandbox" IframeConfigProperty = ValueList Prelude.Text set newValue IframeConfigProperty {..} = IframeConfigProperty {sandbox = Prelude.pure newValue, ..}