Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
74458a0
feat(cli): `--quiet` does not print template in `cdk synth` (#12178)
briete Jan 11, 2021
05a9980
feat(cdk-assets): add external asset support (#12259)
CaerusKaru Jan 11, 2021
85d3159
feat(iam): import users by arn or attributes #12340 (#12388)
rrhodes Jan 11, 2021
2389a9b
fix(cli): CLI doesn't read context from ~/.cdk.json (#12394)
bitbauer Jan 11, 2021
26121c8
feat(core): validate maximum amount of resources in a stack (#12193)
Jan 11, 2021
cc745f8
chore(lambda): throw a relevant error message when asset is used acro…
Jan 11, 2021
422dc8e
feat(codebuild): support Standard 5.0 (#12434)
xian13 Jan 11, 2021
5f6f0f9
fix(eks): nodegroup synthesis fails when configured with an AMI type …
iliapolo Jan 12, 2021
e6bb96f
fix(elasticsearch): domain fails due to log publishing keys on unsupp…
iliapolo Jan 12, 2021
6ac1f4f
feat(eks): spot interruption handler can be disabled for self managed…
kimxogus Jan 12, 2021
7cb851c
chore(release): 1.84.0
Jan 12, 2021
0decba6
Update CHANGELOG.md
NetaNir Jan 12, 2021
a0aad85
chore: ignore venv for python template (#12429)
codeasashu Jan 12, 2021
866c8dc
Merge pull request #12475 from aws/bump/1.84.0
NetaNir Jan 12, 2021
175a257
feat(appmesh): add listener TLS certificates for VirtualNodes and Vir…
alexbrjo Jan 12, 2021
6d9a0f1
fix(aws-ecs): Support configuring Windows capacity for cluster ASGs (…
SoManyHs Jan 12, 2021
e0b4976
Merge branch 'master' into merge-back/1.84.0
mergify[bot] Jan 12, 2021
5818029
chore(merge-back): 1.84.0 (#12480)
mergify[bot] Jan 12, 2021
cd28c29
chore(deps): bump decamelize from 4.0.0 to 5.0.0 (#12459)
dependabot-preview[bot] Jan 13, 2021
37d8ccc
fix(sns): require topic name for fifo topic #12386 (#12437)
rrhodes Jan 13, 2021
d0305f3
fix(appsync): rds data source configured with cluster arn (#12255)
BryanPan342 Jan 13, 2021
cd437cf
fix(s3): Bucket.grantWrite() no longer adds s3:PutObject* permission …
skinny85 Jan 13, 2021
dcb1579
chore: auto approve v2 release PRs (#12471)
Jan 13, 2021
5e6f377
chore: backporting changes to merge-forward job from v2 branch (#12482)
njlynch Jan 13, 2021
3967c6e
docs(stepfunctions-tasks): fix code example of glue start job (#12483)
zxkane Jan 13, 2021
adb2a18
docs(applicationautoscaling): typo in docstring (#12377)
ppbdrinker Jan 13, 2021
2fed1e1
docs: clarify egress default for `fromSecurityGroupId` (#12350)
rix0rrr Jan 13, 2021
c14e641
chore(appsync): improved example DynamoDB stack in AppSync README.md …
tlakomy Jan 13, 2021
a7a2236
feat(cfnspec): CloudFormation resource specification update to v23.0.…
skinny85 Jan 13, 2021
25b8d60
chore(deps): bump aws-sdk from 2.824.0 to 2.827.0 (#12493)
dependabot-preview[bot] Jan 13, 2021
4a6e26a
chore(rds): add missing AuroraPostgresEngineVersions 9.6.18, 9.6.19, …
blimmer Jan 13, 2021
05c0b5f
fix(eks): aws-node-termination-handler incorrectly deployed to on-dem…
dirknilius Jan 14, 2021
a81aeca
chore(deps-dev): bump esbuild from 0.8.31 to 0.8.32 (#12502)
dependabot-preview[bot] Jan 14, 2021
1724da7
feat(apigatewayv2): http api - disable execute api endpoint (#12426)
rrhodes Jan 14, 2021
54f0ac6
chore(lambda): update links to language-specific APIs in readme (#12182)
jumi-dev Jan 14, 2021
f50f928
fix(s3-deployment): stop using deprecated API's that will cause break…
iliapolo Jan 14, 2021
f8963ed
chore(release): 1.85.0
Jan 14, 2021
7ab8dd7
Update CHANGELOG.md
NetaNir Jan 14, 2021
19999fa
Update CHANGELOG.md
NetaNir Jan 14, 2021
9a27828
Update CHANGELOG.md
NetaNir Jan 14, 2021
5f44668
Merge pull request #12513 from aws/bump/1.85.0
NetaNir Jan 14, 2021
ccf30b4
Update CHANGELOG.md
NetaNir Jan 14, 2021
1647dba
chore(merge-back): 1.85.0 (#12520)
mergify[bot] Jan 14, 2021
737bab3
chore(deps-dev): bump typescript-json-schema from 0.46.0 to 0.47.0 (#…
dependabot-preview[bot] Jan 14, 2021
83b8df8
chore: eliminate the use of `xxx.Construct` to reduce v2 merge confli…
Jan 15, 2021
f5ade6e
chore(deps): bump aws-sdk from 2.827.0 to 2.828.0 (#12533)
dependabot-preview[bot] Jan 15, 2021
4aa64c8
chore(aws-cdk-lib): minimum supported node version is now v14 (#11964)
Jan 15, 2021
f252051
chore(scripts): compat check will compare against last published vers…
Jan 15, 2021
37fc08c
chore(eks): updated the eks launch template support topic in the docs…
dirknilius Jan 15, 2021
4ba0644
chore(pkglint): validate that package `maturity` is correct (#12519)
skinny85 Jan 15, 2021
ea67c54
docs(codebuild): clarify BuildEnvironmentVariable `value` property (#…
blimmer Jan 15, 2021
7d688e1
Merge remote-tracking branch 'origin/master' into v2-main
Jan 17, 2021
fdbe06d
remove old imports
Jan 17, 2021
bf3e46d
pkglint fixes
Jan 17, 2021
14c3027
add import
Jan 17, 2021
d35fcac
add import
Jan 17, 2021
fea7d8a
fix appmesh
Jan 17, 2021
3ce0f16
more appmesh fixes
Jan 17, 2021
ac0908c
fix
Jan 17, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .github/workflows/auto-approve-v2-merge-forward.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Automatically approve PRs that merge master forward to v2-main
#
# Only does approvals! mergify takes care of the actual merge.
name: Auto-approve forward merges onto v2-main
name: Auto-approve automated PRs around CDK v2
on:
pull_request:
types:
Expand All @@ -21,6 +21,6 @@ jobs:
if: >
github.event.pull_request.user.login == 'aws-cdk-automation'
&& github.event.pull_request.base.ref == 'v2-main'
&& contains(github.event.pull_request.labels.*.name, 'pr/forward-merge')
&& contains(github.event.pull_request.labels.*.name, 'pr/auto-approve')
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
1 change: 1 addition & 0 deletions .yarnrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
--install.check-files true # install will verify file tree of packages for consistency
ignore-engines true # the 'engines' key for 'aws-cdk-lib' has specifies node14 as min while v1 will remain at node10
51 changes: 51 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,57 @@

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.

## [1.85.0](https://github.com/aws/aws-cdk/compare/v1.84.0...v1.85.0) (2021-01-14)

* **s3-deployment**: This version includes an important update, please upgrade to prevent deployment failure. This is in prepartion of Lambda deprecation of the request module in boto, more details are available in [AWS blog](https://aws.amazon.com/blogs/compute/upcoming-changes-to-the-python-sdk-in-aws-lambda/). Note, users of versions < `1.81.0` will not be impacted by this deprecation, but are still encouraged to upgrade to the latest version.

### Features

* **apigatewayv2:** http api - disable execute api endpoint ([#12426](https://github.com/aws/aws-cdk/issues/12426)) ([1724da7](https://github.com/aws/aws-cdk/commit/1724da758666ec92f7b923c899d2f2f439083ba2)), closes [#12241](https://github.com/aws/aws-cdk/issues/12241)
* **appmesh:** add listener TLS certificates for VirtualNodes and VirtualGateways ([#11863](https://github.com/aws/aws-cdk/issues/11863)) ([175a257](https://github.com/aws/aws-cdk/commit/175a2570465d484aa0a73a7bded34e686da493ed)), closes [#10051](https://github.com/aws/aws-cdk/issues/10051)
* **cfnspec:** CloudFormation resource specification update to v23.0.0 ([#12490](https://github.com/aws/aws-cdk/issues/12490)) ([a7a2236](https://github.com/aws/aws-cdk/commit/a7a2236367f8f01b00b6d90f1d3fe7bf674b1aee))


### Bug Fixes

* **appsync:** rds data source configured with cluster arn ([#12255](https://github.com/aws/aws-cdk/issues/12255)) ([d0305f3](https://github.com/aws/aws-cdk/commit/d0305f33da41ce1f07a5d571eb21c0ee9ea852d0)), closes [#11536](https://github.com/aws/aws-cdk/issues/11536)
* **aws-ecs:** Support configuring Windows capacity for cluster ASGs ([#12365](https://github.com/aws/aws-cdk/issues/12365)) ([6d9a0f1](https://github.com/aws/aws-cdk/commit/6d9a0f1ea0c05e7902ccca4d0fc4040e688846e5))
* **eks:** aws-node-termination-handler incorrectly deployed to on-demand instances as well ([#12369](https://github.com/aws/aws-cdk/issues/12369)) ([05c0b5f](https://github.com/aws/aws-cdk/commit/05c0b5f5a31c3fe89c47c6db8d9051f7165641a9)), closes [#12368](https://github.com/aws/aws-cdk/issues/12368)
* **s3:** Bucket.grantWrite() no longer adds s3:PutObject* permission ([#12391](https://github.com/aws/aws-cdk/issues/12391)) ([cd437cf](https://github.com/aws/aws-cdk/commit/cd437cf630266086a3ddf9e326f215b5d1acdfd7))
* **s3-deployment:** stop using deprecated API's that will cause breakage post 01/31/21 ([#12491](https://github.com/aws/aws-cdk/issues/12491)) ([f50f928](https://github.com/aws/aws-cdk/commit/f50f92880bbc219c331c858eaace712e0757507d))
* **sns:** require topic name for fifo topic [#12386](https://github.com/aws/aws-cdk/issues/12386) ([#12437](https://github.com/aws/aws-cdk/issues/12437)) ([37d8ccc](https://github.com/aws/aws-cdk/commit/37d8ccc763f532999bc9f114264f3d29725b0f28))

## [1.84.0](https://github.com/aws/aws-cdk/compare/v1.83.0...v1.84.0) (2021-01-12)


### ⚠ BREAKING CHANGES TO EXPERIMENTAL FEATURES

* **apigatewayv2:** `subnets` prop in `VpcLink` resource now takes `SubnetSelection` instead of `ISubnet[]`

### Features

* **aws-lambda-nodejs:** add esbuild `define` bundling option ([#12424](https://github.com/aws/aws-cdk/issues/12424)) ([581f6af](https://github.com/aws/aws-cdk/commit/581f6af3d1f71737ca93b6ecb9b004bdade149a8)), closes [#12423](https://github.com/aws/aws-cdk/issues/12423)
* **cdk-assets:** add external asset support ([#12259](https://github.com/aws/aws-cdk/issues/12259)) ([05a9980](https://github.com/aws/aws-cdk/commit/05a998065b3333854715c456b20b7cc5d5daac67))
* **cli:** `--quiet` does not print template in `cdk synth` ([#12178](https://github.com/aws/aws-cdk/issues/12178)) ([74458a0](https://github.com/aws/aws-cdk/commit/74458a0e9eebce4ee254673aad8933d39588d843)), closes [#11970](https://github.com/aws/aws-cdk/issues/11970)
* **codebuild:** support Standard 5.0 ([#12434](https://github.com/aws/aws-cdk/issues/12434)) ([422dc8e](https://github.com/aws/aws-cdk/commit/422dc8e9d50105af4e710d409a4f301079d43f3f)), closes [#12433](https://github.com/aws/aws-cdk/issues/12433)
* **core:** validate maximum amount of resources in a stack ([#12193](https://github.com/aws/aws-cdk/issues/12193)) ([26121c8](https://github.com/aws/aws-cdk/commit/26121c81abf0fb92de97567c758a1ecf60f85f63)), closes [#276](https://github.com/aws/aws-cdk/issues/276)
* **eks:** spot interruption handler can be disabled for self managed nodes ([#12453](https://github.com/aws/aws-cdk/issues/12453)) ([6ac1f4f](https://github.com/aws/aws-cdk/commit/6ac1f4fdef5853785d8e57652ec4c4e1d770844d)), closes [#12451](https://github.com/aws/aws-cdk/issues/12451)
* **synthetics:** Update Cloudwatch Synthetics canaries NodeJS runtimes ([#11866](https://github.com/aws/aws-cdk/issues/11866)) ([4f6e377](https://github.com/aws/aws-cdk/commit/4f6e377ae3f35c3fa010e1597c3d71ef6e6e9a04)), closes [#11870](https://github.com/aws/aws-cdk/issues/11870)


### Bug Fixes

* **apigatewayv2:** vpclink - explicit subnet specification still causes private subnets to be included ([#12401](https://github.com/aws/aws-cdk/issues/12401)) ([336a58f](https://github.com/aws/aws-cdk/commit/336a58f06a3b3a9f5db2a79350f8721244767e3b)), closes [#12083](https://github.com/aws/aws-cdk/issues/12083)
* **cli:** CLI doesn't read context from ~/.cdk.json ([#12394](https://github.com/aws/aws-cdk/issues/12394)) ([2389a9b](https://github.com/aws/aws-cdk/commit/2389a9b5742583f1d58c66a4f513ee4d833baab5)), closes [#10823](https://github.com/aws/aws-cdk/issues/10823) [#4802](https://github.com/aws/aws-cdk/issues/4802)
* **core:** DefaultStackSynthesizer bucket prefix missing for template assets ([#11855](https://github.com/aws/aws-cdk/issues/11855)) ([50a3d3a](https://github.com/aws/aws-cdk/commit/50a3d3acf3e413d9b4e51197d2be4ea1349c0955)), closes [#10710](https://github.com/aws/aws-cdk/issues/10710) [#11327](https://github.com/aws/aws-cdk/issues/11327)
* **dynamodb:** missing grantRead for ConditionCheckItem ([#12313](https://github.com/aws/aws-cdk/issues/12313)) ([e157007](https://github.com/aws/aws-cdk/commit/e1570072440b07b6b82219c1a4371386c541fb1c))
* **ec2:** interface endpoint AZ lookup does not guard against broken situations ([#12033](https://github.com/aws/aws-cdk/issues/12033)) ([80f0bfd](https://github.com/aws/aws-cdk/commit/80f0bfd167430a015e71b00506e0ecc280068e86))
* **eks:** nodegroup synthesis fails when configured with an AMI type that is not compatible to the default instance type ([#12441](https://github.com/aws/aws-cdk/issues/12441)) ([5f6f0f9](https://github.com/aws/aws-cdk/commit/5f6f0f9d46dbd460ac03dd5f9f4874eaa41611d8)), closes [#12389](https://github.com/aws/aws-cdk/issues/12389)
* **elasticsearch:** domain fails due to log publishing keys on unsupported cluster versions ([#11622](https://github.com/aws/aws-cdk/issues/11622)) ([e6bb96f](https://github.com/aws/aws-cdk/commit/e6bb96ff6bae96e3167c82f6de97807217ddb3be))
* **elbv2:** can't import two application listeners into the same scope ([#12373](https://github.com/aws/aws-cdk/issues/12373)) ([6534dcf](https://github.com/aws/aws-cdk/commit/6534dcf3e04a55f5c6d28203192cbbddb5d119e6)), closes [#12132](https://github.com/aws/aws-cdk/issues/12132)
* **logs:** custom resource Lambda uses old NodeJS version ([#12228](https://github.com/aws/aws-cdk/issues/12228)) ([29c4943](https://github.com/aws/aws-cdk/commit/29c4943466f4a911f65a2a13cf9e776ade9b8dfe))
* **stepfunctions-tasks:** EvaluateExpression does not support JSON paths with dash ([#12248](https://github.com/aws/aws-cdk/issues/12248)) ([da1ed08](https://github.com/aws/aws-cdk/commit/da1ed08a6a2de584f5ddf43dab4efbb530541419)), closes [#12221](https://github.com/aws/aws-cdk/issues/12221)

## [1.83.0](https://github.com/aws/aws-cdk/compare/v1.82.0...v1.83.0) (2021-01-06)


Expand Down
4 changes: 4 additions & 0 deletions allowed-breaking-changes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,7 @@ incompatible-argument:@aws-cdk/aws-ecs.FargateTaskDefinition.<initializer>
incompatible-argument:@aws-cdk/aws-ecs.FargateTaskDefinition.addVolume
incompatible-argument:@aws-cdk/aws-ecs.TaskDefinition.<initializer>
incompatible-argument:@aws-cdk/aws-ecs.TaskDefinition.addVolume

# We made properties optional and it's really fine but our differ doesn't think so.
weakened:@aws-cdk/cloud-assembly-schema.DockerImageSource
weakened:@aws-cdk/cloud-assembly-schema.FileSource
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@ export class CloudwatchAgentExtension extends ServiceExtension {
});
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as ecs from '@aws-cdk/aws-ecs';
import * as cdk from '@aws-cdk/core';
import { Construct } from 'constructs';
import { Service } from '../service';
import { ServiceExtension } from './extension-interfaces';

Expand Down Expand Up @@ -59,7 +59,7 @@ export class Container extends ServiceExtension {
}

// @ts-ignore - Ignore unused params that are required for abstract class extend
public prehook(service: Service, scope: cdk.Construct) {
public prehook(service: Service, scope: Construct) {
this.parentService = service;
}

Expand Down Expand Up @@ -142,4 +142,4 @@ export class Container extends ServiceExtension {
});
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import * as ecs from '@aws-cdk/aws-ecs';
import * as iam from '@aws-cdk/aws-iam';
import * as cdk from '@aws-cdk/core';
import { Construct } from 'constructs';
import { Service } from '../service';
import { ServiceExtension } from './extension-interfaces';

Expand All @@ -17,7 +18,7 @@ export class XRayExtension extends ServiceExtension {
}

// @ts-ignore - Ignore unused params that are required for abstract class extend
public prehook(service: Service, scope: cdk.Construct) {
public prehook(service: Service, scope: Construct) {
this.parentService = service;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
"constructs": "10.0.0-pre.5"
},
"engines": {
"node": ">= 10.13.0 <13 || >=13.7.0"
"node": ">= 14.15.0"
},
"awscdkio": {
"announce": false
Expand Down
8 changes: 0 additions & 8 deletions packages/@aws-cdk/alexa-ask/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,6 @@
>
> [CFN Resources]: https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_lib

![cdk-constructs: Experimental](https://img.shields.io/badge/cdk--constructs-experimental-important.svg?style=for-the-badge)

> The APIs of higher level constructs in this module are experimental and under active development.
> They are subject to non-backward compatible changes or removal in any future version. These are
> not subject to the [Semantic Versioning](https://semver.org/) model and breaking changes will be
> announced in the release notes. This means that while you may use them, you may need to update
> your source code when upgrading to a newer version of this package.

---

<!--END STABILITY BANNER-->
Expand Down
4 changes: 2 additions & 2 deletions packages/@aws-cdk/alexa-ask/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@
"constructs": "10.0.0-pre.5"
},
"engines": {
"node": ">= 10.13.0 <13 || >=13.7.0"
"node": ">= 14.15.0"
},
"stability": "experimental",
"maturity": "experimental",
"maturity": "cfn-only",
"awscdkio": {
"announce": false
}
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/app-delivery/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
"constructs": "10.0.0-pre.5"
},
"engines": {
"node": ">= 10.13.0 <13 || >=13.7.0"
"node": ">= 14.15.0"
},
"stability": "deprecated",
"maturity": "deprecated",
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/assert/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
],
"homepage": "https://github.com/aws/aws-cdk",
"engines": {
"node": ">= 10.13.0 <13 || >=13.7.0"
"node": ">= 14.15.0"
},
"stability": "experimental",
"maturity": "experimental",
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
"constructs": "10.0.0-pre.5"
},
"engines": {
"node": ">= 10.13.0 <13 || >=13.7.0"
"node": ">= 14.15.0"
},
"stability": "deprecated",
"maturity": "deprecated",
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-accessanalyzer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
"constructs": "10.0.0-pre.5"
},
"engines": {
"node": ">= 10.13.0 <13 || >=13.7.0"
"node": ">= 14.15.0"
},
"stability": "experimental",
"maturity": "cfn-only",
Expand Down
8 changes: 8 additions & 0 deletions packages/@aws-cdk/aws-acmpca/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@
>
> [CFN Resources]: https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_lib

![cdk-constructs: Experimental](https://img.shields.io/badge/cdk--constructs-experimental-important.svg?style=for-the-badge)

> The APIs of higher level constructs in this module are experimental and under active development.
> They are subject to non-backward compatible changes or removal in any future version. These are
> not subject to the [Semantic Versioning](https://semver.org/) model and breaking changes will be
> announced in the release notes. This means that while you may use them, you may need to update
> your source code when upgrading to a newer version of this package.

---

<!--END STABILITY BANNER-->
Expand Down
4 changes: 2 additions & 2 deletions packages/@aws-cdk/aws-acmpca/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@
"constructs": "10.0.0-pre.5"
},
"engines": {
"node": ">= 10.13.0 <13 || >=13.7.0"
"node": ">= 14.15.0"
},
"stability": "experimental",
"maturity": "cfn-only",
"maturity": "experimental",
"awscdkio": {
"announce": false
}
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-amazonmq/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
"constructs": "10.0.0-pre.5"
},
"engines": {
"node": ">= 10.13.0 <13 || >=13.7.0"
"node": ">= 14.15.0"
},
"stability": "experimental",
"maturity": "cfn-only",
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-amplify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
"constructs": "10.0.0-pre.5"
},
"engines": {
"node": ">= 10.13.0 <13 || >=13.7.0"
"node": ">= 14.15.0"
},
"stability": "experimental",
"maturity": "experimental",
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-apigateway/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
"constructs": "10.0.0-pre.5"
},
"engines": {
"node": ">= 10.13.0 <13 || >=13.7.0"
"node": ">= 14.15.0"
},
"nyc": {
"exclude": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
"constructs": "10.0.0-pre.5"
},
"engines": {
"node": ">= 10.13.0 <13 || >=13.7.0"
"node": ">= 14.15.0"
},
"stability": "experimental",
"maturity": "experimental",
Expand Down
8 changes: 7 additions & 1 deletion packages/@aws-cdk/aws-apigatewayv2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,13 @@ httpApi.addRoutes({
});
```

The URL to the endpoint can be retrieved via the `apiEndpoint` attribute.
The URL to the endpoint can be retrieved via the `apiEndpoint` attribute. By default this URL is enabled for clients. Use `disableExecuteApiEndpoint` to disable it.

```ts
const httpApi = new HttpApi(stack, 'HttpApi', {
disableExecuteApiEndpoint: true,
});
```

The `defaultIntegration` option while defining HTTP APIs lets you create a default catch-all integration that is
matched when a client reaches a route that is not explicitly defined.
Expand Down
31 changes: 29 additions & 2 deletions packages/@aws-cdk/aws-apigatewayv2/lib/http/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,15 @@ export interface HttpApiProps {
* @default - no default domain mapping configured. meaningless if `createDefaultStage` is `false`.
*/
readonly defaultDomainMapping?: DefaultDomainMappingOptions;

/**
* Specifies whether clients can invoke your API using the default endpoint.
* By default, clients can invoke your API with the default
* `https://{api_id}.execute-api.{region}.amazonaws.com` endpoint. Enable
* this if you would like clients to use your custom domain name.
* @default false execute-api endpoint enabled.
*/
readonly disableExecuteApiEndpoint?: boolean;
}

/**
Expand Down Expand Up @@ -283,17 +292,24 @@ export class HttpApi extends HttpApiBase {
*/
public readonly httpApiName?: string;
public readonly httpApiId: string;
public readonly apiEndpoint: string;

/**
* Specifies whether clients can invoke this HTTP API by using the default execute-api endpoint.
*/
public readonly disableExecuteApiEndpoint?: boolean;

/**
* default stage of the api resource
*/
public readonly defaultStage: HttpStage | undefined;

private readonly _apiEndpoint: string;

constructor(scope: Construct, id: string, props?: HttpApiProps) {
super(scope, id);

this.httpApiName = props?.apiName ?? id;
this.disableExecuteApiEndpoint = props?.disableExecuteApiEndpoint;

let corsConfiguration: CfnApi.CorsProperty | undefined;
if (props?.corsPreflight) {
Expand Down Expand Up @@ -324,11 +340,12 @@ export class HttpApi extends HttpApiBase {
protocolType: 'HTTP',
corsConfiguration,
description: props?.description,
disableExecuteApiEndpoint: this.disableExecuteApiEndpoint,
};

const resource = new CfnApi(this, 'Resource', apiProps);
this.httpApiId = resource.ref;
this.apiEndpoint = resource.attrApiEndpoint;
this._apiEndpoint = resource.attrApiEndpoint;

if (props?.defaultIntegration) {
new HttpRoute(this, 'DefaultRoute', {
Expand Down Expand Up @@ -357,6 +374,16 @@ export class HttpApi extends HttpApiBase {
}
}

/**
* Get the default endpoint for this API.
*/
public get apiEndpoint(): string {
if (this.disableExecuteApiEndpoint) {
throw new Error('apiEndpoint is not accessible when disableExecuteApiEndpoint is set to true.');
}
return this._apiEndpoint;
}

/**
* Get the URL to the default stage of this API.
* Returns `undefined` if `createDefaultStage` is unset.
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-apigatewayv2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
"constructs": "10.0.0-pre.5"
},
"engines": {
"node": ">= 10.13.0 <13 || >=13.7.0"
"node": ">= 14.15.0"
},
"awslint": {
"exclude": [
Expand Down
Loading