interface EnumTypeOptions
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.AppSync.EnumTypeOptions |
Java | software.amazon.awscdk.services.appsync.EnumTypeOptions |
Python | aws_cdk.aws_appsync.EnumTypeOptions |
TypeScript (source) | @aws-cdk/aws-appsync » EnumTypeOptions |
Properties for configuring an Enum Type.
Example
declare const api: appsync.GraphqlApi;
const episode = new appsync.EnumType('Episode', {
definition: [
'NEWHOPE',
'EMPIRE',
'JEDI',
],
});
api.addType(episode);
Properties
Name | Type | Description |
---|---|---|
definition | string[] | the attributes of this type. |
definition
Type:
string[]
the attributes of this type.