Interface ResponseCustomHeader
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ResponseCustomHeader.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:43.744Z")
@Stability(Stable)
public interface ResponseCustomHeader
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.*;
ResponseCustomHeader responseCustomHeader = ResponseCustomHeader.builder()
.header("header")
.override(false)
.value("value")
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forResponseCustomHeaderstatic final classAn implementation forResponseCustomHeader -
Method Summary
Modifier and TypeMethodDescriptionstatic ResponseCustomHeader.Builderbuilder()The HTTP response header name.A Boolean that determines whether CloudFront overrides a response header with the same name received from the origin with the header specified here.getValue()The value for the HTTP response header.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getHeader
The HTTP response header name. -
getOverride
A Boolean that determines whether CloudFront overrides a response header with the same name received from the origin with the header specified here. -
getValue
The value for the HTTP response header. -
builder
- Returns:
- a
ResponseCustomHeader.BuilderofResponseCustomHeader
-