Skip to content
v2.277.0

PredicateProperty Struct ​

Defines the predicate of the trigger, which determines when it fires.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_glue as glue } from 'aws-cdk-lib';
const predicateProperty: glue.CfnTrigger.PredicateProperty = {
  conditions: [{
    crawlerName: 'crawlerName',
    crawlState: 'crawlState',
    jobName: 'jobName',
    logicalOperator: 'logicalOperator',
    state: 'state',
  }],
  logical: 'logical',
};
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_glue as glue

predicate_property = glue.CfnTrigger.PredicateProperty(
    conditions=[glue.CfnTrigger.ConditionProperty(
        crawler_name="crawlerName",
        crawl_state="crawlState",
        job_name="jobName",
        logical_operator="logicalOperator",
        state="state"
    )],
    logical="logical"
)
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.glue.*;

PredicateProperty predicateProperty = PredicateProperty.builder()
        .conditions(List.of(ConditionProperty.builder()
                .crawlerName("crawlerName")
                .crawlState("crawlState")
                .jobName("jobName")
                .logicalOperator("logicalOperator")
                .state("state")
                .build()))
        .logical("logical")
        .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.Glue;

var predicateProperty = new PredicateProperty {
    Conditions = new [] { new ConditionProperty {
        CrawlerName = "crawlerName",
        CrawlState = "crawlState",
        JobName = "jobName",
        LogicalOperator = "logicalOperator",
        State = "state"
    } },
    Logical = "logical"
};
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"

predicateProperty := &PredicateProperty{
	Conditions: []interface{}{
		&ConditionProperty{
			CrawlerName: jsii.String("crawlerName"),
			CrawlState: jsii.String("crawlState"),
			JobName: jsii.String("jobName"),
			LogicalOperator: jsii.String("logicalOperator"),
			State: jsii.String("state"),
		},
	},
	Logical: jsii.String("logical"),
}

Properties ​

conditionsoptionalIResolvable | IResolvable | CfnTrigger.ConditionProperty[]conditionsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ConditionProperty]]]conditionsoptionalIResolvableConditionsoptionalIResolvableConditionsoptionalinterface{} #
A list of the conditions that determine when the trigger will fire.
logicaloptionalstringlogicaloptionalstrlogicaloptionalStringLogicaloptionalstringLogicaloptional*string #
An optional field if only one condition is listed.

If multiple conditions are listed, then this field is required.