Skip to content
v2.275.0

CfnTypeProps Struct ​

Properties for defining a CfnType.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_appsync as appsync } from 'aws-cdk-lib';
const cfnTypeProps: appsync.CfnTypeProps = {
  apiId: 'apiId',
  definition: 'definition',
  format: 'format',
};

Properties ​

apiIdstringapi_idstrapiIdStringApiIdstringApiId*stringrequired#
The API ID.
definitionstringdefinitionstrdefinitionStringDefinitionstringDefinition*stringrequired#
The type definition, in GraphQL Schema Definition Language (SDL) format.
formatstringformatstrformatStringFormatstringFormat*stringrequired#
The type format: SDL or JSON.