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-lambda-function-for-inserting-scte
Advanced tools
AWS CDK Construct for scheduling SCTE-35 events using the MediaLive schedule API
AWS CDK Construct for scheduling SCTE-35 events using the MediaLive schedule API
import * as cdk from 'aws-cdk-lib';
import { Construct } from 'constructs';
import { ScteScheduler } from 'awscdk-construct-lambda-function-for-inserting-scte';
export class ExampleStack extends cdk.Stack {
constructor(scope: Construct, id: string, props?: cdk.StackProps) {
super(scope, id, props);
// Create periodic SCTE-35 events
const {schedule, lambda} = new ScteScheduler(this, 'ScteScheduler', {
channelId: '12345', // MediaLive channel id
scteDurationInSeconds: 60, // Duration of SCTE:splice_insert (seconds)
intervalInMinutes: 2, // Interval of the insertion (minutes)
});
// Enable EventBridge rule
new AwsCustomResource(this, 'EnableEventBridgeRule', {
onCreate: {
service: 'EventBridge',
action: 'EnableRule',
region: cdk.Aws.REGION,
parameters: {
EventBusName: 'default',
Name: schedule.rule.ruleName,
},
physicalResourceId: PhysicalResourceId.of(`EnableRule-${Date.now().toString()}`),
},
//Will ignore any resource and use the assumedRoleArn as resource and 'sts:AssumeRole' for service:action
policy: AwsCustomResourcePolicy.fromSdkCalls({
resources: AwsCustomResourcePolicy.ANY_RESOURCE,
}),
});
// You can access Lambda function attributes via `lambda.func`
new cdk.CfnOutput(this, "LambdaFunction", {
value: lambda.func.functionArn,
exportName: cdk.Aws.STACK_NAME + "LambdaFunction",
description: "Lambda function ARN",
});
// You can access EventBridge rule attributes via `schedule.rule`
new cdk.CfnOutput(this, "EventBridgeRule", {
value: schedule.rule.ruleArn,
exportName: cdk.Aws.STACK_NAME + "EventBridgeRule",
description: "EventBridge rule ARN",
});
}
}
FAQs
AWS CDK Construct for scheduling SCTE-35 events using the MediaLive schedule API
The npm package awscdk-construct-lambda-function-for-inserting-scte receives a total of 0 weekly downloads. As such, awscdk-construct-lambda-function-for-inserting-scte popularity was classified as not popular.
We found that awscdk-construct-lambda-function-for-inserting-scte demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.