Struct aws_sdk_appsync::client::fluent_builders::CreateResolver [−][src]
pub struct CreateResolver<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to CreateResolver
.
Creates a Resolver
object.
A resolver converts incoming requests into a format that a data source can understand, and converts the data source's responses into GraphQL.
Implementations
impl<C, M, R> CreateResolver<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> CreateResolver<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<CreateResolverOutput, SdkError<CreateResolverError>> where
R::Policy: SmithyRetryPolicy<CreateResolverInputOperationOutputAlias, CreateResolverOutput, CreateResolverError, CreateResolverInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<CreateResolverOutput, SdkError<CreateResolverError>> where
R::Policy: SmithyRetryPolicy<CreateResolverInputOperationOutputAlias, CreateResolverOutput, CreateResolverError, CreateResolverInputOperationRetryAlias>,
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.
The ID for the GraphQL API for which the resolver is being created.
The ID for the GraphQL API for which the resolver is being created.
The name of the Type
.
The name of the field to attach the resolver to.
The name of the field to attach the resolver to.
The name of the data source for which the resolver is being created.
The name of the data source for which the resolver is being created.
The mapping template to use for requests.
A resolver uses a request mapping template to convert a GraphQL expression into a format that a data source can understand. Mapping templates are written in Apache Velocity Template Language (VTL).
VTL request mapping templates are optional when using an Lambda data source. For all other data sources, VTL request and response mapping templates are required.
The mapping template to use for requests.
A resolver uses a request mapping template to convert a GraphQL expression into a format that a data source can understand. Mapping templates are written in Apache Velocity Template Language (VTL).
VTL request mapping templates are optional when using an Lambda data source. For all other data sources, VTL request and response mapping templates are required.
The mapping template to use for responses from the data source.
The mapping template to use for responses from the data source.
The resolver type.
-
UNIT: A UNIT resolver type. A UNIT resolver is the default resolver type. You can use a UNIT resolver to run a GraphQL query against a single data source.
-
PIPELINE: A PIPELINE resolver type. You can use a PIPELINE resolver to invoke a series of
Function
objects in a serial manner. You can use a pipeline resolver to run a GraphQL query against multiple data sources.
The resolver type.
-
UNIT: A UNIT resolver type. A UNIT resolver is the default resolver type. You can use a UNIT resolver to run a GraphQL query against a single data source.
-
PIPELINE: A PIPELINE resolver type. You can use a PIPELINE resolver to invoke a series of
Function
objects in a serial manner. You can use a pipeline resolver to run a GraphQL query against multiple data sources.
The PipelineConfig
.
The PipelineConfig
.
The SyncConfig
for a resolver attached to a versioned data source.
The SyncConfig
for a resolver attached to a versioned data source.
The caching configuration for the resolver.
The caching configuration for the resolver.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for CreateResolver<C, M, R>
impl<C, M, R> Send for CreateResolver<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for CreateResolver<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for CreateResolver<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for CreateResolver<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more