Enum ResourceToReplicateTags
java.lang.Object
java.lang.Enum<ResourceToReplicateTags>
software.amazon.awscdk.services.synthetics.ResourceToReplicateTags
- All Implemented Interfaces:
Serializable,Comparable<ResourceToReplicateTags>,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-04-14T18:32:05.999Z")
@Stability(Stable)
public enum ResourceToReplicateTags
extends Enum<ResourceToReplicateTags>
Resources that tags applied to a canary should be replicated to.
Example:
Canary canary = Canary.Builder.create(this, "MyCanary")
.schedule(Schedule.rate(Duration.minutes(5)))
.test(Test.custom(CustomTestOptions.builder()
.code(Code.fromAsset(join(__dirname, "canary")))
.handler("index.handler")
.build()))
.runtime(Runtime.SYNTHETICS_NODEJS_PUPPETEER_7_0)
.resourcesToReplicateTags(List.of(ResourceToReplicateTags.LAMBDA_FUNCTION))
.build();
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceToReplicateTagsReturns the enum constant of this type with the specified name.static ResourceToReplicateTags[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
LAMBDA_FUNCTION
Replicate canary tags to the Lambda function.When specified, CloudWatch Synthetics will keep the tags of the canary and the Lambda function synchronized. Any future changes made to the canary's tags will also be applied to the function.
-
-
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
-