Interface CfnResponseHeadersPolicy.CustomHeaderProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnResponseHeadersPolicy.CustomHeaderProperty.Jsii$Proxy
- Enclosing class:
CfnResponseHeadersPolicy
@Stability(Stable)
public static interface CfnResponseHeadersPolicy.CustomHeaderProperty
extends software.amazon.jsii.JsiiSerializable
An HTTP response header name and its value.
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();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnResponseHeadersPolicy.CustomHeaderProperty
static final class
An implementation forCfnResponseHeadersPolicy.CustomHeaderProperty
-
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getHeader
The HTTP response header name.- See Also:
-
getOverride
A Boolean that determines whether CloudFront overrides a response header with the same name received from the origin with the header specified here.- See Also:
-
getValue
The value for the HTTP response header.- See Also:
-
builder
-