module Stratosphere.ElastiCache.SecurityGroupIngress (
SecurityGroupIngress(..), mkSecurityGroupIngress
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SecurityGroupIngress
=
SecurityGroupIngress {SecurityGroupIngress -> ()
haddock_workaround_ :: (),
SecurityGroupIngress -> Value Text
cacheSecurityGroupName :: (Value Prelude.Text),
SecurityGroupIngress -> Value Text
eC2SecurityGroupName :: (Value Prelude.Text),
SecurityGroupIngress -> Maybe (Value Text)
eC2SecurityGroupOwnerId :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (SecurityGroupIngress -> SecurityGroupIngress -> Bool
(SecurityGroupIngress -> SecurityGroupIngress -> Bool)
-> (SecurityGroupIngress -> SecurityGroupIngress -> Bool)
-> Eq SecurityGroupIngress
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SecurityGroupIngress -> SecurityGroupIngress -> Bool
== :: SecurityGroupIngress -> SecurityGroupIngress -> Bool
$c/= :: SecurityGroupIngress -> SecurityGroupIngress -> Bool
/= :: SecurityGroupIngress -> SecurityGroupIngress -> Bool
Prelude.Eq, Int -> SecurityGroupIngress -> ShowS
[SecurityGroupIngress] -> ShowS
SecurityGroupIngress -> String
(Int -> SecurityGroupIngress -> ShowS)
-> (SecurityGroupIngress -> String)
-> ([SecurityGroupIngress] -> ShowS)
-> Show SecurityGroupIngress
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SecurityGroupIngress -> ShowS
showsPrec :: Int -> SecurityGroupIngress -> ShowS
$cshow :: SecurityGroupIngress -> String
show :: SecurityGroupIngress -> String
$cshowList :: [SecurityGroupIngress] -> ShowS
showList :: [SecurityGroupIngress] -> ShowS
Prelude.Show)
mkSecurityGroupIngress ::
Value Prelude.Text -> Value Prelude.Text -> SecurityGroupIngress
mkSecurityGroupIngress :: Value Text -> Value Text -> SecurityGroupIngress
mkSecurityGroupIngress Value Text
cacheSecurityGroupName Value Text
eC2SecurityGroupName
= SecurityGroupIngress
{haddock_workaround_ :: ()
haddock_workaround_ = (),
cacheSecurityGroupName :: Value Text
cacheSecurityGroupName = Value Text
cacheSecurityGroupName,
eC2SecurityGroupName :: Value Text
eC2SecurityGroupName = Value Text
eC2SecurityGroupName,
eC2SecurityGroupOwnerId :: Maybe (Value Text)
eC2SecurityGroupOwnerId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SecurityGroupIngress where
toResourceProperties :: SecurityGroupIngress -> ResourceProperties
toResourceProperties SecurityGroupIngress {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: SecurityGroupIngress -> ()
cacheSecurityGroupName :: SecurityGroupIngress -> Value Text
eC2SecurityGroupName :: SecurityGroupIngress -> Value Text
eC2SecurityGroupOwnerId :: SecurityGroupIngress -> Maybe (Value Text)
haddock_workaround_ :: ()
cacheSecurityGroupName :: Value Text
eC2SecurityGroupName :: Value Text
eC2SecurityGroupOwnerId :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::ElastiCache::SecurityGroupIngress",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
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
"CacheSecurityGroupName" 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
cacheSecurityGroupName,
Key
"EC2SecurityGroupName" 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
eC2SecurityGroupName]
([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
"EC2SecurityGroupOwnerId"
(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)
eC2SecurityGroupOwnerId]))}
instance JSON.ToJSON SecurityGroupIngress where
toJSON :: SecurityGroupIngress -> Value
toJSON SecurityGroupIngress {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: SecurityGroupIngress -> ()
cacheSecurityGroupName :: SecurityGroupIngress -> Value Text
eC2SecurityGroupName :: SecurityGroupIngress -> Value Text
eC2SecurityGroupOwnerId :: SecurityGroupIngress -> Maybe (Value Text)
haddock_workaround_ :: ()
cacheSecurityGroupName :: Value Text
eC2SecurityGroupName :: Value Text
eC2SecurityGroupOwnerId :: Maybe (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
"CacheSecurityGroupName" 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
cacheSecurityGroupName,
Key
"EC2SecurityGroupName" 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
eC2SecurityGroupName]
([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
"EC2SecurityGroupOwnerId"
(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)
eC2SecurityGroupOwnerId])))
instance Property "CacheSecurityGroupName" SecurityGroupIngress where
type PropertyType "CacheSecurityGroupName" SecurityGroupIngress = Value Prelude.Text
set :: PropertyType "CacheSecurityGroupName" SecurityGroupIngress
-> SecurityGroupIngress -> SecurityGroupIngress
set PropertyType "CacheSecurityGroupName" SecurityGroupIngress
newValue SecurityGroupIngress {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: SecurityGroupIngress -> ()
cacheSecurityGroupName :: SecurityGroupIngress -> Value Text
eC2SecurityGroupName :: SecurityGroupIngress -> Value Text
eC2SecurityGroupOwnerId :: SecurityGroupIngress -> Maybe (Value Text)
haddock_workaround_ :: ()
cacheSecurityGroupName :: Value Text
eC2SecurityGroupName :: Value Text
eC2SecurityGroupOwnerId :: Maybe (Value Text)
..}
= SecurityGroupIngress {cacheSecurityGroupName :: Value Text
cacheSecurityGroupName = PropertyType "CacheSecurityGroupName" SecurityGroupIngress
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
eC2SecurityGroupName :: Value Text
eC2SecurityGroupOwnerId :: Maybe (Value Text)
haddock_workaround_ :: ()
eC2SecurityGroupName :: Value Text
eC2SecurityGroupOwnerId :: Maybe (Value Text)
..}
instance Property "EC2SecurityGroupName" SecurityGroupIngress where
type PropertyType "EC2SecurityGroupName" SecurityGroupIngress = Value Prelude.Text
set :: PropertyType "EC2SecurityGroupName" SecurityGroupIngress
-> SecurityGroupIngress -> SecurityGroupIngress
set PropertyType "EC2SecurityGroupName" SecurityGroupIngress
newValue SecurityGroupIngress {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: SecurityGroupIngress -> ()
cacheSecurityGroupName :: SecurityGroupIngress -> Value Text
eC2SecurityGroupName :: SecurityGroupIngress -> Value Text
eC2SecurityGroupOwnerId :: SecurityGroupIngress -> Maybe (Value Text)
haddock_workaround_ :: ()
cacheSecurityGroupName :: Value Text
eC2SecurityGroupName :: Value Text
eC2SecurityGroupOwnerId :: Maybe (Value Text)
..}
= SecurityGroupIngress {eC2SecurityGroupName :: Value Text
eC2SecurityGroupName = PropertyType "EC2SecurityGroupName" SecurityGroupIngress
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
cacheSecurityGroupName :: Value Text
eC2SecurityGroupOwnerId :: Maybe (Value Text)
haddock_workaround_ :: ()
cacheSecurityGroupName :: Value Text
eC2SecurityGroupOwnerId :: Maybe (Value Text)
..}
instance Property "EC2SecurityGroupOwnerId" SecurityGroupIngress where
type PropertyType "EC2SecurityGroupOwnerId" SecurityGroupIngress = Value Prelude.Text
set :: PropertyType "EC2SecurityGroupOwnerId" SecurityGroupIngress
-> SecurityGroupIngress -> SecurityGroupIngress
set PropertyType "EC2SecurityGroupOwnerId" SecurityGroupIngress
newValue SecurityGroupIngress {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: SecurityGroupIngress -> ()
cacheSecurityGroupName :: SecurityGroupIngress -> Value Text
eC2SecurityGroupName :: SecurityGroupIngress -> Value Text
eC2SecurityGroupOwnerId :: SecurityGroupIngress -> Maybe (Value Text)
haddock_workaround_ :: ()
cacheSecurityGroupName :: Value Text
eC2SecurityGroupName :: Value Text
eC2SecurityGroupOwnerId :: Maybe (Value Text)
..}
= SecurityGroupIngress
{eC2SecurityGroupOwnerId :: Maybe (Value Text)
eC2SecurityGroupOwnerId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "EC2SecurityGroupOwnerId" SecurityGroupIngress
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
cacheSecurityGroupName :: Value Text
eC2SecurityGroupName :: Value Text
haddock_workaround_ :: ()
cacheSecurityGroupName :: Value Text
eC2SecurityGroupName :: Value Text
..}