Skip to content
v2.274.0

DeploymentSourceContext Struct ​

Bind context for ISources.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iam as iam } from 'aws-cdk-lib';
import { aws_s3_deployment as s3_deployment } from 'aws-cdk-lib';

declare const role: iam.Role;
const deploymentSourceContext: s3_deployment.DeploymentSourceContext = {
  handlerRole: role,
};

Properties ​

handlerRoleIRolehandler_roleIRolehandlerRoleIRoleHandlerRoleIRoleHandlerRoleIRolerequired#
The role for the handler.