| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Connect.UpdateRule
Description
Updates a rule for the specified Amazon Connect instance.
Use the Rules Function language to code conditions for the rule.
Synopsis
- data UpdateRule = UpdateRule' {
- ruleId :: Text
- instanceId :: Text
- name :: Text
- function :: Text
- actions :: [RuleAction]
- publishStatus :: RulePublishStatus
- newUpdateRule :: Text -> Text -> Text -> Text -> RulePublishStatus -> UpdateRule
- updateRule_ruleId :: Lens' UpdateRule Text
- updateRule_instanceId :: Lens' UpdateRule Text
- updateRule_name :: Lens' UpdateRule Text
- updateRule_function :: Lens' UpdateRule Text
- updateRule_actions :: Lens' UpdateRule [RuleAction]
- updateRule_publishStatus :: Lens' UpdateRule RulePublishStatus
- data UpdateRuleResponse = UpdateRuleResponse' {
- newUpdateRuleResponse :: UpdateRuleResponse
Creating a Request
data UpdateRule Source #
See: newUpdateRule smart constructor.
Constructors
| UpdateRule' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> Text | |
| -> RulePublishStatus | |
| -> UpdateRule |
Create a value of UpdateRule 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:
UpdateRule, updateRule_ruleId - A unique identifier for the rule.
UpdateRule, updateRule_instanceId - The identifier of the Amazon Connect instance. You can find the
instanceId in the ARN of the instance.
UpdateRule, updateRule_name - The name of the rule. You can change the name only if
TriggerEventSource is one of the following values:
OnZendeskTicketCreate | OnZendeskTicketStatusUpdate |
OnSalesforceCaseCreate
UpdateRule, updateRule_function - The conditions of the rule.
UpdateRule, updateRule_actions - A list of actions to be run when the rule is triggered.
UpdateRule, updateRule_publishStatus - The publish status of the rule.
Request Lenses
updateRule_ruleId :: Lens' UpdateRule Text Source #
A unique identifier for the rule.
updateRule_instanceId :: Lens' UpdateRule Text Source #
The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
updateRule_name :: Lens' UpdateRule Text Source #
The name of the rule. You can change the name only if
TriggerEventSource is one of the following values:
OnZendeskTicketCreate | OnZendeskTicketStatusUpdate |
OnSalesforceCaseCreate
updateRule_function :: Lens' UpdateRule Text Source #
The conditions of the rule.
updateRule_actions :: Lens' UpdateRule [RuleAction] Source #
A list of actions to be run when the rule is triggered.
updateRule_publishStatus :: Lens' UpdateRule RulePublishStatus Source #
The publish status of the rule.
Destructuring the Response
data UpdateRuleResponse Source #
See: newUpdateRuleResponse smart constructor.
Constructors
| UpdateRuleResponse' | |
Instances
| Generic UpdateRuleResponse Source # | |
Defined in Amazonka.Connect.UpdateRule Associated Types type Rep UpdateRuleResponse :: Type -> Type # Methods from :: UpdateRuleResponse -> Rep UpdateRuleResponse x # to :: Rep UpdateRuleResponse x -> UpdateRuleResponse # | |
| Read UpdateRuleResponse Source # | |
Defined in Amazonka.Connect.UpdateRule Methods readsPrec :: Int -> ReadS UpdateRuleResponse # readList :: ReadS [UpdateRuleResponse] # | |
| Show UpdateRuleResponse Source # | |
Defined in Amazonka.Connect.UpdateRule Methods showsPrec :: Int -> UpdateRuleResponse -> ShowS # show :: UpdateRuleResponse -> String # showList :: [UpdateRuleResponse] -> ShowS # | |
| NFData UpdateRuleResponse Source # | |
Defined in Amazonka.Connect.UpdateRule Methods rnf :: UpdateRuleResponse -> () # | |
| Eq UpdateRuleResponse Source # | |
Defined in Amazonka.Connect.UpdateRule Methods (==) :: UpdateRuleResponse -> UpdateRuleResponse -> Bool # (/=) :: UpdateRuleResponse -> UpdateRuleResponse -> Bool # | |
| type Rep UpdateRuleResponse Source # | |
newUpdateRuleResponse :: UpdateRuleResponse Source #
Create a value of UpdateRuleResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.