Seleziona le tue preferenze relative ai cookie

Utilizziamo cookie essenziali e strumenti simili necessari per fornire il nostro sito e i nostri servizi. Utilizziamo i cookie prestazionali per raccogliere statistiche anonime in modo da poter capire come i clienti utilizzano il nostro sito e apportare miglioramenti. I cookie essenziali non possono essere disattivati, ma puoi fare clic su \"Personalizza\" o \"Rifiuta\" per rifiutare i cookie prestazionali.

Se sei d'accordo, AWS e le terze parti approvate utilizzeranno i cookie anche per fornire utili funzionalità del sito, ricordare le tue preferenze e visualizzare contenuti pertinenti, inclusa la pubblicità pertinente. Per continuare senza accettare questi cookie, fai clic su \"Continua\" o \"Rifiuta\". Per effettuare scelte più dettagliate o saperne di più, fai clic su \"Personalizza\".

Accessing Neptune Analytics graph from Neptune Analytics interface endpoints

Modalità Focus
Accessing Neptune Analytics graph from Neptune Analytics interface endpoints - Neptune Analytics
Questa pagina non è tradotta nella tua lingua. Richiedi traduzione

You can use the AWS CLI or AWS SDKs to access Neptune Analytics graph API operations through Neptune Analytics interface endpoints.

To access Neptune Analytics API operations through Neptune Analytics interface endpoints in AWS CLI commands, use the --region parameter.

Example: Create a VPC endpoint

aws ec2 create-vpc-endpoint \ --region us-east-1 \ --service-name neptune-graph-service-name (for control APIs)/ neptune-graph-data-service-name (for data APIs) \ --vpc-id client-vpc-id \ --subnet-ids client-subnet-id \ --vpc-endpoint-type Interface \ --security-group-ids client-sg-id

Example: Modify a VPC endpoint

Neptune Analytics VPC endpoint service uses private hosted zone to route requests to your Neptune Analytics graph. Ensure that you have enabled private dns on your VPC interface endpoint.

aws ec2 modify-vpc-endpoint \ --region us-east-1 \ --vpc-endpoint-id client-vpc-endpoint-id \ --private-dns-enabled
Note

Ensure that the private dns is always enabled on your VPC interface endpoint otherwise you might see errors in routing requests to your Neptune Analytics graph.

Example: List graphs using the region parameter

aws neptune-graph list-graphs --region us-east-1

Example: Execute a query using the region parameter

aws neptune-graph execute-query \ --graph-identifier g-0123456789 \ --region us-east-1 \ --query-string "MATCH (n) RETURN n LIMIT 1" \ --language open_cypher \ out.txt

To access Neptune Analytics API operations through Neptune Analytics interface endpoints when using the AWS SDKs, update your SDKs to the latest version. Then, configure your clients to use the AWS region for accessing a Neptune Analytics API operation through Neptune Analytics interface endpoints.

SDK for Python (Boto3)

In this example, you will use an endpoint URL to access a Neptune Analytics graph.

neptune_graph_client = session.client( service_name='neptune-graph', region_name='us-east-1' )

SDK for Java 2.x

In this example, you will use an endpoint URL to access a Neptune Analytics graph.

//client build with endpoint config final NeptuneGraphClient NeptuneGraphClient.builder() .region(software.amazon.awssdk.regions.Region.US_EAST_1) .credentialsProvider(credentialsProvider) .build();

In questa pagina

PrivacyCondizioni del sitoPreferenze cookie
© 2025, Amazon Web Services, Inc. o società affiliate. Tutti i diritti riservati.