Interface CfnResponseHeadersPolicy.CustomHeadersConfigProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnResponseHeadersPolicy.CustomHeadersConfigProperty.Jsii$Proxy
- Enclosing class:
- CfnResponseHeadersPolicy
@Stability(Stable)
public static interface CfnResponseHeadersPolicy.CustomHeadersConfigProperty
extends software.amazon.jsii.JsiiSerializable
A list of HTTP response header names and their values.
CloudFront includes these headers in HTTP responses that it sends for requests that match a cache behavior that's associated with this response headers policy.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.cloudfront.*; CustomHeadersConfigProperty customHeadersConfigProperty = CustomHeadersConfigProperty.builder() .items(List.of(CustomHeaderProperty.builder() .header("header") .override(false) .value("value") .build())) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnResponseHeadersPolicy.CustomHeadersConfigProperty
static final class
An implementation forCfnResponseHeadersPolicy.CustomHeadersConfigProperty
-
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getItems
The list of HTTP response headers and their values. -
builder
-