Fugue.AWS.CloudFront.Origin

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

Table of Contents

Module Members

new

(Function)

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

Type Signature

 fun { id: String,
       domainName: String,
       originPath: Optional<String>,
       customHeaders: Optional<List<CustomHeader>>,
       originConfig: OriginConfig} -> Origin
Argument: id

A unique identifier for the origin. The value of Id must be unique within the distribution.

Type: String

Argument: domainName

Amazon S3 origins: The DNS name of the Amazon S3 bucket from which you want CloudFront to get objects for this origin, for example, myawsbucket.s3.amazonaws.com. Custom origins: The DNS domain name for the HTTP server from which you want CloudFront to get objects for this origin, for example, www.example.com.

Type: String

Argument: originPath

An optional element that causes CloudFront to request your content from a directory in your Amazon S3 bucket or your custom origin. A directory name starting with a “/”.

Type: Optional<String>

Argument: customHeaders

A list of CloudFront.CustomHeader objects that contains information about the custom headers associated with this Origin.

Type: Optional<List<CustomHeader>>

Argument: originConfig

A CloudFront.OriginConfig that contains information about the Amazon S3 origin.

Type: OriginConfig

Returns:

A Fugue.Core.AWS.CloudFront.Origin value

Type: Origin