Interface ResponseCustomHeader

All Superinterfaces:
All Known Implementing Classes:

@Generated(value="jsii-pacmak/1.101.0 (build b95fe5d)", date="2024-07-22T22:42:48.554Z") @Stability(Stable) public interface ResponseCustomHeader extends
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.


 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 ResponseCustomHeader responseCustomHeader = ResponseCustomHeader.builder()
  • 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()
      a ResponseCustomHeader.Builder of ResponseCustomHeader