Skip to content

Commit c96c17d

Browse files
authored
2 parents 5862f7a + 20f7c21 commit c96c17d

File tree

613 files changed

+28015
-5174
lines changed

Some content is hidden

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

613 files changed

+28015
-5174
lines changed

.github/ISSUE_TEMPLATE/region.yml

+86
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
name: New Region
2+
description: Register a new region.
3+
title: "Register new region: [region]"
4+
labels: ["@aws-cdk/region-info", "feature-request", "p1", "effort/medium"]
5+
body:
6+
- type: input
7+
id: ROUTE_53_BUCKET_WEBSITE_ZONE_IDS
8+
attributes:
9+
label: AWS Route 53 Bucket Website Zone ID
10+
description: |
11+
See [Amazon Simple Storage Service endpoints and quotas](https://docs.aws.amazon.com/general/latest/gr/s3.html#s3_website_region_endpoints).
12+
13+
- type: input
14+
id: EBS_ENV_ENDPOINT_HOSTED_ZONE_IDS
15+
attributes:
16+
label: AWS Elastic Beanstalk Hosted Zone ID
17+
description: |
18+
See [AWS Elastic Beanstalk endpoints and quotas](https://docs.aws.amazon.com/general/latest/gr/elasticbeanstalk.html).
19+
20+
- type: input
21+
id: ELBV2_ACCOUNTS
22+
attributes:
23+
label: AWS Elastic Beanstalk Load Balancer Account ID
24+
description: |
25+
See [Attach a policy to your S3 bucket](https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-access-logs.html#attach-bucket-policy).
26+
27+
- type: input
28+
id: DLC_REPOSITORY_ACCOUNTS
29+
attributes:
30+
label: AWS Deep Learning Container Account ID
31+
description: |
32+
See [Available Deep Learning Containers Images](https://aws.amazon.com/releasenotes/available-deep-learning-containers-images/).
33+
34+
- type: input
35+
id: APPMESH_ECR_ACCOUNTS
36+
attributes:
37+
label: AWS AppMesh Envoy Proxy ECR Account ID
38+
description: |
39+
See [Envoy Image](https://docs.aws.amazon.com/app-mesh/latest/userguide/envoy.html).
40+
41+
- type: input
42+
id: CLOUDWATCH_LAMBDA_INSIGHTS_ARNS
43+
attributes:
44+
label: AWS CloudWatch Lambda Insights Extension ARN
45+
description: |
46+
See [1.0.178.0](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Lambda-Insights-extension-versionsx86-64.html#Lambda-Insights-extension-1.0.178.0).
47+
48+
- type: input
49+
id: FIREHOSE_CIDR_BLOCKS
50+
attributes:
51+
label: AWS Kinesis Data Firehose CIDR Block
52+
description: |
53+
See [VPC Access to an Amazon Redshift Cluster](https://docs.aws.amazon.com/firehose/latest/dev/controlling-access.html#using-iam-rs-vpc).
54+
55+
- type: checkboxes
56+
id: ADOT_LAMBDA_LAYER
57+
attributes:
58+
label: OpenTelemetry Lambda Support
59+
description: |
60+
[Supported in Region](https://aws-otel.github.io/docs/getting-started/lambda/lambda-js)?
61+
options:
62+
- label: "Yes"
63+
- label: "No"
64+
65+
- type: markdown
66+
attributes:
67+
value: |
68+
---
69+
70+
🚀 Checklist:
71+
72+
* [ ] Add region in [AWS_CDK_METADATA](https://github.com/aws/aws-cdk/blob/v2.65.0/packages/@aws-cdk/region-info/build-tools/fact-tables.ts#L1) (commented out).
73+
* [ ] Add region and zone id in [ROUTE_53_BUCKET_WEBSITE_ZONE_IDS](https://github.com/aws/aws-cdk/blob/v2.65.0/packages/@aws-cdk/region-info/build-tools/fact-tables.ts#L40).
74+
* [ ] Add region and zone id in [EBS_ENV_ENDPOINT_HOSTED_ZONE_IDS](https://github.com/aws/aws-cdk/blob/v2.65.0/packages/@aws-cdk/region-info/build-tools/fact-tables.ts#L77).
75+
* [ ] Add region and account in [ELBV2_ACCOUNTS](https://github.com/aws/aws-cdk/blob/v2.65.0/packages/@aws-cdk/region-info/build-tools/fact-tables.ts#L116).
76+
* [ ] Add region and account in [DLC_REPOSITORY_ACCOUNTS](https://github.com/aws/aws-cdk/blob/v2.65.0/packages/@aws-cdk/region-info/build-tools/fact-tables.ts#L149).
77+
* [ ] Add region and account in [APPMESH_ECR_ACCOUNTS](https://github.com/aws/aws-cdk/blob/v2.65.0/packages/@aws-cdk/region-info/build-tools/fact-tables.ts#L174).
78+
* [ ] Add region and ARN in [CLOUDWATCH_LAMBDA_INSIGHTS_ARNS](https://github.com/aws/aws-cdk/blob/v2.65.0/packages/@aws-cdk/region-info/build-tools/fact-tables.ts#L202) for `1.0.178.0`.
79+
* [ ] Add region and CIDR block address in [FIREHOSE_CIDR_BLOCKS](https://github.com/aws/aws-cdk/blob/v2.65.0/packages/@aws-cdk/region-info/build-tools/fact-tables.ts#L498).
80+
* [ ] Add region and ARN in [ADOT_LAMBDA_LAYER_JAVA_SDK_ARNS](https://github.com/aws/aws-cdk/blob/v2.65.0/packages/@aws-cdk/region-info/build-tools/fact-tables.ts#L529) for most recent version in `x86_64` and `arm64`.
81+
* [ ] Add region and ARN in [ADOT_LAMBDA_LAYER_JAVA_AUTO_INSTRUMENTATION_ARNS](https://github.com/aws/aws-cdk/blob/v2.65.0/packages/@aws-cdk/region-info/build-tools/fact-tables.ts#L608) for most recent version in `x86_64` and `arm64`.
82+
* [ ] Add region and ARN in [ADOT_LAMBDA_LAYER_JAVASCRIPT_SDK_ARNS](https://github.com/aws/aws-cdk/blob/v2.65.0/packages/@aws-cdk/region-info/build-tools/fact-tables.ts#L689) for most recent version in `x86_64` and `arm64`.
83+
* [ ] Add region and ARN in [ADOT_LAMBDA_LAYER_PYTHON_SDK_ARNS](https://github.com/aws/aws-cdk/blob/v2.65.0/packages/@aws-cdk/region-info/build-tools/fact-tables.ts#L768) for most recent version in `x86_64` and `arm64`.
84+
* [ ] Add region and ARN in [ADOT_LAMBDA_LAYER_GENERIC_ARNS](https://github.com/aws/aws-cdk/blob/v2.65.0/packages/@aws-cdk/region-info/build-tools/fact-tables.ts#L847) for most recent version in `x86_64` and `arm64`.
85+
* [ ] Add region in [AWS_REGIONS_AND_RULES](https://github.com/aws/aws-cdk/blob/v2.65.0/packages/@aws-cdk/region-info/lib/aws-entities.ts).
86+
* [ ] Run integ tests and update snapshots

.github/workflows/yarn-upgrade-v1main.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
run: yarn install --frozen-lockfile
4040
- name: Install Tools
4141
run: |-
42-
npm -g install lerna js-yaml npm-check-updates@^9.0.0
42+
npm -g install lerna npm-check-updates
4343
- name: Build CLI
4444
run: lerna run build --scope aws-cdk --include-dependencies --stream
4545
- name: Build Integ Runner
@@ -51,7 +51,6 @@ jobs:
5151
echo "list=$(lerna ls --all --json 2>/dev/null | jq -r 'map(.name) | join(",")')" >> $GITHUB_OUTPUT
5252
- name: Run "ncu -u"
5353
# We special-case some @types because they need to be pinned to specific versions due to breaking changes in minor upgrades https://github.com/DefinitelyTyped/DefinitelyTyped/issues/64266
54-
# We special-case aws-sdk because of breaking changes with TS interface exports in recent minor versions - https://github.com/aws/aws-sdk-js/issues/3453
5554
# We special-case typescript because it's not semantically versioned
5655
# We special-case constructs because we want to stay in control of the minimum compatible version
5756
# We special-case lerna because we have a patch on it that stops applying if Lerna upgrades. Remove this once https://github.com/lerna/lerna/pull/2874 releases.
@@ -61,8 +60,8 @@ jobs:
6160
ncu --upgrade --filter=typescript --target=patch
6261
ncu --upgrade --reject=@types/node,@types/prettier,constructs,typescript,lerna --target=minor
6362
# Upgrade all the packages
64-
lerna exec --parallel ncu -- --upgrade --filter=typescript --target=patch
65-
lerna exec --parallel ncu -- --upgrade --reject='@types/node,@types/prettier,constructs,typescript,aws-sdk,aws-sdk-mock,${{ steps.list-packages.outputs.list }}' --target=minor
63+
lerna exec --parallel ncu -- --upgrade --filter=typescript,lerna --target=patch
64+
lerna exec --parallel ncu -- --upgrade --reject='@types/conventional-commits-parser,@types/node,@types/prettier,constructs,typescript,aws-sdk-mock,${{ steps.list-packages.outputs.list }}' --target=minor
6665
6766
# This will ensure the current lockfile is up-to-date with the dependency specifications (necessary for "yarn update" to run)
6867
- name: Run "yarn install"

.github/workflows/yarn-upgrade.yml

+4-5
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
run: yarn install --frozen-lockfile
3838
- name: Install Tools
3939
run: |-
40-
npm -g install lerna js-yaml npm-check-updates@^9.0.0
40+
npm -g install lerna npm-check-updates
4141
- name: Build Integ Runner
4242
run: lerna run build --scope @aws-cdk/integ-runner --include-dependencies
4343
- name: List Mono-Repo Packages
@@ -47,7 +47,6 @@ jobs:
4747
echo "list=$(lerna ls --all --json 2>/dev/null | jq -r 'map(.name) | join(",")')" >> $GITHUB_OUTPUT
4848
- name: Run "ncu -u"
4949
# We special-case some @types because they need to be pinned to specific versions due to breaking changes in minor upgrades https://github.com/DefinitelyTyped/DefinitelyTyped/issues/64266
50-
# We special-case aws-sdk because of breaking changes with TS interface exports in recent minor versions - https://github.com/aws/aws-sdk-js/issues/3453
5150
# We special-case typescript because it's not semantically versioned
5251
# We special-case constructs because we want to stay in control of the minimum compatible version
5352
# We special-case lerna because we have a patch on it that stops applying if Lerna upgrades. Remove this once https://github.com/lerna/lerna/pull/2874 releases.
@@ -58,15 +57,15 @@ jobs:
5857
ncu --upgrade --reject=@types/node,@types/prettier,constructs,typescript,lerna --target=minor
5958
# Upgrade all the packages
6059
lerna exec --parallel ncu -- --upgrade --filter=typescript --target=patch
61-
lerna exec --parallel ncu -- --upgrade --reject='@types/node,@types/prettier,constructs,typescript,aws-sdk,aws-sdk-mock,${{ steps.list-packages.outputs.list }}' --target=minor
60+
lerna exec --parallel ncu -- --upgrade --reject='@types/conventional-commits-parser,@types/node,@types/prettier,constructs,typescript,aws-sdk-mock,${{ steps.list-packages.outputs.list }}' --target=minor
6261
# Upgrade package.jsons in init templates
6362
for pj in $(find packages/aws-cdk/lib/init-templates -name package.json); do
6463
(cd $(dirname $pj) && ncu --upgrade --reject='constructs,${{ steps.list-packages.outputs.list }}')
6564
done
6665
# Upgrade dependencies at an aws-eks integ test docker image
67-
cd packages/@aws-cdk/aws-eks/test/sdk-call-integ-test-docker-app/app/ && ncu --upgrade --reject='aws-sdk,${{ steps.list-packages.outputs.list }}'
66+
cd packages/@aws-cdk/aws-eks/test/sdk-call-integ-test-docker-app/app/ && ncu --upgrade --reject=',${{ steps.list-packages.outputs.list }}'
6867
69-
# This will ensure the current lockfile is up-to-date with the dependency specifications (necessary for "yarn update" to run)
68+
# This will ensure the current lockfile is up-to-date with the dependency specifications (necessary for "yarn upgrade" to run)
7069
- name: Run "yarn install"
7170
run: yarn install
7271

CHANGELOG.v2.alpha.md

+14
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,20 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
## [2.66.0-alpha.0](https://github.com/aws/aws-cdk/compare/v2.65.0-alpha.0...v2.66.0-alpha.0) (2023-02-21)
6+
7+
8+
### Features
9+
10+
* **apigatewayv2:** allow websockets routes to return response to client ([#22984](https://github.com/aws/aws-cdk/issues/22984)) ([f8fe1d2](https://github.com/aws/aws-cdk/commit/f8fe1d292feb3fc39a99687bf454a829302c4ff5))
11+
* **lambda-python:** add optional poetry bundling exclusion list parameter ([#23670](https://github.com/aws/aws-cdk/issues/23670)) ([53beeae](https://github.com/aws/aws-cdk/commit/53beeaed04bfe295e9f840e65f9c89db00cac692)), closes [#22585](https://github.com/aws/aws-cdk/issues/22585) [#22585](https://github.com/aws/aws-cdk/issues/22585)
12+
* **redshift:** optionally reboot Clusters to apply parameter changes ([#22063](https://github.com/aws/aws-cdk/issues/22063)) ([f61d950](https://github.com/aws/aws-cdk/commit/f61d950aaeba13bd6501b7c8971a9115f4a53f08)), closes [#22009](https://github.com/aws/aws-cdk/issues/22009) [#22055](https://github.com/aws/aws-cdk/issues/22055) [#22059](https://github.com/aws/aws-cdk/issues/22059)
13+
14+
15+
### Bug Fixes
16+
17+
* **servicecatalogappregistry:** Allow user to control stack id via stack name for Application stack ([#24171](https://github.com/aws/aws-cdk/issues/24171)) ([0c7c7e4](https://github.com/aws/aws-cdk/commit/0c7c7e4a7c34957ff7877eda5171f82c5feaba1d)), closes [#24160](https://github.com/aws/aws-cdk/issues/24160)
18+
519
## [2.65.0-alpha.0](https://github.com/aws/aws-cdk/compare/v2.64.0-alpha.0...v2.65.0-alpha.0) (2023-02-15)
620

721

CHANGELOG.v2.md

+20
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,26 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
## [2.66.0](https://github.com/aws/aws-cdk/compare/v2.65.0...v2.66.0) (2023-02-21)
6+
7+
8+
### Features
9+
10+
* **cloudwatch:** parse all metrics statistics and support long format ([#23095](https://github.com/aws/aws-cdk/issues/23095)) ([853e3d6](https://github.com/aws/aws-cdk/commit/853e3d631ef0490b0e2d14fdcf50df9f745de3eb)), closes [#23074](https://github.com/aws/aws-cdk/issues/23074) [40aws-cdk/aws-cloudwatch/lib/metric.ts#L295-L296](https://github.com/40aws-cdk/aws-cloudwatch/lib/metric.ts/issues/L295-L296)
11+
* **core:** Size.bytes() ([#24136](https://github.com/aws/aws-cdk/issues/24136)) ([9b2a45a](https://github.com/aws/aws-cdk/commit/9b2a45a6757c91011f47a6b3893cdfa0f4891002)), closes [#24106](https://github.com/aws/aws-cdk/issues/24106)
12+
* **efs:** support file system policy ([#24196](https://github.com/aws/aws-cdk/issues/24196)) ([5e0f44b](https://github.com/aws/aws-cdk/commit/5e0f44b05232c70f35f79d27f1294f943fbeb568)), closes [#24042](https://github.com/aws/aws-cdk/issues/24042)
13+
* **logs:** Add support for multiple parse and filter statements in QueryString ([#24022](https://github.com/aws/aws-cdk/issues/24022)) ([75eb933](https://github.com/aws/aws-cdk/commit/75eb9330194824cdf435ae64095813191fcd6e13))
14+
* **stepfunctions:** removal policy for state machines ([#24105](https://github.com/aws/aws-cdk/issues/24105)) ([5f33a26](https://github.com/aws/aws-cdk/commit/5f33a26937a78a7d28f913e86c3a2d0b00746e6a))
15+
16+
17+
### Bug Fixes
18+
19+
* **apigateway:** rest api deployment does not depend on authorizers ([#23215](https://github.com/aws/aws-cdk/issues/23215)) ([12e13c1](https://github.com/aws/aws-cdk/commit/12e13c130cac347d5d042d414086e9e5aac5e31c))
20+
* **cognito:** changing `installLatestAwsSdk` breaks Client Secret reference ([#23798](https://github.com/aws/aws-cdk/issues/23798)) ([844d407](https://github.com/aws/aws-cdk/commit/844d4076c142fd88095f36dbc667d85c12e20bd5)), closes [#23796](https://github.com/aws/aws-cdk/issues/23796)
21+
* **ecs:** validate ecs healthcheck ([#24197](https://github.com/aws/aws-cdk/issues/24197)) ([89802a9](https://github.com/aws/aws-cdk/commit/89802a95360d698921c81a152d11ab6e46b00de3))
22+
* **eks:** nested OCI repository names for private ECR helmchart deployments are not properly handled ([#23378](https://github.com/aws/aws-cdk/issues/23378)) ([72f2a95](https://github.com/aws/aws-cdk/commit/72f2a95e994ef1b129a48bd548303ea39a3d3c9f))
23+
* **lambda:** RuntimeManagementMode.FUNCTION_UPDATE has wrong value ([#24252](https://github.com/aws/aws-cdk/issues/24252)) ([fdb0cf1](https://github.com/aws/aws-cdk/commit/fdb0cf13c0b18a436c02a272626ce9f9dde9c343))
24+
525
## [2.65.0](https://github.com/aws/aws-cdk/compare/v2.64.0...v2.65.0) (2023-02-15)
626

727

lerna.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"lerna": "3.15.0",
2+
"lerna": "^4.0.0",
33
"npmClient": "yarn",
44
"useWorkspaces": true,
55
"packages": [

package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@
1616
"postinstall": "patch-package --error-on-fail"
1717
},
1818
"devDependencies": {
19-
"@types/node": "18.11.18",
19+
"@types/node": "18.11.19",
2020
"@types/prettier": "2.6.0",
2121
"@yarnpkg/lockfile": "^1.1.0",
22-
"cdk-generate-synthetic-examples": "^0.1.151",
22+
"cdk-generate-synthetic-examples": "^0.1.155",
2323
"conventional-changelog-cli": "^2.2.2",
2424
"fs-extra": "^9.1.0",
2525
"graceful-fs": "^4.2.10",
2626
"jest-junit": "^13.2.0",
27-
"jsii-diff": "1.74.0",
28-
"jsii-pacmak": "1.74.0",
29-
"jsii-reflect": "1.74.0",
30-
"jsii-rosetta": "1.74.0",
27+
"jsii-diff": "1.75.0",
28+
"jsii-pacmak": "1.75.0",
29+
"jsii-reflect": "1.75.0",
30+
"jsii-rosetta": "1.75.0",
3131
"lerna": "^4.0.0",
3232
"patch-package": "^6.5.1",
3333
"semver": "^6.3.0",

packages/@aws-cdk-testing/cli-integ/lib/aws.ts

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
import * as AWS from 'aws-sdk';
22

3+
// eslint-disable-next-line @typescript-eslint/no-require-imports
4+
require('aws-sdk/lib/maintenance_mode_message').suppress = true;
5+
36
export class AwsClients {
47
public static async default(output: NodeJS.WritableStream) {
58
const region = process.env.AWS_REGION ?? process.env.AWS_DEFAULT_REGION ?? 'us-east-1';

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

+8-7
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,18 @@
3939
},
4040
"dependencies": {
4141
"@octokit/rest": "^18.12.0",
42-
"jest": "^27.5.1",
43-
"aws-sdk": "^2.1313.0",
42+
"aws-sdk": "^2.1317.0",
4443
"axios": "^0.27.2",
44+
"fs-extra": "^9.1.0",
45+
"glob": "^7.2.3",
46+
"jest": "^27.5.1",
4547
"jest-junit": "^14.0.1",
48+
"make-runnable": "^1.4.1",
49+
"npm": "^8.19.4",
50+
"p-queue": "^6.6.2",
4651
"semver": "^7.3.8",
4752
"ts-mock-imports": "^1.3.8",
48-
"yargs": "^17.6.2",
49-
"glob": "^7.2.3",
50-
"p-queue": "^6.6.2",
51-
"fs-extra": "^9.1.0",
52-
"npm": "^8.19.3"
53+
"yargs": "^17.7.0"
5354
},
5455
"repository": {
5556
"url": "https://github.com/aws/aws-cdk.git",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { integTest, withTemporaryDirectory, ShellHelper, withPackages } from '../../lib';
2+
3+
['app', 'sample-app'].forEach(template => {
4+
integTest(`init go ${template}`, withTemporaryDirectory(withPackages(async (context) => {
5+
context.packages.assertJsiiPackagesAvailable();
6+
7+
const shell = ShellHelper.fromContext(context);
8+
await context.packages.makeCliAvailable();
9+
10+
await shell.shell(['cdk', 'init', '-l', 'go', template]);
11+
await shell.shell(['go', 'mod', 'edit', '-replace', 'github.com/aws/aws-cdk-go/awscdk=$dist_root/go/awscdk']);
12+
await shell.shell(['go', 'mod', 'tidy']);
13+
await shell.shell(['go', 'test']);
14+
await shell.shell(['cdk', 'synth']);
15+
})));
16+
});

packages/@aws-cdk/aws-amplify/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
"@aws-cdk/cfn2ts": "0.0.0",
8989
"@aws-cdk/pkglint": "0.0.0",
9090
"@types/jest": "^27.5.2",
91-
"aws-sdk": "^2.1211.0"
91+
"aws-sdk": "^2.1317.0"
9292
},
9393
"dependencies": {
9494
"@aws-cdk/aws-codebuild": "0.0.0",

packages/@aws-cdk/aws-amplifyuibuilder/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
"@aws-cdk/cfn2ts": "0.0.0",
9090
"@aws-cdk/pkglint": "0.0.0",
9191
"@types/jest": "^27.5.2",
92-
"@types/node": "18.11.18"
92+
"@types/node": "18.11.19"
9393
},
9494
"dependencies": {
9595
"@aws-cdk/core": "0.0.0",

packages/@aws-cdk/aws-apigateway/README.md

+12
Original file line numberDiff line numberDiff line change
@@ -945,6 +945,18 @@ to allow users revert the stage to an old deployment manually.
945945
[Deployment]: https://docs.aws.amazon.com/apigateway/api-reference/resource/deployment/
946946
[Stage]: https://docs.aws.amazon.com/apigateway/api-reference/resource/stage/
947947

948+
In order to also create a new deployment when changes are made to any authorizer attached to the API,
949+
the `@aws-cdk/aws-apigateway:authorizerChangeDeploymentLogicalId` [feature flag](https://docs.aws.amazon.com/cdk/v2/guide/featureflags.html) can be enabled. This can be set
950+
in the `cdk.json` file.
951+
952+
```json
953+
{
954+
"context": {
955+
"@aws-cdk/aws-apigateway:authorizerChangeDeploymentLogicalId": true
956+
}
957+
}
958+
```
959+
948960
## Custom Domains
949961

950962
To associate an API with a custom domain, use the `domainName` configuration when

0 commit comments

Comments
 (0)