Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ const baseStack = new cdk.Stack(app, 'baseStack');

const baseApi = new appsync.GraphqlApi(baseStack, 'baseApi', {
name: 'baseApi',
schema: appsync.SchemaFile.fromAsset(path.join(__dirname, 'appsync.test.graphql')),
definition: {
schema: appsync.SchemaFile.fromAsset(path.join(__dirname, 'appsync.test.graphql')),
},
});

const stack = new cdk.Stack(app, 'stack');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ const stack = new cdk.Stack(app, 'stack');

const api = new appsync.GraphqlApi(stack, 'DisableIntrospection', {
name: 'DisableIntrospection',
schema: appsync.SchemaFile.fromAsset(path.join(__dirname, 'appsync.test.graphql')),
definition: {
schema: appsync.SchemaFile.fromAsset(path.join(__dirname, 'appsync.test.graphql')),
},
introspectionConfig: appsync.IntrospectionConfig.DISABLED,
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ const stack = new cdk.Stack(app, 'stack');

const api = new appsync.GraphqlApi(stack, 'EventBridgeApi', {
name: 'EventBridgeApi',
schema: appsync.SchemaFile.fromAsset(path.join(__dirname, 'appsync.eventbridge.graphql')),
definition: {
schema: appsync.SchemaFile.fromAsset(path.join(__dirname, 'appsync.eventbridge.graphql')),
},
});

const bus = new events.EventBus(stack, 'DestinationEventBus', {});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ const stack = new cdk.Stack(app, 'aws-cdk-appsync-function-max-batch-size');

const api = new appsync.GraphqlApi(stack, 'LambdaAPI', {
name: 'LambdaAPI',
schema: appsync.SchemaFile.fromAsset(path.join(__dirname, 'appsync.lambda.graphql')),
definition: {
schema: appsync.SchemaFile.fromAsset(path.join(__dirname, 'appsync.lambda.graphql')),
},
});

const func = new lambda.Function(stack, 'func', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ const stack = new cdk.Stack(app, 'stack');

const api = new appsync.GraphqlApi(stack, 'GlobalApi', {
name: 'GlobalApi',
schema: appsync.SchemaFile.fromAsset(path.join(__dirname, 'appsync.test.graphql')),
definition: {
schema: appsync.SchemaFile.fromAsset(path.join(__dirname, 'appsync.test.graphql')),
},
visibility: appsync.Visibility.GLOBAL,
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ const stack = new cdk.Stack(app, 'stack');

const api = new appsync.GraphqlApi(stack, 'LambdaAPI', {
name: 'LambdaAPI',
schema: appsync.SchemaFile.fromAsset(path.join(__dirname, 'appsync.lambda.graphql')),
definition: {
schema: appsync.SchemaFile.fromAsset(path.join(__dirname, 'appsync.lambda.graphql')),
},
});

const func = new lambda.Function(stack, 'func', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ const stack = new cdk.Stack(app, 'stack');

const api = new appsync.GraphqlApi(stack, 'ApiLimitConfigs', {
name: 'ApiLimitConfigs',
schema: appsync.SchemaFile.fromAsset(path.join(__dirname, 'appsync.test.graphql')),
definition: {
schema: appsync.SchemaFile.fromAsset(path.join(__dirname, 'appsync.test.graphql')),
},
queryDepthLimit: 2,
resolverCountLimit: 2,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ const logConfig: LogConfig = {
const api = new GraphqlApi(stack, 'Api', {
authorizationConfig: {},
name: 'IntegLogRetention',
schema: SchemaFile.fromAsset(join(__dirname, 'appsync.test.graphql')),
definition: {
schema: SchemaFile.fromAsset(join(__dirname, 'appsync.test.graphql')),
},
logConfig,
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ const stack = new cdk.Stack(app, 'stack');

const api = new appsync.GraphqlApi(stack, 'NoneAPI', {
name: 'NoneAPI',
schema: appsync.SchemaFile.fromAsset(path.join(__dirname, 'appsync.none.graphql')),
definition: {
schema: appsync.SchemaFile.fromAsset(path.join(__dirname, 'appsync.none.graphql')),
},
});

api.addNoneDataSource('NoneDS', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ const stack = new cdk.Stack(app, 'stack');

const api = new appsync.GraphqlApi(stack, 'PrivateApi', {
name: 'PrivateApi',
schema: appsync.SchemaFile.fromAsset(path.join(__dirname, 'appsync.test.graphql')),
definition: {
schema: appsync.SchemaFile.fromAsset(path.join(__dirname, 'appsync.test.graphql')),
},
visibility: appsync.Visibility.PRIVATE,
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ const stack = new Stack(app, 'aws-appsync-integ');

const api = new GraphqlApi(stack, 'Api', {
name: 'Integ_Test_APIKey',
schema: SchemaFile.fromAsset(join(__dirname, 'appsync.auth.graphql')),
definition: {
schema: SchemaFile.fromAsset(join(__dirname, 'appsync.auth.graphql')),
},
authorizationConfig: {
defaultAuthorization: {
authorizationType: AuthorizationType.API_KEY,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ const stack = new cdk.Stack(app, 'AppSyncEnvironmentVariables');

const api = new appsync.GraphqlApi(stack, 'Api', {
name: 'Api',
schema: appsync.SchemaFile.fromAsset(path.join(__dirname, 'appsync.js-resolver.graphql')),
definition: {
schema: appsync.SchemaFile.fromAsset(path.join(__dirname, 'appsync.js-resolver.graphql')),
},
environmentVariables: {
EnvKey1: 'non-empty-1',
},
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading