Skip to main content

private_graph_endpoints

Creates, updates, deletes, gets or lists a private_graph_endpoints resource.

Overview

Nameprivate_graph_endpoints
TypeResource
Idaws.neptune_graph.private_graph_endpoints

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
statusstringThe current status of the private endpoint. (CREATING, AVAILABLE, DELETING, FAILED)
subnet_idsarrayThe subnet IDs involved.
vpc_endpoint_idstringThe ID of the private endpoint. (pattern: <code>vpce-[0-9a-f]{17}</code>)
vpc_idstringThe ID of the VPC where the private endpoint is located. (pattern: <code>vpc-[a-z0-9]+</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_private_graph_endpointselectgraph_identifier, vpc_id, regionRetrieves information about a specified private endpoint.
list_private_graph_endpointsselectgraph_identifier, regionnextToken, maxResultsLists private endpoints for a specified Neptune Analytics graph.
create_private_graph_endpointinsertgraph_identifier, regionCreate a private graph endpoint to allow private access to the graph from within a VPC. You can attach security groups to the private graph endpoint. VPC endpoint charges apply.
delete_private_graph_endpointdeletegraph_identifier, vpc_id, regionDeletes a private graph endpoint.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
graph_identifierstringThe unique identifier of the Neptune Analytics graph.
regionstringAWS region (default: us-east-1)
vpc_idstringThe ID of the VPC where the private endpoint is located.
maxResultsintegerThe total number of records to return in the command's output. If the total number of records available is more than the value specified, nextToken is provided in the command's output. To resume pagination, provide the nextToken output value in the nextToken argument of a subsequent command. Do not use the nextToken response element directly outside of the Amazon CLI.
nextTokenstringPagination token used to paginate output. When this value is provided as input, the service returns results from where the previous response left off. When this value is present in output, it indicates that there are more results to retrieve.

SELECT examples

Retrieves information about a specified private endpoint.

SELECT
status,
subnet_ids,
vpc_endpoint_id,
vpc_id
FROM aws.neptune_graph.private_graph_endpoints
WHERE graph_identifier = '{{ graph_identifier }}' -- required
AND vpc_id = '{{ vpc_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Create a private graph endpoint to allow private access to the graph from within a VPC. You can attach security groups to the private graph endpoint. VPC endpoint charges apply.

INSERT INTO aws.neptune_graph.private_graph_endpoints (
vpcId,
subnetIds,
vpcSecurityGroupIds,
graph_identifier,
region
)
SELECT
'{{ vpcId }}',
'{{ subnetIds }}',
'{{ vpcSecurityGroupIds }}',
'{{ graph_identifier }}',
'{{ region }}'
RETURNING
status,
subnet_ids,
vpc_endpoint_id,
vpc_id
;

DELETE examples

Deletes a private graph endpoint.

DELETE FROM aws.neptune_graph.private_graph_endpoints
WHERE graph_identifier = '{{ graph_identifier }}' --required
AND vpc_id = '{{ vpc_id }}' --required
AND region = '{{ region }}' --required
;