Documentation
¶
Index ¶
- Variables
- func Stack(scope constructs.Construct, id string, props *Props) awscdk.Stack
- type AppSyncApi
- type AppSyncApiBuilder
- func (a *AppSyncApiBuilder) AddDataSource(datasourceType string, datasourceName string)
- func (a *AppSyncApiBuilder) Build() AppSyncApi
- func (a *AppSyncApiBuilder) SetExportPath(exportPath string)
- func (a *AppSyncApiBuilder) SetName(name string)
- func (a *AppSyncApiBuilder) SetSchema(pathToSchema string)
- func (a *AppSyncApiBuilder) SetTemplates()
- type Props
Constants ¶
This section is empty.
Variables ¶
View Source
var Code = `
export function request(ctx) {
return {};
}
export function response(ctx) {
return ctx.prev.result;
}
`
Functions ¶
Types ¶
type AppSyncApi ¶
type AppSyncApi struct {
Name string `json:"name"`
DataSources datasource.DataSourceList `json:"-"`
Schema schema.Schema `json:"schema"`
Templates template.Template `json:"-"`
ExportPath string `json:"export_path"`
Resolvers resolver.ResolverList `json:"resolvers"`
}
func FromJson ¶
func FromJson(pathToJson string) *AppSyncApi
func (AppSyncApi) Export ¶
func (a AppSyncApi) Export()
func (*AppSyncApi) Synth ¶
func (a *AppSyncApi) Synth()
type AppSyncApiBuilder ¶
type AppSyncApiBuilder struct {
Name string
DataSources datasource.DataSourceList
Schema *schema.Schema
Templates *template.Template
ExportPath *string
}
func NewAppSyncApiBuilder ¶
func NewAppSyncApiBuilder() *AppSyncApiBuilder
func (*AppSyncApiBuilder) AddDataSource ¶
func (a *AppSyncApiBuilder) AddDataSource(datasourceType string, datasourceName string)
func (*AppSyncApiBuilder) Build ¶
func (a *AppSyncApiBuilder) Build() AppSyncApi
func (*AppSyncApiBuilder) SetExportPath ¶
func (a *AppSyncApiBuilder) SetExportPath(exportPath string)
func (*AppSyncApiBuilder) SetName ¶
func (a *AppSyncApiBuilder) SetName(name string)
func (*AppSyncApiBuilder) SetSchema ¶
func (a *AppSyncApiBuilder) SetSchema(pathToSchema string)
func (*AppSyncApiBuilder) SetTemplates ¶
func (a *AppSyncApiBuilder) SetTemplates()
type Props ¶
type Props struct {
awscdk.StackProps
*AppSyncApi
}
Click to show internal directories.
Click to hide internal directories.