aws-cloudfront-mediastore - AWS Solutions Constructs

aws-cloudfront-mediastore

All classes are under active development and subject to non-backward compatible changes or removal in any future version. These are not subject to the Semantic Versioning model. This means that while you may use them, you may need to update your source code when upgrading to a newer version of this package.

Language Package
Python
aws_solutions_constructs.aws_cloudfront_mediastore
Typescript
@aws-solutions-constructs/aws-cloudfront-mediastore
Java
software.amazon.awsconstructs.services.cloudfrontmediastore

This AWS Solutions Construct implements an Amazon CloudFront distribution connected to an AWS Elemental MediaStore container.

Here is a minimal deployable pattern definition in TypeScript:

import { CloudFrontToMediaStore } from '@aws-solutions-constructs/aws-cloudfront-mediastore'; new CloudFrontToMediaStore(this, 'test-cloudfront-mediastore-default', {});

Initializer

new CloudFrontToMediaStore(scope: Construct, id: string, props: CloudFrontToMediaStoreProps);

Parameters

Pattern Construct Props

Name Type Description
existingMediaStoreContainerObj? mediastore.CfnContainer Optional user-provided MediaStore container to override the default MediaStore container.
mediaStoreContainerProps? mediastore.CfnContainerProps Optional user-provided props to override the default props for the MediaStore Container.
cloudFrontDistributionProps? cloudfront.DistributionProps | any Optional user-provided props to override the default props for the CloudFront Distribution.
insertHttpSecurityHeaders? boolean Optional user-provided props to turn on/off the automatic injection of best practice HTTP security headers in all responses from CloudFront.

Pattern Properties

Name Type Description
cloudFrontWebDistribution cloudfront.CloudFrontWebDistribution Returns an instance of the CloudFront web distribution created by the pattern.
mediaStoreContainer mediastore.CfnContainer Returns an instance of the MediaStore container created by the pattern.
cloudFrontLoggingBucket s3.Bucket Returns an instance of the logging bucket created by the pattern for the CloudFront web distribution.
cloudFrontOriginRequestPolicy cloudfront.OriginRequestPolicy Returns an instance of the CloudFront origin request policy created by the pattern for the CloudFront web distribution.
cloudFrontOriginAccessIdentity? cloudfront.OriginAccessIdentity Returns an instance of the CloudFront origin access identity created by the pattern for the CloudFront web distribution.
edgeLambdaFunctionVersion lambda.Version Returns an instance of the Lambda edge function version created by the pattern.

Default settings

Out-of-the-box implementation of this pattern without any overrides will set the following defaults:

Amazon CloudFront

  • Configure access logging for CloudFront web distribution

  • Enable CloudFront origin request policy for AWS Elemental MediaStore container

  • Set User-Agent custom header with CloudFront origin access identity

  • Enable automatic injection of best practice HTTP security headers in all responses from CloudFront web distribution

AWS Elemental MediaStore

Architecture

GitHub

To view the code for this pattern, create/view issues and pull requests, and more:
@aws-solutions-constructs/aws-cloudfront-mediastore