Skip to content

Commit 5786c74

Browse files
Merge branch 'main' into jwt-cognito
2 parents f4f9a58 + 12a0217 commit 5786c74

File tree

543 files changed

+136453
-120707
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

543 files changed

+136453
-120707
lines changed

.github/workflows/spec-update.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,13 @@ jobs:
5858
# Build @aws-cdk/spec2cdk and run L1 gen script to generate base files for new modules
5959
- name: Build @aws-cdk/spec2cdk
6060
run: lerna run build --stream --no-progress --skip-nx-cache --scope @aws-cdk/spec2cdk
61-
- name: Generate code
62-
run: lerna run gen --stream --no-progress --skip-nx-cache --scope aws-cdk-lib --scope @aws-cdk/mixins-preview
61+
# Generate L1 code for aws-cdk-lib first — this updates scope-map.json with new services.
62+
# mixins-preview and cfn-property-mixins read scope-map.json during their gen, so they
63+
# must run after aws-cdk-lib to see the new service entries.
64+
- name: Generate L1 code
65+
run: lerna run gen --stream --no-progress --skip-nx-cache --scope aws-cdk-lib
66+
- name: Generate mixins
67+
run: lerna run gen --stream --no-progress --skip-nx-cache --scope @aws-cdk/mixins-preview --scope @aws-cdk/cfn-property-mixins
6368

6469
# Next, create and upload the changes as a patch file. This will later be downloaded to create a pull request
6570
# Creating a pull request requires write permissions and it's best to keep write privileges isolated.

packages/@aws-cdk-testing/framework-integ/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"lint": "cdk-lint",
1010
"pkglint": "pkglint -f",
1111
"test": "cdk-test",
12-
"integ": "integ-runner --unstable=toolkit-lib-engine --language javascript",
12+
"integ": "env JSII_DEPRECATED=fail integ-runner --unstable=toolkit-lib-engine --language javascript",
1313
"package": "cdk-package",
1414
"build+test": "yarn build && yarn test",
1515
"build+extract": "yarn build",

packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.stepfunctions-api-without-default-method-responses.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class SfnRestApiWithoutDefaultMethodResponsesStack extends cdk.Stack {
1313
});
1414

1515
const stateMachine = new sfn.StateMachine(this, 'StateMachine', {
16-
definition: passTask,
16+
definitionBody: sfn.DefinitionBody.fromChainable(passTask),
1717
stateMachineType: sfn.StateMachineType.EXPRESS,
1818
});
1919

packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.stepfunctions-api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class StepFunctionsRestApiDeploymentStack extends cdk.Stack {
2020
});
2121

2222
const stateMachine = new sfn.StateMachine(this, 'StateMachine', {
23-
definition: passTask,
23+
definitionBody: sfn.DefinitionBody.fromChainable(passTask),
2424
stateMachineType: sfn.StateMachineType.EXPRESS,
2525
});
2626

packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-integrations/test/http/integ.stepfunctions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ const app = new App();
88
const stack = new Stack(app, 'stepfunctions-integration');
99

1010
const stateMachine = new sfn.StateMachine(stack, 'RouteStateMachine', {
11-
definition: new sfn.Pass(stack, 'Pass1'),
11+
definitionBody: sfn.DefinitionBody.fromChainable(new sfn.Pass(stack, 'Pass1')),
1212
});
1313
const expressStateMachine = new sfn.StateMachine(stack, 'ExpressStateMachine', {
14-
definition: new sfn.Pass(stack, 'Pass2'),
14+
definitionBody: sfn.DefinitionBody.fromChainable(new sfn.Pass(stack, 'Pass2')),
1515
stateMachineType: sfn.StateMachineType.EXPRESS,
1616
});
1717

packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.api-import.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ const baseStack = new cdk.Stack(app, 'baseStack');
2424

2525
const baseApi = new appsync.GraphqlApi(baseStack, 'baseApi', {
2626
name: 'baseApi',
27-
schema: appsync.SchemaFile.fromAsset(path.join(__dirname, 'appsync.test.graphql')),
27+
definition: {
28+
schema: appsync.SchemaFile.fromAsset(path.join(__dirname, 'appsync.test.graphql')),
29+
},
2830
});
2931

3032
const stack = new cdk.Stack(app, 'stack');

packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-disable-introspection.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ const stack = new cdk.Stack(app, 'stack');
88

99
const api = new appsync.GraphqlApi(stack, 'DisableIntrospection', {
1010
name: 'DisableIntrospection',
11-
schema: appsync.SchemaFile.fromAsset(path.join(__dirname, 'appsync.test.graphql')),
11+
definition: {
12+
schema: appsync.SchemaFile.fromAsset(path.join(__dirname, 'appsync.test.graphql')),
13+
},
1214
introspectionConfig: appsync.IntrospectionConfig.DISABLED,
1315
});
1416

packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-eventbridge.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ const stack = new cdk.Stack(app, 'stack');
99

1010
const api = new appsync.GraphqlApi(stack, 'EventBridgeApi', {
1111
name: 'EventBridgeApi',
12-
schema: appsync.SchemaFile.fromAsset(path.join(__dirname, 'appsync.eventbridge.graphql')),
12+
definition: {
13+
schema: appsync.SchemaFile.fromAsset(path.join(__dirname, 'appsync.eventbridge.graphql')),
14+
},
1315
});
1416

1517
const bus = new events.EventBus(stack, 'DestinationEventBus', {});

packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-function-max-batch-size.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ const stack = new cdk.Stack(app, 'aws-cdk-appsync-function-max-batch-size');
1414

1515
const api = new appsync.GraphqlApi(stack, 'LambdaAPI', {
1616
name: 'LambdaAPI',
17-
schema: appsync.SchemaFile.fromAsset(path.join(__dirname, 'appsync.lambda.graphql')),
17+
definition: {
18+
schema: appsync.SchemaFile.fromAsset(path.join(__dirname, 'appsync.lambda.graphql')),
19+
},
1820
});
1921

2022
const func = new lambda.Function(stack, 'func', {

packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-global-api.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ const stack = new cdk.Stack(app, 'stack');
88

99
const api = new appsync.GraphqlApi(stack, 'GlobalApi', {
1010
name: 'GlobalApi',
11-
schema: appsync.SchemaFile.fromAsset(path.join(__dirname, 'appsync.test.graphql')),
11+
definition: {
12+
schema: appsync.SchemaFile.fromAsset(path.join(__dirname, 'appsync.test.graphql')),
13+
},
1214
visibility: appsync.Visibility.GLOBAL,
1315
});
1416

0 commit comments

Comments
 (0)