AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

TopicRule

import "github.com/aws/aws-sdk-go/service/iot"

type TopicRule struct { Actions []*Action `locationName:"actions" type:"list"` AwsIotSqlVersion *string `locationName:"awsIotSqlVersion" type:"string"` CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"` Description *string `locationName:"description" type:"string"` ErrorAction *Action `locationName:"errorAction" type:"structure"` RuleDisabled *bool `locationName:"ruleDisabled" type:"boolean"` RuleName *string `locationName:"ruleName" min:"1" type:"string"` Sql *string `locationName:"sql" type:"string"` }

Describes a rule.

Actions

Describes the actions associated with a rule.

AwsIotSqlVersion

Type: *string

The version of the SQL rules engine to use when evaluating the rule.

CreatedAt

Type: *time.Time

The date and time the rule was created.

Description

Type: *string

The description of the rule.

ErrorAction

Describes the actions associated with a rule.

RuleDisabled

Type: *bool

Specifies whether the rule is disabled.

RuleName

Type: *string

The name of the rule.

Sql

Type: *string

The SQL statement used to query the topic. When using a SQL query with multiple lines, be sure to escape the newline characters.

Method

GoString

func (s TopicRule) GoString() string

GoString returns the string representation

SetActions

func (s *TopicRule) SetActions(v []*Action) *TopicRule

SetActions sets the Actions field's value.

SetAwsIotSqlVersion

func (s *TopicRule) SetAwsIotSqlVersion(v string) *TopicRule

SetAwsIotSqlVersion sets the AwsIotSqlVersion field's value.

SetCreatedAt

func (s *TopicRule) SetCreatedAt(v time.Time) *TopicRule

SetCreatedAt sets the CreatedAt field's value.

SetDescription

func (s *TopicRule) SetDescription(v string) *TopicRule

SetDescription sets the Description field's value.

SetErrorAction

func (s *TopicRule) SetErrorAction(v *Action) *TopicRule

SetErrorAction sets the ErrorAction field's value.

SetRuleDisabled

func (s *TopicRule) SetRuleDisabled(v bool) *TopicRule

SetRuleDisabled sets the RuleDisabled field's value.

SetRuleName

func (s *TopicRule) SetRuleName(v string) *TopicRule

SetRuleName sets the RuleName field's value.

SetSql

func (s *TopicRule) SetSql(v string) *TopicRule

SetSql sets the Sql field's value.

String

func (s TopicRule) String() string

String returns the string representation

On this page: