CDK Constructs for Amazon CloudFront to AWS Elemental MediaStore integration.
Project description
aws-cloudfront-mediastore module
---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.
Reference Documentation: | https://docs.aws.amazon.com/solutions/latest/constructs/ |
---|
Language | Package |
---|---|
Python | aws_solutions_constructs.aws_cloudfront_mediastore |
TypeScript | @aws-solutions-constructs/aws-cloudfront-mediastore |
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 in TypeScript:
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
from aws_solutions_constructs.aws_cloudfront_mediastore import CloudFrontToMediaStore
CloudFrontToMediaStore(self, "test-cloudfront-mediastore-default")
Initializer
new CloudFrontToMediaStore(scope: Construct, id: string, props: CloudFrontToMediaStoreProps);
Parameters
- scope
Construct
- id
string
- props
CloudFrontToMediaStoreProps
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 |
Pattern Properties
Name | Type | Description |
---|---|---|
cloudFrontWebDistribution | cloudfront.CloudFrontWebDistribution |
Returns an instance of cloudfront.CloudFrontWebDistribution 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. |
edgeLambdaFunctionVersion | lambda.Version |
Returns an instance of the edge Lambda function version 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 WebDistribution
AWS Elemental MediaStore
- Set the deletion policy to retain the resource
- Set the container name with the CloudFormation stack name
- Set the default Container Cross-origin resource sharing (CORS) policy
- Set the default Object Life Cycle policy
- Set the default Container Policy to allow only
aws:UserAgent
with CloudFront Origin Access Identity - Set the default Metric Policy
- Enable the access logging
Architecture
© Copyright 2021 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
Hashes for aws-solutions-constructs.aws-cloudfront-mediastore-1.87.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | df9b6c5e0eb029ca7573fe5e2d1f7ca111a41961bc3220236003ece7dc719eeb |
|
MD5 | 831385f1be6bbec2e8a4a7e4f1550f77 |
|
BLAKE2b-256 | 3dae5772ef8abe224b3b91459a2ed56af027678fbbb8e7eb78e87ae2c21e33f9 |
Hashes for aws_solutions_constructs.aws_cloudfront_mediastore-1.87.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7524522d192f9e6cab64cf4698b2003753f956aad974498c93927689250a539 |
|
MD5 | 8c083a8cf96139c6577e24b444e1bf3e |
|
BLAKE2b-256 | 79bfd6998432d226c516d42187bfcbcff9746b13ca67aa2055bf7bdeb1777f05 |