Skip to content

Commit

Permalink
chore(apigatewayv2): turn on awslint
Browse files Browse the repository at this point in the history
  • Loading branch information
kaizencc committed Oct 30, 2023
1 parent 9198807 commit fc0d186
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 fc0d186

Please sign in to comment.