aws-sdk-connect 1.143.0 → 1.144.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: 59110863875ff0c0aa30621d37c18f97080e42c4f5dd4b5f42ceb2f2e5e4f08a
4
- data.tar.gz: 871bdeee17d58342449c5c9d7a7ae7bdc2f151f0273a710aef8f2db252d07645
3
+ metadata.gz: 18f3da201be1a8e9e2bb80ceb05fd312beb6ab3556cf5d2880065a8a69632780
4
+ data.tar.gz: ae5abf718b1659b2562f6701ae491e00c27810f204e31e7fe020cf7d00c578b9
5
5
  SHA512:
6
- metadata.gz: d226beb58505b355c4cd2b30f6d3d4cebb05433d42582d83789ad242943bdc3ee859ba752c48694130bc0b61c974caa7ba8b2a565b8064c30caae0ec84ecf375
7
- data.tar.gz: 860fb8f6c3525bf65b329ac917b85d464fac3f4cbc05b528100ba7d4b8fcdf7edf063e0f00ae2e66ce482ba1098a93546713faad80a7dd578c4157133adaf291
6
+ metadata.gz: fe0e67d9a72f2296cd842b6ee46516f23f1169d75edccb476f4bc0772ef6c3373ad0d69b61ebee5a1abfc5100cc0ec523f999d9885a209ab3e0b9a4a391bc11f
7
+ data.tar.gz: 848150ba6317411d7838202080b194e44b182b62af403f0e36117959f019e9fc41327b8bf99d52207e4298a1496af795414a039398991c82f132396beaed8ed7
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.144.0 (2023-12-15)
5
+ ------------------
6
+
7
+ * Feature - Adds relatedContactId field to StartOutboundVoiceContact API input. Introduces PauseContact API and ResumeContact API for Task contacts. Adds pause duration, number of pauses, timestamps for last paused and resumed events to DescribeContact API response. Adds new Rule type and new Rule action.
8
+
4
9
  1.143.0 (2023-12-14)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.143.0
1
+ 1.144.0
@@ -1916,7 +1916,7 @@ module Aws::Connect
1916
1916
  # integration_arn: "ARN", # required
1917
1917
  # source_application_url: "URI",
1918
1918
  # source_application_name: "SourceApplicationName",
1919
- # source_type: "SALESFORCE", # accepts SALESFORCE, ZENDESK
1919
+ # source_type: "SALESFORCE", # accepts SALESFORCE, ZENDESK, CASES
1920
1920
  # tags: {
1921
1921
  # "TagKey" => "TagValue",
1922
1922
  # },
@@ -2524,13 +2524,13 @@ module Aws::Connect
2524
2524
  # instance_id: "InstanceId", # required
2525
2525
  # name: "RuleName", # required
2526
2526
  # trigger_event_source: { # required
2527
- # event_source_name: "OnPostCallAnalysisAvailable", # required, accepts OnPostCallAnalysisAvailable, OnRealTimeCallAnalysisAvailable, OnRealTimeChatAnalysisAvailable, OnPostChatAnalysisAvailable, OnZendeskTicketCreate, OnZendeskTicketStatusUpdate, OnSalesforceCaseCreate, OnContactEvaluationSubmit, OnMetricDataUpdate
2527
+ # event_source_name: "OnPostCallAnalysisAvailable", # required, accepts OnPostCallAnalysisAvailable, OnRealTimeCallAnalysisAvailable, OnRealTimeChatAnalysisAvailable, OnPostChatAnalysisAvailable, OnZendeskTicketCreate, OnZendeskTicketStatusUpdate, OnSalesforceCaseCreate, OnContactEvaluationSubmit, OnMetricDataUpdate, OnCaseCreate, OnCaseUpdate
2528
2528
  # integration_association_id: "IntegrationAssociationId",
2529
2529
  # },
2530
2530
  # function: "RuleFunction", # required
2531
2531
  # actions: [ # required
2532
2532
  # {
2533
- # action_type: "CREATE_TASK", # required, accepts CREATE_TASK, ASSIGN_CONTACT_CATEGORY, GENERATE_EVENTBRIDGE_EVENT, SEND_NOTIFICATION
2533
+ # action_type: "CREATE_TASK", # required, accepts CREATE_TASK, ASSIGN_CONTACT_CATEGORY, GENERATE_EVENTBRIDGE_EVENT, SEND_NOTIFICATION, CREATE_CASE, UPDATE_CASE, END_ASSOCIATED_TASKS
2534
2534
  # task_action: {
2535
2535
  # name: "TaskNameExpression", # required
2536
2536
  # description: "TaskDescriptionExpression",
@@ -2559,6 +2559,37 @@ module Aws::Connect
2559
2559
  # user_ids: ["UserId"],
2560
2560
  # },
2561
2561
  # },
2562
+ # create_case_action: {
2563
+ # fields: [ # required
2564
+ # {
2565
+ # id: "FieldValueId", # required
2566
+ # value: { # required
2567
+ # boolean_value: false,
2568
+ # double_value: 1.0,
2569
+ # empty_value: {
2570
+ # },
2571
+ # string_value: "FieldStringValue",
2572
+ # },
2573
+ # },
2574
+ # ],
2575
+ # template_id: "TemplateId", # required
2576
+ # },
2577
+ # update_case_action: {
2578
+ # fields: [ # required
2579
+ # {
2580
+ # id: "FieldValueId", # required
2581
+ # value: { # required
2582
+ # boolean_value: false,
2583
+ # double_value: 1.0,
2584
+ # empty_value: {
2585
+ # },
2586
+ # string_value: "FieldStringValue",
2587
+ # },
2588
+ # },
2589
+ # ],
2590
+ # },
2591
+ # end_associated_tasks_action: {
2592
+ # },
2562
2593
  # },
2563
2594
  # ],
2564
2595
  # publish_status: "DRAFT", # required, accepts DRAFT, PUBLISHED
@@ -4172,9 +4203,14 @@ module Aws::Connect
4172
4203
  # resp.contact.queue_info.enqueue_timestamp #=> Time
4173
4204
  # resp.contact.agent_info.id #=> String
4174
4205
  # resp.contact.agent_info.connected_to_agent_timestamp #=> Time
4206
+ # resp.contact.agent_info.agent_pause_duration_in_seconds #=> Integer
4175
4207
  # resp.contact.initiation_timestamp #=> Time
4176
4208
  # resp.contact.disconnect_timestamp #=> Time
4177
4209
  # resp.contact.last_update_timestamp #=> Time
4210
+ # resp.contact.last_paused_timestamp #=> Time
4211
+ # resp.contact.last_resumed_timestamp #=> Time
4212
+ # resp.contact.total_pause_count #=> Integer
4213
+ # resp.contact.total_pause_duration_in_seconds #=> Integer
4178
4214
  # resp.contact.scheduled_timestamp #=> Time
4179
4215
  # resp.contact.related_contact_id #=> String
4180
4216
  # resp.contact.wisdom_info.session_arn #=> String
@@ -4960,11 +4996,11 @@ module Aws::Connect
4960
4996
  # resp.rule.name #=> String
4961
4997
  # resp.rule.rule_id #=> String
4962
4998
  # resp.rule.rule_arn #=> String
4963
- # resp.rule.trigger_event_source.event_source_name #=> String, one of "OnPostCallAnalysisAvailable", "OnRealTimeCallAnalysisAvailable", "OnRealTimeChatAnalysisAvailable", "OnPostChatAnalysisAvailable", "OnZendeskTicketCreate", "OnZendeskTicketStatusUpdate", "OnSalesforceCaseCreate", "OnContactEvaluationSubmit", "OnMetricDataUpdate"
4999
+ # resp.rule.trigger_event_source.event_source_name #=> String, one of "OnPostCallAnalysisAvailable", "OnRealTimeCallAnalysisAvailable", "OnRealTimeChatAnalysisAvailable", "OnPostChatAnalysisAvailable", "OnZendeskTicketCreate", "OnZendeskTicketStatusUpdate", "OnSalesforceCaseCreate", "OnContactEvaluationSubmit", "OnMetricDataUpdate", "OnCaseCreate", "OnCaseUpdate"
4964
5000
  # resp.rule.trigger_event_source.integration_association_id #=> String
4965
5001
  # resp.rule.function #=> String
4966
5002
  # resp.rule.actions #=> Array
