@Stability(value=Stable)
public static interface CfnResponseHeadersPolicy.CustomHeaderProperty
extends software.amazon.jsii.JsiiSerializable
CloudFront includes this header 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.*;
CustomHeaderProperty customHeaderProperty = CustomHeaderProperty.builder()
.header("header")
.override(false)
.value("value")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnResponseHeadersPolicy.CustomHeaderProperty.Builder
A builder for
CfnResponseHeadersPolicy.CustomHeaderProperty |
static class |
CfnResponseHeadersPolicy.CustomHeaderProperty.Jsii$Proxy
An implementation for
CfnResponseHeadersPolicy.CustomHeaderProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnResponseHeadersPolicy.CustomHeaderProperty.Builder |
builder() |
String |
getHeader()
The HTTP response header name.
|
Object |
getOverride()
A Boolean that determines whether CloudFront overrides a response header with the same name received from the origin with the header specified here.
|
String |
getValue()
The value for the HTTP response header.
|
@Stability(value=Stable) @NotNull String getHeader()
@Stability(value=Stable) @NotNull Object getOverride()
@Stability(value=Stable) @NotNull String getValue()
@Stability(value=Stable) static CfnResponseHeadersPolicy.CustomHeaderProperty.Builder builder()
Copyright © 2022. All rights reserved.