amazonka-connect-2.0: Amazon Connect Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

Creating a Request

data UpdateRule Source #

See: newUpdateRule smart constructor.

Constructors

UpdateRule' 

Fields

  • ruleId :: Text

    A unique identifier for the rule.

  • instanceId :: Text

    The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.

  • name :: Text

    The name of the rule. You can change the name only if TriggerEventSource is one of the following values: OnZendeskTicketCreate | OnZendeskTicketStatusUpdate | OnSalesforceCaseCreate

  • function :: Text

    The conditions of the rule.

  • actions :: [RuleAction]

    A list of actions to be run when the rule is triggered.

  • publishStatus :: RulePublishStatus

    The publish status of the rule.

Instances

Instances details
ToJSON UpdateRule Source # 
Instance details

Defined in Amazonka.Connect.UpdateRule

ToHeaders UpdateRule Source # 
Instance details

Defined in Amazonka.Connect.UpdateRule

Methods

toHeaders :: UpdateRule -> [Header] #

ToPath UpdateRule Source # 
Instance details

Defined in Amazonka.Connect.UpdateRule

ToQuery UpdateRule Source # 
Instance details

Defined in Amazonka.Connect.UpdateRule

AWSRequest UpdateRule Source # 
Instance details

Defined in Amazonka.Connect.UpdateRule

Associated Types

type AWSResponse UpdateRule #

Generic UpdateRule Source # 
Instance details

Defined in Amazonka.Connect.UpdateRule

Associated Types

type Rep UpdateRule :: Type -> Type #

Read UpdateRule Source # 
Instance details

Defined in Amazonka.Connect.UpdateRule

Show UpdateRule Source # 
Instance details

Defined in Amazonka.Connect.UpdateRule

NFData UpdateRule Source # 
Instance details

Defined in Amazonka.Connect.UpdateRule

Methods

rnf :: UpdateRule -> () #

Eq UpdateRule Source # 
Instance details

Defined in Amazonka.Connect.UpdateRule

Hashable UpdateRule Source # 
Instance details

Defined in Amazonka.Connect.UpdateRule

type AWSResponse UpdateRule Source # 
Instance details

Defined in Amazonka.Connect.UpdateRule

type Rep UpdateRule Source # 
Instance details

Defined in Amazonka.Connect.UpdateRule

newUpdateRule Source #

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.

Destructuring the Response

data UpdateRuleResponse Source #

See: newUpdateRuleResponse smart constructor.

Constructors

UpdateRuleResponse' 

Instances

Instances details
Generic UpdateRuleResponse Source # 
Instance details

Defined in Amazonka.Connect.UpdateRule

Associated Types

type Rep UpdateRuleResponse :: Type -> Type #

Read UpdateRuleResponse Source # 
Instance details

Defined in Amazonka.Connect.UpdateRule

Show UpdateRuleResponse Source # 
Instance details

Defined in Amazonka.Connect.UpdateRule

NFData UpdateRuleResponse Source # 
Instance details

Defined in Amazonka.Connect.UpdateRule

Methods

rnf :: UpdateRuleResponse -> () #

Eq UpdateRuleResponse Source # 
Instance details

Defined in Amazonka.Connect.UpdateRule

type Rep UpdateRuleResponse Source # 
Instance details

Defined in Amazonka.Connect.UpdateRule

type Rep UpdateRuleResponse = D1 ('MetaData "UpdateRuleResponse" "Amazonka.Connect.UpdateRule" "amazonka-connect-2.0-IAACrecRcUS5AABe9BOFyN" 'False) (C1 ('MetaCons "UpdateRuleResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newUpdateRuleResponse :: UpdateRuleResponse Source #

Create a value of UpdateRuleResponse with all optional fields omitted.

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