module Stratosphere.AppRunner.Service.IngressConfigurationProperty (
IngressConfigurationProperty(..), mkIngressConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data IngressConfigurationProperty
=
IngressConfigurationProperty {IngressConfigurationProperty -> ()
haddock_workaround_ :: (),
IngressConfigurationProperty -> Value Bool
isPubliclyAccessible :: (Value Prelude.Bool)}
deriving stock (IngressConfigurationProperty
-> IngressConfigurationProperty -> Bool
(IngressConfigurationProperty
-> IngressConfigurationProperty -> Bool)
-> (IngressConfigurationProperty
-> IngressConfigurationProperty -> Bool)
-> Eq IngressConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: IngressConfigurationProperty
-> IngressConfigurationProperty -> Bool
== :: IngressConfigurationProperty
-> IngressConfigurationProperty -> Bool
$c/= :: IngressConfigurationProperty
-> IngressConfigurationProperty -> Bool
/= :: IngressConfigurationProperty
-> IngressConfigurationProperty -> Bool
Prelude.Eq, Int -> IngressConfigurationProperty -> ShowS
[IngressConfigurationProperty] -> ShowS
IngressConfigurationProperty -> String
(Int -> IngressConfigurationProperty -> ShowS)
-> (IngressConfigurationProperty -> String)
-> ([IngressConfigurationProperty] -> ShowS)
-> Show IngressConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> IngressConfigurationProperty -> ShowS
showsPrec :: Int -> IngressConfigurationProperty -> ShowS
$cshow :: IngressConfigurationProperty -> String
show :: IngressConfigurationProperty -> String
$cshowList :: [IngressConfigurationProperty] -> ShowS
showList :: [IngressConfigurationProperty] -> ShowS
Prelude.Show)
mkIngressConfigurationProperty ::
Value Prelude.Bool -> IngressConfigurationProperty
mkIngressConfigurationProperty :: Value Bool -> IngressConfigurationProperty
mkIngressConfigurationProperty Value Bool
isPubliclyAccessible
= IngressConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
isPubliclyAccessible :: Value Bool
isPubliclyAccessible = Value Bool
isPubliclyAccessible}
instance ToResourceProperties IngressConfigurationProperty where
toResourceProperties :: IngressConfigurationProperty -> ResourceProperties
toResourceProperties IngressConfigurationProperty {()
Value Bool
haddock_workaround_ :: IngressConfigurationProperty -> ()
isPubliclyAccessible :: IngressConfigurationProperty -> Value Bool
haddock_workaround_ :: ()
isPubliclyAccessible :: Value Bool
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::AppRunner::Service.IngressConfiguration",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"IsPubliclyAccessible" 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
isPubliclyAccessible]}
instance JSON.ToJSON IngressConfigurationProperty where
toJSON :: IngressConfigurationProperty -> Value
toJSON IngressConfigurationProperty {()
Value Bool
haddock_workaround_ :: IngressConfigurationProperty -> ()
isPubliclyAccessible :: IngressConfigurationProperty -> Value Bool
haddock_workaround_ :: ()
isPubliclyAccessible :: Value Bool
..}
= [(Key, Value)] -> Value
JSON.object [Key
"IsPubliclyAccessible" 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
isPubliclyAccessible]
instance Property "IsPubliclyAccessible" IngressConfigurationProperty where
type PropertyType "IsPubliclyAccessible" IngressConfigurationProperty = Value Prelude.Bool
set :: PropertyType "IsPubliclyAccessible" IngressConfigurationProperty
-> IngressConfigurationProperty -> IngressConfigurationProperty
set PropertyType "IsPubliclyAccessible" IngressConfigurationProperty
newValue IngressConfigurationProperty {()
Value Bool
haddock_workaround_ :: IngressConfigurationProperty -> ()
isPubliclyAccessible :: IngressConfigurationProperty -> Value Bool
haddock_workaround_ :: ()
isPubliclyAccessible :: Value Bool
..}
= IngressConfigurationProperty
{isPubliclyAccessible :: Value Bool
isPubliclyAccessible = PropertyType "IsPubliclyAccessible" IngressConfigurationProperty
Value Bool
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}