AWS SDK for C++  1.8.96
AWS SDK for C++
Public Member Functions | List of all members
Aws::Lightsail::Model::CacheBehaviorPerPath Class Reference

#include <CacheBehaviorPerPath.h>

Public Member Functions

 CacheBehaviorPerPath ()
 
 CacheBehaviorPerPath (Aws::Utils::Json::JsonView jsonValue)
 
CacheBehaviorPerPathoperator= (Aws::Utils::Json::JsonView jsonValue)
 
Aws::Utils::Json::JsonValue Jsonize () const
 
const Aws::StringGetPath () const
 
bool PathHasBeenSet () const
 
void SetPath (const Aws::String &value)
 
void SetPath (Aws::String &&value)
 
void SetPath (const char *value)
 
CacheBehaviorPerPathWithPath (const Aws::String &value)
 
CacheBehaviorPerPathWithPath (Aws::String &&value)
 
CacheBehaviorPerPathWithPath (const char *value)
 
const BehaviorEnumGetBehavior () const
 
bool BehaviorHasBeenSet () const
 
void SetBehavior (const BehaviorEnum &value)
 
void SetBehavior (BehaviorEnum &&value)
 
CacheBehaviorPerPathWithBehavior (const BehaviorEnum &value)
 
CacheBehaviorPerPathWithBehavior (BehaviorEnum &&value)
 

Detailed Description

Describes the per-path cache behavior of an Amazon Lightsail content delivery network (CDN) distribution.

A per-path cache behavior is used to override, or add an exception to, the default cache behavior of a distribution. For example, if the cacheBehavior is set to cache, then a per-path cache behavior can be used to specify a directory, file, or file type that your distribution will cache. Alternately, if the distribution's cacheBehavior is dont-cache, then a per-path cache behavior can be used to specify a directory, file, or file type that your distribution will not cache.

if the cacheBehavior's behavior is set to 'cache', then

See Also:

AWS API Reference

Definition at line 41 of file CacheBehaviorPerPath.h.

Constructor & Destructor Documentation

◆ CacheBehaviorPerPath() [1/2]

Aws::Lightsail::Model::CacheBehaviorPerPath::CacheBehaviorPerPath ( )

◆ CacheBehaviorPerPath() [2/2]

Aws::Lightsail::Model::CacheBehaviorPerPath::CacheBehaviorPerPath ( Aws::Utils::Json::JsonView  jsonValue)

Member Function Documentation

◆ BehaviorHasBeenSet()

bool Aws::Lightsail::Model::CacheBehaviorPerPath::BehaviorHasBeenSet ( ) const
inline

The cache behavior for the specified path.

You can specify one of the following per-path cache behaviors:

  • cache - This behavior caches the specified path.

  • dont-cache - This behavior doesn't cache the specified path.

Definition at line 235 of file CacheBehaviorPerPath.h.

◆ GetBehavior()

const BehaviorEnum& Aws::Lightsail::Model::CacheBehaviorPerPath::GetBehavior ( ) const
inline

The cache behavior for the specified path.

You can specify one of the following per-path cache behaviors:

  • cache - This behavior caches the specified path.

  • dont-cache - This behavior doesn't cache the specified path.

Definition at line 226 of file CacheBehaviorPerPath.h.

◆ GetPath()

const Aws::String& Aws::Lightsail::Model::CacheBehaviorPerPath::GetPath ( ) const
inline

The path to a directory or file to cached, or not cache. Use an asterisk symbol to specify wildcard directories (path/to/assets/ *), and file types (*.html, *jpg, *js). Directories and file paths are case-sensitive.

Examples:

  • Specify the following to cache all files in the document root of an Apache web server running on a Lightsail instance.

    var/www/html/

  • Specify the following file to cache only the index page in the document root of an Apache web server.

    var/www/html/index.html

  • Specify the following to cache only the .html files in the document root of an Apache web server.

    var/www/html/ *.html

  • Specify the following to cache only the .jpg, .png, and .gif files in the images sub-directory of the document root of an Apache web server.

    var/www/html/images/ *.jpg

    var/www/html/images/ *.png

    var/www/html/images/ *.gif

    Specify the following to cache all files in the images sub-directory of the document root of an Apache web server.

    var/www/html/images/

Definition at line 69 of file CacheBehaviorPerPath.h.

◆ Jsonize()

Aws::Utils::Json::JsonValue Aws::Lightsail::Model::CacheBehaviorPerPath::Jsonize ( ) const

◆ operator=()

CacheBehaviorPerPath& Aws::Lightsail::Model::CacheBehaviorPerPath::operator= ( Aws::Utils::Json::JsonView  jsonValue)

