module Stratosphere.AppStream.Fleet.VpcConfigProperty (
VpcConfigProperty(..), mkVpcConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data VpcConfigProperty
=
VpcConfigProperty {VpcConfigProperty -> ()
haddock_workaround_ :: (),
VpcConfigProperty -> Maybe (ValueList Text)
securityGroupIds :: (Prelude.Maybe (ValueList Prelude.Text)),
VpcConfigProperty -> Maybe (ValueList Text)
subnetIds :: (Prelude.Maybe (ValueList Prelude.Text))}
deriving stock (VpcConfigProperty -> VpcConfigProperty -> Bool
(VpcConfigProperty -> VpcConfigProperty -> Bool)
-> (VpcConfigProperty -> VpcConfigProperty -> Bool)
-> Eq VpcConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: VpcConfigProperty -> VpcConfigProperty -> Bool
== :: VpcConfigProperty -> VpcConfigProperty -> Bool
$c/= :: VpcConfigProperty -> VpcConfigProperty -> Bool
/= :: VpcConfigProperty -> VpcConfigProperty -> Bool
Prelude.Eq, Int -> VpcConfigProperty -> ShowS
[VpcConfigProperty] -> ShowS
VpcConfigProperty -> String
(Int -> VpcConfigProperty -> ShowS)
-> (VpcConfigProperty -> String)
-> ([VpcConfigProperty] -> ShowS)
-> Show VpcConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> VpcConfigProperty -> ShowS
showsPrec :: Int -> VpcConfigProperty -> ShowS
$cshow :: VpcConfigProperty -> String
show :: VpcConfigProperty -> String
$cshowList :: [VpcConfigProperty] -> ShowS
showList :: [VpcConfigProperty] -> ShowS
Prelude.Show)
mkVpcConfigProperty :: VpcConfigProperty
mkVpcConfigProperty :: VpcConfigProperty
mkVpcConfigProperty
= VpcConfigProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), securityGroupIds :: Maybe (ValueList Text)
securityGroupIds = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
subnetIds :: Maybe (ValueList Text)
subnetIds = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties VpcConfigProperty where
toResourceProperties :: VpcConfigProperty -> ResourceProperties
toResourceProperties VpcConfigProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: VpcConfigProperty -> ()
securityGroupIds :: VpcConfigProperty -> Maybe (ValueList Text)
subnetIds :: VpcConfigProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
securityGroupIds :: Maybe (ValueList Text)
subnetIds :: Maybe (ValueList Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::AppStream::Fleet.VpcConfig",
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 -> 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..=) Key
"SecurityGroupIds" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
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..=) Key
"SubnetIds" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
subnetIds])}
instance JSON.ToJSON VpcConfigProperty where
toJSON :: VpcConfigProperty -> Value
toJSON VpcConfigProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: VpcConfigProperty -> ()
securityGroupIds :: VpcConfigProperty -> Maybe (ValueList Text)
subnetIds :: VpcConfigProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
securityGroupIds :: Maybe (ValueList Text)
subnetIds :: Maybe (ValueList 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 -> 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..=) Key
"SecurityGroupIds" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
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..=) Key
"SubnetIds" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
subnetIds]))
instance Property "SecurityGroupIds" VpcConfigProperty where
type PropertyType "SecurityGroupIds" VpcConfigProperty = ValueList Prelude.Text
set :: PropertyType "SecurityGroupIds" VpcConfigProperty
-> VpcConfigProperty -> VpcConfigProperty
set PropertyType "SecurityGroupIds" VpcConfigProperty
newValue VpcConfigProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: VpcConfigProperty -> ()
securityGroupIds :: VpcConfigProperty -> Maybe (ValueList Text)
subnetIds :: VpcConfigProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
securityGroupIds :: Maybe (ValueList Text)
subnetIds :: Maybe (ValueList Text)
..}
= VpcConfigProperty {securityGroupIds :: Maybe (ValueList Text)
securityGroupIds = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SecurityGroupIds" VpcConfigProperty
ValueList Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
subnetIds :: Maybe (ValueList Text)
haddock_workaround_ :: ()
subnetIds :: Maybe (ValueList Text)
..}
instance Property "SubnetIds" VpcConfigProperty where
type PropertyType "SubnetIds" VpcConfigProperty = ValueList Prelude.Text
set :: PropertyType "SubnetIds" VpcConfigProperty
-> VpcConfigProperty -> VpcConfigProperty
set PropertyType "SubnetIds" VpcConfigProperty
newValue VpcConfigProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: VpcConfigProperty -> ()
securityGroupIds :: VpcConfigProperty -> Maybe (ValueList Text)
subnetIds :: VpcConfigProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
securityGroupIds :: Maybe (ValueList Text)
subnetIds :: Maybe (ValueList Text)
..}
= VpcConfigProperty {subnetIds :: Maybe (ValueList Text)
subnetIds = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SubnetIds" VpcConfigProperty
ValueList Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
securityGroupIds :: Maybe (ValueList Text)
haddock_workaround_ :: ()
securityGroupIds :: Maybe (ValueList Text)
..}