@cdklabs/generative-ai-cdk-constructs
@cdklabs/generative-ai-cdk-constructs / neptune / INeptuneGraph
Interface representing a Neptune Graph database.
IResource
readonly
env:ResourceEnvironment
The environment this resource belongs to. For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
IResource.env
readonly
graphArn:string
The Neptune Graph ARN.
'arn:aws:neptune-graph:us-east-1:111122223333:graph/g-12a3bcdef4'
readonly
graphEndpoint:string
The Neptune Graph endpoint.
'g-12a3bcdef4.us-east-1.neptune-graph.amazonaws.com'
readonly
graphId:string
The Neptune Graph Identifier.
'g-12a3bcdef4'
readonly
node:Node
The tree node.
IResource.node
readonly
stack:Stack
The stack in which this resource is defined.
IResource.stack
applyRemovalPolicy(
policy
):void
Apply the given removal policy to this resource
The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you’ve removed it from the CDK application or because you’ve made a change that requires the resource to be replaced.
The resource can be deleted (RemovalPolicy.DESTROY
), or left in your AWS
account for data recovery and cleanup later (RemovalPolicy.RETAIN
).
RemovalPolicy
void
IResource.applyRemovalPolicy
createNotebook(
params?
):NeptuneGraphNotebook
Creates a Neptune Graph Notebook for the graph. Defaults to a ml.t3.medium instance type. Note: Creating a notebook will incur additional AWS costs for the notebook instance.
grant(
grantee
,actions
):Grant
Grant the given principal identity permissions to perform actions on this agent alias.
IGrantable
string
[]
Grant
grantExportTask(
grantee
):Grant
Grant the given identity the permissions to export the graph into columnar structured .csv and .parquet files.
IGrantable
Grant
grantFullAccess(
grantee
):Grant
Grant the given identity full access to the Graph.
IGrantable
Grant
grantQuery(
grantee
):Grant
Grant the given identity the permissions to query the Graph.
IGrantable
Grant
grantReadOnly(
grantee
):Grant
Grant the given identity the permissions to read the Graph.
IGrantable
Grant
metric(
metricName
,props?
):Metric
Return the given named metric for this guardrail.
string
MetricOptions
Metric
metricCPUUtilization(
props?
):Metric
Returns metric for CPU utilization
MetricOptions
Metric
metricGraphSizeBytes(
props?
):Metric
Returns metric for graph size in bytes
MetricOptions
Metric
metricGraphStorageUsagePercent(
props?
):Metric
Returns metric for graph storage usage percentage
MetricOptions
Metric
metricNumEdgeProperties(
props?
):Metric
Returns metric for number of edge properties
MetricOptions
Metric
metricNumEdges(
props?
):Metric
Returns metric for number of edges
MetricOptions
Metric
metricNumOpenCypherClientErrorsPerSec(
props?
):Metric
Returns metric for number of OpenCypher client errors per second
MetricOptions
Metric
metricNumOpenCypherRequestsPerSec(
props?
):Metric
Returns metric for number of OpenCypher requests per second
MetricOptions
Metric
metricNumOpenCypherServerErrorsPerSec(
props?
):Metric
Returns metric for number of OpenCypher server errors per second
MetricOptions
Metric
metricNumQueuedRequestsPerSec(
props?
):Metric
Returns metric for number of queued requests per second
MetricOptions
Metric
metricNumVectors(
props?
):Metric
Returns metric for number of vectors
MetricOptions
Metric
metricNumVertexProperties(
props?
):Metric
Returns metric for number of vertex properties
MetricOptions
Metric