4967
- # resp.rule.actions[0].action_type #=> String, one of "CREATE_TASK", "ASSIGN_CONTACT_CATEGORY", "GENERATE_EVENTBRIDGE_EVENT", "SEND_NOTIFICATION"
5003
+ # resp.rule.actions[0].action_type #=> String, one of "CREATE_TASK", "ASSIGN_CONTACT_CATEGORY", "GENERATE_EVENTBRIDGE_EVENT", "SEND_NOTIFICATION", "CREATE_CASE", "UPDATE_CASE", "END_ASSOCIATED_TASKS"
4968
5004
  # resp.rule.actions[0].task_action.name #=> String
4969
5005
  # resp.rule.actions[0].task_action.description #=> String
4970
5006
  # resp.rule.actions[0].task_action.contact_flow_id #=> String
@@ -4980,6 +5016,17 @@ module Aws::Connect
4980
5016
  # resp.rule.actions[0].send_notification_action.recipient.user_tags["String"] #=> String
4981
5017
  # resp.rule.actions[0].send_notification_action.recipient.user_ids #=> Array
4982
5018
  # resp.rule.actions[0].send_notification_action.recipient.user_ids[0] #=> String
5019
+ # resp.rule.actions[0].create_case_action.fields #=> Array
5020
+ # resp.rule.actions[0].create_case_action.fields[0].id #=> String
5021
+ # resp.rule.actions[0].create_case_action.fields[0].value.boolean_value #=> Boolean
5022
+ # resp.rule.actions[0].create_case_action.fields[0].value.double_value #=> Float
5023
+ # resp.rule.actions[0].create_case_action.fields[0].value.string_value #=> String
5024
+ # resp.rule.actions[0].create_case_action.template_id #=> String
5025
+ # resp.rule.actions[0].update_case_action.fields #=> Array
5026
+ # resp.rule.actions[0].update_case_action.fields[0].id #=> String
5027
+ # resp.rule.actions[0].update_case_action.fields[0].value.boolean_value #=> Boolean
5028
+ # resp.rule.actions[0].update_case_action.fields[0].value.double_value #=> Float
5029
+ # resp.rule.actions[0].update_case_action.fields[0].value.string_value #=> String
4983
5030
  # resp.rule.publish_status #=> String, one of "DRAFT", "PUBLISHED"
4984
5031
  # resp.rule.created_time #=> Time
4985
5032
  # resp.rule.last_updated_time #=> Time
@@ -6918,6 +6965,13 @@ module Aws::Connect
6918
6965
  # Valid groupings and filters: Queue, Channel, Routing Profile, Agent,
6919
6966
  # Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype
6920
6967
  #
6968
+ # AVG\_ACTIVE\_TIME
6969
+ #
6970
+ # : Unit: Seconds
6971
+ #
6972
+ # Valid groupings and filters: Queue, Channel, Routing Profile, Agent,
6973
+ # Agent Hierarchy
6974
+ #
6921
6975
  # AVG\_AFTER\_CONTACT\_WORK\_TIME
6922
6976
  #
6923
6977
  # : Unit: Seconds
@@ -6947,6 +7001,13 @@ module Aws::Connect
6947
7001
  #
6948
7002
  # </note>
6949
7003
  #
7004
+ # AVG\_AGENT\_PAUSE\_TIME
7005
+ #
7006
+ # : Unit: Seconds
7007
+ #
7008
+ # Valid groupings and filters: Queue, Channel, Routing Profile, Agent,
7009
+ # Agent Hierarchy
7010
+ #
6950
7011
  # AVG\_CONTACT\_DURATION
6951
7012
  #
6952
7013
  # : Unit: Seconds
@@ -8748,7 +8809,7 @@ module Aws::Connect
8748
8809
  # resp.integration_association_summary_list[0].integration_arn #=> String
8749
8810
  # resp.integration_association_summary_list[0].source_application_url #=> String
8750
8811
  # resp.integration_association_summary_list[0].source_application_name #=> String
8751
- # resp.integration_association_summary_list[0].source_type #=> String, one of "SALESFORCE", "ZENDESK"
8812
+ # resp.integration_association_summary_list[0].source_type #=> String, one of "SALESFORCE", "ZENDESK", "CASES"
8752
8813
  # resp.next_token #=> String
8753
8814
  #
8754
8815
  # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListIntegrationAssociations AWS API Documentation
@@ -9581,7 +9642,7 @@ module Aws::Connect
9581
9642
  # resp = client.list_rules({
9582
9643
  # instance_id: "InstanceId", # required
9583
9644
  # publish_status: "DRAFT", # accepts DRAFT, PUBLISHED
9584
- # event_source_name: "OnPostCallAnalysisAvailable", # accepts OnPostCallAnalysisAvailable, OnRealTimeCallAnalysisAvailable, OnRealTimeChatAnalysisAvailable, OnPostChatAnalysisAvailable, OnZendeskTicketCreate, OnZendeskTicketStatusUpdate, OnSalesforceCaseCreate, OnContactEvaluationSubmit, OnMetricDataUpdate
9645
+ # event_source_name: "OnPostCallAnalysisAvailable", # accepts OnPostCallAnalysisAvailable, OnRealTimeCallAnalysisAvailable, OnRealTimeChatAnalysisAvailable, OnPostChatAnalysisAvailable, OnZendeskTicketCreate, OnZendeskTicketStatusUpdate, OnSalesforceCaseCreate, OnContactEvaluationSubmit, OnMetricDataUpdate, OnCaseCreate, OnCaseUpdate
9585
9646
  # max_results: 1,
9586
9647
  # next_token: "NextToken",
9587
9648
  # })
@@ -9592,10 +9653,10 @@ module Aws::Connect
9592
9653
  # resp.rule_summary_list[0].name #=> String
9593
9654
  # resp.rule_summary_list[0].rule_id #=> String
9594
9655
  # resp.rule_summary_list[0].rule_arn #=> String
9595
- # resp.rule_summary_list[0].event_source_name #=> String, one of "OnPostCallAnalysisAvailable", "OnRealTimeCallAnalysisAvailable", "OnRealTimeChatAnalysisAvailable", "OnPostChatAnalysisAvailable", "OnZendeskTicketCreate", "OnZendeskTicketStatusUpdate", "OnSalesforceCaseCreate", "OnContactEvaluationSubmit", "OnMetricDataUpdate"
9656
+ # resp.rule_summary_list[0].event_source_name #=> String, one of "OnPostCallAnalysisAvailable", "OnRealTimeCallAnalysisAvailable", "OnRealTimeChatAnalysisAvailable", "OnPostChatAnalysisAvailable", "OnZendeskTicketCreate", "OnZendeskTicketStatusUpdate", "OnSalesforceCaseCreate", "OnContactEvaluationSubmit", "OnMetricDataUpdate", "OnCaseCreate", "OnCaseUpdate"
9596
9657
  # resp.rule_summary_list[0].publish_status #=> String, one of "DRAFT", "PUBLISHED"
9597
9658
  # resp.rule_summary_list[0].action_summaries #=> Array
9598
- # resp.rule_summary_list[0].action_summaries[0].action_type #=> String, one of "CREATE_TASK", "ASSIGN_CONTACT_CATEGORY", "GENERATE_EVENTBRIDGE_EVENT", "SEND_NOTIFICATION"
9659
+ # resp.rule_summary_list[0].action_summaries[0].action_type #=> String, one of "CREATE_TASK", "ASSIGN_CONTACT_CATEGORY", "GENERATE_EVENTBRIDGE_EVENT", "SEND_NOTIFICATION", "CREATE_CASE", "UPDATE_CASE", "END_ASSOCIATED_TASKS"
9599
9660
  # resp.rule_summary_list[0].created_time #=> Time
9600
9661
  # resp.rule_summary_list[0].last_updated_time #=> Time
9601
9662
  # resp.next_token #=> String
@@ -10395,6 +10456,37 @@ module Aws::Connect
10395
10456
  req.send_request(options)
10396
10457
  end
10397
10458
 
10459
+ # Allows pausing an ongoing task contact.
10460
+ #
10461
+ # @option params [required, String] :contact_id
10462
+ # The identifier of the contact.
10463
+ #
10464
+ # @option params [required, String] :instance_id
10465
+ # The identifier of the Amazon Connect instance. You can find the
10466
+ # `instanceId` in the ARN of the instance.
10467
+ #
10468
+ # @option params [String] :contact_flow_id
10469
+ # The identifier of the flow.
10470
+ #
10471
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
10472
+ #
10473
+ # @example Request syntax with placeholder values
10474
+ #
10475
+ # resp = client.pause_contact({
10476
+ # contact_id: "ContactId", # required
10477
+ # instance_id: "InstanceId", # required
10478
+ # contact_flow_id: "ContactFlowId",
10479
+ # })
10480
+ #
10481
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/PauseContact AWS API Documentation
10482
+ #
10483
+ # @overload pause_contact(params = {})
10484
+ # @param [Hash] params ({})
10485
+ def pause_contact(params = {}, options = {})
10486
+ req = build_request(:pause_contact, params)
10487
+ req.send_request(options)
10488
+ end
10489
+
10398
10490
  # Changes the current status of a user or agent in Amazon Connect. If
