aws-sdk-connect 1.85.0 → 1.86.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c34ec9771aa3f9687da4ddf3e2a636d71186cef538952aa5ee7b0859d3b16a49
4
- data.tar.gz: 9b5bbc193bc0d3ba0b672b05ec7ba57581f60c8d4446c87f7f824af8d5e24e06
3
+ metadata.gz: 04b6cc995db3a0d31b3b107365aee72f54db97b8cf30a933ca3c838635d5a356
4
+ data.tar.gz: 325bbf49b4fb4e3dad13d345b2e8b9b84e3c22abd8509f5dafb2a5d75f455254
5
5
  SHA512:
6
- metadata.gz: f6da80341a3788de12b4275f18006b67f5226dcba0e854846ef7992793602cec31385230a5424ff5eead7b82744b66bd0b2c1914b6951b4d7cc6eadef62058ff
7
- data.tar.gz: 5d45536f4b0f520d95fc33d82f7fc02c673e3202aa28f93739ff81c7b842ab00487f74d1fc017745c6da66661f96eeb3a1cdaaff5ba6d84d18e664757ab93d1b
6
+ metadata.gz: dbc5383f3b3e0b0fedb2f0af7802144008281b3f1fd47c237eee067da32863adc5a403cea62515d80eeed8c40e036279e51d106a1c611b68b19ded87b9df876e
7
+ data.tar.gz: 9305445468360205e8bffec4e3168fe756283f11f802631d4aff495195a79e5de59856e985945048291d2f38c42a24feba36d23ac2f672b97fc082e778af309c
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.86.0 (2022-12-06)
5
+ ------------------
6
+
7
+ * Feature - This release provides APIs that enable you to programmatically manage rules for Contact Lens conversational analytics and third party applications. For more information, see https://docs.aws.amazon.com/connect/latest/APIReference/rules-api.html
8
+
4
9
  1.85.0 (2022-11-18)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.85.0
1
+ 1.86.0
@@ -775,13 +775,22 @@ module Aws::Connect
775
775
  # Amazon Web Services Region where the Amazon Connect instance or
776
776
  # traffic distribution group was created.
777
777
  #
778
- # You can call the [DescribePhoneNumber][1] API to verify the status of
779
- # a previous [ClaimPhoneNumber][2] operation.
778
+ # For more information about how to use this operation, see [Claim a
779
+ # phone number in your country][1] and [Claim phone numbers to traffic
780
+ # distribution groups][2] in the *Amazon Connect Administrator Guide*.
780
781
  #
782
+ # You can call the [SearchAvailablePhoneNumbers][3] API for available
783
+ # phone numbers that you can claim. Call the [DescribePhoneNumber][4]
784
+ # API to verify the status of a previous [ClaimPhoneNumber][5]
785
+ # operation.
781
786
  #
782
787
  #
783
- # [1]: https://docs.aws.amazon.com/connect/latest/APIReference/API_DescribePhoneNumber.html
784
- # [2]: https://docs.aws.amazon.com/connect/latest/APIReference/API_ClaimPhoneNumber.html
788
+ #
789
+ # [1]: https://docs.aws.amazon.com/connect/latest/adminguide/claim-phone-number.html
790
+ # [2]: https://docs.aws.amazon.com/connect/latest/adminguide/claim-phone-numbers-traffic-distribution-groups.html
791
+ # [3]: https://docs.aws.amazon.com/connect/latest/APIReference/API_SearchAvailablePhoneNumbers.html
792
+ # [4]: https://docs.aws.amazon.com/connect/latest/APIReference/API_DescribePhoneNumber.html
793
+ # [5]: https://docs.aws.amazon.com/connect/latest/APIReference/API_ClaimPhoneNumber.html
785
794
  #
786
795
  # @option params [required, String] :target_arn
787
796
  # The Amazon Resource Name (ARN) for Amazon Connect instances or traffic
@@ -1464,6 +1473,106 @@ module Aws::Connect
1464
1473
  req.send_request(options)
1465
1474
  end
1466
1475
 
