/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes the request headers that a Lightsail distribution bases caching
* on. For the headers that you specify, your distribution caches separate
* versions of the specified content based on the header values in viewer requests.
* For example, suppose viewer requests for logo.jpg
contain a custom
* product
header that has a value of either acme
or
* apex
, and you configure your distribution to cache your content
* based on values in the product
header. Your distribution forwards
* the product
header to the origin and caches the response from the
* origin once for each header value. See Also:
AWS
* API Reference
The headers that you want your distribution to forward to your origin and * base caching on.
You can configure your distribution to do one of the * following:
all
- Forward all headers to
* your origin.
none
- Forward only the
* default headers.
allow-list
- Forward
* only the headers you specify using the headersAllowList
* parameter.
The headers that you want your distribution to forward to your origin and * base caching on.
You can configure your distribution to do one of the * following:
all
- Forward all headers to
* your origin.
none
- Forward only the
* default headers.
allow-list
- Forward
* only the headers you specify using the headersAllowList
* parameter.
The headers that you want your distribution to forward to your origin and * base caching on.
You can configure your distribution to do one of the * following:
all
- Forward all headers to
* your origin.
none
- Forward only the
* default headers.
allow-list
- Forward
* only the headers you specify using the headersAllowList
* parameter.
The headers that you want your distribution to forward to your origin and * base caching on.
You can configure your distribution to do one of the * following:
all
- Forward all headers to
* your origin.
none
- Forward only the
* default headers.
allow-list
- Forward
* only the headers you specify using the headersAllowList
* parameter.
The headers that you want your distribution to forward to your origin and * base caching on.
You can configure your distribution to do one of the * following:
all
- Forward all headers to
* your origin.
none
- Forward only the
* default headers.
allow-list
- Forward
* only the headers you specify using the headersAllowList
* parameter.
The headers that you want your distribution to forward to your origin and * base caching on.
You can configure your distribution to do one of the * following:
all
- Forward all headers to
* your origin.
none
- Forward only the
* default headers.
allow-list
- Forward
* only the headers you specify using the headersAllowList
* parameter.
The specific headers to forward to your distribution's origin.
*/ inline const Aws::VectorThe specific headers to forward to your distribution's origin.
*/ inline bool HeadersAllowListHasBeenSet() const { return m_headersAllowListHasBeenSet; } /** *The specific headers to forward to your distribution's origin.
*/ inline void SetHeadersAllowList(const Aws::VectorThe specific headers to forward to your distribution's origin.
*/ inline void SetHeadersAllowList(Aws::VectorThe specific headers to forward to your distribution's origin.
*/ inline HeaderObject& WithHeadersAllowList(const Aws::VectorThe specific headers to forward to your distribution's origin.
*/ inline HeaderObject& WithHeadersAllowList(Aws::VectorThe specific headers to forward to your distribution's origin.
*/ inline HeaderObject& AddHeadersAllowList(const HeaderEnum& value) { m_headersAllowListHasBeenSet = true; m_headersAllowList.push_back(value); return *this; } /** *The specific headers to forward to your distribution's origin.
*/ inline HeaderObject& AddHeadersAllowList(HeaderEnum&& value) { m_headersAllowListHasBeenSet = true; m_headersAllowList.push_back(std::move(value)); return *this; } private: ForwardValues m_option; bool m_optionHasBeenSet = false; Aws::Vector