Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Amazonka.IoT.ReplaceTopicRule
Description
Replaces the rule. You must specify all parameters for the new 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 ReplaceTopicRule action.
Synopsis
- data ReplaceTopicRule = ReplaceTopicRule' {}
- newReplaceTopicRule :: Text -> TopicRulePayload -> ReplaceTopicRule
- replaceTopicRule_ruleName :: Lens' ReplaceTopicRule Text
- replaceTopicRule_topicRulePayload :: Lens' ReplaceTopicRule TopicRulePayload
- data ReplaceTopicRuleResponse = ReplaceTopicRuleResponse' {
- newReplaceTopicRuleResponse :: ReplaceTopicRuleResponse
Creating a Request
data ReplaceTopicRule Source #
The input for the ReplaceTopicRule operation.
See: newReplaceTopicRule
smart constructor.
Constructors
ReplaceTopicRule' | |
Fields
|
Instances
Arguments
:: Text | |
-> TopicRulePayload | |
-> ReplaceTopicRule |
Create a value of ReplaceTopicRule
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:ruleName:ReplaceTopicRule'
, replaceTopicRule_ruleName
- The name of the rule.
$sel:topicRulePayload:ReplaceTopicRule'
, replaceTopicRule_topicRulePayload
- The rule payload.
Request Lenses
replaceTopicRule_ruleName :: Lens' ReplaceTopicRule Text Source #
The name of the rule.
replaceTopicRule_topicRulePayload :: Lens' ReplaceTopicRule TopicRulePayload Source #
The rule payload.
Destructuring the Response
data ReplaceTopicRuleResponse Source #
See: newReplaceTopicRuleResponse
smart constructor.
Constructors
ReplaceTopicRuleResponse' | |
Instances
newReplaceTopicRuleResponse :: ReplaceTopicRuleResponse Source #
Create a value of ReplaceTopicRuleResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.