10399
10491
  # the agent is currently handling a contact, this sets the agent's next
10400
10492
  # status.
@@ -10574,6 +10666,37 @@ module Aws::Connect
10574
10666
  req.send_request(options)
10575
10667
  end
10576
10668
 
10669
+ # Allows resuming a task contact in a paused state.
10670
+ #
10671
+ # @option params [required, String] :contact_id
10672
+ # The identifier of the contact.
10673
+ #
10674
+ # @option params [required, String] :instance_id
10675
+ # The identifier of the Amazon Connect instance. You can find the
10676
+ # `instanceId` in the ARN of the instance.
10677
+ #
10678
+ # @option params [String] :contact_flow_id
10679
+ # The identifier of the flow.
10680
+ #
10681
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
10682
+ #
10683
+ # @example Request syntax with placeholder values
10684
+ #
10685
+ # resp = client.resume_contact({
10686
+ # contact_id: "ContactId", # required
10687
+ # instance_id: "InstanceId", # required
10688
+ # contact_flow_id: "ContactFlowId",
10689
+ # })
10690
+ #
10691
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ResumeContact AWS API Documentation
10692
+ #
10693
+ # @overload resume_contact(params = {})
10694
+ # @param [Hash] params ({})
10695
+ def resume_contact(params = {}, options = {})
10696
+ req = build_request(:resume_contact, params)
10697
+ req.send_request(options)
10698
+ end
10699
+
10577
10700
  # When a contact is being recorded, and the recording has been suspended
10578
10701
  # using SuspendContactRecording, this API resumes recording whatever
10579
10702
  # recording is selected in the flow configuration: call, screen, or
@@ -12134,6 +12257,29 @@ module Aws::Connect
12134
12257
  # [1]: https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html
12135
12258
  # [2]: https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html#outbound-communications-quotas
12136
12259
  #
12260
+ # @option params [String] :name
12261
+ # The name of a voice contact that is shown to an agent in the Contact
12262
+ # Control Panel (CCP).
12263
+ #
12264
+ # @option params [String] :description
12265
+ # A description of the voice contact that is shown to an agent in the
12266
+ # Contact Control Panel (CCP).
12267
+ #
12268
+ # @option params [Hash<String,Types::Reference>] :references
12269
+ # A formatted URL that is shown to an agent in the Contact Control Panel
12270
+ # (CCP). Contacts can have the following reference types at the time of
12271
+ # creation: `URL` \| `NUMBER` \| `STRING` \| `DATE` \| `EMAIL`.
12272
+ # `ATTACHMENT` is not a supported reference type during voice contact
12273
+ # creation.
12274
+ #
12275
+ # @option params [String] :related_contact_id
12276
+ # The `contactId` that is related to this contact. Linking voice, task,
12277
+ # or chat by using `RelatedContactID` copies over contact attributes
12278
+ # from the related contact to the new contact. All updates to
12279
+ # user-defined attributes in the new contact are limited to the
12280
+ # individual contact ID. There are no limits to the number of contacts
12281
+ # that can be linked by using `RelatedContactId`.
12282
+ #
12137
12283
  # @option params [required, String] :destination_phone_number
12138
12284
  # The phone number of the customer, in E.164 format.
12139
12285
  #
@@ -12210,6 +12356,15 @@ module Aws::Connect
12210
12356
  # @example Request syntax with placeholder values
12211
12357
  #
12212
12358
  # resp = client.start_outbound_voice_contact({
12359
+ # name: "Name",
12360
+ # description: "Description",
12361
+ # references: {
12362
+ # "ReferenceKey" => {
12363
+ # value: "ReferenceValue", # required
12364
+ # type: "URL", # required, accepts URL, ATTACHMENT, NUMBER, STRING, DATE, EMAIL
12365
+ # },
12366
+ # },
12367
+ # related_contact_id: "ContactId",
12213
12368
  # destination_phone_number: "PhoneNumber", # required
12214
12369
  # contact_flow_id: "ContactFlowId", # required
12215
12370
  # instance_id: "InstanceId", # required
@@ -14678,7 +14833,7 @@ module Aws::Connect
14678
14833
  # function: "RuleFunction", # required
14679
14834
  # actions: [ # required
14680
14835
  # {
14681
- # action_type: "CREATE_TASK", # required, accepts CREATE_TASK, ASSIGN_CONTACT_CATEGORY, GENERATE_EVENTBRIDGE_EVENT, SEND_NOTIFICATION
14836
+ # action_type: "CREATE_TASK", # required, accepts CREATE_TASK, ASSIGN_CONTACT_CATEGORY, GENERATE_EVENTBRIDGE_EVENT, SEND_NOTIFICATION, CREATE_CASE, UPDATE_CASE, END_ASSOCIATED_TASKS
14682
14837
  # task_action: {
14683
14838
  # name: "TaskNameExpression", # required
14684
14839
  # description: "TaskDescriptionExpression",
@@ -14707,6 +14862,37 @@ module Aws::Connect
14707
14862
  # user_ids: ["UserId"],
14708
14863
  # },
14709
14864
  # },
14865
+ # create_case_action: {
14866
+ # fields: [ # required
14867
+ # {
14868
+ # id: "FieldValueId", # required
14869
+ # value: { # required
14870
+ # boolean_value: false,
14871
+ # double_value: 1.0,
14872
+ # empty_value: {
14873
+ # },
14874
+ # string_value: "FieldStringValue",
14875
+ # },
14876
+ # },
14877
+ # ],
14878
+ # template_id: "TemplateId", # required
14879
+ # },
14880
+ # update_case_action: {
14881
+ # fields: [ # required
14882
+ # {
14883
+ # id: "FieldValueId", # required
14884
+ # value: { # required
14885
+ # boolean_value: false,
14886
+ # double_value: 1.0,
14887
+ # empty_value: {
14888
+ # },
14889
+ # string_value: "FieldStringValue",
14890
+ # },
14891
+ # },
14892
+ # ],
14893
+ # },
14894
+ # end_associated_tasks_action: {
14895
+ # },
14710
14896
  # },
14711
14897
  # ],
14712
14898
  # publish_status: "DRAFT", # required, accepts DRAFT, PUBLISHED
@@ -15415,7 +15601,7 @@ module Aws::Connect
15415
15601
  params: params,
15416
15602
  config: config)
15417
15603
  context[:gem_name] = 'aws-sdk-connect'
15418
- context[:gem_version] = '1.143.0'
15604
+ context[:gem_version] = '1.144.0'
15419
15605
  Seahorse::Client::Request.new(handlers, context)
15420
15606
  end
15421
15607
 
@@ -29,6 +29,7 @@ module Aws::Connect
29
29
  AgentFirstName = Shapes::StringShape.new(name: 'AgentFirstName')
30
30
  AgentInfo = Shapes::StructureShape.new(name: 'AgentInfo')
31
31
  AgentLastName = Shapes::StringShape.new(name: 'AgentLastName')
32
+ AgentPauseDurationInSeconds = Shapes::IntegerShape.new(name: 'AgentPauseDurationInSeconds')
32
33
  AgentResourceId = Shapes::StringShape.new(name: 'AgentResourceId')
33
34
  AgentStatus = Shapes::StructureShape.new(name: 'AgentStatus')
34
35
  AgentStatusDescription = Shapes::StringShape.new(name: 'AgentStatusDescription')
@@ -125,6 +126,7 @@ module Aws::Connect
125
126
  CommonNameLength127 = Shapes::StringShape.new(name: 'CommonNameLength127')
126
127
  Comparison = Shapes::StringShape.new(name: 'Comparison')
127
128
  Concurrency = Shapes::IntegerShape.new(name: 'Concurrency')
129
+ ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
128
130
  ConnectionData = Shapes::StructureShape.new(name: 'ConnectionData')
129
131
  Contact = Shapes::StructureShape.new(name: 'Contact')
130
132
  ContactDataRequest = Shapes::StructureShape.new(name: 'ContactDataRequest')
@@ -165,6 +167,7 @@ module Aws::Connect
165
167
  ControlPlaneTagFilter = Shapes::StructureShape.new(name: 'ControlPlaneTagFilter')