◆ PathHasBeenSet()

bool Aws::Lightsail::Model::CacheBehaviorPerPath::PathHasBeenSet ( ) const
inline

The path to a directory or file to cached, or not cache. Use an asterisk symbol to specify wildcard directories (path/to/assets/ *), and file types (*.html, *jpg, *js). Directories and file paths are case-sensitive.

Examples:

  • Specify the following to cache all files in the document root of an Apache web server running on a Lightsail instance.

    var/www/html/

  • Specify the following file to cache only the index page in the document root of an Apache web server.

    var/www/html/index.html

  • Specify the following to cache only the .html files in the document root of an Apache web server.

    var/www/html/ *.html

  • Specify the following to cache only the .jpg, .png, and .gif files in the images sub-directory of the document root of an Apache web server.

    var/www/html/images/ *.jpg

    var/www/html/images/ *.png

    var/www/html/images/ *.gif

    Specify the following to cache all files in the images sub-directory of the document root of an Apache web server.

    var/www/html/images/

Definition at line 90 of file CacheBehaviorPerPath.h.

◆ SetBehavior() [1/2]

void Aws::Lightsail::Model::CacheBehaviorPerPath::SetBehavior ( const BehaviorEnum value)
inline

The cache behavior for the specified path.

You can specify one of the following per-path cache behaviors:

  • cache - This behavior caches the specified path.

  • dont-cache - This behavior doesn't cache the specified path.

Definition at line 244 of file CacheBehaviorPerPath.h.

◆ SetBehavior() [2/2]

void Aws::Lightsail::Model::CacheBehaviorPerPath::SetBehavior ( BehaviorEnum &&  value)
inline

The cache behavior for the specified path.

You can specify one of the following per-path cache behaviors:

  • cache - This behavior caches the specified path.

  • dont-cache - This behavior doesn't cache the specified path.

Definition at line 253 of file CacheBehaviorPerPath.h.

◆ SetPath() [1/3]

void Aws::Lightsail::Model::CacheBehaviorPerPath::SetPath ( const Aws::String value)
inline

The path to a directory or file to cached, or not cache. Use an asterisk symbol to specify wildcard directories (path/to/assets/ *), and file types (*.html, *jpg, *js). Directories and file paths are case-sensitive.

Examples:

  • Specify the following to cache all files in the document root of an Apache web server running on a Lightsail instance.

    var/www/html/

  • Specify the following file to cache only the index page in the document root of an Apache web server.

    var/www/html/index.html

  • Specify the following to cache only the .html files in the document root of an Apache web server.

    var/www/html/ *.html

  • Specify the following to cache only the .jpg, .png, and .gif files in the images sub-directory of the document root of an Apache web server.

    var/www/html/images/ *.jpg

    var/www/html/images/ *.png

    var/www/html/images/ *.gif

    Specify the following to cache all files in the images sub-directory of the document root of an Apache web server.

    var/www/html/images/

Definition at line 111 of file CacheBehaviorPerPath.h.

◆ SetPath() [2/3]

void Aws::Lightsail::Model::CacheBehaviorPerPath::SetPath ( Aws::String &&  value)
inline

The path to a directory or file to cached, or not cache. Use an asterisk symbol to specify wildcard directories (path/to/assets/ *), and file types (*.html, *jpg, *js). Directories and file paths are case-sensitive.

Examples:

  • Specify the following to cache all files in the document root of an Apache web server running on a Lightsail instance.

    var/www/html/

  • Specify the following file to cache only the index page in the document root of an Apache web server.

    var/www/html/index.html

  • Specify the following to cache only the .html files in the document root of an Apache web server.

    var/www/html/ *.html

  • Specify the following to cache only the .jpg, .png, and .gif files in the images sub-directory of the document root of an Apache web server.

    var/www/html/images/ *.jpg

    var/www/html/images/ *.png

    var/www/html/images/ *.gif

    Specify the following to cache all files in the images sub-directory of the document root of an Apache web server.

    var/www/html/images/

Definition at line 132 of file CacheBehaviorPerPath.h.

◆ SetPath() [3/3]

void Aws::Lightsail::Model::CacheBehaviorPerPath::SetPath ( const char *  value)
inline

The path to a directory or file to cached, or not cache. Use an asterisk symbol to specify wildcard directories (path/to/assets/ *), and file types (*.html, *jpg, *js). Directories and file paths are case-sensitive.