1476
+ # Creates a rule for the specified Amazon Connect instance.
1477
+ #
1478
+ # @option params [required, String] :instance_id
1479
+ # The identifier of the Amazon Connect instance. You can find the
1480
+ # instanceId in the ARN of the instance.
1481
+ #
1482
+ # @option params [required, String] :name
1483
+ # A unique name for the rule.
1484
+ #
1485
+ # @option params [required, Types::RuleTriggerEventSource] :trigger_event_source
1486
+ # The event source to trigger the rule.
1487
+ #
1488
+ # @option params [required, String] :function
1489
+ # The conditions of the rule.
1490
+ #
1491
+ # @option params [required, Array<Types::RuleAction>] :actions
1492
+ # A list of actions to be run when the rule is triggered.
1493
+ #
1494
+ # @option params [required, String] :publish_status
1495
+ # The publish status of the rule.
1496
+ #
1497
+ # @option params [String] :client_token
1498
+ # A unique, case-sensitive identifier that you provide to ensure the
1499
+ # idempotency of the request. If not provided, the Amazon Web Services
1500
+ # SDK populates this field. For more information about idempotency, see
1501
+ # [Making retries safe with idempotent APIs][1].
1502
+ #
1503
+ # **A suitable default value is auto-generated.** You should normally
1504
+ # not need to pass this option.**
1505
+ #
1506
+ #
1507
+ #
1508
+ # [1]: https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/
1509
+ #
1510
+ # @return [Types::CreateRuleResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1511
+ #
1512
+ # * {Types::CreateRuleResponse#rule_arn #rule_arn} => String
1513
+ # * {Types::CreateRuleResponse#rule_id #rule_id} => String
1514
+ #
1515
+ # @example Request syntax with placeholder values
1516
+ #
1517
+ # resp = client.create_rule({
1518
+ # instance_id: "InstanceId", # required
1519
+ # name: "RuleName", # required
1520
+ # trigger_event_source: { # required
1521
+ # event_source_name: "OnPostCallAnalysisAvailable", # required, accepts OnPostCallAnalysisAvailable, OnRealTimeCallAnalysisAvailable, OnPostChatAnalysisAvailable, OnZendeskTicketCreate, OnZendeskTicketStatusUpdate, OnSalesforceCaseCreate
1522
+ # integration_association_id: "IntegrationAssociationId",
1523
+ # },
1524
+ # function: "RuleFunction", # required
1525
+ # actions: [ # required
1526
+ # {
1527
+ # action_type: "CREATE_TASK", # required, accepts CREATE_TASK, ASSIGN_CONTACT_CATEGORY, GENERATE_EVENTBRIDGE_EVENT, SEND_NOTIFICATION
1528
+ # task_action: {
1529
+ # name: "TaskNameExpression", # required
1530
+ # description: "TaskDescriptionExpression",
1531
+ # contact_flow_id: "ContactFlowId", # required
1532
+ # references: {
1533
+ # "ReferenceKey" => {
1534
+ # value: "ReferenceValue", # required
1535
+ # type: "URL", # required, accepts URL, ATTACHMENT, NUMBER, STRING, DATE, EMAIL
1536
+ # },
1537
+ # },
1538
+ # },
1539
+ # event_bridge_action: {
1540
+ # name: "EventBridgeActionName", # required
1541
+ # },
1542
+ # assign_contact_category_action: {
1543
+ # },
1544
+ # send_notification_action: {
1545
+ # delivery_method: "EMAIL", # required, accepts EMAIL
1546
+ # subject: "Subject",
1547
+ # content: "Content", # required
1548
+ # content_type: "PLAIN_TEXT", # required, accepts PLAIN_TEXT
1549
+ # recipient: { # required
1550
+ # user_tags: {
1551
+ # "String" => "String",
1552
+ # },
1553
+ # user_ids: ["UserId"],
1554
+ # },
1555
+ # },
1556
+ # },
1557
+ # ],
1558
+ # publish_status: "DRAFT", # required, accepts DRAFT, PUBLISHED
1559
+ # client_token: "ClientToken",
1560
+ # })
1561
+ #
1562
+ # @example Response structure
1563
+ #
1564
+ # resp.rule_arn #=> String
1565
+ # resp.rule_id #=> String
1566
+ #
1567
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/CreateRule AWS API Documentation
1568
+ #
1569
+ # @overload create_rule(params = {})
1570
+ # @param [Hash] params ({})
1571
+ def create_rule(params = {}, options = {})
1572
+ req = build_request(:create_rule, params)
1573
+ req.send_request(options)
1574
+ end
1575
+
1467
1576
  # This API is in preview release for Amazon Connect and is subject to
1468
1577
  # change.
1469
1578
  #
@@ -2185,6 +2294,33 @@ module Aws::Connect
2185
2294
  req.send_request(options)
