interface ObjectTypeOptions
| Language | Type name | 
|---|---|
|  .NET | Amazon.CDK.AWS.AppSync.ObjectTypeOptions | 
|  Java | software.amazon.awscdk.services.appsync.ObjectTypeOptions | 
|  Python | aws_cdk.aws_appsync.ObjectTypeOptions | 
|  TypeScript (source) | @aws-cdk/aws-appsync»ObjectTypeOptions | 
Properties for configuring an Object Type.
Example
declare const api: appsync.GraphqlApi;
declare const dummyRequest: appsync.MappingTemplate;
declare const dummyResponse: appsync.MappingTemplate;
const info = new appsync.ObjectType('Info', {
  definition: {
    node: new appsync.ResolvableField({
      returnType: appsync.GraphqlType.string(),
      args: {
        id: appsync.GraphqlType.string(),
      },
      dataSource: api.addNoneDataSource('none'),
      requestMappingTemplate: dummyRequest,
      responseMappingTemplate: dummyResponse,
    }),
  },
});
Properties
| Name | Type | Description | 
|---|---|---|
| definition | { [string]: IField } | the attributes of this type. | 
| directives? | Directive[] | the directives for this object type. | 
| interface | Interface[] | The Interface Types this Object Type implements. | 
definition
Type:
{ [string]: IField }
the attributes of this type.
directives?
Type:
Directive[]
(optional, default: no directives)
the directives for this object type.
interfaceTypes?
Type:
Interface[]
(optional, default: no interface types)
The Interface Types this Object Type implements.
