AWS neptune documentation change
Summary
Added examples for using AWS CLI, SDK, awscurl, and curl to cancel a Neptune bulk loader job.
Security assessment
The change adds examples for canceling a loader job using various client tools. This is a routine documentation update to improve usability and consistency with other API documentation. There is no evidence of security issues, vulnerabilities, or new security features being documented.
Diff
diff --git a/neptune/latest/userguide/load-api-reference-cancel.md b/neptune/latest/userguide/load-api-reference-cancel.md index 9aeab36ed..bc93987ec 100644 --- a//neptune/latest/userguide/load-api-reference-cancel.md +++ b//neptune/latest/userguide/load-api-reference-cancel.md @@ -65,0 +66,45 @@ The following is a request sent via HTTP `DELETE` using the `curl` command. +AWS CLI + + + + aws neptunedata cancel-loader-job \ + --endpoint-url https://your-neptune-endpoint:port \ + --load-id 0a237328-afd5-4574-a0bc-c29ce5f54802 + +For more information, see [cancel-loader-job](https://docs.aws.amazon.com/cli/latest/reference/neptunedata/cancel-loader-job.html) in the AWS CLI Command Reference. + +SDK + + + + import boto3 + from botocore.config import Config + + client = boto3.client( + 'neptunedata', + endpoint_url='https://your-neptune-endpoint:port', + config=Config(read_timeout=None, retries={'total_max_attempts': 1}) + ) + + response = client.cancel_loader_job( + loadId='0a237328-afd5-4574-a0bc-c29ce5f54802' + ) + + print(response) + +awscurl + + + + awscurl 'https://your-neptune-endpoint:port/loader/0a237328-afd5-4574-a0bc-c29ce5f54802' \ + --region us-east-1 \ + --service neptune-db \ + -X DELETE + +###### Note + +This example assumes that your AWS credentials are configured in your environment. Replace `us-east-1` with the Region of your Neptune cluster. + +curl + +