module Stratosphere.NeptuneGraph.PrivateGraphEndpoint (
        PrivateGraphEndpoint(..), mkPrivateGraphEndpoint
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data PrivateGraphEndpoint
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptunegraph-privategraphendpoint.html>
    PrivateGraphEndpoint {PrivateGraphEndpoint -> ()
haddock_workaround_ :: (),
                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptunegraph-privategraphendpoint.html#cfn-neptunegraph-privategraphendpoint-graphidentifier>
                          PrivateGraphEndpoint -> Value Text
graphIdentifier :: (Value Prelude.Text),
                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptunegraph-privategraphendpoint.html#cfn-neptunegraph-privategraphendpoint-securitygroupids>
                          PrivateGraphEndpoint -> Maybe (ValueList Text)
securityGroupIds :: (Prelude.Maybe (ValueList Prelude.Text)),
                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptunegraph-privategraphendpoint.html#cfn-neptunegraph-privategraphendpoint-subnetids>
                          PrivateGraphEndpoint -> Maybe (ValueList Text)
subnetIds :: (Prelude.Maybe (ValueList Prelude.Text)),
                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-neptunegraph-privategraphendpoint.html#cfn-neptunegraph-privategraphendpoint-vpcid>
                          PrivateGraphEndpoint -> Value Text
vpcId :: (Value Prelude.Text)}
  deriving stock (PrivateGraphEndpoint -> PrivateGraphEndpoint -> Bool
(PrivateGraphEndpoint -> PrivateGraphEndpoint -> Bool)
-> (PrivateGraphEndpoint -> PrivateGraphEndpoint -> Bool)
-> Eq PrivateGraphEndpoint
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: PrivateGraphEndpoint -> PrivateGraphEndpoint -> Bool
== :: PrivateGraphEndpoint -> PrivateGraphEndpoint -> Bool
$c/= :: PrivateGraphEndpoint -> PrivateGraphEndpoint -> Bool
/= :: PrivateGraphEndpoint -> PrivateGraphEndpoint -> Bool
Prelude.Eq, Int -> PrivateGraphEndpoint -> ShowS
[PrivateGraphEndpoint] -> ShowS
PrivateGraphEndpoint -> String
(Int -> PrivateGraphEndpoint -> ShowS)
-> (PrivateGraphEndpoint -> String)
-> ([PrivateGraphEndpoint] -> ShowS)
-> Show PrivateGraphEndpoint
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> PrivateGraphEndpoint -> ShowS
showsPrec :: Int -> PrivateGraphEndpoint -> ShowS
$cshow :: PrivateGraphEndpoint -> String
show :: PrivateGraphEndpoint -> String
$cshowList :: [PrivateGraphEndpoint] -> ShowS
showList :: [PrivateGraphEndpoint] -> ShowS
Prelude.Show)
mkPrivateGraphEndpoint ::
  Value Prelude.Text -> Value Prelude.Text -> PrivateGraphEndpoint
mkPrivateGraphEndpoint :: Value Text -> Value Text -> PrivateGraphEndpoint
mkPrivateGraphEndpoint Value Text
graphIdentifier Value Text
vpcId
  = PrivateGraphEndpoint
      {haddock_workaround_ :: ()
haddock_workaround_ = (), graphIdentifier :: Value Text
graphIdentifier = Value Text
graphIdentifier,
       vpcId :: Value Text
vpcId = Value Text
vpcId, 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 PrivateGraphEndpoint where
  toResourceProperties :: PrivateGraphEndpoint -> ResourceProperties
toResourceProperties PrivateGraphEndpoint {Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: PrivateGraphEndpoint -> ()
graphIdentifier :: PrivateGraphEndpoint -> Value Text
securityGroupIds :: PrivateGraphEndpoint -> Maybe (ValueList Text)
subnetIds :: PrivateGraphEndpoint -> Maybe (ValueList Text)
vpcId :: PrivateGraphEndpoint -> Value Text
haddock_workaround_ :: ()
graphIdentifier :: Value Text
securityGroupIds :: Maybe (ValueList Text)
subnetIds :: Maybe (ValueList Text)
vpcId :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::NeptuneGraph::PrivateGraphEndpoint",
         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
"GraphIdentifier" 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
graphIdentifier, 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 -> 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 PrivateGraphEndpoint where
  toJSON :: PrivateGraphEndpoint -> Value
toJSON PrivateGraphEndpoint {Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: PrivateGraphEndpoint -> ()
graphIdentifier :: PrivateGraphEndpoint -> Value Text
securityGroupIds :: PrivateGraphEndpoint -> Maybe (ValueList Text)
subnetIds :: PrivateGraphEndpoint -> Maybe (ValueList Text)
vpcId :: PrivateGraphEndpoint -> Value Text
haddock_workaround_ :: ()
graphIdentifier :: Value Text
securityGroupIds :: Maybe (ValueList Text)
subnetIds :: Maybe (ValueList Text)
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
"GraphIdentifier" 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
graphIdentifier, 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 -> 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 "GraphIdentifier" PrivateGraphEndpoint where
  type PropertyType "GraphIdentifier" PrivateGraphEndpoint = Value Prelude.Text
  set :: PropertyType "GraphIdentifier" PrivateGraphEndpoint
-> PrivateGraphEndpoint -> PrivateGraphEndpoint
set PropertyType "GraphIdentifier" PrivateGraphEndpoint
newValue PrivateGraphEndpoint {Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: PrivateGraphEndpoint -> ()
graphIdentifier :: PrivateGraphEndpoint -> Value Text
securityGroupIds :: PrivateGraphEndpoint -> Maybe (ValueList Text)
subnetIds :: PrivateGraphEndpoint -> Maybe (ValueList Text)
vpcId :: PrivateGraphEndpoint -> Value Text
haddock_workaround_ :: ()
graphIdentifier :: Value Text
securityGroupIds :: Maybe (ValueList Text)
subnetIds :: Maybe (ValueList Text)
vpcId :: Value Text
..}
    = PrivateGraphEndpoint {graphIdentifier :: Value Text
graphIdentifier = PropertyType "GraphIdentifier" PrivateGraphEndpoint
Value Text
newValue, Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: ()
securityGroupIds :: Maybe (ValueList Text)
subnetIds :: Maybe (ValueList Text)
vpcId :: Value Text
haddock_workaround_ :: ()
securityGroupIds :: Maybe (ValueList Text)
subnetIds :: Maybe (ValueList Text)
vpcId :: Value Text
..}
instance Property "SecurityGroupIds" PrivateGraphEndpoint where
  type PropertyType "SecurityGroupIds" PrivateGraphEndpoint = ValueList Prelude.Text
  set :: PropertyType "SecurityGroupIds" PrivateGraphEndpoint
-> PrivateGraphEndpoint -> PrivateGraphEndpoint
set PropertyType "SecurityGroupIds" PrivateGraphEndpoint
newValue PrivateGraphEndpoint {Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: PrivateGraphEndpoint -> ()
graphIdentifier :: PrivateGraphEndpoint -> Value Text
securityGroupIds :: PrivateGraphEndpoint -> Maybe (ValueList Text)
subnetIds :: PrivateGraphEndpoint -> Maybe (ValueList Text)
vpcId :: PrivateGraphEndpoint -> Value Text
haddock_workaround_ :: ()
graphIdentifier :: Value Text
securityGroupIds :: Maybe (ValueList Text)
subnetIds :: Maybe (ValueList Text)
vpcId :: Value Text
..}
    = PrivateGraphEndpoint
        {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" PrivateGraphEndpoint
ValueList Text
newValue, Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: ()
graphIdentifier :: Value Text
subnetIds :: Maybe (ValueList Text)
vpcId :: Value Text
haddock_workaround_ :: ()
graphIdentifier :: Value Text
subnetIds :: Maybe (ValueList Text)
vpcId :: Value Text
..}
instance Property "SubnetIds" PrivateGraphEndpoint where
  type PropertyType "SubnetIds" PrivateGraphEndpoint = ValueList Prelude.Text
  set :: PropertyType "SubnetIds" PrivateGraphEndpoint
-> PrivateGraphEndpoint -> PrivateGraphEndpoint
set PropertyType "SubnetIds" PrivateGraphEndpoint
newValue PrivateGraphEndpoint {Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: PrivateGraphEndpoint -> ()
graphIdentifier :: PrivateGraphEndpoint -> Value Text
securityGroupIds :: PrivateGraphEndpoint -> Maybe (ValueList Text)
subnetIds :: PrivateGraphEndpoint -> Maybe (ValueList Text)
vpcId :: PrivateGraphEndpoint -> Value Text
haddock_workaround_ :: ()
graphIdentifier :: Value Text
securityGroupIds :: Maybe (ValueList Text)
subnetIds :: Maybe (ValueList Text)
vpcId :: Value Text
..}
    = PrivateGraphEndpoint {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" PrivateGraphEndpoint
ValueList Text
newValue, Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: ()
graphIdentifier :: Value Text
securityGroupIds :: Maybe (ValueList Text)
vpcId :: Value Text
haddock_workaround_ :: ()
graphIdentifier :: Value Text
securityGroupIds :: Maybe (ValueList Text)
vpcId :: Value Text
..}
instance Property "VpcId" PrivateGraphEndpoint where
  type PropertyType "VpcId" PrivateGraphEndpoint = Value Prelude.Text
  set :: PropertyType "VpcId" PrivateGraphEndpoint
-> PrivateGraphEndpoint -> PrivateGraphEndpoint
set PropertyType "VpcId" PrivateGraphEndpoint
newValue PrivateGraphEndpoint {Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: PrivateGraphEndpoint -> ()
graphIdentifier :: PrivateGraphEndpoint -> Value Text
securityGroupIds :: PrivateGraphEndpoint -> Maybe (ValueList Text)
subnetIds :: PrivateGraphEndpoint -> Maybe (ValueList Text)
vpcId :: PrivateGraphEndpoint -> Value Text
haddock_workaround_ :: ()
graphIdentifier :: Value Text
securityGroupIds :: Maybe (ValueList Text)
subnetIds :: Maybe (ValueList Text)
vpcId :: Value Text
..}
    = PrivateGraphEndpoint {vpcId :: Value Text
vpcId = PropertyType "VpcId" PrivateGraphEndpoint
Value Text
newValue, Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: ()
graphIdentifier :: Value Text
securityGroupIds :: Maybe (ValueList Text)
subnetIds :: Maybe (ValueList Text)
haddock_workaround_ :: ()
graphIdentifier :: Value Text
securityGroupIds :: Maybe (ValueList Text)
subnetIds :: Maybe (ValueList Text)
..}