Enum Cleanup
- All Implemented Interfaces:
Serializable
,Comparable<Cleanup>
,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2025-01-15T21:09:28.144Z")
@Stability(Stable)
public enum Cleanup
extends Enum<Cleanup>
Different ways to clean up underlying Canary resources when the Canary is deleted.
Example:
Canary canary = Canary.Builder.create(this, "Canary") .test(Test.custom(CustomTestOptions.builder() .handler("index.handler") .code(Code.fromInline("/* Synthetics handler code")) .build())) .cleanup(Cleanup.LAMBDA) .runtime(Runtime.SYNTHETICS_NODEJS_PUPPETEER_6_2) .build();
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
-
Enum Constant Details
-
NOTHING
Clean up nothing.The user is responsible for cleaning up all resources left behind by the Canary.
-
LAMBDA
Clean up the underlying Lambda function only.The user is responsible for cleaning up all other resources left behind by the Canary.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-