Interface ResponseCustomHeader

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
ResponseCustomHeader.Jsii$Proxy

@Generated(value="jsii-pacmak/1.101.0 (build b95fe5d)", date="2024-07-22T22:42:48.554Z") @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();
 
  • Method Details

    • getHeader

      @Stability(Stable) @NotNull String getHeader()
      The HTTP response header name.
    • getOverride

      @Stability(Stable) @NotNull Boolean 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

      @Stability(Stable) @NotNull String getValue()
      The value for the HTTP response header.
    • builder

      @Stability(Stable) static ResponseCustomHeader.Builder builder()
      Returns:
      a ResponseCustomHeader.Builder of ResponseCustomHeader