/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A complex type that describes the default cache behavior if you don't specify
* a CacheBehavior
element or if request URLs don't match any of the
* values of PathPattern
in CacheBehavior
elements. You
* must create exactly one default cache behavior.See Also:
AWS
* API Reference
The value of ID
for the origin that you want CloudFront to route
* requests to when they use the default cache behavior.
The value of ID
for the origin that you want CloudFront to route
* requests to when they use the default cache behavior.
The value of ID
for the origin that you want CloudFront to route
* requests to when they use the default cache behavior.
The value of ID
for the origin that you want CloudFront to route
* requests to when they use the default cache behavior.
The value of ID
for the origin that you want CloudFront to route
* requests to when they use the default cache behavior.
The value of ID
for the origin that you want CloudFront to route
* requests to when they use the default cache behavior.
The value of ID
for the origin that you want CloudFront to route
* requests to when they use the default cache behavior.
The value of ID
for the origin that you want CloudFront to route
* requests to when they use the default cache behavior.
We recommend using TrustedKeyGroups
instead of
* TrustedSigners
.
A list of Amazon Web Services * account IDs whose public keys CloudFront can use to validate signed URLs or * signed cookies.
When a cache behavior contains trusted signers, * CloudFront requires signed URLs or signed cookies for all requests that match * the cache behavior. The URLs or cookies must be signed with the private key of a * CloudFront key pair in a trusted signer's Amazon Web Services account. The * signed URL or cookie contains information about which public key CloudFront * should use to verify the signature. For more information, see Serving * private content in the Amazon CloudFront Developer Guide.
*/ inline const TrustedSigners& GetTrustedSigners() const{ return m_trustedSigners; } /** *We recommend using TrustedKeyGroups
instead of
* TrustedSigners
.
A list of Amazon Web Services * account IDs whose public keys CloudFront can use to validate signed URLs or * signed cookies.
When a cache behavior contains trusted signers, * CloudFront requires signed URLs or signed cookies for all requests that match * the cache behavior. The URLs or cookies must be signed with the private key of a * CloudFront key pair in a trusted signer's Amazon Web Services account. The * signed URL or cookie contains information about which public key CloudFront * should use to verify the signature. For more information, see Serving * private content in the Amazon CloudFront Developer Guide.
*/ inline bool TrustedSignersHasBeenSet() const { return m_trustedSignersHasBeenSet; } /** *We recommend using TrustedKeyGroups
instead of
* TrustedSigners
.
A list of Amazon Web Services * account IDs whose public keys CloudFront can use to validate signed URLs or * signed cookies.
When a cache behavior contains trusted signers, * CloudFront requires signed URLs or signed cookies for all requests that match * the cache behavior. The URLs or cookies must be signed with the private key of a * CloudFront key pair in a trusted signer's Amazon Web Services account. The * signed URL or cookie contains information about which public key CloudFront * should use to verify the signature. For more information, see Serving * private content in the Amazon CloudFront Developer Guide.
*/ inline void SetTrustedSigners(const TrustedSigners& value) { m_trustedSignersHasBeenSet = true; m_trustedSigners = value; } /** *We recommend using TrustedKeyGroups
instead of
* TrustedSigners
.
A list of Amazon Web Services * account IDs whose public keys CloudFront can use to validate signed URLs or * signed cookies.
When a cache behavior contains trusted signers, * CloudFront requires signed URLs or signed cookies for all requests that match * the cache behavior. The URLs or cookies must be signed with the private key of a * CloudFront key pair in a trusted signer's Amazon Web Services account. The * signed URL or cookie contains information about which public key CloudFront * should use to verify the signature. For more information, see Serving * private content in the Amazon CloudFront Developer Guide.
*/ inline void SetTrustedSigners(TrustedSigners&& value) { m_trustedSignersHasBeenSet = true; m_trustedSigners = std::move(value); } /** *We recommend using TrustedKeyGroups
instead of
* TrustedSigners
.
A list of Amazon Web Services * account IDs whose public keys CloudFront can use to validate signed URLs or * signed cookies.
When a cache behavior contains trusted signers, * CloudFront requires signed URLs or signed cookies for all requests that match * the cache behavior. The URLs or cookies must be signed with the private key of a * CloudFront key pair in a trusted signer's Amazon Web Services account. The * signed URL or cookie contains information about which public key CloudFront * should use to verify the signature. For more information, see Serving * private content in the Amazon CloudFront Developer Guide.
*/ inline DefaultCacheBehavior& WithTrustedSigners(const TrustedSigners& value) { SetTrustedSigners(value); return *this;} /** *We recommend using TrustedKeyGroups
instead of
* TrustedSigners
.
A list of Amazon Web Services * account IDs whose public keys CloudFront can use to validate signed URLs or * signed cookies.
When a cache behavior contains trusted signers, * CloudFront requires signed URLs or signed cookies for all requests that match * the cache behavior. The URLs or cookies must be signed with the private key of a * CloudFront key pair in a trusted signer's Amazon Web Services account. The * signed URL or cookie contains information about which public key CloudFront * should use to verify the signature. For more information, see Serving * private content in the Amazon CloudFront Developer Guide.
*/ inline DefaultCacheBehavior& WithTrustedSigners(TrustedSigners&& value) { SetTrustedSigners(std::move(value)); return *this;} /** *A list of key groups that CloudFront can use to validate signed URLs or * signed cookies.
When a cache behavior contains trusted key groups, * CloudFront requires signed URLs or signed cookies for all requests that match * the cache behavior. The URLs or cookies must be signed with a private key whose * corresponding public key is in the key group. The signed URL or cookie contains * information about which public key CloudFront should use to verify the * signature. For more information, see Serving * private content in the Amazon CloudFront Developer Guide.
*/ inline const TrustedKeyGroups& GetTrustedKeyGroups() const{ return m_trustedKeyGroups; } /** *A list of key groups that CloudFront can use to validate signed URLs or * signed cookies.
When a cache behavior contains trusted key groups, * CloudFront requires signed URLs or signed cookies for all requests that match * the cache behavior. The URLs or cookies must be signed with a private key whose * corresponding public key is in the key group. The signed URL or cookie contains * information about which public key CloudFront should use to verify the * signature. For more information, see Serving * private content in the Amazon CloudFront Developer Guide.
*/ inline bool TrustedKeyGroupsHasBeenSet() const { return m_trustedKeyGroupsHasBeenSet; } /** *A list of key groups that CloudFront can use to validate signed URLs or * signed cookies.
When a cache behavior contains trusted key groups, * CloudFront requires signed URLs or signed cookies for all requests that match * the cache behavior. The URLs or cookies must be signed with a private key whose * corresponding public key is in the key group. The signed URL or cookie contains * information about which public key CloudFront should use to verify the * signature. For more information, see Serving * private content in the Amazon CloudFront Developer Guide.
*/ inline void SetTrustedKeyGroups(const TrustedKeyGroups& value) { m_trustedKeyGroupsHasBeenSet = true; m_trustedKeyGroups = value; } /** *A list of key groups that CloudFront can use to validate signed URLs or * signed cookies.
When a cache behavior contains trusted key groups, * CloudFront requires signed URLs or signed cookies for all requests that match * the cache behavior. The URLs or cookies must be signed with a private key whose * corresponding public key is in the key group. The signed URL or cookie contains * information about which public key CloudFront should use to verify the * signature. For more information, see Serving * private content in the Amazon CloudFront Developer Guide.
*/ inline void SetTrustedKeyGroups(TrustedKeyGroups&& value) { m_trustedKeyGroupsHasBeenSet = true; m_trustedKeyGroups = std::move(value); } /** *A list of key groups that CloudFront can use to validate signed URLs or * signed cookies.
When a cache behavior contains trusted key groups, * CloudFront requires signed URLs or signed cookies for all requests that match * the cache behavior. The URLs or cookies must be signed with a private key whose * corresponding public key is in the key group. The signed URL or cookie contains * information about which public key CloudFront should use to verify the * signature. For more information, see Serving * private content in the Amazon CloudFront Developer Guide.
*/ inline DefaultCacheBehavior& WithTrustedKeyGroups(const TrustedKeyGroups& value) { SetTrustedKeyGroups(value); return *this;} /** *A list of key groups that CloudFront can use to validate signed URLs or * signed cookies.
When a cache behavior contains trusted key groups, * CloudFront requires signed URLs or signed cookies for all requests that match * the cache behavior. The URLs or cookies must be signed with a private key whose * corresponding public key is in the key group. The signed URL or cookie contains * information about which public key CloudFront should use to verify the * signature. For more information, see Serving * private content in the Amazon CloudFront Developer Guide.
*/ inline DefaultCacheBehavior& WithTrustedKeyGroups(TrustedKeyGroups&& value) { SetTrustedKeyGroups(std::move(value)); return *this;} /** *The protocol that viewers can use to access the files in the origin specified
* by TargetOriginId
when a request matches the path pattern in
* PathPattern
. You can specify the following options:
allow-all
: Viewers can use HTTP or HTTPS.
* redirect-to-https
: If a viewer submits an HTTP request, CloudFront
* returns an HTTP status code of 301 (Moved Permanently) to the viewer along with
* the HTTPS URL. The viewer then resubmits the request using the new URL.
https-only
: If a viewer sends an HTTP request,
* CloudFront returns an HTTP status code of 403 (Forbidden).
For more information about requiring the HTTPS protocol, see Requiring * HTTPS Between Viewers and CloudFront in the Amazon CloudFront Developer * Guide.
The only way to guarantee that viewers retrieve an * object that was fetched from the origin using HTTPS is never to use any other * protocol to fetch the object. If you have recently changed from HTTP to HTTPS, * we recommend that you clear your objects' cache because cached objects are * protocol agnostic. That means that an edge location will return an object from * the cache regardless of whether the current request protocol matches the * protocol used previously. For more information, see Managing * Cache Expiration in the Amazon CloudFront Developer Guide.
* */ inline const ViewerProtocolPolicy& GetViewerProtocolPolicy() const{ return m_viewerProtocolPolicy; } /** *The protocol that viewers can use to access the files in the origin specified
* by TargetOriginId
when a request matches the path pattern in
* PathPattern
. You can specify the following options:
allow-all
: Viewers can use HTTP or HTTPS.
* redirect-to-https
: If a viewer submits an HTTP request, CloudFront
* returns an HTTP status code of 301 (Moved Permanently) to the viewer along with
* the HTTPS URL. The viewer then resubmits the request using the new URL.
https-only
: If a viewer sends an HTTP request,
* CloudFront returns an HTTP status code of 403 (Forbidden).
For more information about requiring the HTTPS protocol, see Requiring * HTTPS Between Viewers and CloudFront in the Amazon CloudFront Developer * Guide.
The only way to guarantee that viewers retrieve an * object that was fetched from the origin using HTTPS is never to use any other * protocol to fetch the object. If you have recently changed from HTTP to HTTPS, * we recommend that you clear your objects' cache because cached objects are * protocol agnostic. That means that an edge location will return an object from * the cache regardless of whether the current request protocol matches the * protocol used previously. For more information, see Managing * Cache Expiration in the Amazon CloudFront Developer Guide.
* */ inline bool ViewerProtocolPolicyHasBeenSet() const { return m_viewerProtocolPolicyHasBeenSet; } /** *The protocol that viewers can use to access the files in the origin specified
* by TargetOriginId
when a request matches the path pattern in
* PathPattern
. You can specify the following options:
allow-all
: Viewers can use HTTP or HTTPS.
* redirect-to-https
: If a viewer submits an HTTP request, CloudFront
* returns an HTTP status code of 301 (Moved Permanently) to the viewer along with
* the HTTPS URL. The viewer then resubmits the request using the new URL.
https-only
: If a viewer sends an HTTP request,
* CloudFront returns an HTTP status code of 403 (Forbidden).
For more information about requiring the HTTPS protocol, see Requiring * HTTPS Between Viewers and CloudFront in the Amazon CloudFront Developer * Guide.
The only way to guarantee that viewers retrieve an * object that was fetched from the origin using HTTPS is never to use any other * protocol to fetch the object. If you have recently changed from HTTP to HTTPS, * we recommend that you clear your objects' cache because cached objects are * protocol agnostic. That means that an edge location will return an object from * the cache regardless of whether the current request protocol matches the * protocol used previously. For more information, see Managing * Cache Expiration in the Amazon CloudFront Developer Guide.
* */ inline void SetViewerProtocolPolicy(const ViewerProtocolPolicy& value) { m_viewerProtocolPolicyHasBeenSet = true; m_viewerProtocolPolicy = value; } /** *The protocol that viewers can use to access the files in the origin specified
* by TargetOriginId
when a request matches the path pattern in
* PathPattern
. You can specify the following options:
allow-all
: Viewers can use HTTP or HTTPS.
* redirect-to-https
: If a viewer submits an HTTP request, CloudFront
* returns an HTTP status code of 301 (Moved Permanently) to the viewer along with
* the HTTPS URL. The viewer then resubmits the request using the new URL.
https-only
: If a viewer sends an HTTP request,
* CloudFront returns an HTTP status code of 403 (Forbidden).
For more information about requiring the HTTPS protocol, see Requiring * HTTPS Between Viewers and CloudFront in the Amazon CloudFront Developer * Guide.
The only way to guarantee that viewers retrieve an * object that was fetched from the origin using HTTPS is never to use any other * protocol to fetch the object. If you have recently changed from HTTP to HTTPS, * we recommend that you clear your objects' cache because cached objects are * protocol agnostic. That means that an edge location will return an object from * the cache regardless of whether the current request protocol matches the * protocol used previously. For more information, see Managing * Cache Expiration in the Amazon CloudFront Developer Guide.
* */ inline void SetViewerProtocolPolicy(ViewerProtocolPolicy&& value) { m_viewerProtocolPolicyHasBeenSet = true; m_viewerProtocolPolicy = std::move(value); } /** *The protocol that viewers can use to access the files in the origin specified
* by TargetOriginId
when a request matches the path pattern in
* PathPattern
. You can specify the following options:
allow-all
: Viewers can use HTTP or HTTPS.
* redirect-to-https
: If a viewer submits an HTTP request, CloudFront
* returns an HTTP status code of 301 (Moved Permanently) to the viewer along with
* the HTTPS URL. The viewer then resubmits the request using the new URL.
https-only
: If a viewer sends an HTTP request,
* CloudFront returns an HTTP status code of 403 (Forbidden).
For more information about requiring the HTTPS protocol, see Requiring * HTTPS Between Viewers and CloudFront in the Amazon CloudFront Developer * Guide.
The only way to guarantee that viewers retrieve an * object that was fetched from the origin using HTTPS is never to use any other * protocol to fetch the object. If you have recently changed from HTTP to HTTPS, * we recommend that you clear your objects' cache because cached objects are * protocol agnostic. That means that an edge location will return an object from * the cache regardless of whether the current request protocol matches the * protocol used previously. For more information, see Managing * Cache Expiration in the Amazon CloudFront Developer Guide.
* */ inline DefaultCacheBehavior& WithViewerProtocolPolicy(const ViewerProtocolPolicy& value) { SetViewerProtocolPolicy(value); return *this;} /** *The protocol that viewers can use to access the files in the origin specified
* by TargetOriginId
when a request matches the path pattern in
* PathPattern
. You can specify the following options:
allow-all
: Viewers can use HTTP or HTTPS.
* redirect-to-https
: If a viewer submits an HTTP request, CloudFront
* returns an HTTP status code of 301 (Moved Permanently) to the viewer along with
* the HTTPS URL. The viewer then resubmits the request using the new URL.
https-only
: If a viewer sends an HTTP request,
* CloudFront returns an HTTP status code of 403 (Forbidden).
For more information about requiring the HTTPS protocol, see Requiring * HTTPS Between Viewers and CloudFront in the Amazon CloudFront Developer * Guide.
The only way to guarantee that viewers retrieve an * object that was fetched from the origin using HTTPS is never to use any other * protocol to fetch the object. If you have recently changed from HTTP to HTTPS, * we recommend that you clear your objects' cache because cached objects are * protocol agnostic. That means that an edge location will return an object from * the cache regardless of whether the current request protocol matches the * protocol used previously. For more information, see Managing * Cache Expiration in the Amazon CloudFront Developer Guide.
* */ inline DefaultCacheBehavior& WithViewerProtocolPolicy(ViewerProtocolPolicy&& value) { SetViewerProtocolPolicy(std::move(value)); return *this;} inline const AllowedMethods& GetAllowedMethods() const{ return m_allowedMethods; } inline bool AllowedMethodsHasBeenSet() const { return m_allowedMethodsHasBeenSet; } inline void SetAllowedMethods(const AllowedMethods& value) { m_allowedMethodsHasBeenSet = true; m_allowedMethods = value; } inline void SetAllowedMethods(AllowedMethods&& value) { m_allowedMethodsHasBeenSet = true; m_allowedMethods = std::move(value); } inline DefaultCacheBehavior& WithAllowedMethods(const AllowedMethods& value) { SetAllowedMethods(value); return *this;} inline DefaultCacheBehavior& WithAllowedMethods(AllowedMethods&& value) { SetAllowedMethods(std::move(value)); return *this;} /** *Indicates whether you want to distribute media files in the Microsoft Smooth
* Streaming format using the origin that is associated with this cache behavior.
* If so, specify true
; if not, specify false
. If you
* specify true
for SmoothStreaming
, you can still
* distribute other content using this cache behavior if the content matches the
* value of PathPattern
.
Indicates whether you want to distribute media files in the Microsoft Smooth
* Streaming format using the origin that is associated with this cache behavior.
* If so, specify true
; if not, specify false
. If you
* specify true
for SmoothStreaming
, you can still
* distribute other content using this cache behavior if the content matches the
* value of PathPattern
.
Indicates whether you want to distribute media files in the Microsoft Smooth
* Streaming format using the origin that is associated with this cache behavior.
* If so, specify true
; if not, specify false
. If you
* specify true
for SmoothStreaming
, you can still
* distribute other content using this cache behavior if the content matches the
* value of PathPattern
.
Indicates whether you want to distribute media files in the Microsoft Smooth
* Streaming format using the origin that is associated with this cache behavior.
* If so, specify true
; if not, specify false
. If you
* specify true
for SmoothStreaming
, you can still
* distribute other content using this cache behavior if the content matches the
* value of PathPattern
.
Whether you want CloudFront to automatically compress certain files for this
* cache behavior. If so, specify true
; if not, specify
* false
. For more information, see Serving
* Compressed Files in the Amazon CloudFront Developer Guide.
Whether you want CloudFront to automatically compress certain files for this
* cache behavior. If so, specify true
; if not, specify
* false
. For more information, see Serving
* Compressed Files in the Amazon CloudFront Developer Guide.
Whether you want CloudFront to automatically compress certain files for this
* cache behavior. If so, specify true
; if not, specify
* false
. For more information, see Serving
* Compressed Files in the Amazon CloudFront Developer Guide.
Whether you want CloudFront to automatically compress certain files for this
* cache behavior. If so, specify true
; if not, specify
* false
. For more information, see Serving
* Compressed Files in the Amazon CloudFront Developer Guide.
A complex type that contains zero or more Lambda@Edge function associations * for a cache behavior.
*/ inline const LambdaFunctionAssociations& GetLambdaFunctionAssociations() const{ return m_lambdaFunctionAssociations; } /** *A complex type that contains zero or more Lambda@Edge function associations * for a cache behavior.
*/ inline bool LambdaFunctionAssociationsHasBeenSet() const { return m_lambdaFunctionAssociationsHasBeenSet; } /** *A complex type that contains zero or more Lambda@Edge function associations * for a cache behavior.
*/ inline void SetLambdaFunctionAssociations(const LambdaFunctionAssociations& value) { m_lambdaFunctionAssociationsHasBeenSet = true; m_lambdaFunctionAssociations = value; } /** *A complex type that contains zero or more Lambda@Edge function associations * for a cache behavior.
*/ inline void SetLambdaFunctionAssociations(LambdaFunctionAssociations&& value) { m_lambdaFunctionAssociationsHasBeenSet = true; m_lambdaFunctionAssociations = std::move(value); } /** *A complex type that contains zero or more Lambda@Edge function associations * for a cache behavior.
*/ inline DefaultCacheBehavior& WithLambdaFunctionAssociations(const LambdaFunctionAssociations& value) { SetLambdaFunctionAssociations(value); return *this;} /** *A complex type that contains zero or more Lambda@Edge function associations * for a cache behavior.
*/ inline DefaultCacheBehavior& WithLambdaFunctionAssociations(LambdaFunctionAssociations&& value) { SetLambdaFunctionAssociations(std::move(value)); return *this;} /** *A list of CloudFront functions that are associated with this cache behavior.
* CloudFront functions must be published to the LIVE
stage to
* associate them with a cache behavior.
A list of CloudFront functions that are associated with this cache behavior.
* CloudFront functions must be published to the LIVE
stage to
* associate them with a cache behavior.
A list of CloudFront functions that are associated with this cache behavior.
* CloudFront functions must be published to the LIVE
stage to
* associate them with a cache behavior.
A list of CloudFront functions that are associated with this cache behavior.
* CloudFront functions must be published to the LIVE
stage to
* associate them with a cache behavior.
A list of CloudFront functions that are associated with this cache behavior.
* CloudFront functions must be published to the LIVE
stage to
* associate them with a cache behavior.
A list of CloudFront functions that are associated with this cache behavior.
* CloudFront functions must be published to the LIVE
stage to
* associate them with a cache behavior.
The value of ID
for the field-level encryption configuration
* that you want CloudFront to use for encrypting specific fields of data for the
* default cache behavior.
The value of ID
for the field-level encryption configuration
* that you want CloudFront to use for encrypting specific fields of data for the
* default cache behavior.
The value of ID
for the field-level encryption configuration
* that you want CloudFront to use for encrypting specific fields of data for the
* default cache behavior.
The value of ID
for the field-level encryption configuration
* that you want CloudFront to use for encrypting specific fields of data for the
* default cache behavior.
The value of ID
for the field-level encryption configuration
* that you want CloudFront to use for encrypting specific fields of data for the
* default cache behavior.
The value of ID
for the field-level encryption configuration
* that you want CloudFront to use for encrypting specific fields of data for the
* default cache behavior.
The value of ID
for the field-level encryption configuration
* that you want CloudFront to use for encrypting specific fields of data for the
* default cache behavior.
The value of ID
for the field-level encryption configuration
* that you want CloudFront to use for encrypting specific fields of data for the
* default cache behavior.
The Amazon Resource Name (ARN) of the real-time log configuration that is * attached to this cache behavior. For more information, see Real-time * logs in the Amazon CloudFront Developer Guide.
*/ inline const Aws::String& GetRealtimeLogConfigArn() const{ return m_realtimeLogConfigArn; } /** *The Amazon Resource Name (ARN) of the real-time log configuration that is * attached to this cache behavior. For more information, see Real-time * logs in the Amazon CloudFront Developer Guide.
*/ inline bool RealtimeLogConfigArnHasBeenSet() const { return m_realtimeLogConfigArnHasBeenSet; } /** *The Amazon Resource Name (ARN) of the real-time log configuration that is * attached to this cache behavior. For more information, see Real-time * logs in the Amazon CloudFront Developer Guide.
*/ inline void SetRealtimeLogConfigArn(const Aws::String& value) { m_realtimeLogConfigArnHasBeenSet = true; m_realtimeLogConfigArn = value; } /** *The Amazon Resource Name (ARN) of the real-time log configuration that is * attached to this cache behavior. For more information, see Real-time * logs in the Amazon CloudFront Developer Guide.
*/ inline void SetRealtimeLogConfigArn(Aws::String&& value) { m_realtimeLogConfigArnHasBeenSet = true; m_realtimeLogConfigArn = std::move(value); } /** *The Amazon Resource Name (ARN) of the real-time log configuration that is * attached to this cache behavior. For more information, see Real-time * logs in the Amazon CloudFront Developer Guide.
*/ inline void SetRealtimeLogConfigArn(const char* value) { m_realtimeLogConfigArnHasBeenSet = true; m_realtimeLogConfigArn.assign(value); } /** *The Amazon Resource Name (ARN) of the real-time log configuration that is * attached to this cache behavior. For more information, see Real-time * logs in the Amazon CloudFront Developer Guide.
*/ inline DefaultCacheBehavior& WithRealtimeLogConfigArn(const Aws::String& value) { SetRealtimeLogConfigArn(value); return *this;} /** *The Amazon Resource Name (ARN) of the real-time log configuration that is * attached to this cache behavior. For more information, see Real-time * logs in the Amazon CloudFront Developer Guide.
*/ inline DefaultCacheBehavior& WithRealtimeLogConfigArn(Aws::String&& value) { SetRealtimeLogConfigArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the real-time log configuration that is * attached to this cache behavior. For more information, see Real-time * logs in the Amazon CloudFront Developer Guide.
*/ inline DefaultCacheBehavior& WithRealtimeLogConfigArn(const char* value) { SetRealtimeLogConfigArn(value); return *this;} /** *The unique identifier of the cache policy that is attached to the default * cache behavior. For more information, see Creating * cache policies or Using * the managed cache policies in the Amazon CloudFront Developer * Guide.
A DefaultCacheBehavior
must include either a
* CachePolicyId
or ForwardedValues
. We recommend that
* you use a CachePolicyId
.
The unique identifier of the cache policy that is attached to the default * cache behavior. For more information, see Creating * cache policies or Using * the managed cache policies in the Amazon CloudFront Developer * Guide.
A DefaultCacheBehavior
must include either a
* CachePolicyId
or ForwardedValues
. We recommend that
* you use a CachePolicyId
.
The unique identifier of the cache policy that is attached to the default * cache behavior. For more information, see Creating * cache policies or Using * the managed cache policies in the Amazon CloudFront Developer * Guide.
A DefaultCacheBehavior
must include either a
* CachePolicyId
or ForwardedValues
. We recommend that
* you use a CachePolicyId
.
The unique identifier of the cache policy that is attached to the default * cache behavior. For more information, see Creating * cache policies or Using * the managed cache policies in the Amazon CloudFront Developer * Guide.
A DefaultCacheBehavior
must include either a
* CachePolicyId
or ForwardedValues
. We recommend that
* you use a CachePolicyId
.
The unique identifier of the cache policy that is attached to the default * cache behavior. For more information, see Creating * cache policies or Using * the managed cache policies in the Amazon CloudFront Developer * Guide.
A DefaultCacheBehavior
must include either a
* CachePolicyId
or ForwardedValues
. We recommend that
* you use a CachePolicyId
.
The unique identifier of the cache policy that is attached to the default * cache behavior. For more information, see Creating * cache policies or Using * the managed cache policies in the Amazon CloudFront Developer * Guide.
A DefaultCacheBehavior
must include either a
* CachePolicyId
or ForwardedValues
. We recommend that
* you use a CachePolicyId
.
The unique identifier of the cache policy that is attached to the default * cache behavior. For more information, see Creating * cache policies or Using * the managed cache policies in the Amazon CloudFront Developer * Guide.
A DefaultCacheBehavior
must include either a
* CachePolicyId
or ForwardedValues
. We recommend that
* you use a CachePolicyId
.
The unique identifier of the cache policy that is attached to the default * cache behavior. For more information, see Creating * cache policies or Using * the managed cache policies in the Amazon CloudFront Developer * Guide.
A DefaultCacheBehavior
must include either a
* CachePolicyId
or ForwardedValues
. We recommend that
* you use a CachePolicyId
.
The unique identifier of the origin request policy that is attached to the * default cache behavior. For more information, see Creating * origin request policies or Using * the managed origin request policies in the Amazon CloudFront Developer * Guide.
*/ inline const Aws::String& GetOriginRequestPolicyId() const{ return m_originRequestPolicyId; } /** *The unique identifier of the origin request policy that is attached to the * default cache behavior. For more information, see Creating * origin request policies or Using * the managed origin request policies in the Amazon CloudFront Developer * Guide.
*/ inline bool OriginRequestPolicyIdHasBeenSet() const { return m_originRequestPolicyIdHasBeenSet; } /** *The unique identifier of the origin request policy that is attached to the * default cache behavior. For more information, see Creating * origin request policies or Using * the managed origin request policies in the Amazon CloudFront Developer * Guide.
*/ inline void SetOriginRequestPolicyId(const Aws::String& value) { m_originRequestPolicyIdHasBeenSet = true; m_originRequestPolicyId = value; } /** *The unique identifier of the origin request policy that is attached to the * default cache behavior. For more information, see Creating * origin request policies or Using * the managed origin request policies in the Amazon CloudFront Developer * Guide.
*/ inline void SetOriginRequestPolicyId(Aws::String&& value) { m_originRequestPolicyIdHasBeenSet = true; m_originRequestPolicyId = std::move(value); } /** *The unique identifier of the origin request policy that is attached to the * default cache behavior. For more information, see Creating * origin request policies or Using * the managed origin request policies in the Amazon CloudFront Developer * Guide.
*/ inline void SetOriginRequestPolicyId(const char* value) { m_originRequestPolicyIdHasBeenSet = true; m_originRequestPolicyId.assign(value); } /** *The unique identifier of the origin request policy that is attached to the * default cache behavior. For more information, see Creating * origin request policies or Using * the managed origin request policies in the Amazon CloudFront Developer * Guide.
*/ inline DefaultCacheBehavior& WithOriginRequestPolicyId(const Aws::String& value) { SetOriginRequestPolicyId(value); return *this;} /** *The unique identifier of the origin request policy that is attached to the * default cache behavior. For more information, see Creating * origin request policies or Using * the managed origin request policies in the Amazon CloudFront Developer * Guide.
*/ inline DefaultCacheBehavior& WithOriginRequestPolicyId(Aws::String&& value) { SetOriginRequestPolicyId(std::move(value)); return *this;} /** *The unique identifier of the origin request policy that is attached to the * default cache behavior. For more information, see Creating * origin request policies or Using * the managed origin request policies in the Amazon CloudFront Developer * Guide.
*/ inline DefaultCacheBehavior& WithOriginRequestPolicyId(const char* value) { SetOriginRequestPolicyId(value); return *this;} /** *The identifier for a response headers policy.
*/ inline const Aws::String& GetResponseHeadersPolicyId() const{ return m_responseHeadersPolicyId; } /** *The identifier for a response headers policy.
*/ inline bool ResponseHeadersPolicyIdHasBeenSet() const { return m_responseHeadersPolicyIdHasBeenSet; } /** *The identifier for a response headers policy.
*/ inline void SetResponseHeadersPolicyId(const Aws::String& value) { m_responseHeadersPolicyIdHasBeenSet = true; m_responseHeadersPolicyId = value; } /** *The identifier for a response headers policy.
*/ inline void SetResponseHeadersPolicyId(Aws::String&& value) { m_responseHeadersPolicyIdHasBeenSet = true; m_responseHeadersPolicyId = std::move(value); } /** *The identifier for a response headers policy.
*/ inline void SetResponseHeadersPolicyId(const char* value) { m_responseHeadersPolicyIdHasBeenSet = true; m_responseHeadersPolicyId.assign(value); } /** *The identifier for a response headers policy.
*/ inline DefaultCacheBehavior& WithResponseHeadersPolicyId(const Aws::String& value) { SetResponseHeadersPolicyId(value); return *this;} /** *The identifier for a response headers policy.
*/ inline DefaultCacheBehavior& WithResponseHeadersPolicyId(Aws::String&& value) { SetResponseHeadersPolicyId(std::move(value)); return *this;} /** *The identifier for a response headers policy.
*/ inline DefaultCacheBehavior& WithResponseHeadersPolicyId(const char* value) { SetResponseHeadersPolicyId(value); return *this;} private: Aws::String m_targetOriginId; bool m_targetOriginIdHasBeenSet = false; TrustedSigners m_trustedSigners; bool m_trustedSignersHasBeenSet = false; TrustedKeyGroups m_trustedKeyGroups; bool m_trustedKeyGroupsHasBeenSet = false; ViewerProtocolPolicy m_viewerProtocolPolicy; bool m_viewerProtocolPolicyHasBeenSet = false; AllowedMethods m_allowedMethods; bool m_allowedMethodsHasBeenSet = false; bool m_smoothStreaming; bool m_smoothStreamingHasBeenSet = false; bool m_compress; bool m_compressHasBeenSet = false; LambdaFunctionAssociations m_lambdaFunctionAssociations; bool m_lambdaFunctionAssociationsHasBeenSet = false; FunctionAssociations m_functionAssociations; bool m_functionAssociationsHasBeenSet = false; Aws::String m_fieldLevelEncryptionId; bool m_fieldLevelEncryptionIdHasBeenSet = false; Aws::String m_realtimeLogConfigArn; bool m_realtimeLogConfigArnHasBeenSet = false; Aws::String m_cachePolicyId; bool m_cachePolicyIdHasBeenSet = false; Aws::String m_originRequestPolicyId; bool m_originRequestPolicyIdHasBeenSet = false; Aws::String m_responseHeadersPolicyId; bool m_responseHeadersPolicyIdHasBeenSet = false; }; } // namespace Model } // namespace CloudFront } // namespace Aws