Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(apigatewayv2): turn on awslint #27767

Merged
merged 2 commits into from
Oct 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading