interface TriggerProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.aws_arcregionswitch.CfnPlan.TriggerProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsarcregionswitch#CfnPlan_TriggerProperty |
![]() | software.amazon.awscdk.services.arcregionswitch.CfnPlan.TriggerProperty |
![]() | aws_cdk.aws_arcregionswitch.CfnPlan.TriggerProperty |
![]() | aws-cdk-lib » aws_arcregionswitch » CfnPlan » TriggerProperty |
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 { aws_arcregionswitch as arcregionswitch } from 'aws-cdk-lib';
const triggerProperty: arcregionswitch.CfnPlan.TriggerProperty = {
action: 'action',
conditions: [{
associatedAlarmName: 'associatedAlarmName',
condition: 'condition',
}],
minDelayMinutesBetweenExecutions: 123,
targetRegion: 'targetRegion',
// the properties below are optional
description: 'description',
};
Properties
Name | Type | Description |
---|---|---|
action | string | The action to perform when the trigger fires. |
conditions | IResolvable | IResolvable | Trigger [] | The conditions that must be met for the trigger to fire. |
min | number | The minimum time, in minutes, that must elapse between automatic executions of the plan. |
target | string | The AWS Region for a trigger. |
description? | string | The description for a trigger. |
action
Type:
string
The action to perform when the trigger fires.
Valid values include ACTIVATE and DEACTIVATE.
conditions
Type:
IResolvable
|
IResolvable
|
Trigger
[]
The conditions that must be met for the trigger to fire.
minDelayMinutesBetweenExecutions
Type:
number
The minimum time, in minutes, that must elapse between automatic executions of the plan.
targetRegion
Type:
string
The AWS Region for a trigger.
description?
Type:
string
(optional)
The description for a trigger.