feat(apigatewayv2): add description property for stage#30820
feat(apigatewayv2): add description property for stage#30820mergify[bot] merged 8 commits intoaws:mainfrom
description property for stage#30820Conversation
aws-cdk-automation
left a comment
There was a problem hiding this comment.
The pull request linter has failed. See the aws-cdk-automation comment below for failure reasons. If you believe this pull request should receive an exemption, please comment and provide a justification.
A comment requesting an exemption should contain the text Exemption Request. Additionally, if clarification is needed add Clarification Request to a comment.
|
Exemption Request: It is possible to specify the |
go-to-k
left a comment
There was a problem hiding this comment.
Thanks for this PR! It seems that the PR title has a typo poperty.
There are also errors in the Code Build CI. Could you please check the trailing spaces, and erase them?
aws-cdk-lib: /codebuild/output/src284929355/src/github.com/aws/aws-cdk/packages/aws-cdk-lib/aws-apigatewayv2/lib/common/stage.ts
aws-cdk-lib: 72:5 error Trailing spaces not allowed no-trailing-spaces
aws-cdk-lib: /codebuild/output/src284929355/src/github.com/aws/aws-cdk/packages/aws-cdk-lib/aws-apigatewayv2/test/websocket/stage.test.ts
aws-cdk-lib: 148:1 error Trailing spaces not allowed no-trailing-spaces
aws-cdk-lib: 笨� 2 problems (2 errors, 0 warnings)
aws-cdk-lib: 2 errors and 0 warnings
description poperty for stagedescription property for stage
|
@go-to-k |
go-to-k
left a comment
There was a problem hiding this comment.
It's very nice. I made just a few minor comments.
Both the WebSocketStage and the HttpStage seem to be in the README. Could you include the property in the sample code? declare const api: apigwv2.HttpApi;
new apigwv2.HttpStage(this, 'Stage', {
httpApi: api,
stageName: 'beta',
description: 'My Stage', // <- here
});import { WebSocketLambdaIntegration } from 'aws-cdk-lib/aws-apigatewayv2-integrations';
// ...
// ...
new apigwv2.WebSocketStage(this, 'mystage', {
webSocketApi,
stageName: 'dev',
description: 'My Stage', // <- here
autoDeploy: true,
}); |
Co-authored-by: Kenta Goto (k.goto) <24818752+go-to-k@users.noreply.github.com>
✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.
|
@go-to-k |
|
I'm sorry. I deleted the branch by mistake and reopened the pull request. |
gracelu0
left a comment
There was a problem hiding this comment.
LGTM, thank you for contributing!
|
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
|
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
|
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
|
Comments on closed issues and PRs are hard for our team to see. |
### Issue # (if applicable) ### Reason for this change The `description` property existed in the L1 construct but was not present in the L2 construct ### Description of changes Add the `description` property for `HttpStage` and `WebSocketStage`, which was missing in the L2 construct. ### Description of how you validated changes I Added both unit test and integration tests. ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
Comments on closed issues and PRs are hard for our team to see. If you need help, please open a new issue that references this one. |
Issue # (if applicable)
Reason for this change
The
descriptionproperty existed in the L1 construct but was not present in the L2 constructDescription of changes
Add the
descriptionproperty forHttpStageandWebSocketStage, which was missing in the L2 construct.Description of how you validated changes
I Added both unit test and integration tests.
Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license