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.

CreateTopicRuleInput

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

type CreateTopicRuleInput struct { RuleName *string `location:"uri" locationName:"ruleName" min:"1" type:"string" required:"true"` Tags *string `location:"header" locationName:"x-amz-tagging" type:"string"` TopicRulePayload *TopicRulePayload `locationName:"topicRulePayload" type:"structure" required:"true"` }

The input for the CreateTopicRule operation.

RuleName

Type: *string

The name of the rule.

RuleName is a required field

Tags

Type: *string

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

Describes a rule.

Method

GoString

func (s CreateTopicRuleInput) GoString() string

GoString returns the string representation

SetRuleName

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

SetRuleName sets the RuleName field's value.

SetTags

func (s *CreateTopicRuleInput) SetTags(v string) *CreateTopicRuleInput

SetTags sets the Tags field's value.

SetTopicRulePayload

func (s *CreateTopicRuleInput) SetTopicRulePayload(v *TopicRulePayload) *CreateTopicRuleInput

SetTopicRulePayload sets the TopicRulePayload field's value.

String

func (s CreateTopicRuleInput) String() string

String returns the string representation

Validate

func (s *CreateTopicRuleInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: