Class CloudFrontToApiGatewayToLambdaProps.Builder
java.lang.Object
software.amazon.awsconstructs.services.cloudfrontapigatewaylambda.CloudFrontToApiGatewayToLambdaProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudFrontToApiGatewayToLambdaProps>
- Enclosing interface:
CloudFrontToApiGatewayToLambdaProps
public static final class CloudFrontToApiGatewayToLambdaProps.Builder
extends Object
implements software.amazon.jsii.Builder<CloudFrontToApiGatewayToLambdaProps>
A builder for
CloudFrontToApiGatewayToLambdaProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapiGatewayProps(Object apiGatewayProps) Sets the value ofCloudFrontToApiGatewayToLambdaProps.getApiGatewayProps()build()Builds the configured instance.cloudFrontDistributionProps(Object cloudFrontDistributionProps) Sets the value ofCloudFrontToApiGatewayToLambdaProps.getCloudFrontDistributionProps()cloudFrontLoggingBucketProps(software.amazon.awscdk.services.s3.BucketProps cloudFrontLoggingBucketProps) Sets the value ofCloudFrontToApiGatewayToLambdaProps.getCloudFrontLoggingBucketProps()existingLambdaObj(software.amazon.awscdk.services.lambda.Function existingLambdaObj) Sets the value ofCloudFrontToApiGatewayToLambdaProps.getExistingLambdaObj()insertHttpSecurityHeaders(Boolean insertHttpSecurityHeaders) Sets the value ofCloudFrontToApiGatewayToLambdaProps.getInsertHttpSecurityHeaders()lambdaFunctionProps(software.amazon.awscdk.services.lambda.FunctionProps lambdaFunctionProps) Sets the value ofCloudFrontToApiGatewayToLambdaProps.getLambdaFunctionProps()logGroupProps(software.amazon.awscdk.services.logs.LogGroupProps logGroupProps) Sets the value ofCloudFrontToApiGatewayToLambdaProps.getLogGroupProps()responseHeadersPolicyProps(software.amazon.awscdk.services.cloudfront.ResponseHeadersPolicyProps responseHeadersPolicyProps) Sets the value ofCloudFrontToApiGatewayToLambdaProps.getResponseHeadersPolicyProps()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
apiGatewayProps
Sets the value ofCloudFrontToApiGatewayToLambdaProps.getApiGatewayProps()- Parameters:
apiGatewayProps- Optional user provided props to override the default props for the API Gateway.- Returns:
this
-
cloudFrontDistributionProps
public CloudFrontToApiGatewayToLambdaProps.Builder cloudFrontDistributionProps(Object cloudFrontDistributionProps) Sets the value ofCloudFrontToApiGatewayToLambdaProps.getCloudFrontDistributionProps()- Parameters:
cloudFrontDistributionProps- Optional user provided props to override the default props.- Returns:
this
-
cloudFrontLoggingBucketProps
public CloudFrontToApiGatewayToLambdaProps.Builder cloudFrontLoggingBucketProps(software.amazon.awscdk.services.s3.BucketProps cloudFrontLoggingBucketProps) Sets the value ofCloudFrontToApiGatewayToLambdaProps.getCloudFrontLoggingBucketProps()- Parameters:
cloudFrontLoggingBucketProps- Optional user provided props to override the default props for the CloudFront Logging Bucket.- Returns:
this
-
existingLambdaObj
public CloudFrontToApiGatewayToLambdaProps.Builder existingLambdaObj(software.amazon.awscdk.services.lambda.Function existingLambdaObj) Sets the value ofCloudFrontToApiGatewayToLambdaProps.getExistingLambdaObj()- Parameters:
existingLambdaObj- Existing instance of Lambda Function object, providing both this andlambdaFunctionPropswill cause an error.- Returns:
this
-
insertHttpSecurityHeaders
public CloudFrontToApiGatewayToLambdaProps.Builder insertHttpSecurityHeaders(Boolean insertHttpSecurityHeaders) Sets the value ofCloudFrontToApiGatewayToLambdaProps.getInsertHttpSecurityHeaders()- Parameters:
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.- Returns:
this
-
lambdaFunctionProps
public CloudFrontToApiGatewayToLambdaProps.Builder lambdaFunctionProps(software.amazon.awscdk.services.lambda.FunctionProps lambdaFunctionProps) Sets the value ofCloudFrontToApiGatewayToLambdaProps.getLambdaFunctionProps()- Parameters:
lambdaFunctionProps- Optional user provided props to override the default props for the Lambda function.- Returns:
this
-
logGroupProps
public CloudFrontToApiGatewayToLambdaProps.Builder logGroupProps(software.amazon.awscdk.services.logs.LogGroupProps logGroupProps) Sets the value ofCloudFrontToApiGatewayToLambdaProps.getLogGroupProps()- Parameters:
logGroupProps- Optional user provided props to override the default props for the CloudWatchLogs LogGroup.- Returns:
this
-
responseHeadersPolicyProps
public CloudFrontToApiGatewayToLambdaProps.Builder responseHeadersPolicyProps(software.amazon.awscdk.services.cloudfront.ResponseHeadersPolicyProps responseHeadersPolicyProps) Sets the value ofCloudFrontToApiGatewayToLambdaProps.getResponseHeadersPolicyProps()- Parameters:
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
insertHttpSecurityHeadersprop. Will throw an error if bothinsertHttpSecurityHeadersis set totrueand ResponseSecurityHeadersBehavior is passed.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CloudFrontToApiGatewayToLambdaProps>- Returns:
- a new instance of
CloudFrontToApiGatewayToLambdaProps - Throws:
NullPointerException- if any required attribute was not provided
-