2186
2295
  end
2187
2296
 
2297
+ # Deletes a rule for the specified Amazon Connect instance.
2298
+ #
2299
+ # @option params [required, String] :instance_id
2300
+ # The identifier of the Amazon Connect instance. You can find the
2301
+ # instanceId in the ARN of the instance.
2302
+ #
2303
+ # @option params [required, String] :rule_id
2304
+ # A unique identifier for the rule.
2305
+ #
2306
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2307
+ #
2308
+ # @example Request syntax with placeholder values
2309
+ #
2310
+ # resp = client.delete_rule({
2311
+ # instance_id: "InstanceId", # required
2312
+ # rule_id: "RuleId", # required
2313
+ # })
2314
+ #
2315
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/DeleteRule AWS API Documentation
2316
+ #
2317
+ # @overload delete_rule(params = {})
2318
+ # @param [Hash] params ({})
2319
+ def delete_rule(params = {}, options = {})
2320
+ req = build_request(:delete_rule, params)
2321
+ req.send_request(options)
2322
+ end
2323
+
2188
2324
  # This API is in preview release for Amazon Connect and is subject to
2189
2325
  # change.
2190
2326
  #
@@ -2966,6 +3102,67 @@ module Aws::Connect
2966
3102
  req.send_request(options)
2967
3103
  end
2968
3104
 
3105
+ # Describes a rule for the specified Amazon Connect instance.
3106
+ #
3107
+ # @option params [required, String] :instance_id
3108
+ # The identifier of the Amazon Connect instance. You can find the
3109
+ # instanceId in the ARN of the instance.
3110
+ #
3111
+ # @option params [required, String] :rule_id
3112
+ # A unique identifier for the rule.
3113
+ #
3114
+ # @return [Types::DescribeRuleResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3115
+ #
3116
+ # * {Types::DescribeRuleResponse#rule #rule} => Types::Rule
3117
+ #
3118
+ # @example Request syntax with placeholder values
3119
+ #
3120
+ # resp = client.describe_rule({
3121
+ # instance_id: "InstanceId", # required
3122
+ # rule_id: "RuleId", # required
3123
+ # })
3124
+ #
3125
+ # @example Response structure
3126
+ #
3127
+ # resp.rule.name #=> String
3128
+ # resp.rule.rule_id #=> String
3129
+ # resp.rule.rule_arn #=> String
3130
+ # resp.rule.trigger_event_source.event_source_name #=> String, one of "OnPostCallAnalysisAvailable", "OnRealTimeCallAnalysisAvailable", "OnPostChatAnalysisAvailable", "OnZendeskTicketCreate", "OnZendeskTicketStatusUpdate", "OnSalesforceCaseCreate"
3131
+ # resp.rule.trigger_event_source.integration_association_id #=> String
3132
+ # resp.rule.function #=> String
3133
+ # resp.rule.actions #=> Array
3134
+ # resp.rule.actions[0].action_type #=> String, one of "CREATE_TASK", "ASSIGN_CONTACT_CATEGORY", "GENERATE_EVENTBRIDGE_EVENT", "SEND_NOTIFICATION"
3135
+ # resp.rule.actions[0].task_action.name #=> String
3136
+ # resp.rule.actions[0].task_action.description #=> String
3137
+ # resp.rule.actions[0].task_action.contact_flow_id #=> String
3138
+ # resp.rule.actions[0].task_action.references #=> Hash
3139
+ # resp.rule.actions[0].task_action.references["ReferenceKey"].value #=> String
3140
+ # resp.rule.actions[0].task_action.references["ReferenceKey"].type #=> String, one of "URL", "ATTACHMENT", "NUMBER", "STRING", "DATE", "EMAIL"
3141
+ # resp.rule.actions[0].event_bridge_action.name #=> String
3142
+ # resp.rule.actions[0].send_notification_action.delivery_method #=> String, one of "EMAIL"
3143
+ # resp.rule.actions[0].send_notification_action.subject #=> String
3144
+ # resp.rule.actions[0].send_notification_action.content #=> String
3145
+ # resp.rule.actions[0].send_notification_action.content_type #=> String, one of "PLAIN_TEXT"
3146
+ # resp.rule.actions[0].send_notification_action.recipient.user_tags #=> Hash
3147
+ # resp.rule.actions[0].send_notification_action.recipient.user_tags["String"] #=> String
3148
+ # resp.rule.actions[0].send_notification_action.recipient.user_ids #=> Array
3149
+ # resp.rule.actions[0].send_notification_action.recipient.user_ids[0] #=> String
3150
+ # resp.rule.publish_status #=> String, one of "DRAFT", "PUBLISHED"
3151
+ # resp.rule.created_time #=> Time
3152
+ # resp.rule.last_updated_time #=> Time
3153
+ # resp.rule.last_updated_by #=> String
3154
+ # resp.rule.tags #=> Hash
3155
+ # resp.rule.tags["TagKey"] #=> String
3156
+ #
3157
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/DescribeRule AWS API Documentation
3158
+ #
3159
+ # @overload describe_rule(params = {})
3160
+ # @param [Hash] params ({})
3161
+ def describe_rule(params = {}, options = {})
3162
+ req = build_request(:describe_rule, params)
3163
+ req.send_request(options)
3164
+ end
3165
+
2969
3166
  # This API is in preview release for Amazon Connect and is subject to
2970
3167
  # change.
2971
3168
  #
@@ -5631,6 +5828,66 @@ module Aws::Connect
5631
5828
  req.send_request(options)
5632
5829
  end
5633
5830
 
5831
+ # List all rules for the specified Amazon Connect instance.
5832
+ #
5833
+ # @option params [required, String] :instance_id
5834
+ # The identifier of the Amazon Connect instance. You can find the
5835
+ # instanceId in the ARN of the instance.
5836
+ #
5837
+ # @option params [String] :publish_status
5838
+ # The publish status of the rule.
5839
+ #
5840
+ # @option params [String] :event_source_name
5841
+ # The name of the event source.
5842
+ #
5843
+ # @option params [Integer] :max_results
5844
+ # The maximum number of results to return per page.
5845
+ #
5846
+ # @option params [String] :next_token
5847
+ # The token for the next set of results. Use the value returned in the
5848
+ # previous response in the next request to retrieve the next set of
5849
+ # results.
5850
+ #
5851
+ # @return [Types::ListRulesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
5852
+ #
5853
+ # * {Types::ListRulesResponse#rule_summary_list #rule_summary_list} => Array&lt;Types::RuleSummary&gt;
5854
+ # * {Types::ListRulesResponse#next_token #next_token} => String
5855
+ #
5856
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
5857
+ #
5858
+ # @example Request syntax with placeholder values
5859
+ #
5860
+ # resp = client.list_rules({
5861
+ # instance_id: "InstanceId", # required
5862
+ # publish_status: "DRAFT", # accepts DRAFT, PUBLISHED
5863
+ # event_source_name: "OnPostCallAnalysisAvailable", # accepts OnPostCallAnalysisAvailable, OnRealTimeCallAnalysisAvailable, OnPostChatAnalysisAvailable, OnZendeskTicketCreate, OnZendeskTicketStatusUpdate, OnSalesforceCaseCreate
5864
+ # max_results: 1,
5865
+ # next_token: "NextToken",
5866
+ # })
5867
+ #
5868
+ # @example Response structure
5869
+ #
5870
+ # resp.rule_summary_list #=> Array
5871
+ # resp.rule_summary_list[0].name #=> String
5872
+ # resp.rule_summary_list[0].rule_id #=> String
5873
+ # resp.rule_summary_list[0].rule_arn #=> String
5874
+ # resp.rule_summary_list[0].event_source_name #=> String, one of "OnPostCallAnalysisAvailable", "OnRealTimeCallAnalysisAvailable", "OnPostChatAnalysisAvailable", "OnZendeskTicketCreate", "OnZendeskTicketStatusUpdate", "OnSalesforceCaseCreate"
5875
+ # resp.rule_summary_list[0].publish_status #=> String, one of "DRAFT", "PUBLISHED"
5876
+ # resp.rule_summary_list[0].action_summaries #=> Array
5877
+ # resp.rule_summary_list[0].action_summaries[0].action_type #=> String, one of "CREATE_TASK", "ASSIGN_CONTACT_CATEGORY", "GENERATE_EVENTBRIDGE_EVENT", "SEND_NOTIFICATION"
5878
+ # resp.rule_summary_list[0].created_time #=> Time
5879
+ # resp.rule_summary_list[0].last_updated_time #=> Time
5880
+ # resp.next_token #=> String
5881
+ #
5882
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListRules AWS API Documentation
5883
+ #
5884
+ # @overload list_rules(params = {})
5885
+ # @param [Hash] params ({})
5886
+ def list_rules(params = {}, options = {})
5887
+ req = build_request(:list_rules, params)
5888
+ req.send_request(options)
5889
+ end
5890
+
5634
5891
  # This API is in preview release for Amazon Connect and is subject to
