Show / Hide Table of Contents

Class CfnDistribution.CacheBehaviorPerPathProperty

CacheBehaviorPerPath is a property of the AWS::Lightsail::Distribution resource. It describes the per-path cache behavior of an Amazon Lightsail content delivery network (CDN) distribution.

Inheritance
object
CfnDistribution.CacheBehaviorPerPathProperty
Implements
CfnDistribution.ICacheBehaviorPerPathProperty
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.Lightsail
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnDistribution.CacheBehaviorPerPathProperty : CfnDistribution.ICacheBehaviorPerPathProperty
Syntax (vb)
Public Class CfnDistribution.CacheBehaviorPerPathProperty Implements CfnDistribution.ICacheBehaviorPerPathProperty
Remarks

Use a per-path cache behavior to override the default cache behavior of a distribution, or to add an exception to it. For example, if you set the CacheBehavior to cache , you can use a per-path cache behavior to specify a directory, file, or file type that your distribution will cache. If you don’t want your distribution to cache a specified directory, file, or file type, set the per-path cache behavior to dont-cache .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lightsail-distribution-cachebehaviorperpath.html

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.Lightsail;

             var cacheBehaviorPerPathProperty = new CacheBehaviorPerPathProperty {
                 Behavior = "behavior",
                 Path = "path"
             };

Synopsis

Constructors

CacheBehaviorPerPathProperty()

CacheBehaviorPerPath is a property of the AWS::Lightsail::Distribution resource. It describes the per-path cache behavior of an Amazon Lightsail content delivery network (CDN) distribution.

Properties

Behavior

The cache behavior for the specified path.

Path

The path to a directory or file to cache, or not cache.

Constructors

CacheBehaviorPerPathProperty()

CacheBehaviorPerPath is a property of the AWS::Lightsail::Distribution resource. It describes the per-path cache behavior of an Amazon Lightsail content delivery network (CDN) distribution.

public CacheBehaviorPerPathProperty()
Remarks

Use a per-path cache behavior to override the default cache behavior of a distribution, or to add an exception to it. For example, if you set the CacheBehavior to cache , you can use a per-path cache behavior to specify a directory, file, or file type that your distribution will cache. If you don’t want your distribution to cache a specified directory, file, or file type, set the per-path cache behavior to dont-cache .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lightsail-distribution-cachebehaviorperpath.html

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.Lightsail;

             var cacheBehaviorPerPathProperty = new CacheBehaviorPerPathProperty {
                 Behavior = "behavior",
                 Path = "path"
             };

Properties

Behavior

The cache behavior for the specified path.

public string? Behavior { get; set; }
Property Value

string

Remarks

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

    See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lightsail-distribution-cachebehaviorperpath.html#cfn-lightsail-distribution-cachebehaviorperpath-behavior

    Path

    The path to a directory or file to cache, or not cache.

    public string? Path { get; set; }
    Property Value

    string

    Remarks

    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:

      var/www/html/

        var/www/html/index.html

          var/www/html/*.html

            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 subdirectory of the document root of an Apache web server.

            var/www/html/images/

            See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lightsail-distribution-cachebehaviorperpath.html#cfn-lightsail-distribution-cachebehaviorperpath-path

            Implements

            CfnDistribution.ICacheBehaviorPerPathProperty
            Back to top Generated by DocFX