Class CfnTopicRule.Builder

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

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

    • create

      @Stability(Stable) public static CfnTopicRule.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 CfnTopicRule.Builder.
    • topicRulePayload

      @Stability(Stable) public CfnTopicRule.Builder topicRulePayload(IResolvable topicRulePayload)
      The rule payload.

      Parameters:
      topicRulePayload - The rule payload. This parameter is required.
      Returns:
      this
    • topicRulePayload

      @Stability(Stable) public CfnTopicRule.Builder topicRulePayload(CfnTopicRule.TopicRulePayloadProperty topicRulePayload)
      The rule payload.

      Parameters:
      topicRulePayload - The rule payload. This parameter is required.
      Returns:
      this
    • ruleName

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

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

      @Stability(Stable) public CfnTopicRule.Builder tags(List<? extends CfnTag> tags)
      Metadata which can be used to manage the topic rule.

      For URI Request parameters use format: ...key1=value1&key2=value2...

      For the CLI command-line parameter use format: --tags "key1=value1&key2=value2..."

      For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."

      Parameters:
      tags - Metadata which can be used to manage the topic rule. This parameter is required.
      Returns:
      this
    • build

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