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

Description

Creates a rule for the specified Amazon Connect instance.

Use the Rules Function language to code conditions for the rule.

Synopsis

Creating a Request

data CreateRule Source #

See: newCreateRule smart constructor.

Constructors

CreateRule' 

Fields

Instances

Instances details
ToJSON CreateRule Source # 
Instance details

Defined in Amazonka.Connect.CreateRule

ToHeaders CreateRule Source # 
Instance details

Defined in Amazonka.Connect.CreateRule

Methods

toHeaders :: CreateRule -> [Header] #

ToPath CreateRule Source # 
Instance details

Defined in Amazonka.Connect.CreateRule

ToQuery CreateRule Source # 
Instance details

Defined in Amazonka.Connect.CreateRule

AWSRequest CreateRule Source # 
Instance details

Defined in Amazonka.Connect.CreateRule

Associated Types

type AWSResponse CreateRule #

Generic CreateRule Source # 
Instance details

Defined in Amazonka.Connect.CreateRule

Associated Types

type Rep CreateRule :: Type -> Type #

Read CreateRule Source # 
Instance details

Defined in Amazonka.Connect.CreateRule

Show CreateRule Source # 
Instance details

Defined in Amazonka.Connect.CreateRule

NFData CreateRule Source # 
Instance details

Defined in Amazonka.Connect.CreateRule

Methods

rnf :: CreateRule -> () #

Eq CreateRule Source # 
Instance details

Defined in Amazonka.Connect.CreateRule

Hashable CreateRule Source # 
Instance details

Defined in Amazonka.Connect.CreateRule

type AWSResponse CreateRule Source # 
Instance details

Defined in Amazonka.Connect.CreateRule

type Rep CreateRule Source # 
Instance details

Defined in Amazonka.Connect.CreateRule

newCreateRule Source #

Create a value of CreateRule 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:clientToken:CreateRule', createRule_clientToken - A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.

CreateRule, createRule_instanceId - The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.

CreateRule, createRule_name - A unique name for the rule.

CreateRule, createRule_triggerEventSource - The event source to trigger the rule.

CreateRule, createRule_function - The conditions of the rule.

CreateRule, createRule_actions - A list of actions to be run when the rule is triggered.

CreateRule, createRule_publishStatus - The publish status of the rule.

Request Lenses

createRule_clientToken :: Lens' CreateRule (Maybe Text) Source #

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.

createRule_instanceId :: Lens' CreateRule Text Source #

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

createRule_name :: Lens' CreateRule Text Source #

A unique name for the rule.

createRule_function :: Lens' CreateRule Text Source #

The conditions of the rule.

createRule_actions :: Lens' CreateRule [RuleAction] Source #

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

Destructuring the Response

data CreateRuleResponse Source #

See: newCreateRuleResponse smart constructor.

Constructors

CreateRuleResponse' 

Fields

Instances

Instances details
Generic CreateRuleResponse Source # 
Instance details

Defined in Amazonka.Connect.CreateRule

Associated Types

type Rep CreateRuleResponse :: Type -> Type #

Read CreateRuleResponse Source # 
Instance details

Defined in Amazonka.Connect.CreateRule

Show CreateRuleResponse Source # 
Instance details

Defined in Amazonka.Connect.CreateRule

NFData CreateRuleResponse Source # 
Instance details

Defined in Amazonka.Connect.CreateRule

Methods

rnf :: CreateRuleResponse -> () #

Eq CreateRuleResponse Source # 
Instance details

Defined in Amazonka.Connect.CreateRule

type Rep CreateRuleResponse Source # 
Instance details

Defined in Amazonka.Connect.CreateRule

type Rep CreateRuleResponse = D1 ('MetaData "CreateRuleResponse" "Amazonka.Connect.CreateRule" "amazonka-connect-2.0-IAACrecRcUS5AABe9BOFyN" 'False) (C1 ('MetaCons "CreateRuleResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: (S1 ('MetaSel ('Just "ruleArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "ruleId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newCreateRuleResponse Source #

Create a value of CreateRuleResponse 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:httpStatus:CreateRuleResponse', createRuleResponse_httpStatus - The response's http status code.

CreateRuleResponse, createRuleResponse_ruleArn - The Amazon Resource Name (ARN) of the rule.

CreateRuleResponse, createRuleResponse_ruleId - A unique identifier for the rule.

Response Lenses

createRuleResponse_ruleArn :: Lens' CreateRuleResponse Text Source #

The Amazon Resource Name (ARN) of the rule.

createRuleResponse_ruleId :: Lens' CreateRuleResponse Text Source #

A unique identifier for the rule.