module Stratosphere.EC2.ClientVpnEndpoint.ClientLoginBannerOptionsProperty (
ClientLoginBannerOptionsProperty(..),
mkClientLoginBannerOptionsProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ClientLoginBannerOptionsProperty
=
ClientLoginBannerOptionsProperty {ClientLoginBannerOptionsProperty -> ()
haddock_workaround_ :: (),
ClientLoginBannerOptionsProperty -> Maybe (Value Text)
bannerText :: (Prelude.Maybe (Value Prelude.Text)),
ClientLoginBannerOptionsProperty -> Value Bool
enabled :: (Value Prelude.Bool)}
deriving stock (ClientLoginBannerOptionsProperty
-> ClientLoginBannerOptionsProperty -> Bool
(ClientLoginBannerOptionsProperty
-> ClientLoginBannerOptionsProperty -> Bool)
-> (ClientLoginBannerOptionsProperty
-> ClientLoginBannerOptionsProperty -> Bool)
-> Eq ClientLoginBannerOptionsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ClientLoginBannerOptionsProperty
-> ClientLoginBannerOptionsProperty -> Bool
== :: ClientLoginBannerOptionsProperty
-> ClientLoginBannerOptionsProperty -> Bool
$c/= :: ClientLoginBannerOptionsProperty
-> ClientLoginBannerOptionsProperty -> Bool
/= :: ClientLoginBannerOptionsProperty
-> ClientLoginBannerOptionsProperty -> Bool
Prelude.Eq, Int -> ClientLoginBannerOptionsProperty -> ShowS
[ClientLoginBannerOptionsProperty] -> ShowS
ClientLoginBannerOptionsProperty -> String
(Int -> ClientLoginBannerOptionsProperty -> ShowS)
-> (ClientLoginBannerOptionsProperty -> String)
-> ([ClientLoginBannerOptionsProperty] -> ShowS)
-> Show ClientLoginBannerOptionsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ClientLoginBannerOptionsProperty -> ShowS
showsPrec :: Int -> ClientLoginBannerOptionsProperty -> ShowS
$cshow :: ClientLoginBannerOptionsProperty -> String
show :: ClientLoginBannerOptionsProperty -> String
$cshowList :: [ClientLoginBannerOptionsProperty] -> ShowS
showList :: [ClientLoginBannerOptionsProperty] -> ShowS
Prelude.Show)
mkClientLoginBannerOptionsProperty ::
Value Prelude.Bool -> ClientLoginBannerOptionsProperty
mkClientLoginBannerOptionsProperty :: Value Bool -> ClientLoginBannerOptionsProperty
mkClientLoginBannerOptionsProperty Value Bool
enabled
= ClientLoginBannerOptionsProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), enabled :: Value Bool
enabled = Value Bool
enabled,
bannerText :: Maybe (Value Text)
bannerText = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ClientLoginBannerOptionsProperty where
toResourceProperties :: ClientLoginBannerOptionsProperty -> ResourceProperties
toResourceProperties ClientLoginBannerOptionsProperty {Maybe (Value Text)
()
Value Bool
haddock_workaround_ :: ClientLoginBannerOptionsProperty -> ()
bannerText :: ClientLoginBannerOptionsProperty -> Maybe (Value Text)
enabled :: ClientLoginBannerOptionsProperty -> Value Bool
haddock_workaround_ :: ()
bannerText :: Maybe (Value Text)
enabled :: Value Bool
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::EC2::ClientVpnEndpoint.ClientLoginBannerOptions",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Enabled" Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Bool
enabled]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"BannerText" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
bannerText]))}
instance JSON.ToJSON ClientLoginBannerOptionsProperty where
toJSON :: ClientLoginBannerOptionsProperty -> Value
toJSON ClientLoginBannerOptionsProperty {Maybe (Value Text)
()
Value Bool
haddock_workaround_ :: ClientLoginBannerOptionsProperty -> ()
bannerText :: ClientLoginBannerOptionsProperty -> Maybe (Value Text)
enabled :: ClientLoginBannerOptionsProperty -> Value Bool
haddock_workaround_ :: ()
bannerText :: Maybe (Value Text)
enabled :: Value Bool
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Enabled" Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Bool
enabled]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"BannerText" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
bannerText])))
instance Property "BannerText" ClientLoginBannerOptionsProperty where
type PropertyType "BannerText" ClientLoginBannerOptionsProperty = Value Prelude.Text
set :: PropertyType "BannerText" ClientLoginBannerOptionsProperty
-> ClientLoginBannerOptionsProperty
-> ClientLoginBannerOptionsProperty
set PropertyType "BannerText" ClientLoginBannerOptionsProperty
newValue ClientLoginBannerOptionsProperty {Maybe (Value Text)
()
Value Bool
haddock_workaround_ :: ClientLoginBannerOptionsProperty -> ()
bannerText :: ClientLoginBannerOptionsProperty -> Maybe (Value Text)
enabled :: ClientLoginBannerOptionsProperty -> Value Bool
haddock_workaround_ :: ()
bannerText :: Maybe (Value Text)
enabled :: Value Bool
..}
= ClientLoginBannerOptionsProperty
{bannerText :: Maybe (Value Text)
bannerText = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "BannerText" ClientLoginBannerOptionsProperty
Value Text
newValue, ()
Value Bool
haddock_workaround_ :: ()
enabled :: Value Bool
haddock_workaround_ :: ()
enabled :: Value Bool
..}
instance Property "Enabled" ClientLoginBannerOptionsProperty where
type PropertyType "Enabled" ClientLoginBannerOptionsProperty = Value Prelude.Bool
set :: PropertyType "Enabled" ClientLoginBannerOptionsProperty
-> ClientLoginBannerOptionsProperty
-> ClientLoginBannerOptionsProperty
set PropertyType "Enabled" ClientLoginBannerOptionsProperty
newValue ClientLoginBannerOptionsProperty {Maybe (Value Text)
()
Value Bool
haddock_workaround_ :: ClientLoginBannerOptionsProperty -> ()
bannerText :: ClientLoginBannerOptionsProperty -> Maybe (Value Text)
enabled :: ClientLoginBannerOptionsProperty -> Value Bool
haddock_workaround_ :: ()
bannerText :: Maybe (Value Text)
enabled :: Value Bool
..}
= ClientLoginBannerOptionsProperty {enabled :: Value Bool
enabled = PropertyType "Enabled" ClientLoginBannerOptionsProperty
Value Bool
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
bannerText :: Maybe (Value Text)
haddock_workaround_ :: ()
bannerText :: Maybe (Value Text)
..}