CDK Constructs for Amazon CloudFront to AWS Elemental MediaStore integration.
Project description
aws-cloudfront-mediastore module
---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:
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 |
cloudFrontLoggingBucketProps? | s3.BucketProps |
Optional user provided props to override the default props for the CloudFront Logging Bucket. |
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. |
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 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 2022 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
Close
Hashes for aws-solutions-constructs.aws-cloudfront-mediastore-1.157.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6c70c3ca92788c0dee1cafd71e97a3a08e27b45f7c95e19600f2a4a86a85a9b |
|
MD5 | f1c3cc0a5009b3ec9f1fde156b1100ae |
|
BLAKE2b-256 | 193ef09707da5559b7aaae7592356146994fe5176f514d99f0f9702b12412240 |
Close
Hashes for aws_solutions_constructs.aws_cloudfront_mediastore-1.157.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29b716f4ad5bf0937b57ed4c1bc8cb8c359516f7e961d988360899f3ee607051 |
|
MD5 | 0caaef07896748f013ce943f728305b3 |
|
BLAKE2b-256 | 4023090d8afdeda4b01efaa22f12b2b8a14dae70d4fa8a84c8f4d3dc3af04541 |