Struct aws_sdk_neptunedata::operation::execute_gremlin_query::builders::ExecuteGremlinQueryFluentBuilder
source · pub struct ExecuteGremlinQueryFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to ExecuteGremlinQuery
.
This commands executes a Gremlin query. Amazon Neptune is compatible with Apache TinkerPop3 and Gremlin, so you can use the Gremlin traversal language to query the graph, as described under The Graph in the Apache TinkerPop3 documentation. More details can also be found in Accessing a Neptune graph with Gremlin.
When invoking this operation in a Neptune cluster that has IAM authentication enabled, the IAM user or role making the request must have a policy attached that enables one of the following IAM actions in that cluster, depending on the query:
Note that the neptune-db:QueryLanguage:Gremlin IAM condition key can be used in the policy document to restrict the use of Gremlin queries (see Condition keys available in Neptune IAM data-access policy statements).
Implementations§
source§impl ExecuteGremlinQueryFluentBuilder
impl ExecuteGremlinQueryFluentBuilder
sourcepub fn as_input(&self) -> &ExecuteGremlinQueryInputBuilder
pub fn as_input(&self) -> &ExecuteGremlinQueryInputBuilder
Access the ExecuteGremlinQuery as a reference.
sourcepub async fn send(
self
) -> Result<ExecuteGremlinQueryOutput, SdkError<ExecuteGremlinQueryError, HttpResponse>>
pub async fn send( self ) -> Result<ExecuteGremlinQueryOutput, SdkError<ExecuteGremlinQueryError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<ExecuteGremlinQueryOutput, ExecuteGremlinQueryError, Self>
pub fn customize( self ) -> CustomizableOperation<ExecuteGremlinQueryOutput, ExecuteGremlinQueryError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn gremlin_query(self, input: impl Into<String>) -> Self
pub fn gremlin_query(self, input: impl Into<String>) -> Self
Using this API, you can run Gremlin queries in string format much as you can using the HTTP endpoint. The interface is compatible with whatever Gremlin version your DB cluster is using (see the Tinkerpop client section to determine which Gremlin releases your engine version supports).
sourcepub fn set_gremlin_query(self, input: Option<String>) -> Self
pub fn set_gremlin_query(self, input: Option<String>) -> Self
Using this API, you can run Gremlin queries in string format much as you can using the HTTP endpoint. The interface is compatible with whatever Gremlin version your DB cluster is using (see the Tinkerpop client section to determine which Gremlin releases your engine version supports).
sourcepub fn get_gremlin_query(&self) -> &Option<String>
pub fn get_gremlin_query(&self) -> &Option<String>
Using this API, you can run Gremlin queries in string format much as you can using the HTTP endpoint. The interface is compatible with whatever Gremlin version your DB cluster is using (see the Tinkerpop client section to determine which Gremlin releases your engine version supports).
sourcepub fn serializer(self, input: impl Into<String>) -> Self
pub fn serializer(self, input: impl Into<String>) -> Self
If non-null, the query results are returned in a serialized response message in the format specified by this parameter. See the GraphSON section in the TinkerPop documentation for a list of the formats that are currently supported.
sourcepub fn set_serializer(self, input: Option<String>) -> Self
pub fn set_serializer(self, input: Option<String>) -> Self
If non-null, the query results are returned in a serialized response message in the format specified by this parameter. See the GraphSON section in the TinkerPop documentation for a list of the formats that are currently supported.
sourcepub fn get_serializer(&self) -> &Option<String>
pub fn get_serializer(&self) -> &Option<String>
If non-null, the query results are returned in a serialized response message in the format specified by this parameter. See the GraphSON section in the TinkerPop documentation for a list of the formats that are currently supported.
Trait Implementations§
source§impl Clone for ExecuteGremlinQueryFluentBuilder
impl Clone for ExecuteGremlinQueryFluentBuilder
source§fn clone(&self) -> ExecuteGremlinQueryFluentBuilder
fn clone(&self) -> ExecuteGremlinQueryFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for ExecuteGremlinQueryFluentBuilder
impl !RefUnwindSafe for ExecuteGremlinQueryFluentBuilder
impl Send for ExecuteGremlinQueryFluentBuilder
impl Sync for ExecuteGremlinQueryFluentBuilder
impl Unpin for ExecuteGremlinQueryFluentBuilder
impl !UnwindSafe for ExecuteGremlinQueryFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more