Fugue.AWS.CloudFront.CacheBehavior

This is the preferred interface for making CloudFront CacheBehaviors with Fugue. If you want to manage a CloudFront CacheBehavior with Fugue, the new function is the right place to start.

Table of Contents

Module Members

new

(Function)

new CloudFront CacheBehavior (Constructor)

Call this constructor to create a new Fugue.Core.AWS.CloudFront.CacheBehavior value.

Type Signature

 fun { pathPattern: String,
       forwardedValues: ForwardedValues,
       trustedSigners: TrustedSigners,
       viewerProtocolPolicy: ViewerProtocolPolicy,
       minTTL: Int,
       allowedMethods: Optional<AllowedMethods>,
       smoothStreaming: Optional<Bool>,
       defaultTTL: Optional<Int>,
       maxTTL: Optional<Int>,
       compress: Optional<Bool>,
       targetOrigin: Origin} -> CacheBehavior
Argument: pathPattern

The pattern (for example, images/*.jpg) that specifies which requests you want this cache behavior to apply to.

Type: String

Argument: forwardedValues

A CloudFront.ForwardedValues value that specifies how CloudFront handles query strings, cookies, and headers.

Type: ForwardedValues

Argument: trustedSigners

A CloudFront.TrustedSigners value that specifies the AWS accounts, if any, that you want to allow to create signed URLs for private content.

Type: TrustedSigners

Argument: viewerProtocolPolicy

Use this element to specify the protocol that users can use to access the files in the origin specified by TargetOriginId when a request matches the path pattern in PathPattern.

Type: ViewerProtocolPolicy

Argument: minTTL

The minimum amount of time (in seconds) that you want objects to stay in CloudFront caches before CloudFront queries your origin to see whether the object has been updated.

Type: Int

Argument: allowedMethods

A CloudFront.AllowedMethods value that controls which HTTP methods CloudFront processes and forwards to your Amazon S3 bucket or your custom origin.

Type: Optional<AllowedMethods>

Argument: smoothStreaming

Indicates whether you want to distribute media files in Microsoft Smooth Streaming format using the origin that is associated with this cache behavior.

Type: Optional<Bool>

Argument: defaultTTL

The default amount of time (in seconds) that an object is in a CloudFront cache before CloudFront forwards another request to your origin to determine whether the object has been updated.

Type: Optional<Int>

Argument: maxTTL

The maximum amount of time (in seconds) that an object is in a CloudFront cache before CloudFront forwards another request to your origin to determine whether the object has been updated.

Type: Optional<Int>

Argument: compress

Whether you want CloudFront to automatically compress content for web requests that include Accept-Encoding: gzip in the request header.

Type: Optional<Bool>

Argument: targetOrigin

The CloudFront.Origin to which this CacheBehavior applies.

Type: Origin

Returns:

A Fugue.Core.AWS.CloudFront.CacheBehavior value.

Type: CacheBehavior