| 1 | # Generated by default/object.tt | ||
| 2 | package Paws::Lightsail::CacheBehaviorPerPath; | ||
| 3 | use Moose; | ||
| 4 | has Behavior => (is => 'ro', isa => 'Str', request_name => 'behavior', traits => ['NameInRequest']); | ||
| 5 | has Path => (is => 'ro', isa => 'Str', request_name => 'path', traits => ['NameInRequest']); | ||
| 6 | |||
| 7 | 1; | ||
| 8 | |||
| 9 | ### main pod documentation begin ### | ||
| 10 | |||
| 11 | =head1 NAME | ||
| 12 | |||
| 13 | Paws::Lightsail::CacheBehaviorPerPath | ||
| 14 | |||
| 15 | =head1 USAGE | ||
| 16 | |||
| 17 | This class represents one of two things: | ||
| 18 | |||
| 19 | =head3 Arguments in a call to a service | ||
| 20 | |||
| 21 | Use the attributes of this class as arguments to methods. You shouldn't make instances of this class. | ||
| 22 | Each attribute should be used as a named argument in the calls that expect this type of object. | ||
| 23 | |||
| 24 | As an example, if Att1 is expected to be a Paws::Lightsail::CacheBehaviorPerPath object: | ||
| 25 | |||
| 26 | $service_obj->Method(Att1 => { Behavior => $value, ..., Path => $value }); | ||
| 27 | |||
| 28 | =head3 Results returned from an API call | ||
| 29 | |||
| 30 | Use accessors for each attribute. If Att1 is expected to be an Paws::Lightsail::CacheBehaviorPerPath object: | ||
| 31 | |||
| 32 | $result = $service_obj->Method(...); | ||
| 33 | $result->Att1->Behavior | ||
| 34 | |||
| 35 | =head1 DESCRIPTION | ||
| 36 | |||
| 37 | Describes the per-path cache behavior of an Amazon Lightsail content | ||
| 38 | delivery network (CDN) distribution. | ||
| 39 | |||
| 40 | A per-path cache behavior is used to override, or add an exception to, | ||
| 41 | the default cache behavior of a distribution. For example, if the | ||
| 42 | C<cacheBehavior> is set to C<cache>, then a per-path cache behavior can | ||
| 43 | be used to specify a directory, file, or file type that your | ||
| 44 | distribution will cache. Alternately, if the distribution's | ||
| 45 | C<cacheBehavior> is C<dont-cache>, then a per-path cache behavior can | ||
| 46 | be used to specify a directory, file, or file type that your | ||
| 47 | distribution will not cache. | ||
| 48 | |||
| 49 | if the cacheBehavior's behavior is set to 'cache', then | ||
| 50 | |||
| 51 | =head1 ATTRIBUTES | ||
| 52 | |||
| 53 | |||
| 54 | =head2 Behavior => Str | ||
| 55 | |||
| 56 | The cache behavior for the specified path. | ||
| 57 | |||
| 58 | You can specify one of the following per-path cache behaviors: | ||
| 59 | |||
| 60 | =over | ||
| 61 | |||
| 62 | =item * | ||
| 63 | |||
| 64 | B<C<cache> > - This behavior caches the specified path. | ||
| 65 | |||
| 66 | =item * | ||
| 67 | |||
| 68 | B<C<dont-cache> > - This behavior doesn't cache the specified path. | ||
| 69 | |||
| 70 | =back | ||
| 71 | |||
| 72 | |||
| 73 | |||
| 74 | =head2 Path => Str | ||
| 75 | |||
| 76 | The path to a directory or file to cached, or not cache. Use an | ||
| 77 | asterisk symbol to specify wildcard directories (C<path/to/assets/*>), | ||
| 78 | and file types (C<*.html, *jpg, *js>). Directories and file paths are | ||
| 79 | case-sensitive. | ||
| 80 | |||
| 81 | Examples: | ||
| 82 | |||
| 83 | =over | ||
| 84 | |||
| 85 | =item * | ||
| 86 | |||
| 87 | Specify the following to cache all files in the document root of an | ||
| 88 | Apache web server running on a Lightsail instance. | ||
| 89 | |||
| 90 | C<var/www/html/> | ||
| 91 | |||
| 92 | =item * | ||
| 93 | |||
| 94 | Specify the following file to cache only the index page in the document | ||
| 95 | root of an Apache web server. | ||
| 96 | |||
| 97 | C<var/www/html/index.html> | ||
| 98 | |||
| 99 | =item * | ||
| 100 | |||
| 101 | Specify the following to cache only the .html files in the document | ||
| 102 | root of an Apache web server. | ||
| 103 | |||
| 104 | C<var/www/html/*.html> | ||
| 105 | |||
| 106 | =item * | ||
| 107 | |||
| 108 | Specify the following to cache only the .jpg, .png, and .gif files in | ||
| 109 | the images sub-directory of the document root of an Apache web server. | ||
| 110 | |||
| 111 | C<var/www/html/images/*.jpg> | ||
| 112 | |||
| 113 | C<var/www/html/images/*.png> | ||
| 114 | |||
| 115 | C<var/www/html/images/*.gif> | ||
| 116 | |||
| 117 | Specify the following to cache all files in the images sub-directory of | ||
| 118 | the document root of an Apache web server. | ||
| 119 | |||
| 120 | C<var/www/html/images/> | ||
| 121 | |||
| 122 | =back | ||
| 123 | |||
| 124 | |||
| 125 | |||
| 126 | |||
| 127 | =head1 SEE ALSO | ||
| 128 | |||
| 129 | This class forms part of L<Paws>, describing an object used in L<Paws::Lightsail> | ||
| 130 | |||
| 131 | =head1 BUGS and CONTRIBUTIONS | ||
| 132 | |||
| 133 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 134 | |||
| 135 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 136 | |||
| 137 | =cut | ||
| 138 |