Interface CfnPlan.TriggerProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnPlan.TriggerProperty.Jsii$Proxy
- Enclosing class:
CfnPlan
@Stability(Stable)
public static interface CfnPlan.TriggerProperty
extends software.amazon.jsii.JsiiSerializable
Defines a condition that can automatically trigger the execution of a Region switch plan.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.arcregionswitch.*;
TriggerProperty triggerProperty = TriggerProperty.builder()
.action("action")
.conditions(List.of(TriggerConditionProperty.builder()
.associatedAlarmName("associatedAlarmName")
.condition("condition")
.build()))
.minDelayMinutesBetweenExecutions(123)
.targetRegion("targetRegion")
// the properties below are optional
.description("description")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnPlan.TriggerPropertystatic final classAn implementation forCfnPlan.TriggerProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()The action to perform when the trigger fires.The conditions that must be met for the trigger to fire.default StringThe description for a trigger.The minimum time, in minutes, that must elapse between automatic executions of the plan.The AWS Region for a trigger.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAction
The action to perform when the trigger fires.Valid values include ACTIVATE and DEACTIVATE.
- See Also:
-
getConditions
The conditions that must be met for the trigger to fire.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnPlan.TriggerConditionProperty>- See Also:
-
getMinDelayMinutesBetweenExecutions
The minimum time, in minutes, that must elapse between automatic executions of the plan.- See Also:
-
getTargetRegion
The AWS Region for a trigger.- See Also:
-
getDescription
The description for a trigger.- See Also:
-
builder
- Returns:
- a
CfnPlan.TriggerProperty.BuilderofCfnPlan.TriggerProperty
-