Class CfnRule.Builder

java.lang.Object
software.amazon.awscdk.services.connect.CfnRule.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRule>
Enclosing class:
CfnRule

@Stability(Stable) public static final class CfnRule.Builder extends Object implements software.amazon.jsii.Builder<CfnRule>
A fluent builder for CfnRule.
  • Method Details

    • create

      @Stability(Stable) public static CfnRule.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnRule.Builder.
    • actions

      @Stability(Stable) public CfnRule.Builder actions(IResolvable actions)
      A list of actions to be run when the rule is triggered.

      Parameters:
      actions - A list of actions to be run when the rule is triggered. This parameter is required.
      Returns:
      this
    • actions

      @Stability(Stable) public CfnRule.Builder actions(CfnRule.ActionsProperty actions)
      A list of actions to be run when the rule is triggered.

      Parameters:
      actions - A list of actions to be run when the rule is triggered. This parameter is required.
      Returns:
      this
    • function

      @Stability(Stable) public CfnRule.Builder function(String function)
      The conditions of the rule.

      Parameters:
      function - The conditions of the rule. This parameter is required.
      Returns:
      this
    • instanceArn

      @Stability(Stable) public CfnRule.Builder instanceArn(String instanceArn)
      The Amazon Resource Name (ARN) of the instance.

      Parameters:
      instanceArn - The Amazon Resource Name (ARN) of the instance. This parameter is required.
      Returns:
      this
    • name

      @Stability(Stable) public CfnRule.Builder name(String name)
      The name of the rule.

      Parameters:
      name - The name of the rule. This parameter is required.
      Returns:
      this
    • publishStatus

      @Stability(Stable) public CfnRule.Builder publishStatus(String publishStatus)
      The publish status of the rule.

      Allowed values : DRAFT | PUBLISHED

      Parameters:
      publishStatus - The publish status of the rule. This parameter is required.
      Returns:
      this
    • triggerEventSource

      @Stability(Stable) public CfnRule.Builder triggerEventSource(IResolvable triggerEventSource)
      The event source to trigger the rule.

      Parameters:
      triggerEventSource - The event source to trigger the rule. This parameter is required.
      Returns:
      this
    • triggerEventSource

      @Stability(Stable) public CfnRule.Builder triggerEventSource(CfnRule.RuleTriggerEventSourceProperty triggerEventSource)
      The event source to trigger the rule.

      Parameters:
      triggerEventSource - The event source to trigger the rule. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnRule.Builder tags(List<? extends CfnTag> tags)
      The tags used to organize, track, or control access for this resource.

      For example, { "tags": {"key1":"value1", "key2":"value2"} }.

      Parameters:
      tags - The tags used to organize, track, or control access for this resource. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnRule build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnRule>
      Returns:
      a newly built instance of CfnRule.