module Stratosphere.EC2.Subnet.BlockPublicAccessStatesProperty (
BlockPublicAccessStatesProperty(..),
mkBlockPublicAccessStatesProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data BlockPublicAccessStatesProperty
=
BlockPublicAccessStatesProperty {BlockPublicAccessStatesProperty -> ()
haddock_workaround_ :: (),
BlockPublicAccessStatesProperty -> Maybe (Value Text)
internetGatewayBlockMode :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (BlockPublicAccessStatesProperty
-> BlockPublicAccessStatesProperty -> Bool
(BlockPublicAccessStatesProperty
-> BlockPublicAccessStatesProperty -> Bool)
-> (BlockPublicAccessStatesProperty
-> BlockPublicAccessStatesProperty -> Bool)
-> Eq BlockPublicAccessStatesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: BlockPublicAccessStatesProperty
-> BlockPublicAccessStatesProperty -> Bool
== :: BlockPublicAccessStatesProperty
-> BlockPublicAccessStatesProperty -> Bool
$c/= :: BlockPublicAccessStatesProperty
-> BlockPublicAccessStatesProperty -> Bool
/= :: BlockPublicAccessStatesProperty
-> BlockPublicAccessStatesProperty -> Bool
Prelude.Eq, Int -> BlockPublicAccessStatesProperty -> ShowS
[BlockPublicAccessStatesProperty] -> ShowS
BlockPublicAccessStatesProperty -> String
(Int -> BlockPublicAccessStatesProperty -> ShowS)
-> (BlockPublicAccessStatesProperty -> String)
-> ([BlockPublicAccessStatesProperty] -> ShowS)
-> Show BlockPublicAccessStatesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> BlockPublicAccessStatesProperty -> ShowS
showsPrec :: Int -> BlockPublicAccessStatesProperty -> ShowS
$cshow :: BlockPublicAccessStatesProperty -> String
show :: BlockPublicAccessStatesProperty -> String
$cshowList :: [BlockPublicAccessStatesProperty] -> ShowS
showList :: [BlockPublicAccessStatesProperty] -> ShowS
Prelude.Show)
mkBlockPublicAccessStatesProperty ::
BlockPublicAccessStatesProperty
mkBlockPublicAccessStatesProperty :: BlockPublicAccessStatesProperty
mkBlockPublicAccessStatesProperty
= BlockPublicAccessStatesProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
internetGatewayBlockMode :: Maybe (Value Text)
internetGatewayBlockMode = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties BlockPublicAccessStatesProperty where
toResourceProperties :: BlockPublicAccessStatesProperty -> ResourceProperties
toResourceProperties BlockPublicAccessStatesProperty {Maybe (Value Text)
()
haddock_workaround_ :: BlockPublicAccessStatesProperty -> ()
internetGatewayBlockMode :: BlockPublicAccessStatesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
internetGatewayBlockMode :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::EC2::Subnet.BlockPublicAccessStates",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([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
"InternetGatewayBlockMode"
(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)
internetGatewayBlockMode])}
instance JSON.ToJSON BlockPublicAccessStatesProperty where
toJSON :: BlockPublicAccessStatesProperty -> Value
toJSON BlockPublicAccessStatesProperty {Maybe (Value Text)
()
haddock_workaround_ :: BlockPublicAccessStatesProperty -> ()
internetGatewayBlockMode :: BlockPublicAccessStatesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
internetGatewayBlockMode :: Maybe (Value Text)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([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
"InternetGatewayBlockMode"
(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)
internetGatewayBlockMode]))
instance Property "InternetGatewayBlockMode" BlockPublicAccessStatesProperty where
type PropertyType "InternetGatewayBlockMode" BlockPublicAccessStatesProperty = Value Prelude.Text
set :: PropertyType
"InternetGatewayBlockMode" BlockPublicAccessStatesProperty
-> BlockPublicAccessStatesProperty
-> BlockPublicAccessStatesProperty
set PropertyType
"InternetGatewayBlockMode" BlockPublicAccessStatesProperty
newValue BlockPublicAccessStatesProperty {Maybe (Value Text)
()
haddock_workaround_ :: BlockPublicAccessStatesProperty -> ()
internetGatewayBlockMode :: BlockPublicAccessStatesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
internetGatewayBlockMode :: Maybe (Value Text)
..}
= BlockPublicAccessStatesProperty
{internetGatewayBlockMode :: Maybe (Value Text)
internetGatewayBlockMode = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"InternetGatewayBlockMode" BlockPublicAccessStatesProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}