Skip to content

Commit

Permalink
docs(filemanager): add docs for API endpoints, tidy routes and bump deps
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalenic committed Jul 3, 2024
1 parent 06adf97 commit 2b9b1e6
Show file tree
Hide file tree
Showing 29 changed files with 755 additions and 157 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class ApiGatewayProxyIntegration extends Construct {
this.apiGateway = new ApiGatewayConstruct(this, 'ApiGateway', props.apiGatewayProps);

const integration = new HttpLambdaIntegration('ApiLambdaIntegration', props.handler);
new HttpRoute(scope, id, {
new HttpRoute(this, 'ApiLambdaRoute', {
httpApi: this.apiGateway.httpApi,
integration,
routeKey: HttpRouteKey.with('/{proxy+}', HttpMethod.ANY),
Expand Down
11 changes: 1 addition & 10 deletions lib/workload/components/api-gateway/index.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,13 @@
import { Construct } from 'constructs';
import { aws_ssm, Duration, RemovalPolicy } from 'aws-cdk-lib';
import { HttpJwtAuthorizer } from 'aws-cdk-lib/aws-apigatewayv2-authorizers';
import {
CorsHttpMethod,
HttpApi,
CfnStage,
DomainName,
HttpRoute,
HttpRouteKey,
HttpMethod,
} from 'aws-cdk-lib/aws-apigatewayv2';
import { CorsHttpMethod, HttpApi, CfnStage, DomainName } from 'aws-cdk-lib/aws-apigatewayv2';
import { Certificate } from 'aws-cdk-lib/aws-certificatemanager';
import { IStringParameter, StringParameter } from 'aws-cdk-lib/aws-ssm';
import { LogGroup, RetentionDays } from 'aws-cdk-lib/aws-logs';
import { ARecord, HostedZone, RecordTarget } from 'aws-cdk-lib/aws-route53';
import { Role, ServicePrincipal } from 'aws-cdk-lib/aws-iam';
import { ApiGatewayv2DomainProperties } from 'aws-cdk-lib/aws-route53-targets';
import { HttpLambdaIntegration } from 'aws-cdk-lib/aws-apigatewayv2-integrations';

export interface ApiGwLogsConfig {
/**
Expand Down
Loading

0 comments on commit 2b9b1e6

Please # to comment.