@Stability(value=Stable)
public static interface CfnResponseHeadersPolicy.CustomHeadersConfigProperty
extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnResponseHeadersPolicy.CustomHeadersConfigProperty.Builder
A builder for
CfnResponseHeadersPolicy.CustomHeadersConfigProperty |
static class |
CfnResponseHeadersPolicy.CustomHeadersConfigProperty.Jsii$Proxy
An implementation for
CfnResponseHeadersPolicy.CustomHeadersConfigProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnResponseHeadersPolicy.CustomHeadersConfigProperty.Builder |
builder() |
Object |
getItems()
The list of HTTP response headers and their values.
|
@Stability(value=Stable) @NotNull Object getItems()
@Stability(value=Stable) static CfnResponseHeadersPolicy.CustomHeadersConfigProperty.Builder builder()
Copyright © 2022. All rights reserved.