Skip to content
v2.277.0

ConditionProperty Struct ​

The condition that causes the trigger to fire.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_devopsagent as devopsagent } from 'aws-cdk-lib';
const conditionProperty: devopsagent.CfnTrigger.ConditionProperty = {
  schedule: {
    expression: 'expression',
  },
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_devopsagent as devopsagent

condition_property = devopsagent.CfnTrigger.ConditionProperty(
    schedule=devopsagent.CfnTrigger.ScheduleProperty(
        expression="expression"
    )
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.devopsagent.*;

ConditionProperty conditionProperty = ConditionProperty.builder()
        .schedule(ScheduleProperty.builder()
                .expression("expression")
                .build())
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.DevOpsAgent;

var conditionProperty = new ConditionProperty {
    Schedule = new ScheduleProperty {
        Expression = "expression"
    }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

conditionProperty := &ConditionProperty{
	Schedule: &ScheduleProperty{
		Expression: jsii.String("expression"),
	},
}

Properties ​

scheduleIResolvable | CfnTrigger.SchedulePropertyscheduletyping.Union[IResolvable, ScheduleProperty]scheduleIResolvableScheduleIResolvableScheduleinterface{} required #
Schedule configuration for a time-based trigger.