Class Cleanup
Different ways to clean up underlying Canary resources when the Canary is deleted.
Inheritance
System.Object
Cleanup
Namespace: Amazon.CDK.AWS.Synthetics
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public sealed class Cleanup : Enum
Syntax (vb)
Public NotInheritable Class Cleanup
Inherits
Enum
Remarks
ExampleMetadata: infused
Examples
var canary = new Canary(this, "Canary", new CanaryProps {
Test = Test.Custom(new CustomTestOptions {
Handler = "index.handler",
Code = Code.FromInline("/* Synthetics handler code")
}),
Cleanup = Cleanup.LAMBDA,
Runtime = Runtime.SYNTHETICS_NODEJS_PUPPETEER_6_2
});
Synopsis
Fields
LAMBDA | Clean up the underlying Lambda function only. |
NOTHING | Clean up nothing. |
value__ |
Fields
LAMBDA
Clean up the underlying Lambda function only.
public const Cleanup LAMBDA
Field Value
Type | Description |
---|---|
Cleanup |
Remarks
The user is responsible for cleaning up all other resources left behind by the Canary.
NOTHING
Clean up nothing.
public const Cleanup NOTHING
Field Value
Type | Description |
---|---|
Cleanup |
Remarks
The user is responsible for cleaning up all resources left behind by the Canary.
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |