public static final class CloudFrontToApiGatewayToLambdaProps.Builder extends Object implements software.amazon.jsii.Builder<CloudFrontToApiGatewayToLambdaProps>
CloudFrontToApiGatewayToLambdaProps| Constructor and Description |
|---|
Builder() |
public CloudFrontToApiGatewayToLambdaProps.Builder apiGatewayProps(Object apiGatewayProps)
CloudFrontToApiGatewayToLambdaProps.getApiGatewayProps()apiGatewayProps - Optional user provided props to override the default props for the API Gateway.thispublic CloudFrontToApiGatewayToLambdaProps.Builder cloudFrontDistributionProps(Object cloudFrontDistributionProps)
CloudFrontToApiGatewayToLambdaProps.getCloudFrontDistributionProps()cloudFrontDistributionProps - Optional user provided props to override the default props.thispublic CloudFrontToApiGatewayToLambdaProps.Builder cloudFrontLoggingBucketProps(software.amazon.awscdk.services.s3.BucketProps cloudFrontLoggingBucketProps)
CloudFrontToApiGatewayToLambdaProps.getCloudFrontLoggingBucketProps()cloudFrontLoggingBucketProps - Optional user provided props to override the default props for the CloudFront Logging Bucket.thispublic CloudFrontToApiGatewayToLambdaProps.Builder existingLambdaObj(software.amazon.awscdk.services.lambda.Function existingLambdaObj)
CloudFrontToApiGatewayToLambdaProps.getExistingLambdaObj()existingLambdaObj - Existing instance of Lambda Function object, providing both this and `lambdaFunctionProps` will cause an error.thispublic CloudFrontToApiGatewayToLambdaProps.Builder insertHttpSecurityHeaders(Boolean insertHttpSecurityHeaders)
CloudFrontToApiGatewayToLambdaProps.getInsertHttpSecurityHeaders()insertHttpSecurityHeaders - Optional user provided props to turn on/off the automatic injection of best practice HTTP security headers in all responses from cloudfront.
Turning this on will inject default headers and is mutually exclusive with passing custom security headers
via the responseHeadersPolicyProps parameter.thispublic CloudFrontToApiGatewayToLambdaProps.Builder lambdaFunctionProps(software.amazon.awscdk.services.lambda.FunctionProps lambdaFunctionProps)
CloudFrontToApiGatewayToLambdaProps.getLambdaFunctionProps()lambdaFunctionProps - Optional user provided props to override the default props for the Lambda function.thispublic CloudFrontToApiGatewayToLambdaProps.Builder logGroupProps(software.amazon.awscdk.services.logs.LogGroupProps logGroupProps)
CloudFrontToApiGatewayToLambdaProps.getLogGroupProps()logGroupProps - Optional user provided props to override the default props for the CloudWatchLogs LogGroup.thispublic CloudFrontToApiGatewayToLambdaProps.Builder responseHeadersPolicyProps(software.amazon.awscdk.services.cloudfront.ResponseHeadersPolicyProps responseHeadersPolicyProps)
CloudFrontToApiGatewayToLambdaProps.getResponseHeadersPolicyProps()responseHeadersPolicyProps - Optional user provided configuration that cloudfront applies to all http responses.
Can be used to pass a custom ResponseSecurityHeadersBehavior, ResponseCustomHeadersBehavior or
ResponseHeadersCorsBehavior to the cloudfront distribution.
Passing a custom ResponseSecurityHeadersBehavior is mutually exclusive with turning on the default security headers
via insertHttpSecurityHeaders prop. Will throw an error if both insertHttpSecurityHeaders is set to true
and ResponseSecurityHeadersBehavior is passed.
thispublic CloudFrontToApiGatewayToLambdaProps build()
build in interface software.amazon.jsii.Builder<CloudFrontToApiGatewayToLambdaProps>CloudFrontToApiGatewayToLambdaPropsNullPointerException - if any required attribute was not providedCopyright © 2023. All rights reserved.