Examples:

  • Specify the following to cache all files in the document root of an Apache web server running on a Lightsail instance.

    var/www/html/

  • Specify the following file to cache only the index page in the document root of an Apache web server.

    var/www/html/index.html

  • Specify the following to cache only the .html files in the document root of an Apache web server.

    var/www/html/ *.html

  • Specify the following to cache only the .jpg, .png, and .gif files in the images sub-directory of the document root of an Apache web server.

    var/www/html/images/ *.jpg

    var/www/html/images/ *.png

    var/www/html/images/ *.gif

    Specify the following to cache all files in the images sub-directory of the document root of an Apache web server.

    var/www/html/images/

Definition at line 153 of file CacheBehaviorPerPath.h.

◆ WithBehavior() [1/2]

CacheBehaviorPerPath& Aws::Lightsail::Model::CacheBehaviorPerPath::WithBehavior ( const BehaviorEnum value)
inline

The cache behavior for the specified path.

You can specify one of the following per-path cache behaviors:

  • cache - This behavior caches the specified path.

  • dont-cache - This behavior doesn't cache the specified path.

Definition at line 262 of file CacheBehaviorPerPath.h.

◆ WithBehavior() [2/2]

CacheBehaviorPerPath& Aws::Lightsail::Model::CacheBehaviorPerPath::WithBehavior ( BehaviorEnum &&  value)
inline

The cache behavior for the specified path.

You can specify one of the following per-path cache behaviors:

  • cache - This behavior caches the specified path.

  • dont-cache - This behavior doesn't cache the specified path.

Definition at line 271 of file CacheBehaviorPerPath.h.

◆ WithPath() [1/3]

CacheBehaviorPerPath& Aws::Lightsail::Model::CacheBehaviorPerPath::WithPath ( const Aws::String value)
inline

The path to a directory or file to cached, or not cache. Use an asterisk symbol to specify wildcard directories (path/to/assets/ *), and file types (*.html, *jpg, *js). Directories and file paths are case-sensitive.

Examples:

  • Specify the following to cache all files in the document root of an Apache web server running on a Lightsail instance.

    var/www/html/

  • Specify the following file to cache only the index page in the document root of an Apache web server.

    var/www/html/index.html

  • Specify the following to cache only the .html files in the document root of an Apache web server.

    var/www/html/ *.html

  • Specify the following to cache only the .jpg, .png, and .gif files in the images sub-directory of the document root of an Apache web server.

    var/www/html/images/ *.jpg

    var/www/html/images/ *.png

    var/www/html/images/ *.gif

    Specify the following to cache all files in the images sub-directory of the document root of an Apache web server.

    var/www/html/images/

Definition at line 174 of file CacheBehaviorPerPath.h.

◆ WithPath() [2/3]

CacheBehaviorPerPath& Aws::Lightsail::Model::CacheBehaviorPerPath::WithPath ( Aws::String &&  value)
inline

The path to a directory or file to cached, or not cache. Use an asterisk symbol to specify wildcard directories (path/to/assets/ *), and file types (*.html, *jpg, *js). Directories and file paths are case-sensitive.

Examples:

  • Specify the following to cache all files in the document root of an Apache web server running on a Lightsail instance.

    var/www/html/

  • Specify the following file to cache only the index page in the document root of an Apache web server.

    var/www/html/index.html

  • Specify the following to cache only the .html files in the document root of an Apache web server.

    var/www/html/ *.html

  • Specify the following to cache only the .jpg, .png, and .gif files in the images sub-directory of the document root of an Apache web server.

    var/www/html/images/ *.jpg

    var/www/html/images/ *.png

    var/www/html/images/ *.gif

    Specify the following to cache all files in the images sub-directory of the document root of an Apache web server.

    var/www/html/images/

Definition at line 195 of file CacheBehaviorPerPath.h.

◆ WithPath() [3/3]

CacheBehaviorPerPath& Aws::Lightsail::Model::CacheBehaviorPerPath::WithPath ( const char *  value)
inline

The path to a directory or file to cached, or not cache. Use an asterisk symbol to specify wildcard directories (path/to/assets/ *), and file types (*.html, *jpg, *js). Directories and file paths are case-sensitive.

Examples:

  • Specify the following to cache all files in the document root of an Apache web server running on a Lightsail instance.

    var/www/html/

  • Specify the following file to cache only the index page in the document root of an Apache web server.

    var/www/html/index.html

  • Specify the following to cache only the .html files in the document root of an Apache web server.

    var/www/html/ *.html

  • Specify the following to cache only the .jpg, .png, and .gif files in the images sub-directory of the document root of an Apache web server.

    var/www/html/images/ *.jpg

    var/www/html/images/ *.png

    var/www/html/images/ *.gif

    Specify the following to cache all files in the images sub-directory of the document root of an Apache web server.

    var/www/html/images/

Definition at line 216 of file CacheBehaviorPerPath.h.


The documentation for this class was generated from the following file: