Skip to content

Commit

Permalink
chore(apigatewayv2): turn on awslint (#27767)
Browse files Browse the repository at this point in the history
We've been bad and turned off awslint for a while. This turns it back on so future commits to this module will have to play nice with the linter.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
kaizencc committed Oct 30, 2023
1 parent 9198807 commit 292eec6
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
10 changes: 9 additions & 1 deletion packages/@aws-cdk/aws-apigatewayv2-alpha/awslint.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
{
"exclude": [
"*:*"
"props-physical-name:@aws-cdk/aws-apigatewayv2-alpha.ApiMappingProps",
"props-physical-name:@aws-cdk/aws-apigatewayv2-alpha.HttpIntegrationProps",
"props-physical-name:@aws-cdk/aws-apigatewayv2-alpha.HttpRouteProps",
"props-physical-name:@aws-cdk/aws-apigatewayv2-alpha.WebSocketIntegrationProps",
"props-physical-name:@aws-cdk/aws-apigatewayv2-alpha.WebSocketRouteProps",
"from-method:@aws-cdk/aws-apigatewayv2-alpha.HttpIntegration",
"from-method:@aws-cdk/aws-apigatewayv2-alpha.HttpRoute",
"from-method:@aws-cdk/aws-apigatewayv2-alpha.WebSocketIntegration",
"from-method:@aws-cdk/aws-apigatewayv2-alpha.WebSocketRoute"
]
}
12 changes: 10 additions & 2 deletions packages/@aws-cdk/aws-apigatewayv2-alpha/lib/http/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -357,11 +357,19 @@ export class HttpApi extends HttpApiBase {
*/
public readonly defaultStage: IHttpStage | undefined;

private readonly _apiEndpoint: string;

/**
* Default Authorizer applied to all routes in the gateway.
*/
public readonly defaultAuthorizer?: IHttpRouteAuthorizer;

/**
* Default OIDC scopes attached to all routes in the gateway, unless explicitly configured on the route.
* The scopes are used with a COGNITO_USER_POOLS authorizer to authorize the method invocation.
*/
public readonly defaultAuthorizationScopes?: string[];

private readonly _apiEndpoint: string;

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

Expand Down

0 comments on commit 292eec6

Please sign in to comment.