166
168
  CreateAgentStatusRequest = Shapes::StructureShape.new(name: 'CreateAgentStatusRequest')
167
169
  CreateAgentStatusResponse = Shapes::StructureShape.new(name: 'CreateAgentStatusResponse')
170
+ CreateCaseActionDefinition = Shapes::StructureShape.new(name: 'CreateCaseActionDefinition')
168
171
  CreateContactFlowModuleRequest = Shapes::StructureShape.new(name: 'CreateContactFlowModuleRequest')
169
172
  CreateContactFlowModuleResponse = Shapes::StructureShape.new(name: 'CreateContactFlowModuleResponse')
170
173
  CreateContactFlowRequest = Shapes::StructureShape.new(name: 'CreateContactFlowRequest')
@@ -336,11 +339,14 @@ module Aws::Connect
336
339
  DisplayName = Shapes::StringShape.new(name: 'DisplayName')
337
340
  Distribution = Shapes::StructureShape.new(name: 'Distribution')
338
341
  DistributionList = Shapes::ListShape.new(name: 'DistributionList')
342
+ Double = Shapes::FloatShape.new(name: 'Double')
339
343
  DuplicateResourceException = Shapes::StructureShape.new(name: 'DuplicateResourceException')
340
344
  Email = Shapes::StringShape.new(name: 'Email')
341
345
  EmailReference = Shapes::StructureShape.new(name: 'EmailReference')
346
+ EmptyFieldValue = Shapes::StructureShape.new(name: 'EmptyFieldValue')
342
347
  EncryptionConfig = Shapes::StructureShape.new(name: 'EncryptionConfig')
343
348
  EncryptionType = Shapes::StringShape.new(name: 'EncryptionType')
349
+ EndAssociatedTasksActionDefinition = Shapes::StructureShape.new(name: 'EndAssociatedTasksActionDefinition')
344
350
  Endpoint = Shapes::StructureShape.new(name: 'Endpoint')
345
351
  EndpointAddress = Shapes::StringShape.new(name: 'EndpointAddress')
346
352
  EndpointType = Shapes::StringShape.new(name: 'EndpointType')
@@ -406,6 +412,11 @@ module Aws::Connect
406
412
  FailedRequest = Shapes::StructureShape.new(name: 'FailedRequest')
407
413
  FailedRequestList = Shapes::ListShape.new(name: 'FailedRequestList')
408
414
  FailureReasonCode = Shapes::StringShape.new(name: 'FailureReasonCode')
415
+ FieldStringValue = Shapes::StringShape.new(name: 'FieldStringValue')
416
+ FieldValue = Shapes::StructureShape.new(name: 'FieldValue')
417
+ FieldValueId = Shapes::StringShape.new(name: 'FieldValueId')
418
+ FieldValueUnion = Shapes::StructureShape.new(name: 'FieldValueUnion')
419
+ FieldValues = Shapes::ListShape.new(name: 'FieldValues')
409
420
  FilterV2 = Shapes::StructureShape.new(name: 'FilterV2')
410
421
  FilterValueList = Shapes::ListShape.new(name: 'FilterValueList')
411
422
  Filters = Shapes::StructureShape.new(name: 'Filters')
@@ -681,6 +692,8 @@ module Aws::Connect
681
692
  ParticipantToken = Shapes::StringShape.new(name: 'ParticipantToken')
682
693
  ParticipantTokenCredentials = Shapes::StructureShape.new(name: 'ParticipantTokenCredentials')
683
694
  Password = Shapes::StringShape.new(name: 'Password')
695
+ PauseContactRequest = Shapes::StructureShape.new(name: 'PauseContactRequest')
696
+ PauseContactResponse = Shapes::StructureShape.new(name: 'PauseContactResponse')
684
697
  Percentage = Shapes::IntegerShape.new(name: 'Percentage')
685
698
  Permission = Shapes::StringShape.new(name: 'Permission')
686
699
  PermissionsList = Shapes::ListShape.new(name: 'PermissionsList')
@@ -820,6 +833,8 @@ module Aws::Connect
820
833
  ResourceTypeList = Shapes::ListShape.new(name: 'ResourceTypeList')
821
834
  ResumeContactRecordingRequest = Shapes::StructureShape.new(name: 'ResumeContactRecordingRequest')
822
835
  ResumeContactRecordingResponse = Shapes::StructureShape.new(name: 'ResumeContactRecordingResponse')
836
+ ResumeContactRequest = Shapes::StructureShape.new(name: 'ResumeContactRequest')
837
+ ResumeContactResponse = Shapes::StructureShape.new(name: 'ResumeContactResponse')
823
838
  RoutingProfile = Shapes::StructureShape.new(name: 'RoutingProfile')
824
839
  RoutingProfileDescription = Shapes::StringShape.new(name: 'RoutingProfileDescription')
825
840
  RoutingProfileId = Shapes::StringShape.new(name: 'RoutingProfileId')
@@ -986,6 +1001,7 @@ module Aws::Connect
986
1001
  TaskTemplateSingleSelectOption = Shapes::StringShape.new(name: 'TaskTemplateSingleSelectOption')
987
1002
  TaskTemplateStatus = Shapes::StringShape.new(name: 'TaskTemplateStatus')
988
1003
  TelephonyConfig = Shapes::StructureShape.new(name: 'TelephonyConfig')
1004
+ TemplateId = Shapes::StringShape.new(name: 'TemplateId')
989
1005
  Threshold = Shapes::StructureShape.new(name: 'Threshold')
990
1006
  ThresholdCollections = Shapes::ListShape.new(name: 'ThresholdCollections')
991
1007
  ThresholdV2 = Shapes::StructureShape.new(name: 'ThresholdV2')
@@ -995,6 +1011,8 @@ module Aws::Connect
995
1011
  TimerEligibleParticipantRoles = Shapes::StringShape.new(name: 'TimerEligibleParticipantRoles')
996
1012
  Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
997
1013
  TooManyRequestsException = Shapes::StructureShape.new(name: 'TooManyRequestsException')
1014
+ TotalPauseCount = Shapes::IntegerShape.new(name: 'TotalPauseCount')
1015
+ TotalPauseDurationInSeconds = Shapes::IntegerShape.new(name: 'TotalPauseDurationInSeconds')
998
1016
  TrafficDistributionGroup = Shapes::StructureShape.new(name: 'TrafficDistributionGroup')
999
1017
  TrafficDistributionGroupArn = Shapes::StringShape.new(name: 'TrafficDistributionGroupArn')
1000
1018
  TrafficDistributionGroupId = Shapes::StringShape.new(name: 'TrafficDistributionGroupId')
@@ -1014,6 +1032,7 @@ module Aws::Connect
1014
1032
  UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
1015
1033
  UpdateAgentStatusDescription = Shapes::StringShape.new(name: 'UpdateAgentStatusDescription')
1016
1034
  UpdateAgentStatusRequest = Shapes::StructureShape.new(name: 'UpdateAgentStatusRequest')
1035
+ UpdateCaseActionDefinition = Shapes::StructureShape.new(name: 'UpdateCaseActionDefinition')
1017
1036
  UpdateContactAttributesRequest = Shapes::StructureShape.new(name: 'UpdateContactAttributesRequest')
1018
1037
  UpdateContactAttributesResponse = Shapes::StructureShape.new(name: 'UpdateContactAttributesResponse')
1019
1038
  UpdateContactEvaluationRequest = Shapes::StructureShape.new(name: 'UpdateContactEvaluationRequest')
@@ -1178,6 +1197,7 @@ module Aws::Connect
1178
1197
 
1179
1198
  AgentInfo.add_member(:id, Shapes::ShapeRef.new(shape: AgentResourceId, location_name: "Id"))
1180
1199
  AgentInfo.add_member(:connected_to_agent_timestamp, Shapes::ShapeRef.new(shape: timestamp, location_name: "ConnectedToAgentTimestamp"))
1200
+ AgentInfo.add_member(:agent_pause_duration_in_seconds, Shapes::ShapeRef.new(shape: AgentPauseDurationInSeconds, location_name: "AgentPauseDurationInSeconds"))
1181
1201
  AgentInfo.struct_class = Types::AgentInfo
1182
1202
 
1183
1203
  AgentStatus.add_member(:agent_status_arn, Shapes::ShapeRef.new(shape: ARN, location_name: "AgentStatusARN"))
@@ -1433,6 +1453,9 @@ module Aws::Connect
1433
1453
  ClaimedPhoneNumberSummary.add_member(:source_phone_number_arn, Shapes::ShapeRef.new(shape: ARN, location_name: "SourcePhoneNumberArn"))
