Skip to main content

CDK Constructs for Amazon CloudFront to AWS Elemental MediaStore integration.

Project description

aws-cloudfront-mediastore module

---

Stability: Stable


Reference Documentation: https://docs.aws.amazon.com/solutions/latest/constructs/
Language Package
Python Logo Python aws_solutions_constructs.aws_cloudfront_mediastore
TypeScript Logo TypeScript @aws-solutions-constructs/aws-cloudfront-mediastore
Java Logo Java software.amazon.awsconstructs.services.cloudfrontmediastore

Overview

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

Here is a minimal deployable pattern definition:

Typescript

import { Construct } from 'constructs';
import { Stack, StackProps } from 'aws-cdk-lib';
import { CloudFrontToMediaStore } from '@aws-solutions-constructs/aws-cloudfront-mediastore';

new CloudFrontToMediaStore(this, 'test-cloudfront-mediastore-default', {});

Python

from aws_solutions_constructs.aws_cloudfront_mediastore import CloudFrontToMediaStore
from aws_cdk import Stack
from constructs import Construct

CloudFrontToMediaStore(self, 'test-cloudfront-mediastore-default')

Java

import software.constructs.Construct;

import software.amazon.awscdk.Stack;
import software.amazon.awscdk.StackProps;
import software.amazon.awsconstructs.services.cloudfrontmediastore.*;

new CloudFrontToMediaStore(this, "test-cloudfront-mediastore-default", new CloudFrontToMediaStoreProps.Builder()
        .build());

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
insertHttpSecurityHeaders? boolean Optional user provided props to turn on/off the automatic injection of best practice HTTP security headers in all responses from CloudFront
responseHeadersPolicyProps? cloudfront.ResponseHeadersPolicyProps Optional user provided configuration that cloudfront applies to all http responses.
cloudFrontLoggingBucketProps? s3.BucketProps Optional user provided props to override the default props for the CloudFront Logging Bucket.

Pattern Properties

Name Type Description
cloudFrontWebDistribution cloudfront.Distribution Returns an instance of cloudfront.Distribution created by the construct.
mediaStoreContainer mediastore.CfnContainer Returns an instance of mediastore.CfnContainer.
cloudFrontLoggingBucket s3.Bucket Returns an instance of s3.Bucket as the logging bucket for the CloudFront Web Distribution.
cloudFrontOriginRequestPolicy cloudfront.OriginRequestPolicy Returns an instance of cloudfront.OriginRequestPolicy created by the construct for the CloudFront Web Distribution.
cloudFrontOriginAccessIdentity? cloudfront.OriginAccessIdentity Returns an instance of cloudfront.OriginAccessIdentity created by the construct for the CloudFront Web Distribution origin custom headers and the MediaStore Container policy.
cloudFrontFunction? cloudfront.Function Returns an instance of the Cloudfront function created by the pattern.

Default settings

Out of the box implementation of the Construct without any override 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 Distribution

AWS Elemental MediaStore

Architecture

Architecture Diagram


© Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

File details

Details for the file aws_solutions_constructs_aws_cloudfront_mediastore-2.74.0.tar.gz.

File metadata

File hashes

Hashes for aws_solutions_constructs_aws_cloudfront_mediastore-2.74.0.tar.gz
Algorithm Hash digest
SHA256 5ef3abfe14761955b45dffe77b6e52d9056b92b50af63b4d640b0d274af17c53
MD5 6f7c52513359c16254700171ce3be489
BLAKE2b-256 b82fc485769ff91906e2fa33693f945a8b644c29e7f29f8a770535edb2c68f8c

See more details on using hashes here.

File details

Details for the file aws_solutions_constructs.aws_cloudfront_mediastore-2.74.0-py3-none-any.whl.

File metadata

File hashes

Hashes for aws_solutions_constructs.aws_cloudfront_mediastore-2.74.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a4a012690b54163b34f2aa7671fbaf28dcf0ee4b820df7a003bd6fb85a429d3d
MD5 b8f8e39d547f61517ed526b0bdd425a8
BLAKE2b-256 5a25852db8d71ec14a5148cd631324e18cee151e277553e0e9c2a2edc628e9d3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page