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