5635
5892
  # change.
5636
5893
  #
@@ -8758,6 +9015,84 @@ module Aws::Connect
8758
9015
  req.send_request(options)
8759
9016
  end
8760
9017
 
9018
+ # Updates a rule for the specified Amazon Connect instance.
9019
+ #
9020
+ # @option params [required, String] :rule_id
9021
+ # A unique identifier for the rule.
9022
+ #
9023
+ # @option params [required, String] :instance_id
9024
+ # The identifier of the Amazon Connect instance. You can find the
9025
+ # instanceId in the ARN of the instance.
9026
+ #
9027
+ # @option params [required, String] :name
9028
+ # The name of the rule. You can change the name only if
9029
+ # `TriggerEventSource` is one of the following values:
9030
+ # `OnZendeskTicketCreate` \| `OnZendeskTicketStatusUpdate` \|
9031
+ # `OnSalesforceCaseCreate`
9032
+ #
9033
+ # @option params [required, String] :function
9034
+ # The conditions of the rule.
9035
+ #
9036
+ # @option params [required, Array<Types::RuleAction>] :actions
9037
+ # A list of actions to be run when the rule is triggered.
9038
+ #
9039
+ # @option params [required, String] :publish_status
9040
+ # The publish status of the rule.
9041
+ #
9042
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
9043
+ #
9044
+ # @example Request syntax with placeholder values
9045
+ #
9046
+ # resp = client.update_rule({
9047
+ # rule_id: "RuleId", # required
9048
+ # instance_id: "InstanceId", # required
9049
+ # name: "RuleName", # required
9050
+ # function: "RuleFunction", # required
9051
+ # actions: [ # required
9052
+ # {
9053
+ # action_type: "CREATE_TASK", # required, accepts CREATE_TASK, ASSIGN_CONTACT_CATEGORY, GENERATE_EVENTBRIDGE_EVENT, SEND_NOTIFICATION
9054
+ # task_action: {
9055
+ # name: "TaskNameExpression", # required
9056
+ # description: "TaskDescriptionExpression",
9057
+ # contact_flow_id: "ContactFlowId", # required
9058
+ # references: {
9059
+ # "ReferenceKey" => {
9060
+ # value: "ReferenceValue", # required
9061
+ # type: "URL", # required, accepts URL, ATTACHMENT, NUMBER, STRING, DATE, EMAIL
9062
+ # },
9063
+ # },
9064
+ # },
9065
+ # event_bridge_action: {
9066
+ # name: "EventBridgeActionName", # required
9067
+ # },
9068
+ # assign_contact_category_action: {
9069
+ # },
9070
+ # send_notification_action: {
9071
+ # delivery_method: "EMAIL", # required, accepts EMAIL
9072
+ # subject: "Subject",
9073
+ # content: "Content", # required
9074
+ # content_type: "PLAIN_TEXT", # required, accepts PLAIN_TEXT
9075
+ # recipient: { # required
9076
+ # user_tags: {
9077
+ # "String" => "String",
9078
+ # },
9079
+ # user_ids: ["UserId"],
9080
+ # },
9081
+ # },
9082
+ # },
9083
+ # ],
9084
+ # publish_status: "DRAFT", # required, accepts DRAFT, PUBLISHED
9085
+ # })
9086
+ #
9087
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/UpdateRule AWS API Documentation
9088
+ #
9089
+ # @overload update_rule(params = {})
9090
+ # @param [Hash] params ({})
9091
+ def update_rule(params = {}, options = {})
9092
+ req = build_request(:update_rule, params)
9093
+ req.send_request(options)
9094
+ end
9095
+
8761
9096
  # This API is in preview release for Amazon Connect and is subject to
8762
9097
  # change.
8763
9098
  #
@@ -9266,7 +9601,7 @@ module Aws::Connect
9266
9601
  params: params,
9267
9602
  config: config)
9268
9603
  context[:gem_name] = 'aws-sdk-connect'
9269
- context[:gem_version] = '1.85.0'
9604
+ context[:gem_version] = '1.86.0'
9270
9605
  Seahorse::Client::Request.new(handlers, context)
9271
9606
  end
9272
9607