Cleanup

class aws_cdk.aws_synthetics.Cleanup(value)

Bases: Enum

Different ways to clean up underlying Canary resources when the Canary is deleted.

ExampleMetadata:

infused

Example:

canary = synthetics.Canary(self, "Canary",
    test=synthetics.Test.custom(
        handler="index.handler",
        code=synthetics.Code.from_inline("/* Synthetics handler code")
    ),
    cleanup=synthetics.Cleanup.LAMBDA,
    runtime=synthetics.Runtime.SYNTHETICS_NODEJS_PUPPETEER_6_2
)

Attributes

LAMBDA

Clean up the underlying Lambda function only.

The user is responsible for cleaning up all other resources left behind by the Canary.

NOTHING

Clean up nothing.

The user is responsible for cleaning up all resources left behind by the Canary.