module Stratosphere.WorkSpacesWeb.NetworkSettings (
NetworkSettings(..), mkNetworkSettings
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data NetworkSettings
=
NetworkSettings {NetworkSettings -> ()
haddock_workaround_ :: (),
NetworkSettings -> ValueList Text
securityGroupIds :: (ValueList Prelude.Text),
NetworkSettings -> ValueList Text
subnetIds :: (ValueList Prelude.Text),
NetworkSettings -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag]),
NetworkSettings -> Value Text
vpcId :: (Value Prelude.Text)}
deriving stock (NetworkSettings -> NetworkSettings -> Bool
(NetworkSettings -> NetworkSettings -> Bool)
-> (NetworkSettings -> NetworkSettings -> Bool)
-> Eq NetworkSettings
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: NetworkSettings -> NetworkSettings -> Bool
== :: NetworkSettings -> NetworkSettings -> Bool
$c/= :: NetworkSettings -> NetworkSettings -> Bool
/= :: NetworkSettings -> NetworkSettings -> Bool
Prelude.Eq, Int -> NetworkSettings -> ShowS
[NetworkSettings] -> ShowS
NetworkSettings -> String
(Int -> NetworkSettings -> ShowS)
-> (NetworkSettings -> String)
-> ([NetworkSettings] -> ShowS)
-> Show NetworkSettings
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> NetworkSettings -> ShowS
showsPrec :: Int -> NetworkSettings -> ShowS
$cshow :: NetworkSettings -> String
show :: NetworkSettings -> String
$cshowList :: [NetworkSettings] -> ShowS
showList :: [NetworkSettings] -> ShowS
Prelude.Show)
mkNetworkSettings ::
ValueList Prelude.Text
-> ValueList Prelude.Text -> Value Prelude.Text -> NetworkSettings
mkNetworkSettings :: ValueList Text -> ValueList Text -> Value Text -> NetworkSettings
mkNetworkSettings ValueList Text
securityGroupIds ValueList Text
subnetIds Value Text
vpcId
= NetworkSettings
{haddock_workaround_ :: ()
haddock_workaround_ = (), securityGroupIds :: ValueList Text
securityGroupIds = ValueList Text
securityGroupIds,
subnetIds :: ValueList Text
subnetIds = ValueList Text
subnetIds, vpcId :: Value Text
vpcId = Value Text
vpcId, tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties NetworkSettings where
toResourceProperties :: NetworkSettings -> ResourceProperties
toResourceProperties NetworkSettings {Maybe [Tag]
()
ValueList Text
Value Text
haddock_workaround_ :: NetworkSettings -> ()
securityGroupIds :: NetworkSettings -> ValueList Text
subnetIds :: NetworkSettings -> ValueList Text
tags :: NetworkSettings -> Maybe [Tag]
vpcId :: NetworkSettings -> Value Text
haddock_workaround_ :: ()
securityGroupIds :: ValueList Text
subnetIds :: ValueList Text
tags :: Maybe [Tag]
vpcId :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::WorkSpacesWeb::NetworkSettings",
supportsTags :: Bool
supportsTags = Bool
Prelude.True,
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
"SecurityGroupIds" Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ValueList Text
securityGroupIds,
Key
"SubnetIds" Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ValueList Text
subnetIds, Key
"VpcId" 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
vpcId]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags]))}
instance JSON.ToJSON NetworkSettings where
toJSON :: NetworkSettings -> Value
toJSON NetworkSettings {Maybe [Tag]
()
ValueList Text
Value Text
haddock_workaround_ :: NetworkSettings -> ()
securityGroupIds :: NetworkSettings -> ValueList Text
subnetIds :: NetworkSettings -> ValueList Text
tags :: NetworkSettings -> Maybe [Tag]
vpcId :: NetworkSettings -> Value Text
haddock_workaround_ :: ()
securityGroupIds :: ValueList Text
subnetIds :: ValueList Text
tags :: Maybe [Tag]
vpcId :: Value Text
..}
= [(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
"SecurityGroupIds" Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ValueList Text
securityGroupIds,
Key
"SubnetIds" Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ValueList Text
subnetIds, Key
"VpcId" 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
vpcId]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags])))
instance Property "SecurityGroupIds" NetworkSettings where
type PropertyType "SecurityGroupIds" NetworkSettings = ValueList Prelude.Text
set :: PropertyType "SecurityGroupIds" NetworkSettings
-> NetworkSettings -> NetworkSettings
set PropertyType "SecurityGroupIds" NetworkSettings
newValue NetworkSettings {Maybe [Tag]
()
ValueList Text
Value Text
haddock_workaround_ :: NetworkSettings -> ()
securityGroupIds :: NetworkSettings -> ValueList Text
subnetIds :: NetworkSettings -> ValueList Text
tags :: NetworkSettings -> Maybe [Tag]
vpcId :: NetworkSettings -> Value Text
haddock_workaround_ :: ()
securityGroupIds :: ValueList Text
subnetIds :: ValueList Text
tags :: Maybe [Tag]
vpcId :: Value Text
..}
= NetworkSettings {securityGroupIds :: ValueList Text
securityGroupIds = PropertyType "SecurityGroupIds" NetworkSettings
ValueList Text
newValue, Maybe [Tag]
()
ValueList Text
Value Text
haddock_workaround_ :: ()
subnetIds :: ValueList Text
tags :: Maybe [Tag]
vpcId :: Value Text
haddock_workaround_ :: ()
subnetIds :: ValueList Text
tags :: Maybe [Tag]
vpcId :: Value Text
..}
instance Property "SubnetIds" NetworkSettings where
type PropertyType "SubnetIds" NetworkSettings = ValueList Prelude.Text
set :: PropertyType "SubnetIds" NetworkSettings
-> NetworkSettings -> NetworkSettings
set PropertyType "SubnetIds" NetworkSettings
newValue NetworkSettings {Maybe [Tag]
()
ValueList Text
Value Text
haddock_workaround_ :: NetworkSettings -> ()
securityGroupIds :: NetworkSettings -> ValueList Text
subnetIds :: NetworkSettings -> ValueList Text
tags :: NetworkSettings -> Maybe [Tag]
vpcId :: NetworkSettings -> Value Text
haddock_workaround_ :: ()
securityGroupIds :: ValueList Text
subnetIds :: ValueList Text
tags :: Maybe [Tag]
vpcId :: Value Text
..}
= NetworkSettings {subnetIds :: ValueList Text
subnetIds = PropertyType "SubnetIds" NetworkSettings
ValueList Text
newValue, Maybe [Tag]
()
ValueList Text
Value Text
haddock_workaround_ :: ()
securityGroupIds :: ValueList Text
tags :: Maybe [Tag]
vpcId :: Value Text
haddock_workaround_ :: ()
securityGroupIds :: ValueList Text
tags :: Maybe [Tag]
vpcId :: Value Text
..}
instance Property "Tags" NetworkSettings where
type PropertyType "Tags" NetworkSettings = [Tag]
set :: PropertyType "Tags" NetworkSettings
-> NetworkSettings -> NetworkSettings
set PropertyType "Tags" NetworkSettings
newValue NetworkSettings {Maybe [Tag]
()
ValueList Text
Value Text
haddock_workaround_ :: NetworkSettings -> ()
securityGroupIds :: NetworkSettings -> ValueList Text
subnetIds :: NetworkSettings -> ValueList Text
tags :: NetworkSettings -> Maybe [Tag]
vpcId :: NetworkSettings -> Value Text
haddock_workaround_ :: ()
securityGroupIds :: ValueList Text
subnetIds :: ValueList Text
tags :: Maybe [Tag]
vpcId :: Value Text
..}
= NetworkSettings {tags :: Maybe [Tag]
tags = [Tag] -> Maybe [Tag]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [Tag]
PropertyType "Tags" NetworkSettings
newValue, ()
ValueList Text
Value Text
haddock_workaround_ :: ()
securityGroupIds :: ValueList Text
subnetIds :: ValueList Text
vpcId :: Value Text
haddock_workaround_ :: ()
securityGroupIds :: ValueList Text
subnetIds :: ValueList Text
vpcId :: Value Text
..}
instance Property "VpcId" NetworkSettings where
type PropertyType "VpcId" NetworkSettings = Value Prelude.Text
set :: PropertyType "VpcId" NetworkSettings
-> NetworkSettings -> NetworkSettings
set PropertyType "VpcId" NetworkSettings
newValue NetworkSettings {Maybe [Tag]
()
ValueList Text
Value Text
haddock_workaround_ :: NetworkSettings -> ()
securityGroupIds :: NetworkSettings -> ValueList Text
subnetIds :: NetworkSettings -> ValueList Text
tags :: NetworkSettings -> Maybe [Tag]
vpcId :: NetworkSettings -> Value Text
haddock_workaround_ :: ()
securityGroupIds :: ValueList Text
subnetIds :: ValueList Text
tags :: Maybe [Tag]
vpcId :: Value Text
..}
= NetworkSettings {vpcId :: Value Text
vpcId = PropertyType "VpcId" NetworkSettings
Value Text
newValue, Maybe [Tag]
()
ValueList Text
haddock_workaround_ :: ()
securityGroupIds :: ValueList Text
subnetIds :: ValueList Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
securityGroupIds :: ValueList Text
subnetIds :: ValueList Text
tags :: Maybe [Tag]
..}