CfnRuleProps

class aws_cdk.aws_events.CfnRuleProps(*, description=None, event_pattern=None, name=None, role_arn=None, schedule_expression=None, state=None, targets=None)

Bases: object

__init__(*, description=None, event_pattern=None, name=None, role_arn=None, schedule_expression=None, state=None, targets=None)

Properties for defining a AWS::Events::Rule.

Parameters
  • description (Optional[str]) – AWS::Events::Rule.Description.

  • event_pattern (Optional[Any]) – AWS::Events::Rule.EventPattern.

  • name (Optional[str]) – AWS::Events::Rule.Name.

  • role_arn (Optional[str]) – AWS::Events::Rule.RoleArn.

  • schedule_expression (Optional[str]) – AWS::Events::Rule.ScheduleExpression.

  • state (Optional[str]) – AWS::Events::Rule.State.

  • targets (Union[IResolvable, None, List[Union[IResolvable, TargetProperty]]]) – AWS::Events::Rule.Targets.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-rule.html

Attributes

description

AWS::Events::Rule.Description.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-rule.html#cfn-events-rule-description

Return type

Optional[str]

event_pattern

AWS::Events::Rule.EventPattern.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-rule.html#cfn-events-rule-eventpattern

Return type

Any

name

AWS::Events::Rule.Name.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-rule.html#cfn-events-rule-name

Return type

Optional[str]

role_arn

AWS::Events::Rule.RoleArn.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-rule.html#cfn-events-rule-rolearn

Return type

Optional[str]

schedule_expression

AWS::Events::Rule.ScheduleExpression.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-rule.html#cfn-events-rule-scheduleexpression

Return type

Optional[str]

state

AWS::Events::Rule.State.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-rule.html#cfn-events-rule-state

Return type

Optional[str]

targets

AWS::Events::Rule.Targets.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-rule.html#cfn-events-rule-targets

Return type

Union[IResolvable, None, List[Union[IResolvable, TargetProperty]]]