Package: aws-solutions-constructs.aws-cloudfront-mediastore
aws-cloudfront-mediastore module---Reference Documentation:https://docs.aws.amazon.com/solutions/latest/constructs/LanguagePackagePythonaws_solutions_constructs.aws_cloudfront_mediastoreTypeScript@aws-solutions-constructs/aws-cloudfront-mediastoreJavasoftware.amazon.awsconstructs.services.cloudfrontmediastoreOverviewThis AWS Solutions Construct implements an Amazon CloudFront distribution to an AWS Elemental MediaStore container.Here is a minimal deployable pattern definition:Typescriptimport{Construct}from'constructs';import{Stack,StackProps}from'aws-cdk-lib';import{CloudFrontToMediaStore}from'@aws-solutions-constructs/aws-cloudfront-mediastore';newCloudFrontToMediaStore(this,'test-cloudfront-mediastore-default',{});Pythonfromaws_solutions_constructs.aws_cloudfront_mediastoreimportCloudFrontToMediaStorefromaws_cdkimportStackfromconstructsimportConstructCloudFrontToMediaStore(self,'test-cloudfront-mediastore-default')Javaimportsoftware.constructs.Construct;importsoftware.amazon.awscdk.Stack;importsoftware.amazon.awscdk.StackProps;importsoftware.amazon.awsconstructs.services.cloudfrontmediastore.*;newCloudFrontToMediaStore(this,"test-cloudfront-mediastore-default",newCloudFrontToMediaStoreProps.Builder().build());Pattern Construct PropsNameTypeDescriptionexistingMediaStoreContainerObj?mediastore.CfnContainerOptional user provided MediaStore container to override the default MediaStore container.mediaStoreContainerProps?mediastore.CfnContainerPropsOptional user provided props to override the default props for the MediaStore Container.cloudFrontDistributionProps?cloudfront.DistributionPropsanyinsertHttpSecurityHeaders?booleanOptional user provided props to turn on/off the automatic injection of best practice HTTP security headers in all responses from CloudFrontresponseHeadersPolicyProps?cloudfront.ResponseHeadersPolicyPropsOptional user provided configuration that cloudfront applies to all http responses.cloudFrontLoggingBucketProps?s3.BucketPropsOptional user provided props to override the default props for the CloudFront Logging Bucket.Pattern PropertiesNameTypeDescriptioncloudFrontWebDistributioncloudfront.DistributionReturns an instance of cloudfront.Distribution created by the construct.mediaStoreContainermediastore.CfnContainerReturns an instance of mediastore.CfnContainer.cloudFrontLoggingBuckets3.BucketReturns an instance of s3.Bucket as the logging bucket for the CloudFront Web Distribution.cloudFrontOriginRequestPolicycloudfront.OriginRequestPolicyReturns an instance of cloudfront.OriginRequestPolicy created by the construct for the CloudFront Web Distribution.cloudFrontOriginAccessIdentity?cloudfront.OriginAccessIdentityReturns an instance of cloudfront.OriginAccessIdentity created by the construct for the CloudFront Web Distribution origin custom headers and the MediaStore Container policy.cloudFrontFunction?cloudfront.FunctionReturns an instance of the Cloudfront function created by the pattern.Default settingsOut of the box implementation of the Construct without any override will set the following defaults:Amazon CloudFrontConfigure access logging for CloudFront Web DistributionEnable CloudFront Origin Request Policy for AWS Elemental MediaStore ContainerSetUser-Agentcustom header with CloudFront Origin Access IdentityEnable automatic injection of best practice HTTP security headers in all responses from CloudFront DistributionAWS Elemental MediaStoreSet the deletion policy to retain the resourceSet the container name with the CloudFormation stack nameSet the defaultContainer Cross-origin resource sharing (CORS) policySet the defaultObject Life Cycle policySet the defaultContainer Policyto allow onlyaws:UserAgentwith CloudFront Origin Access IdentitySet the defaultMetric PolicyEnable the access loggingArchitecture© Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.