CfnTriggerProps Struct
Properties for defining a CfnTrigger.
| Source | |
|---|---|
| Type last changed |
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';
declare const action: any;
const cfnTriggerProps: devopsagent.CfnTriggerProps = {
action: action,
agentSpaceId: 'agentSpaceId',
condition: {
schedule: {
expression: 'expression',
},
},
type: 'type',
// the properties below are optional
status: 'status',
};
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
# action: Any
cfn_trigger_props = devopsagent.CfnTriggerProps(
action=action,
agent_space_id="agentSpaceId",
condition=devopsagent.CfnTrigger.ConditionProperty(
schedule=devopsagent.CfnTrigger.ScheduleProperty(
expression="expression"
)
),
type="type",
# the properties below are optional
status="status"
)
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.*;
Object action;
CfnTriggerProps cfnTriggerProps = CfnTriggerProps.builder()
.action(action)
.agentSpaceId("agentSpaceId")
.condition(ConditionProperty.builder()
.schedule(ScheduleProperty.builder()
.expression("expression")
.build())
.build())
.type("type")
// the properties below are optional
.status("status")
.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 action;
var cfnTriggerProps = new CfnTriggerProps {
Action = action,
AgentSpaceId = "agentSpaceId",
Condition = new ConditionProperty {
Schedule = new ScheduleProperty {
Expression = "expression"
}
},
Type = "type",
// the properties below are optional
Status = "status"
};
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"
var action interface{}
cfnTriggerProps := &CfnTriggerProps{
Action: action,
AgentSpaceId: jsii.String("agentSpaceId"),
Condition: &ConditionProperty{
Schedule: &ScheduleProperty{
Expression: jsii.String("expression"),
},
},
Type: jsii.String("type"),
// the properties below are optional
Status: jsii.String("status"),
}
Properties
The action to perform when the trigger fires.
A JSON object containing actionType and task.
agentSpaceIdstringagent_space_idstragentSpaceIdStringAgentSpaceIdstringAgentSpaceId*string required #The unique identifier of the parent Agent Space.
conditionIResolvable | CfnTrigger.ConditionPropertyconditiontyping.Union[IResolvable, ConditionProperty]conditionIResolvableConditionIResolvableConditioninterface{} required #The condition that causes the trigger to fire.
statusoptionalstringstatusoptionalstrstatusoptionalStringStatusoptionalstringStatusoptional*string = "Active" #The status of the trigger.
Active triggers fire on schedule; Inactive triggers are paused.
The type of trigger.