DeploymentSourceContext

class aws_cdk.aws_s3_deployment.DeploymentSourceContext(*, handler_role)

Bases: object

Bind context for ISources.

Parameters:

handler_role (IRole) – The role for the handler.

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_iam as iam
from aws_cdk import aws_s3_deployment as s3_deployment

# role: iam.Role

deployment_source_context = s3_deployment.DeploymentSourceContext(
    handler_role=role
)

Attributes

handler_role

The role for the handler.