@studion/infra-code-blocks
Version:
Studion common infra components
22 lines • 929 B
TypeScript
import * as aws from '@pulumi/aws';
import * as pulumi from '@pulumi/pulumi';
import { CacheStrategy } from './types';
export declare namespace S3CacheStrategy {
type Args = {
pathPattern: string;
bucket: pulumi.Input<aws.s3.Bucket>;
cacheTtl?: pulumi.Input<number>;
};
}
export declare class S3CacheStrategy extends pulumi.ComponentResource implements CacheStrategy {
name: string;
pathPattern: string;
config: aws.types.input.cloudfront.DistributionDefaultCacheBehavior;
cachePolicy: aws.cloudfront.CachePolicy;
responseHeadersPolicy: aws.cloudfront.ResponseHeadersPolicy;
constructor(name: string, args: S3CacheStrategy.Args, opts?: pulumi.ComponentResourceOptions);
private createCachePolicy;
private createResponseHeadersPolicy;
getPathConfig(): aws.types.input.cloudfront.DistributionOrderedCacheBehavior;
}
//# sourceMappingURL=s3-cache-strategy.d.ts.map