1434
1454
  ClaimedPhoneNumberSummary.struct_class = Types::ClaimedPhoneNumberSummary
1435
1455
 
1456
+ ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: Message, location_name: "Message"))
1457
+ ConflictException.struct_class = Types::ConflictException
1458
+
1436
1459
  ConnectionData.add_member(:attendee, Shapes::ShapeRef.new(shape: Attendee, location_name: "Attendee"))
1437
1460
  ConnectionData.add_member(:meeting, Shapes::ShapeRef.new(shape: Meeting, location_name: "Meeting"))
1438
1461
  ConnectionData.struct_class = Types::ConnectionData
@@ -1450,6 +1473,10 @@ module Aws::Connect
1450
1473
  Contact.add_member(:initiation_timestamp, Shapes::ShapeRef.new(shape: timestamp, location_name: "InitiationTimestamp"))
1451
1474
  Contact.add_member(:disconnect_timestamp, Shapes::ShapeRef.new(shape: timestamp, location_name: "DisconnectTimestamp"))
1452
1475
  Contact.add_member(:last_update_timestamp, Shapes::ShapeRef.new(shape: timestamp, location_name: "LastUpdateTimestamp"))
1476
+ Contact.add_member(:last_paused_timestamp, Shapes::ShapeRef.new(shape: timestamp, location_name: "LastPausedTimestamp"))
1477
+ Contact.add_member(:last_resumed_timestamp, Shapes::ShapeRef.new(shape: timestamp, location_name: "LastResumedTimestamp"))
1478
+ Contact.add_member(:total_pause_count, Shapes::ShapeRef.new(shape: TotalPauseCount, location_name: "TotalPauseCount"))
1479
+ Contact.add_member(:total_pause_duration_in_seconds, Shapes::ShapeRef.new(shape: TotalPauseDurationInSeconds, location_name: "TotalPauseDurationInSeconds"))
1453
1480
  Contact.add_member(:scheduled_timestamp, Shapes::ShapeRef.new(shape: timestamp, location_name: "ScheduledTimestamp"))
1454
1481
  Contact.add_member(:related_contact_id, Shapes::ShapeRef.new(shape: ContactId, location_name: "RelatedContactId"))
1455
1482
  Contact.add_member(:wisdom_info, Shapes::ShapeRef.new(shape: WisdomInfo, location_name: "WisdomInfo"))
@@ -1541,6 +1568,10 @@ module Aws::Connect
1541
1568
  CreateAgentStatusResponse.add_member(:agent_status_id, Shapes::ShapeRef.new(shape: AgentStatusId, location_name: "AgentStatusId"))
1542
1569
  CreateAgentStatusResponse.struct_class = Types::CreateAgentStatusResponse
1543
1570
 
1571
+ CreateCaseActionDefinition.add_member(:fields, Shapes::ShapeRef.new(shape: FieldValues, required: true, location_name: "Fields"))
1572
+ CreateCaseActionDefinition.add_member(:template_id, Shapes::ShapeRef.new(shape: TemplateId, required: true, location_name: "TemplateId"))
1573
+ CreateCaseActionDefinition.struct_class = Types::CreateCaseActionDefinition
1574
+
1544
1575
  CreateContactFlowModuleRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, required: true, location: "uri", location_name: "InstanceId"))
1545
1576
  CreateContactFlowModuleRequest.add_member(:name, Shapes::ShapeRef.new(shape: ContactFlowModuleName, required: true, location_name: "Name"))
1546
1577
  CreateContactFlowModuleRequest.add_member(:description, Shapes::ShapeRef.new(shape: ContactFlowModuleDescription, location_name: "Description"))
@@ -2221,10 +2252,14 @@ module Aws::Connect
2221
2252
  EmailReference.add_member(:value, Shapes::ShapeRef.new(shape: ReferenceValue, location_name: "Value"))
2222
2253
  EmailReference.struct_class = Types::EmailReference
2223
2254
 
2255
+ EmptyFieldValue.struct_class = Types::EmptyFieldValue
2256
+
2224
2257
  EncryptionConfig.add_member(:encryption_type, Shapes::ShapeRef.new(shape: EncryptionType, required: true, location_name: "EncryptionType"))
2225
2258
  EncryptionConfig.add_member(:key_id, Shapes::ShapeRef.new(shape: KeyId, required: true, location_name: "KeyId"))
2226
2259
  EncryptionConfig.struct_class = Types::EncryptionConfig
2227
2260
 
2261
+ EndAssociatedTasksActionDefinition.struct_class = Types::EndAssociatedTasksActionDefinition
2262
+
2228
2263
  Endpoint.add_member(:type, Shapes::ShapeRef.new(shape: EndpointType, location_name: "Type"))
2229
2264
  Endpoint.add_member(:address, Shapes::ShapeRef.new(shape: EndpointAddress, location_name: "Address"))
2230
2265
  Endpoint.struct_class = Types::Endpoint
@@ -2449,6 +2484,18 @@ module Aws::Connect
2449
2484
 
2450
2485
  FailedRequestList.member = Shapes::ShapeRef.new(shape: FailedRequest)
2451
2486
 
2487
+ FieldValue.add_member(:id, Shapes::ShapeRef.new(shape: FieldValueId, required: true, location_name: "Id"))
2488
+ FieldValue.add_member(:value, Shapes::ShapeRef.new(shape: FieldValueUnion, required: true, location_name: "Value"))
2489
+ FieldValue.struct_class = Types::FieldValue
2490
+
2491
+ FieldValueUnion.add_member(:boolean_value, Shapes::ShapeRef.new(shape: Boolean, location_name: "BooleanValue"))
2492
+ FieldValueUnion.add_member(:double_value, Shapes::ShapeRef.new(shape: Double, location_name: "DoubleValue"))
2493
+ FieldValueUnion.add_member(:empty_value, Shapes::ShapeRef.new(shape: EmptyFieldValue, location_name: "EmptyValue"))
2494
+ FieldValueUnion.add_member(:string_value, Shapes::ShapeRef.new(shape: FieldStringValue, location_name: "StringValue"))
2495
+ FieldValueUnion.struct_class = Types::FieldValueUnion
2496
+
2497
+ FieldValues.member = Shapes::ShapeRef.new(shape: FieldValue)
2498
+
2452
2499
  FilterV2.add_member(:filter_key, Shapes::ShapeRef.new(shape: ResourceArnOrId, location_name: "FilterKey"))
2453
2500
  FilterV2.add_member(:filter_values, Shapes::ShapeRef.new(shape: FilterValueList, location_name: "FilterValues"))
2454
2501
  FilterV2.struct_class = Types::FilterV2
@@ -3404,6 +3451,13 @@ module Aws::Connect
3404
3451
  ParticipantTokenCredentials.add_member(:expiry, Shapes::ShapeRef.new(shape: ISO8601Datetime, location_name: "Expiry"))
3405
3452
  ParticipantTokenCredentials.struct_class = Types::ParticipantTokenCredentials
3406
3453
 
3454
+ PauseContactRequest.add_member(:contact_id, Shapes::ShapeRef.new(shape: ContactId, required: true, location_name: "ContactId"))
3455
+ PauseContactRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, required: true, location_name: "InstanceId"))
3456
+ PauseContactRequest.add_member(:contact_flow_id, Shapes::ShapeRef.new(shape: ContactFlowId, location_name: "ContactFlowId"))
3457
+ PauseContactRequest.struct_class = Types::PauseContactRequest
3458
+
3459
+ PauseContactResponse.struct_class = Types::PauseContactResponse
3460
+
3407
3461
  PermissionsList.member = Shapes::ShapeRef.new(shape: SecurityProfilePermission)
3408
3462
 
3409
3463
  PersistentChat.add_member(:rehydration_type, Shapes::ShapeRef.new(shape: RehydrationType, location_name: "RehydrationType"))
@@ -3754,6 +3808,13 @@ module Aws::Connect
3754
3808
 
3755
3809
  ResumeContactRecordingResponse.struct_class = Types::ResumeContactRecordingResponse
3756
3810
 
3811
+ ResumeContactRequest.add_member(:contact_id, Shapes::ShapeRef.new(shape: ContactId, required: true, location_name: "ContactId"))
3812
+ ResumeContactRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, required: true, location_name: "InstanceId"))
3813
+ ResumeContactRequest.add_member(:contact_flow_id, Shapes::ShapeRef.new(shape: ContactFlowId, location_name: "ContactFlowId"))
3814
+ ResumeContactRequest.struct_class = Types::ResumeContactRequest
3815
+
3816
+ ResumeContactResponse.struct_class = Types::ResumeContactResponse
3817
+
3757
3818
  RoutingProfile.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, location_name: "InstanceId"))
