1 | import { CfnDistribution } from '../cloudfront.generated';
|
2 | import { AddBehaviorOptions } from '../distribution';
|
3 |
|
4 |
|
5 |
|
6 | export interface CacheBehaviorProps extends AddBehaviorOptions {
|
7 | |
8 |
|
9 |
|
10 |
|
11 |
|
12 | readonly pathPattern: string;
|
13 | }
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 | export declare class CacheBehavior {
|
21 | private readonly props;
|
22 | private readonly originId;
|
23 | constructor(originId: string, props: CacheBehaviorProps);
|
24 | /**
|
25 | * Creates and returns the CloudFormation representation of this behavior.
|
26 | * This renders as a "CacheBehaviorProperty" regardless of if this is a default
|
27 | * cache behavior or not, as the two are identical except that the pathPattern
|
28 | * is omitted for the default cache behavior.
|
29 | *
|
30 | * @internal
|
31 | */
|
32 | _renderBehavior(): CfnDistribution.CacheBehaviorProperty;
|
33 | private validateEdgeLambdas;
|
34 | private grantEdgeLambdaFunctionExecutionRole;
|
35 | }
|