public static final class CloudFrontToApiGatewayToLambda.Builder extends Object implements software.amazon.jsii.Builder<CloudFrontToApiGatewayToLambda>
CloudFrontToApiGatewayToLambda.| Modifier and Type | Method and Description |
|---|---|
CloudFrontToApiGatewayToLambda.Builder |
apiGatewayProps(Object apiGatewayProps)
Optional user provided props to override the default props for the API Gateway.
|
CloudFrontToApiGatewayToLambda |
build() |
CloudFrontToApiGatewayToLambda.Builder |
cloudFrontDistributionProps(Object cloudFrontDistributionProps)
Optional user provided props to override the default props.
|
CloudFrontToApiGatewayToLambda.Builder |
cloudFrontLoggingBucketProps(software.amazon.awscdk.services.s3.BucketProps cloudFrontLoggingBucketProps)
Optional user provided props to override the default props for the CloudFront Logging Bucket.
|
static CloudFrontToApiGatewayToLambda.Builder |
create(software.constructs.Construct scope,
String id) |
CloudFrontToApiGatewayToLambda.Builder |
existingLambdaObj(software.amazon.awscdk.services.lambda.Function existingLambdaObj)
Existing instance of Lambda Function object, providing both this and `lambdaFunctionProps` will cause an error.
|
CloudFrontToApiGatewayToLambda.Builder |
insertHttpSecurityHeaders(Boolean insertHttpSecurityHeaders)
Optional user provided props to turn on/off the automatic injection of best practice HTTP security headers in all responses from cloudfront.
|
CloudFrontToApiGatewayToLambda.Builder |
lambdaFunctionProps(software.amazon.awscdk.services.lambda.FunctionProps lambdaFunctionProps)
Optional user provided props to override the default props for the Lambda function.
|
CloudFrontToApiGatewayToLambda.Builder |
logGroupProps(software.amazon.awscdk.services.logs.LogGroupProps logGroupProps)
Optional user provided props to override the default props for the CloudWatchLogs LogGroup.
|
CloudFrontToApiGatewayToLambda.Builder |
responseHeadersPolicyProps(software.amazon.awscdk.services.cloudfront.ResponseHeadersPolicyProps responseHeadersPolicyProps)
Optional user provided configuration that cloudfront applies to all http responses.
|
public static CloudFrontToApiGatewayToLambda.Builder create(software.constructs.Construct scope, String id)
scope - - represents the scope for all the resources. This parameter is required.id - - this is a a scope-unique id. This parameter is required.CloudFrontToApiGatewayToLambda.Builder.public CloudFrontToApiGatewayToLambda.Builder apiGatewayProps(Object apiGatewayProps)
Default: - Default props are used
apiGatewayProps - Optional user provided props to override the default props for the API Gateway. This parameter is required.thispublic CloudFrontToApiGatewayToLambda.Builder cloudFrontDistributionProps(Object cloudFrontDistributionProps)
Default: - Default props are used
cloudFrontDistributionProps - Optional user provided props to override the default props. This parameter is required.thispublic CloudFrontToApiGatewayToLambda.Builder cloudFrontLoggingBucketProps(software.amazon.awscdk.services.s3.BucketProps cloudFrontLoggingBucketProps)
Default: - Default props are used
cloudFrontLoggingBucketProps - Optional user provided props to override the default props for the CloudFront Logging Bucket. This parameter is required.thispublic CloudFrontToApiGatewayToLambda.Builder existingLambdaObj(software.amazon.awscdk.services.lambda.Function existingLambdaObj)
Default: - None
existingLambdaObj - Existing instance of Lambda Function object, providing both this and `lambdaFunctionProps` will cause an error. This parameter is required.thispublic CloudFrontToApiGatewayToLambda.Builder insertHttpSecurityHeaders(Boolean insertHttpSecurityHeaders)
Turning this on will inject default headers and is mutually exclusive with passing custom security headers via the responseHeadersPolicyProps parameter.
Default: - true
insertHttpSecurityHeaders - Optional user provided props to turn on/off the automatic injection of best practice HTTP security headers in all responses from cloudfront. This parameter is required.thispublic CloudFrontToApiGatewayToLambda.Builder lambdaFunctionProps(software.amazon.awscdk.services.lambda.FunctionProps lambdaFunctionProps)
Default: - Default props are used
lambdaFunctionProps - Optional user provided props to override the default props for the Lambda function. This parameter is required.thispublic CloudFrontToApiGatewayToLambda.Builder logGroupProps(software.amazon.awscdk.services.logs.LogGroupProps logGroupProps)
Default: - Default props are used
logGroupProps - Optional user provided props to override the default props for the CloudWatchLogs LogGroup. This parameter is required.thispublic CloudFrontToApiGatewayToLambda.Builder responseHeadersPolicyProps(software.amazon.awscdk.services.cloudfront.ResponseHeadersPolicyProps responseHeadersPolicyProps)
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.
Default: - undefined
responseHeadersPolicyProps - Optional user provided configuration that cloudfront applies to all http responses. This parameter is required.thispublic CloudFrontToApiGatewayToLambda build()
build in interface software.amazon.jsii.Builder<CloudFrontToApiGatewayToLambda>Copyright © 2023. All rights reserved.