Skip to content

Commit fa15824

Browse files
authored
Merge branch 'main' into Issue351
2 parents b8af255 + ffd8d17 commit fa15824

12 files changed

+1448
-13
lines changed

source/patterns/@aws-solutions-constructs/aws-cloudfront-apigateway-lambda/README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,12 @@ _Parameters_
5555
| **Name** | **Type** | **Description** |
5656
|:-------------|:----------------|-----------------|
5757
|existingLambdaObj?|[`lambda.Function`](https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-lambda.Function.html)|Existing instance of Lambda Function object, providing both this and `lambdaFunctionProps` will cause an error.|
58-
|lambdaFunctionProps?|[`lambda.FunctionProps`](https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-lambda.FunctionProps.html)|User provided props to override the default props for the Lambda function.|
58+
|lambdaFunctionProps?|[`lambda.FunctionProps`](https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-lambda.FunctionProps.html)|Optional user provided props to override the default props for the Lambda function.|
5959
|apiGatewayProps?|[`api.LambdaRestApiProps`](https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-apigateway.LambdaRestApiProps.html)|Optional user provided props to override the default props for API Gateway|
6060
|cloudFrontDistributionProps?|[`cloudfront.DistributionProps`](https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-cloudfront.DistributionProps.html)|Optional user provided props to override the default props for CloudFront Distribution|
6161
|insertHttpSecurityHeaders?|`boolean`|Optional user provided props to turn on/off the automatic injection of best practice HTTP security headers in all responses from CloudFront|
62-
|logGroupProps?|[`logs.LogGroupProps`](https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-logs.LogGroupProps.html)|User provided props to override the default props for for the CloudWatchLogs LogGroup.|
62+
|logGroupProps?|[`logs.LogGroupProps`](https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-logs.LogGroupProps.html)|Optional user provided props to override the default props for for the CloudWatchLogs LogGroup.|
63+
|cloudFrontLoggingBucketProps?|[`s3.BucketProps`](https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-s3.BucketProps.html)|Optional user provided props to override the default props for the CloudFront Logging Bucket.|
6364

6465
## Pattern Properties
6566

source/patterns/@aws-solutions-constructs/aws-cloudfront-apigateway-lambda/lib/index.ts

+10-3
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export interface CloudFrontToApiGatewayToLambdaProps {
3333
*/
3434
readonly existingLambdaObj?: lambda.Function,
3535
/**
36-
* User provided props to override the default props for the Lambda function.
36+
* Optional user provided props to override the default props for the Lambda function.
3737
*
3838
* @default - Default props are used
3939
*/
@@ -58,11 +58,17 @@ export interface CloudFrontToApiGatewayToLambdaProps {
5858
*/
5959
readonly insertHttpSecurityHeaders?: boolean,
6060
/**
61-
* User provided props to override the default props for the CloudWatchLogs LogGroup.
61+
* Optional user provided props to override the default props for the CloudWatchLogs LogGroup.
6262
*
6363
* @default - Default props are used
6464
*/
6565
readonly logGroupProps?: logs.LogGroupProps
66+
/**
67+
* Optional user provided props to override the default props for the CloudFront Logging Bucket.
68+
*
69+
* @default - Default props are used
70+
*/
71+
readonly cloudFrontLoggingBucketProps?: s3.BucketProps
6672
}
6773

6874
export class CloudFrontToApiGatewayToLambda extends Construct {
@@ -113,7 +119,8 @@ export class CloudFrontToApiGatewayToLambda extends Construct {
113119
const apiCloudfront: CloudFrontToApiGateway = new CloudFrontToApiGateway(this, 'CloudFrontToApiGateway', {
114120
existingApiGatewayObj: this.apiGateway,
115121
cloudFrontDistributionProps: props.cloudFrontDistributionProps,
116-
insertHttpSecurityHeaders: props.insertHttpSecurityHeaders
122+
insertHttpSecurityHeaders: props.insertHttpSecurityHeaders,
123+
cloudFrontLoggingBucketProps: props.cloudFrontLoggingBucketProps
117124
});
118125

119126
this.cloudFrontWebDistribution = apiCloudfront.cloudFrontWebDistribution;

0 commit comments

Comments
 (0)