3758
3819
  RoutingProfile.add_member(:name, Shapes::ShapeRef.new(shape: RoutingProfileName, location_name: "Name"))
3759
3820
  RoutingProfile.add_member(:routing_profile_arn, Shapes::ShapeRef.new(shape: ARN, location_name: "RoutingProfileArn"))
@@ -3838,6 +3899,9 @@ module Aws::Connect
3838
3899
  RuleAction.add_member(:event_bridge_action, Shapes::ShapeRef.new(shape: EventBridgeActionDefinition, location_name: "EventBridgeAction"))
3839
3900
  RuleAction.add_member(:assign_contact_category_action, Shapes::ShapeRef.new(shape: AssignContactCategoryActionDefinition, location_name: "AssignContactCategoryAction"))
3840
3901
  RuleAction.add_member(:send_notification_action, Shapes::ShapeRef.new(shape: SendNotificationActionDefinition, location_name: "SendNotificationAction"))
3902
+ RuleAction.add_member(:create_case_action, Shapes::ShapeRef.new(shape: CreateCaseActionDefinition, location_name: "CreateCaseAction"))
3903
+ RuleAction.add_member(:update_case_action, Shapes::ShapeRef.new(shape: UpdateCaseActionDefinition, location_name: "UpdateCaseAction"))
3904
+ RuleAction.add_member(:end_associated_tasks_action, Shapes::ShapeRef.new(shape: EndAssociatedTasksActionDefinition, location_name: "EndAssociatedTasksAction"))
3841
3905
  RuleAction.struct_class = Types::RuleAction
3842
3906
 
3843
3907
  RuleActions.member = Shapes::ShapeRef.new(shape: RuleAction)
@@ -4122,6 +4186,10 @@ module Aws::Connect
4122
4186
  StartContactStreamingResponse.add_member(:streaming_id, Shapes::ShapeRef.new(shape: StreamingId, required: true, location_name: "StreamingId"))
4123
4187
  StartContactStreamingResponse.struct_class = Types::StartContactStreamingResponse
4124
4188
 
4189
+ StartOutboundVoiceContactRequest.add_member(:name, Shapes::ShapeRef.new(shape: Name, location_name: "Name"))
4190
+ StartOutboundVoiceContactRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
4191
+ StartOutboundVoiceContactRequest.add_member(:references, Shapes::ShapeRef.new(shape: ContactReferences, location_name: "References"))
4192
+ StartOutboundVoiceContactRequest.add_member(:related_contact_id, Shapes::ShapeRef.new(shape: ContactId, location_name: "RelatedContactId"))
4125
4193
  StartOutboundVoiceContactRequest.add_member(:destination_phone_number, Shapes::ShapeRef.new(shape: PhoneNumber, required: true, location_name: "DestinationPhoneNumber"))
4126
4194
  StartOutboundVoiceContactRequest.add_member(:contact_flow_id, Shapes::ShapeRef.new(shape: ContactFlowId, required: true, location_name: "ContactFlowId"))
4127
4195
  StartOutboundVoiceContactRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, required: true, location_name: "InstanceId"))
@@ -4382,6 +4450,9 @@ module Aws::Connect
4382
4450
  UpdateAgentStatusRequest.add_member(:reset_order_number, Shapes::ShapeRef.new(shape: Boolean, location_name: "ResetOrderNumber"))
4383
4451
  UpdateAgentStatusRequest.struct_class = Types::UpdateAgentStatusRequest
4384
4452
 
4453
+ UpdateCaseActionDefinition.add_member(:fields, Shapes::ShapeRef.new(shape: FieldValues, required: true, location_name: "Fields"))
4454
+ UpdateCaseActionDefinition.struct_class = Types::UpdateCaseActionDefinition
4455
+
4385
4456
  UpdateContactAttributesRequest.add_member(:initial_contact_id, Shapes::ShapeRef.new(shape: ContactId, required: true, location_name: "InitialContactId"))
4386
4457
  UpdateContactAttributesRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, required: true, location_name: "InstanceId"))
4387
4458
  UpdateContactAttributesRequest.add_member(:attributes, Shapes::ShapeRef.new(shape: Attributes, required: true, location_name: "Attributes"))
@@ -7232,6 +7303,22 @@ module Aws::Connect
7232
7303
  o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
7233
7304
  end)
7234
7305
 
7306
+ api.add_operation(:pause_contact, Seahorse::Model::Operation.new.tap do |o|
7307
+ o.name = "PauseContact"
7308
+ o.http_method = "POST"
7309
+ o.http_request_uri = "/contact/pause"
7310
+ o.input = Shapes::ShapeRef.new(shape: PauseContactRequest)
7311
+ o.output = Shapes::ShapeRef.new(shape: PauseContactResponse)
7312
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
7313
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
7314
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
7315
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
7316
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
7317
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
7318
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
7319
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
7320
+ end)
7321
+
7235
7322
  api.add_operation(:put_user_status, Seahorse::Model::Operation.new.tap do |o|
7236
7323
  o.name = "PutUserStatus"
7237
7324
  o.http_method = "PUT"
@@ -7277,6 +7364,21 @@ module Aws::Connect
7277
7364
  o.errors << Shapes::ShapeRef.new(shape: ResourceConflictException)
7278
7365
  end)
7279
7366
 
7367
+ api.add_operation(:resume_contact, Seahorse::Model::Operation.new.tap do |o|
7368
+ o.name = "ResumeContact"
7369
+ o.http_method = "POST"
7370
+ o.http_request_uri = "/contact/resume"
7371
+ o.input = Shapes::ShapeRef.new(shape: ResumeContactRequest)
7372
+ o.output = Shapes::ShapeRef.new(shape: ResumeContactResponse)
7373
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
7374
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
7375
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
7376
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
7377
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
7378
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
7379
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
7380
+ end)
7381
+
7280
7382
  api.add_operation(:resume_contact_recording, Seahorse::Model::Operation.new.tap do |o|
7281
7383
  o.name = "ResumeContactRecording"
7282
7384
  o.http_method = "POST"
@@ -2168,6 +2168,20 @@ module Aws::Connect
2168
2168
  end
2169
2169
  end
2170
2170
 
2171
+ class PauseContact
2172
+ def self.build(context)
2173
+ unless context.config.regional_endpoint
2174
+ endpoint = context.config.endpoint.to_s
2175
+ end
2176
+ Aws::Connect::EndpointParameters.new(
2177
+ region: context.config.region,
2178
+ use_dual_stack: context.config.use_dualstack_endpoint,
2179
+ use_fips: context.config.use_fips_endpoint,
2180
+ endpoint: endpoint,
2181
+ )
2182
+ end
2183
+ end
2184
+
2171
2185
  class PutUserStatus
2172
2186
  def self.build(context)
2173
2187
  unless context.config.regional_endpoint
@@ -2210,6 +2224,20 @@ module Aws::Connect
2210
2224
  end
2211
2225
  end
2212
2226
 
2227
+ class ResumeContact
2228
+ def self.build(context)
2229
+ unless context.config.regional_endpoint
2230
+ endpoint = context.config.endpoint.to_s
2231
+ end
2232
+ Aws::Connect::EndpointParameters.new(
2233
+ region: context.config.region,
2234
+ use_dual_stack: context.config.use_dualstack_endpoint,
2235
+ use_fips: context.config.use_fips_endpoint,
2236
+ endpoint: endpoint,
2237
+ )
2238
+ end
2239
+ end
2240
+
2213
2241
  class ResumeContactRecording
2214
2242
  def self.build(context)
2215
2243
  unless context.config.regional_endpoint
@@ -28,6 +28,7 @@ module Aws::Connect
28
28
  #
29
29
  # ## Error Classes
30
30
  # * {AccessDeniedException}
31
+ # * {ConflictException}
31
32
  # * {ContactFlowNotPublishedException}
32
33
  # * {ContactNotFoundException}
33
34
  # * {DestinationNotAllowedException}
@@ -73,6 +74,21 @@ module Aws::Connect
73
74
  end
74
75
  end
75
76
 
77
+ class ConflictException < ServiceError
78
+
79
+ # @param [Seahorse::Client::RequestContext] context
80
+ # @param [String] message
81
+ # @param [Aws::Connect::Types::ConflictException] data
82
+ def initialize(context, message, data = Aws::EmptyStructure.new)
83
+ super(context, message, data)
84
+ end
85
+
86
+ # @return [String]
87
+ def message
88
+ @message || @data[:message]
89
+ end
90
+ end
91
+
76
92
  class ContactFlowNotPublishedException < ServiceError
77
93
 
78
94
  # @param [Seahorse::Client::RequestContext] context
@@ -365,12 +365,16 @@ module Aws::Connect
365
365
  Aws::Connect::Endpoints::ListViews.build(context)
366
366
  when :monitor_contact
367
367
  Aws::Connect::Endpoints::MonitorContact.build(context)
368
+ when :pause_contact
369
+ Aws::Connect::Endpoints::PauseContact.build(context)
368
370
  when :put_user_status
369
371
  Aws::Connect::Endpoints::PutUserStatus.build(context)
370
372
  when :release_phone_number
371
373
  Aws::Connect::Endpoints::ReleasePhoneNumber.build(context)
372
374
  when :replicate_instance
373
375
  Aws::Connect::Endpoints::ReplicateInstance.build(context)
376
+ when :resume_contact
377
+ Aws::Connect::Endpoints::ResumeContact.build(context)
374
378
  when :resume_contact_recording
375
379
  Aws::Connect::Endpoints::ResumeContactRecording.build(context)
376
380
  when :search_available_phone_numbers
@@ -165,11 +165,16 @@ module Aws::Connect
165
165
  # The timestamp when the contact was connected to the agent.
166
166
  # @return [Time]
167
167
  #
168
+ # @!attribute [rw] agent_pause_duration_in_seconds
169
+ # Agent pause duration for a contact in seconds.
170
+ # @return [Integer]
171
+ #
168
172
  # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/AgentInfo AWS API Documentation
169
173
  #
170
174
  class AgentInfo < Struct.new(
171
175
  :id,
172
- :connected_to_agent_timestamp)
176
+ :connected_to_agent_timestamp,
177
+ :agent_pause_duration_in_seconds)
173
178
  SENSITIVE = []
