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