public static final class CloudFrontToApiGatewayProps.Builder extends Object implements software.amazon.jsii.Builder<CloudFrontToApiGatewayProps>
CloudFrontToApiGatewayProps| Constructor and Description |
|---|
Builder() |
public CloudFrontToApiGatewayProps.Builder existingApiGatewayObj(software.amazon.awscdk.services.apigateway.RestApi existingApiGatewayObj)
CloudFrontToApiGatewayProps.getExistingApiGatewayObj()existingApiGatewayObj - Existing instance of api.RestApi object. This parameter is required.thispublic CloudFrontToApiGatewayProps.Builder cloudFrontDistributionProps(Object cloudFrontDistributionProps)
CloudFrontToApiGatewayProps.getCloudFrontDistributionProps()cloudFrontDistributionProps - Optional user provided props to override the default props.thispublic CloudFrontToApiGatewayProps.Builder cloudFrontLoggingBucketProps(software.amazon.awscdk.services.s3.BucketProps cloudFrontLoggingBucketProps)
CloudFrontToApiGatewayProps.getCloudFrontLoggingBucketProps()cloudFrontLoggingBucketProps - Optional user provided props to override the default props for the CloudFront Logging Bucket.thispublic CloudFrontToApiGatewayProps.Builder insertHttpSecurityHeaders(Boolean insertHttpSecurityHeaders)
CloudFrontToApiGatewayProps.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 CloudFrontToApiGatewayProps.Builder responseHeadersPolicyProps(software.amazon.awscdk.services.cloudfront.ResponseHeadersPolicyProps responseHeadersPolicyProps)
CloudFrontToApiGatewayProps.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 CloudFrontToApiGatewayProps build()
build in interface software.amazon.jsii.Builder<CloudFrontToApiGatewayProps>CloudFrontToApiGatewayPropsNullPointerException - if any required attribute was not providedCopyright © 2023. All rights reserved.