CreateResolverRequest

public struct CreateResolverRequest : AWSShape

Undocumented

  • Declaration

    Swift

    public static var _members: [AWSShapeMember]
  • The ID for the GraphQL API for which the resolver is being created.

    Declaration

    Swift

    public let apiId: String
  • The caching configuration for the resolver.

    Declaration

    Swift

    public let cachingConfig: CachingConfig?
  • The name of the data source for which the resolver is being created.

    Declaration

    Swift

    public let dataSourceName: String?
  • The name of the field to attach the resolver to.

    Declaration

    Swift

    public let fieldName: 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.

    Declaration

    Swift

    public let kind: ResolverKind?
  • The PipelineConfig.

    Declaration

    Swift

    public let pipelineConfig: PipelineConfig?
  • 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.

    Declaration

    Swift

    public let requestMappingTemplate: String?
  • The mapping template to be used for responses from the data source.

    Declaration

    Swift

    public let responseMappingTemplate: String?
  • The SyncConfig for a resolver attached to a versioned datasource.

    Declaration

    Swift

    public let syncConfig: SyncConfig?
  • The name of the Type.

    Declaration

    Swift

    public let typeName: String
  • Undocumented

    Declaration

    Swift

    public init(apiId: String, cachingConfig: CachingConfig? = nil, dataSourceName: String? = nil, fieldName: String, kind: ResolverKind? = nil, pipelineConfig: PipelineConfig? = nil, requestMappingTemplate: String? = nil, responseMappingTemplate: String? = nil, syncConfig: SyncConfig? = nil, typeName: String)
  • Declaration

    Swift

    public func validate(name: String) throws