CfnTriggerPropsMixin

class aws_cdk.cfn_property_mixins.aws_devopsagent.CfnTriggerPropsMixin(props, *, strategy=None)

Bases: Mixin

Resource Type definition for AWS::DevOpsAgent::Trigger.

A trigger defines an automated action that fires on a schedule within an Agent Space.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-devopsagent-trigger.html

CloudformationResource:

AWS::DevOpsAgent::Trigger

Mixin:

true

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.cfn_property_mixins import aws_devopsagent as devopsagent
import aws_cdk as cdk

# action: Any
# merge_strategy: cdk.IMergeStrategy

cfn_trigger_props_mixin = devopsagent.CfnTriggerPropsMixin(devopsagent.CfnTriggerMixinProps(
    action=action,
    agent_space_id="agentSpaceId",
    condition=devopsagent.CfnTriggerPropsMixin.ConditionProperty(
        schedule=devopsagent.CfnTriggerPropsMixin.ScheduleProperty(
            expression="expression"
        )
    ),
    status="status",
    type="type"
),
    strategy=merge_strategy
)

Create a mixin to apply properties to AWS::DevOpsAgent::Trigger.

Parameters:
  • props (Union[CfnTriggerMixinProps, Dict[str, Any]]) – L1 properties to apply.

  • strategy (Optional[IMergeStrategy]) – Strategy for merging nested properties. Default: - PropertyMergeStrategy.combine()

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

None

supports(construct)

Check if this mixin supports the given construct.

Parameters:

construct (IConstruct)

Return type:

bool

Attributes

CFN_PROPERTY_KEYS = ['action', 'agentSpaceId', 'condition', 'status', 'type']

Static Methods

classmethod is_mixin(x)

Checks if x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.

ConditionProperty

class CfnTriggerPropsMixin.ConditionProperty(*, schedule=None)

Bases: object

The condition that causes the trigger to fire.

Parameters:

schedule (Union[IResolvable, ScheduleProperty, Dict[str, Any], None]) – Schedule configuration for a time-based trigger.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-devopsagent-trigger-condition.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.cfn_property_mixins import aws_devopsagent as devopsagent

condition_property = devopsagent.CfnTriggerPropsMixin.ConditionProperty(
    schedule=devopsagent.CfnTriggerPropsMixin.ScheduleProperty(
        expression="expression"
    )
)

Attributes

schedule

Schedule configuration for a time-based trigger.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-devopsagent-trigger-condition.html#cfn-devopsagent-trigger-condition-schedule

ScheduleProperty

class CfnTriggerPropsMixin.ScheduleProperty(*, expression=None)

Bases: object

Schedule configuration for a time-based trigger.

Parameters:

expression (Optional[str]) – A cron or rate expression that defines when the trigger fires.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-devopsagent-trigger-schedule.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.cfn_property_mixins import aws_devopsagent as devopsagent

schedule_property = devopsagent.CfnTriggerPropsMixin.ScheduleProperty(
    expression="expression"
)

Attributes

expression

A cron or rate expression that defines when the trigger fires.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-devopsagent-trigger-schedule.html#cfn-devopsagent-trigger-schedule-expression