174
179
  include Aws::Structure
175
180
  end
@@ -1447,6 +1452,20 @@ module Aws::Connect
1447
1452
  include Aws::Structure
1448
1453
  end
1449
1454
 
1455
+ # Operation cannot be performed at this time as there is a conflict with
1456
+ # another operation or contact state.
1457
+ #
1458
+ # @!attribute [rw] message
1459
+ # @return [String]
1460
+ #
1461
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ConflictException AWS API Documentation
1462
+ #
1463
+ class ConflictException < Struct.new(
1464
+ :message)
1465
+ SENSITIVE = []
1466
+ include Aws::Structure
1467
+ end
1468
+
1450
1469
  # Information required to join the call.
1451
1470
  #
1452
1471
  # @!attribute [rw] attendee
@@ -1531,6 +1550,22 @@ module Aws::Connect
1531
1550
  # The timestamp when contact was last updated.
1532
1551
  # @return [Time]
1533
1552
  #
1553
+ # @!attribute [rw] last_paused_timestamp
1554
+ # The timestamp when the contact was last paused.
1555
+ # @return [Time]
1556
+ #
1557
+ # @!attribute [rw] last_resumed_timestamp
1558
+ # The timestamp when the contact was last resumed.
1559
+ # @return [Time]
1560
+ #
1561
+ # @!attribute [rw] total_pause_count
1562
+ # Total pause count for a contact.
1563
+ # @return [Integer]
1564
+ #
1565
+ # @!attribute [rw] total_pause_duration_in_seconds
1566
+ # Total pause duration for a contact in seconds.
1567
+ # @return [Integer]
1568
+ #
1534
1569
  # @!attribute [rw] scheduled_timestamp
1535
1570
  # The timestamp, in Unix epoch time format, at which to start running
1536
1571
  # the inbound flow.
@@ -1569,6 +1604,10 @@ module Aws::Connect
1569
1604
  :initiation_timestamp,
1570
1605
  :disconnect_timestamp,
1571
1606
  :last_update_timestamp,
1607
+ :last_paused_timestamp,
1608
+ :last_resumed_timestamp,
1609
+ :total_pause_count,
1610
+ :total_pause_duration_in_seconds,
1572
1611
  :scheduled_timestamp,
1573
1612
  :related_contact_id,
1574
1613
  :wisdom_info,
@@ -1953,6 +1992,25 @@ module Aws::Connect
1953
1992
  include Aws::Structure
1954
1993
  end
1955
1994
 
1995
+ # The `CreateCase` action definition.
1996
+ #
1997
+ # @!attribute [rw] fields
1998
+ # An array of objects with `Field ID` and `Value` data.
1999
+ # @return [Array<Types::FieldValue>]
2000
+ #
2001
+ # @!attribute [rw] template_id
2002
+ # A unique identifier of a template.
2003
+ # @return [String]
2004
+ #
2005
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/CreateCaseActionDefinition AWS API Documentation
2006
+ #
2007
+ class CreateCaseActionDefinition < Struct.new(
2008
+ :fields,
2009
+ :template_id)
2010
+ SENSITIVE = []
2011
+ include Aws::Structure
2012
+ end
2013
+
1956
2014
  # @!attribute [rw] instance_id
1957
2015
  # The identifier of the Amazon Connect instance. You can [find the
1958
2016
  # instance ID][1] in the Amazon Resource Name (ARN) of the instance.
@@ -5517,6 +5575,14 @@ module Aws::Connect
5517
5575
  include Aws::Structure
5518
5576
  end
5519
5577
 
5578
+ # An empty value.
5579
+ #
5580
+ # @api private
5581
+ #
5582
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/EmptyFieldValue AWS API Documentation
5583
+ #
5584
+ class EmptyFieldValue < Aws::EmptyStructure; end
5585
+
5520
5586
  # The encryption configuration.
5521
5587
  #
5522
5588
  # @!attribute [rw] encryption_type
@@ -5548,6 +5614,14 @@ module Aws::Connect
5548
5614
  include Aws::Structure
5549
5615
  end
5550
5616
 
5617
+ # End associated tasks related to a case.
5618
+ #
5619
+ # @api private
5620
+ #
5621
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/EndAssociatedTasksActionDefinition AWS API Documentation
5622
+ #
5623
+ class EndAssociatedTasksActionDefinition < Aws::EmptyStructure; end
5624
+
5551
5625
  # Information about the endpoint.
5552
5626
  #
5553
5627
  # @!attribute [rw] type
@@ -6489,6 +6563,54 @@ module Aws::Connect
6489
6563
  include Aws::Structure
6490
6564
  end
6491
6565
 
6566
+ # Object for case field values.
6567
+ #
6568
+ # @!attribute [rw] id
6569
+ # Unique identifier of a field.
6570
+ # @return [String]
6571
+ #
6572
+ # @!attribute [rw] value
6573
+ # Union of potential field value types.
6574
+ # @return [Types::FieldValueUnion]
6575
+ #
6576
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/FieldValue AWS API Documentation
6577
+ #
6578
+ class FieldValue < Struct.new(
6579
+ :id,
6580
+ :value)
6581
+ SENSITIVE = []
6582
+ include Aws::Structure
6583
+ end
6584
+
6585
+ # Object to store union of Field values.
6586
+ #
6587
+ # @!attribute [rw] boolean_value
6588
+ # A Boolean number value type.
6589
+ # @return [Boolean]
6590
+ #
6591
+ # @!attribute [rw] double_value
6592
+ # a Double number value type.
6593
+ # @return [Float]
6594
+ #
6595
+ # @!attribute [rw] empty_value
6596
+ # An empty value.
6597
+ # @return [Types::EmptyFieldValue]
6598
+ #
6599
+ # @!attribute [rw] string_value
6600
+ # String value type.
6601
+ # @return [String]
6602
+ #
6603
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/FieldValueUnion AWS API Documentation
6604
+ #
6605
+ class FieldValueUnion < Struct.new(
6606
+ :boolean_value,
6607
+ :double_value,
6608
+ :empty_value,
6609
+ :string_value)
6610
+ SENSITIVE = []
6611
+ include Aws::Structure
6612
+ end
6613
+
6492
6614
  # Contains the filter to apply when retrieving metrics with the
6493
6615
  # [GetMetricDataV2][1] API.
6494
6616
  #
@@ -7488,6 +7610,13 @@ module Aws::Connect
7488
7610
  # Agent, Agent Hierarchy, Feature,
7489
7611
  # contact/segmentAttributes/connect:Subtype
7490
7612
  #
7613
+ # AVG\_ACTIVE\_TIME
7614
+ #
7615
+ # : Unit: Seconds
7616
+ #
7617
+ # Valid groupings and filters: Queue, Channel, Routing Profile,
7618
+ # Agent, Agent Hierarchy
7619
+ #
7491
7620
  # AVG\_AFTER\_CONTACT\_WORK\_TIME
