[][src]Struct rusoto_appsync::CreateResolverRequest

pub struct CreateResolverRequest {
    pub api_id: String,
    pub caching_config: Option<CachingConfig>,
    pub data_source_name: Option<String>,
    pub field_name: String,
    pub kind: Option<String>,
    pub pipeline_config: Option<PipelineConfig>,
    pub request_mapping_template: Option<String>,
    pub response_mapping_template: Option<String>,
    pub sync_config: Option<SyncConfig>,
    pub type_name: String,
}

Fields

api_id: String

The ID for the GraphQL API for which the resolver is being created.

caching_config: Option<CachingConfig>

The caching configuration for the resolver.

data_source_name: Option<String>

The name of the data source for which the resolver is being created.

field_name: String

The name of the field to attach the resolver to.

kind: Option<String>

The resolver type.

  • UNIT: A UNIT resolver type. A UNIT resolver is the default resolver type. A UNIT resolver enables you to execute a GraphQL query against a single data source.

  • PIPELINE: A PIPELINE resolver type. A PIPELINE resolver enables you to execute a series of Function in a serial manner. You can use a pipeline resolver to execute a GraphQL query against multiple data sources.

pipeline_config: Option<PipelineConfig>

The PipelineConfig.

request_mapping_template: Option<String>

The mapping template to be used 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 a Lambda data source. For all other data sources, VTL request and response mapping templates are required.

response_mapping_template: Option<String>

The mapping template to be used for responses from the data source.

sync_config: Option<SyncConfig>

The SyncConfig for a resolver attached to a versioned datasource.

type_name: String

The name of the Type.

Trait Implementations

impl Clone for CreateResolverRequest[src]

impl Debug for CreateResolverRequest[src]

impl Default for CreateResolverRequest[src]

impl PartialEq<CreateResolverRequest> for CreateResolverRequest[src]

impl Serialize for CreateResolverRequest[src]

impl StructuralPartialEq for CreateResolverRequest[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.