Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
awscdk-construct-ad-decision-server
Advanced tools
AWS CDK Construct to upload local files to S3 and make them publicly available via CloudFront
CDK Construct for setting up a simple Ad Decision Server (ADS)
clearanceRule: 'SEQUENCIAL'
is set, the Lambda function tries to fill the ad break with the ad creatives from the beginning and gives up when there's no more space in the ad break.clearanceRule: 'LONGEST_FIRST'
(default) is set, the Lambda function tries to fill the ad break using the longest ad creative and, when the remaining break does not fit the longest ad, it moves to the 2nd longest ad creative.import * as cdk from 'aws-cdk-lib';
import { Construct } from 'constructs';
import { AdDecisionServer } from 'awscdk-construct-ad-decision-server';
export class ExampleStack extends cdk.Stack {
constructor(scope: Construct, id: string, props?: cdk.StackProps) {
super(scope, id, props);
// Build an Ad Decision Server (ADS) that returns 3x creatives
const ads = new AdDecisionServer(this, 'AdDecisionServer', {
creatives: [
{
duration: 30,
url: `${AD_CREATIVE_URL}/30sec.mp4`,
delivery: 'progressive',
mimeType: 'video/mp4',
width: 1280,
height: 720,
},
{
duration: 15,
url: `${AD_CREATIVE_URL}/15sec.mp4`,
delivery: 'progressive',
mimeType: 'video/mp4',
width: 1280,
height: 720,
},
{
duration: 60,
url: `${AD_CREATIVE_URL}/60sec.mp4`,
delivery: 'progressive',
mimeType: 'video/mp4',
width: 1280,
height: 720,
},
],
clearanceRule: 'SEQUENCIAL', // Specify how ADS clear inventory: LONGEST_FIRST (defalut) or SEQUENCIAL
});
// You can use the ADS with MediaTailor
const {emt, cf} = new MediaTailorWithCloudFront(this, 'MediaTailorWithCloudFront', {
videoContentSourceUrl: ORIGIN_URL,
adDecisionServerUrl: `${ads.url}?duration=[session.avail_duration_secs]`,
slateAdUrl: SLATE_URL,
});
}
}
FAQs
AWS CDK Construct to upload local files to S3 and make them publicly available via CloudFront
The npm package awscdk-construct-ad-decision-server receives a total of 14 weekly downloads. As such, awscdk-construct-ad-decision-server popularity was classified as not popular.
We found that awscdk-construct-ad-decision-server 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.