![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
awscdk-mediatailor-cloudfront-construct
Advanced tools
CDK Construct to associate MediaTailor config with CloudFront distribution
CDK Construct to associate MediaTailor config with CloudFront distribution
This CDK Construct consists of two resources:
And then associates them by updating MediaTailor's settings:
https://{CloudFront hostname}/out/v1/{MediaPackage endpoint ID}
https://{CloudFront hostname}
import * as cdk from 'aws-cdk-lib';
import { Construct } from 'constructs';
import { MediaTailorWithCloudFront } from 'awscdk-mediatailor-cloudfront-construct';
export class ExampleStack extends cdk.Stack {
constructor(scope: Construct, id: string, props?: cdk.StackProps) {
super(scope, id, props);
const videoContentSourceUrl = 'https://xxxx.mediapackage.us-east-1.amazonaws.com/out/v1/yyyy/index.m3u8';
const adDecisionServerUrl = 'https://example-ad-server/vast';
const slateAdUrl = 'https://example-bucket.s3.us-east-1.amazonaws.com/slate.mp4';
// Create MediaTailor with CloudFront
const res = new MediaTailorWithCloudFront(this, 'MediaTailorWithCloudFront', {
videoContentSourceUrl, // (required) The origin URL (assuming MediaPackage endpoint)
adDecisionServerUrl, // (optional) The ad decision server URL
slateAdUrl, // (optional) The URL of the slate video file
// configurationAliases, // (optional) The configuration aliases used by MediaTailor
// adDecisionFunction, // (optional) Instead of adDecisionServerUrl, you can specify a Lambda function that returns VAST/VMAP
// adDecisionFunctionApiPath, // (optional) The API path (including query strings) used by MediaTailor for invoking the Lambda function
// skipCloudFront, // (optional) Skip the CloudFront setup (default = false)
// adInsertionMode, // (optional) Whether players can use stitched or guided ad insertion (default = 'STITCHED_ONLY')
// prerollAdUrl, // (optional) The URL of the preroll ad
});
// You can access MediaTailor playback configuration attributes via `emt.config`
new cdk.CfnOutput(this, "SessionInitializationPrefix", {
value: res.emt.config.attrSessionInitializationEndpointPrefix,
exportName: cdk.Aws.STACK_NAME + "SessionInitializationPrefix",
description: "MediaTailor's session initialization prefix",
});
// You can access CloudFront distribution attributes via `cf.distribution`
new cdk.CfnOutput(this, "CloudFrontHostname", {
value: res.cf.distribution.distributionDomainName,
exportName: cdk.Aws.STACK_NAME + "HLSPlaybackPrefix",
description: "CloudFront distribution's host name",
});
}
}
FAQs
CDK Construct to associate MediaTailor config with CloudFront distribution
We found that awscdk-mediatailor-cloudfront-construct demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.