pub struct EvaluateMappingTemplate { /* private fields */ }
Expand description
Fluent builder constructing a request to EvaluateMappingTemplate
.
Evaluates a given template and returns the response. The mapping template can be a request or response template.
Request templates take the incoming request after a GraphQL operation is parsed and convert it into a request configuration for the selected data source operation. Response templates interpret responses from the data source and map it to the shape of the GraphQL field output type.
Mapping templates are written in the Apache Velocity Template Language (VTL).
Implementations§
source§impl EvaluateMappingTemplate
impl EvaluateMappingTemplate
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<EvaluateMappingTemplate, AwsResponseRetryClassifier>, SdkError<EvaluateMappingTemplateError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<EvaluateMappingTemplate, AwsResponseRetryClassifier>, SdkError<EvaluateMappingTemplateError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<EvaluateMappingTemplateOutput, SdkError<EvaluateMappingTemplateError>>
pub async fn send(
self
) -> Result<EvaluateMappingTemplateOutput, SdkError<EvaluateMappingTemplateError>>
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 template(self, input: impl Into<String>) -> Self
pub fn template(self, input: impl Into<String>) -> Self
The mapping template; this can be a request or response template. A template
is required for this action.
sourcepub fn set_template(self, input: Option<String>) -> Self
pub fn set_template(self, input: Option<String>) -> Self
The mapping template; this can be a request or response template. A template
is required for this action.
sourcepub fn context(self, input: impl Into<String>) -> Self
pub fn context(self, input: impl Into<String>) -> Self
The map that holds all of the contextual information for your resolver invocation. A context
is required for this action.
sourcepub fn set_context(self, input: Option<String>) -> Self
pub fn set_context(self, input: Option<String>) -> Self
The map that holds all of the contextual information for your resolver invocation. A context
is required for this action.
Trait Implementations§
source§impl Clone for EvaluateMappingTemplate
impl Clone for EvaluateMappingTemplate
source§fn clone(&self) -> EvaluateMappingTemplate
fn clone(&self) -> EvaluateMappingTemplate
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more