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