7492
7621
  #
7493
7622
  # : Unit: Seconds
@@ -7518,6 +7647,13 @@ module Aws::Connect
7518
7647
  #
7519
7648
  # </note>
7520
7649
  #
7650
+ # AVG\_AGENT\_PAUSE\_TIME
7651
+ #
7652
+ # : Unit: Seconds
7653
+ #
7654
+ # Valid groupings and filters: Queue, Channel, Routing Profile,
7655
+ # Agent, Agent Hierarchy
7656
+ #
7521
7657
  # AVG\_CONTACT\_DURATION
7522
7658
  #
7523
7659
  # : Unit: Seconds
@@ -12385,6 +12521,33 @@ module Aws::Connect
12385
12521
  include Aws::Structure
12386
12522
  end
12387
12523
 
12524
+ # @!attribute [rw] contact_id
12525
+ # The identifier of the contact.
12526
+ # @return [String]
12527
+ #
12528
+ # @!attribute [rw] instance_id
12529
+ # The identifier of the Amazon Connect instance. You can find the
12530
+ # `instanceId` in the ARN of the instance.
12531
+ # @return [String]
12532
+ #
12533
+ # @!attribute [rw] contact_flow_id
12534
+ # The identifier of the flow.
12535
+ # @return [String]
12536
+ #
12537
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/PauseContactRequest AWS API Documentation
12538
+ #
12539
+ class PauseContactRequest < Struct.new(
12540
+ :contact_id,
12541
+ :instance_id,
12542
+ :contact_flow_id)
12543
+ SENSITIVE = []
12544
+ include Aws::Structure
12545
+ end
12546
+
12547
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/PauseContactResponse AWS API Documentation
12548
+ #
12549
+ class PauseContactResponse < Aws::EmptyStructure; end
12550
+
12388
12551
  # Enable persistent chats. For more information about enabling
12389
12552
  # persistent chat, and for example use cases and how to configure for
12390
12553
  # them, see [Enable persistent chat][1].
@@ -13879,6 +14042,33 @@ module Aws::Connect
13879
14042
  #
13880
14043
  class ResumeContactRecordingResponse < Aws::EmptyStructure; end
13881
14044
 
14045
+ # @!attribute [rw] contact_id
14046
+ # The identifier of the contact.
14047
+ # @return [String]
14048
+ #
14049
+ # @!attribute [rw] instance_id
14050
+ # The identifier of the Amazon Connect instance. You can find the
14051
+ # `instanceId` in the ARN of the instance.
14052
+ # @return [String]
14053
+ #
14054
+ # @!attribute [rw] contact_flow_id
14055
+ # The identifier of the flow.
14056
+ # @return [String]
14057
+ #
14058
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ResumeContactRequest AWS API Documentation
14059
+ #
14060
+ class ResumeContactRequest < Struct.new(
14061
+ :contact_id,
14062
+ :instance_id,
14063
+ :contact_flow_id)
14064
+ SENSITIVE = []
14065
+ include Aws::Structure
14066
+ end
14067
+
14068
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ResumeContactResponse AWS API Documentation
14069
+ #
14070
+ class ResumeContactResponse < Aws::EmptyStructure; end
14071
+
13882
14072
  # Contains information about a routing profile.
13883
14073
  #
13884
14074
  # @!attribute [rw] instance_id
@@ -14302,6 +14492,26 @@ module Aws::Connect
14302
14492
  # `OnMetricDataUpdate`
14303
14493
  # @return [Types::SendNotificationActionDefinition]
14304
14494
  #
14495
+ # @!attribute [rw] create_case_action
14496
+ # Information about the create case action.
14497
+ #
14498
+ # Supported only for `TriggerEventSource` values:
14499
+ # `OnPostCallAnalysisAvailable` \| `OnPostChatAnalysisAvailable`.
14500
+ # @return [Types::CreateCaseActionDefinition]
14501
+ #
14502
+ # @!attribute [rw] update_case_action
14503
+ # Information about the update case action.
14504
+ #
14505
+ # Supported only for `TriggerEventSource` values: `OnCaseCreate` \|
14506
+ # `OnCaseUpdate`.
14507
+ # @return [Types::UpdateCaseActionDefinition]
14508
+ #
14509
+ # @!attribute [rw] end_associated_tasks_action
14510
+ # Information about the end associated tasks action.
14511
+ #
14512
+ # Supported only for `TriggerEventSource` values: `OnCaseUpdate`.
14513
+ # @return [Types::EndAssociatedTasksActionDefinition]
14514
+ #
14305
14515
  # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/RuleAction AWS API Documentation
14306
14516
  #
14307
14517
  class RuleAction < Struct.new(
@@ -14309,7 +14519,10 @@ module Aws::Connect
14309
14519
  :task_action,
14310
14520
  :event_bridge_action,
14311
14521
  :assign_contact_category_action,
14312
- :send_notification_action)
14522
+ :send_notification_action,
14523
+ :create_case_action,
14524
+ :update_case_action,
14525
+ :end_associated_tasks_action)
14313
14526
  SENSITIVE = []
14314
14527
  include Aws::Structure
14315
14528
  end
@@ -15827,6 +16040,33 @@ module Aws::Connect
15827
16040
  include Aws::Structure
15828
16041
  end
15829
16042
 
16043
+ # @!attribute [rw] name
16044
+ # The name of a voice contact that is shown to an agent in the Contact
16045
+ # Control Panel (CCP).
16046
+ # @return [String]
16047
+ #
16048
+ # @!attribute [rw] description
16049
+ # A description of the voice contact that is shown to an agent in the
16050
+ # Contact Control Panel (CCP).
16051
+ # @return [String]
16052
+ #
16053
+ # @!attribute [rw] references
16054
+ # A formatted URL that is shown to an agent in the Contact Control
16055
+ # Panel (CCP). Contacts can have the following reference types at the
16056
+ # time of creation: `URL` \| `NUMBER` \| `STRING` \| `DATE` \|
16057
+ # `EMAIL`. `ATTACHMENT` is not a supported reference type during voice
16058
+ # contact creation.
16059
+ # @return [Hash<String,Types::Reference>]
16060
+ #
16061
+ # @!attribute [rw] related_contact_id
16062
+ # The `contactId` that is related to this contact. Linking voice,
16063
+ # task, or chat by using `RelatedContactID` copies over contact
16064
+ # attributes from the related contact to the new contact. All updates
16065
+ # to user-defined attributes in the new contact are limited to the
16066
+ # individual contact ID. There are no limits to the number of contacts
16067
+ # that can be linked by using `RelatedContactId`.
16068
+ # @return [String]
16069
+ #
15830
16070
  # @!attribute [rw] destination_phone_number
15831
16071
  # The phone number of the customer, in E.164 format.
15832
16072
  # @return [String]
@@ -15909,6 +16149,10 @@ module Aws::Connect
15909
16149
  # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/StartOutboundVoiceContactRequest AWS API Documentation
15910
16150
  #
15911
16151
  class StartOutboundVoiceContactRequest < Struct.new(
16152
+ :name,
16153
+ :description,
16154
+ :references,
16155
+ :related_contact_id,
15912
16156
  :destination_phone_number,
15913
16157
  :contact_flow_id,
15914
16158
  :instance_id,
@@ -17190,6 +17434,20 @@ module Aws::Connect
17190
17434
  include Aws::Structure
17191
17435
  end
17192
17436
 
17437
+ # The `UpdateCase` action definition.
17438
+ #
17439
+ # @!attribute [rw] fields
17440
+ # An array of objects with `Field ID` and Value data.
17441
+ # @return [Array<Types::FieldValue>]
17442
+ #
17443
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/UpdateCaseActionDefinition AWS API Documentation
17444
+ #
17445
+ class UpdateCaseActionDefinition < Struct.new(
17446
+ :fields)
17447
+ SENSITIVE = []
17448
+ include Aws::Structure
17449
+ end
17450
+
17193
17451
  # @!attribute [rw] initial_contact_id
17194
17452
  # The identifier of the contact. This is the identifier of the contact
17195
17453
  # associated with the first interaction with the contact center.
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-connect/customizations'
52
52
  # @!group service
53
53
  module Aws::Connect
54
54
 
55
- GEM_VERSION = '1.143.0'
55
+ GEM_VERSION = '1.144.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-connect
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.143.0
4
+ version: 1.144.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-14 00:00:00.000000000 Z
11
+ date: 2023-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core