module Stratosphere.EVS.Environment.ServiceAccessSecurityGroupsProperty (
ServiceAccessSecurityGroupsProperty(..),
mkServiceAccessSecurityGroupsProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ServiceAccessSecurityGroupsProperty
=
ServiceAccessSecurityGroupsProperty {ServiceAccessSecurityGroupsProperty -> ()
haddock_workaround_ :: (),
ServiceAccessSecurityGroupsProperty -> Maybe (ValueList Text)
securityGroups :: (Prelude.Maybe (ValueList Prelude.Text))}
deriving stock (ServiceAccessSecurityGroupsProperty
-> ServiceAccessSecurityGroupsProperty -> Bool
(ServiceAccessSecurityGroupsProperty
-> ServiceAccessSecurityGroupsProperty -> Bool)
-> (ServiceAccessSecurityGroupsProperty
-> ServiceAccessSecurityGroupsProperty -> Bool)
-> Eq ServiceAccessSecurityGroupsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ServiceAccessSecurityGroupsProperty
-> ServiceAccessSecurityGroupsProperty -> Bool
== :: ServiceAccessSecurityGroupsProperty
-> ServiceAccessSecurityGroupsProperty -> Bool
$c/= :: ServiceAccessSecurityGroupsProperty
-> ServiceAccessSecurityGroupsProperty -> Bool
/= :: ServiceAccessSecurityGroupsProperty
-> ServiceAccessSecurityGroupsProperty -> Bool
Prelude.Eq, Int -> ServiceAccessSecurityGroupsProperty -> ShowS
[ServiceAccessSecurityGroupsProperty] -> ShowS
ServiceAccessSecurityGroupsProperty -> String
(Int -> ServiceAccessSecurityGroupsProperty -> ShowS)
-> (ServiceAccessSecurityGroupsProperty -> String)
-> ([ServiceAccessSecurityGroupsProperty] -> ShowS)
-> Show ServiceAccessSecurityGroupsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ServiceAccessSecurityGroupsProperty -> ShowS
showsPrec :: Int -> ServiceAccessSecurityGroupsProperty -> ShowS
$cshow :: ServiceAccessSecurityGroupsProperty -> String
show :: ServiceAccessSecurityGroupsProperty -> String
$cshowList :: [ServiceAccessSecurityGroupsProperty] -> ShowS
showList :: [ServiceAccessSecurityGroupsProperty] -> ShowS
Prelude.Show)
mkServiceAccessSecurityGroupsProperty ::
ServiceAccessSecurityGroupsProperty
mkServiceAccessSecurityGroupsProperty :: ServiceAccessSecurityGroupsProperty
mkServiceAccessSecurityGroupsProperty
= ServiceAccessSecurityGroupsProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), securityGroups :: Maybe (ValueList Text)
securityGroups = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ServiceAccessSecurityGroupsProperty where
toResourceProperties :: ServiceAccessSecurityGroupsProperty -> ResourceProperties
toResourceProperties ServiceAccessSecurityGroupsProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: ServiceAccessSecurityGroupsProperty -> ()
securityGroups :: ServiceAccessSecurityGroupsProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
securityGroups :: Maybe (ValueList Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::EVS::Environment.ServiceAccessSecurityGroups",
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
"SecurityGroups" (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)
securityGroups])}
instance JSON.ToJSON ServiceAccessSecurityGroupsProperty where
toJSON :: ServiceAccessSecurityGroupsProperty -> Value
toJSON ServiceAccessSecurityGroupsProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: ServiceAccessSecurityGroupsProperty -> ()
securityGroups :: ServiceAccessSecurityGroupsProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
securityGroups :: 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
"SecurityGroups" (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)
securityGroups]))
instance Property "SecurityGroups" ServiceAccessSecurityGroupsProperty where
type PropertyType "SecurityGroups" ServiceAccessSecurityGroupsProperty = ValueList Prelude.Text
set :: PropertyType "SecurityGroups" ServiceAccessSecurityGroupsProperty
-> ServiceAccessSecurityGroupsProperty
-> ServiceAccessSecurityGroupsProperty
set PropertyType "SecurityGroups" ServiceAccessSecurityGroupsProperty
newValue ServiceAccessSecurityGroupsProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: ServiceAccessSecurityGroupsProperty -> ()
securityGroups :: ServiceAccessSecurityGroupsProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
securityGroups :: Maybe (ValueList Text)
..}
= ServiceAccessSecurityGroupsProperty
{securityGroups :: Maybe (ValueList Text)
securityGroups = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SecurityGroups" ServiceAccessSecurityGroupsProperty
ValueList Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}