Class CfnResponseHeadersPolicy.Builder
java.lang.Object
software.amazon.awscdk.services.cloudfront.CfnResponseHeadersPolicy.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResponseHeadersPolicy>
- Enclosing class:
CfnResponseHeadersPolicy
@Stability(Stable)
public static final class CfnResponseHeadersPolicy.Builder
extends Object
implements software.amazon.jsii.Builder<CfnResponseHeadersPolicy>
A fluent builder for
CfnResponseHeadersPolicy
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
responseHeadersPolicyConfig
(IResolvable responseHeadersPolicyConfig) A response headers policy configuration.responseHeadersPolicyConfig
(CfnResponseHeadersPolicy.ResponseHeadersPolicyConfigProperty responseHeadersPolicyConfig) A response headers policy configuration.
-
Method Details
-
create
@Stability(Stable) public static CfnResponseHeadersPolicy.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnResponseHeadersPolicy.Builder
.
-
responseHeadersPolicyConfig
@Stability(Stable) public CfnResponseHeadersPolicy.Builder responseHeadersPolicyConfig(IResolvable responseHeadersPolicyConfig) A response headers policy configuration.- Parameters:
responseHeadersPolicyConfig
- A response headers policy configuration. This parameter is required.- Returns:
this
- See Also:
-
responseHeadersPolicyConfig
@Stability(Stable) public CfnResponseHeadersPolicy.Builder responseHeadersPolicyConfig(CfnResponseHeadersPolicy.ResponseHeadersPolicyConfigProperty responseHeadersPolicyConfig) A response headers policy configuration.- Parameters:
responseHeadersPolicyConfig
- A response headers policy configuration. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnResponseHeadersPolicy>
- Returns:
- a newly built instance of
CfnResponseHeadersPolicy
.
-