libZSservicesZSamazonka-iotZSamazonka-iot
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.IoT.CreateTopicRule

Description

Creates a rule. Creating rules is an administrator-level action. Any user who has permission to create rules will be able to access data processed by the rule.

Requires permission to access the CreateTopicRule action.

Synopsis

Creating a Request

data CreateTopicRule Source #

The input for the CreateTopicRule operation.

See: newCreateTopicRule smart constructor.

Constructors

CreateTopicRule' 

Fields

  • tags :: Maybe Text

    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..."

  • ruleName :: Text

    The name of the rule.

  • topicRulePayload :: TopicRulePayload

    The rule payload.

Instances

Instances details
Eq CreateTopicRule Source # 
Instance details

Defined in Amazonka.IoT.CreateTopicRule

Read CreateTopicRule Source # 
Instance details

Defined in Amazonka.IoT.CreateTopicRule

Show CreateTopicRule Source # 
Instance details

Defined in Amazonka.IoT.CreateTopicRule

Generic CreateTopicRule Source # 
Instance details

Defined in Amazonka.IoT.CreateTopicRule

Associated Types

type Rep CreateTopicRule :: Type -> Type #

NFData CreateTopicRule Source # 
Instance details

Defined in Amazonka.IoT.CreateTopicRule

Methods

rnf :: CreateTopicRule -> () #

Hashable CreateTopicRule Source # 
Instance details

Defined in Amazonka.IoT.CreateTopicRule

ToJSON CreateTopicRule Source # 
Instance details

Defined in Amazonka.IoT.CreateTopicRule

AWSRequest CreateTopicRule Source # 
Instance details

Defined in Amazonka.IoT.CreateTopicRule

Associated Types

type AWSResponse CreateTopicRule #

ToHeaders CreateTopicRule Source # 
Instance details

Defined in Amazonka.IoT.CreateTopicRule

ToPath CreateTopicRule Source # 
Instance details

Defined in Amazonka.IoT.CreateTopicRule

ToQuery CreateTopicRule Source # 
Instance details

Defined in Amazonka.IoT.CreateTopicRule

type Rep CreateTopicRule Source # 
Instance details

Defined in Amazonka.IoT.CreateTopicRule

type Rep CreateTopicRule = D1 ('MetaData "CreateTopicRule" "Amazonka.IoT.CreateTopicRule" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "CreateTopicRule'" 'PrefixI 'True) (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "ruleName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "topicRulePayload") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 TopicRulePayload))))
type AWSResponse CreateTopicRule Source # 
Instance details

Defined in Amazonka.IoT.CreateTopicRule

newCreateTopicRule Source #

Create a value of CreateTopicRule with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:tags:CreateTopicRule', createTopicRule_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..."

$sel:ruleName:CreateTopicRule', createTopicRule_ruleName - The name of the rule.

$sel:topicRulePayload:CreateTopicRule', createTopicRule_topicRulePayload - The rule payload.

Request Lenses

createTopicRule_tags :: Lens' CreateTopicRule (Maybe Text) Source #

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..."

Destructuring the Response

data CreateTopicRuleResponse Source #

See: newCreateTopicRuleResponse smart constructor.

Instances

Instances details
Eq CreateTopicRuleResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateTopicRule

Read CreateTopicRuleResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateTopicRule

Show CreateTopicRuleResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateTopicRule

Generic CreateTopicRuleResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateTopicRule

Associated Types

type Rep CreateTopicRuleResponse :: Type -> Type #

NFData CreateTopicRuleResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateTopicRule

Methods

rnf :: CreateTopicRuleResponse -> () #

type Rep CreateTopicRuleResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateTopicRule

type Rep CreateTopicRuleResponse = D1 ('MetaData "CreateTopicRuleResponse" "Amazonka.IoT.CreateTopicRule" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "CreateTopicRuleResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newCreateTopicRuleResponse :: CreateTopicRuleResponse Source #

Create a value of CreateTopicRuleResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.