# CfnTopicRuleProps

Properties for defining a `CfnTopicRule`.

Used as props by: [CfnTopicRule](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iot.CfnTopicRule.html)

- Source: Generated at build time

## Example

TypeScript:

```ts
// The generated example for this type would exceed 500 lines,
// and has been elided for readability.
```

Python:

```python

```

Java:

```java

```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib

```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2

```

## Properties

- `ruleName`: string — The name of the rule.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — 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..."

- `topicRulePayload`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTopicRule.TopicRulePayloadProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iot.CfnTopicRule.TopicRulePayloadProperty.html) (required) — The rule payload.
