public static final class CloudFrontToApiGateway.Builder extends Object implements software.amazon.jsii.Builder<CloudFrontToApiGateway>
CloudFrontToApiGateway.| Modifier and Type | Method and Description |
|---|---|
CloudFrontToApiGateway |
build() |
CloudFrontToApiGateway.Builder |
cloudFrontDistributionProps(Object cloudFrontDistributionProps)
Optional user provided props to override the default props.
|
CloudFrontToApiGateway.Builder |
cloudFrontLoggingBucketProps(software.amazon.awscdk.services.s3.BucketProps cloudFrontLoggingBucketProps)
Optional user provided props to override the default props for the CloudFront Logging Bucket.
|
static CloudFrontToApiGateway.Builder |
create(software.constructs.Construct scope,
String id) |
CloudFrontToApiGateway.Builder |
existingApiGatewayObj(software.amazon.awscdk.services.apigateway.RestApi existingApiGatewayObj)
Existing instance of api.RestApi object.
|
CloudFrontToApiGateway.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.
|
CloudFrontToApiGateway.Builder |
responseHeadersPolicyProps(software.amazon.awscdk.services.cloudfront.ResponseHeadersPolicyProps responseHeadersPolicyProps)
Optional user provided configuration that cloudfront applies to all http responses.
|
public static CloudFrontToApiGateway.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.CloudFrontToApiGateway.Builder.public CloudFrontToApiGateway.Builder existingApiGatewayObj(software.amazon.awscdk.services.apigateway.RestApi existingApiGatewayObj)
Default: - None
existingApiGatewayObj - Existing instance of api.RestApi object. This parameter is required.thispublic CloudFrontToApiGateway.Builder cloudFrontDistributionProps(Object cloudFrontDistributionProps)
Default: - Default props are used
cloudFrontDistributionProps - Optional user provided props to override the default props. This parameter is required.thispublic CloudFrontToApiGateway.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 CloudFrontToApiGateway.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 CloudFrontToApiGateway.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 CloudFrontToApiGateway build()
build in interface software.amazon.jsii.Builder<CloudFrontToApiGateway>Copyright © 2023. All rights reserved.