Header menu logo FsCDK

CloudFrontBuilders Module

Functions and values

Function or value Description

cloudFrontDistribution name

Full Usage: cloudFrontDistribution name

Parameters:
    name : string - The distribution name.

Returns: DistributionBuilder

Creates a CloudFront distribution with AWS best practices.

Example: cloudFrontDistribution "MyCDN" { s3DefaultBehavior myBucket defaultRootObject "index.html" domainName "static.example.com" priceClass PriceClass.PRICE_CLASS_100 }

name : string

The distribution name.

Returns: DistributionBuilder

originAccessIdentity name

Full Usage: originAccessIdentity name

Parameters:
    name : string - The OAI name.

Returns: OriginAccessIdentityBuilder

Creates a CloudFront Origin Access Identity.

name : string

The OAI name.

Returns: OriginAccessIdentityBuilder

Type something to start searching.