aws-sdk-connect 1.21.0 → 1.26.1

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
- SHA1:
3
- metadata.gz: 3ebbfaa9cc23715a6b7abb27e31a8a57b2a8c70d
4
- data.tar.gz: e65af8ef50c9c1a7b97c7eab3604e1c38b868c7c
2
+ SHA256:
3
+ metadata.gz: 6ca8195957bce7232500efe223fc12c0848743ac505937e22c94cca10cc47adb
4
+ data.tar.gz: 2b899cb0c09626ca526752275aada929f45f116ff0e3a4a4417c02045e3aee39
5
5
  SHA512:
6
- metadata.gz: 4c742af62328dbb8af3b31ef62ae68235696e282388c90f898143ecc6c312ca392d61395c82abc91fa79a2ee022d670a4b9fa14ec2450d67b08aefe3efc93941
7
- data.tar.gz: 98a61b396baab2fabc4133985406cf065709e71cde0f3395aaa694edb2a80acf24894a7d8216ceb3c8547b8dc00512be4a79ecd968f701c0e87e6889cf1b298b
6
+ metadata.gz: 6f4a1b55100a7e5b14d690bf1b4ce9e4aa54b3d60a47982e5db324840dc9f33d678c57ac86ef812a1f545e206bd0837c85f1e498c2ae645a3b35d426353ef316
7
+ data.tar.gz: 6bdaee8452a36ef29ec9a03ed6c30151e3c751c76ea0e12212ef0474d346c363edf1f59ed1c8644078d6440d1a740b48a0eb3712ad755bfadd9e4e51e8135216
@@ -24,17 +24,20 @@ require_relative 'aws-sdk-connect/customizations'
24
24
  # methods each accept a hash of request parameters and return a response
25
25
  # structure.
26
26
  #
27
+ # connect = Aws::Connect::Client.new
28
+ # resp = connect.create_user(params)
29
+ #
27
30
  # See {Client} for more information.
28
31
  #
29
32
  # # Errors
30
33
  #
31
- # Errors returned from Amazon Connect Service all
32
- # extend {Errors::ServiceError}.
34
+ # Errors returned from Amazon Connect Service are defined in the
35
+ # {Errors} module and all extend {Errors::ServiceError}.
33
36
  #
34
37
  # begin
35
38
  # # do stuff
36
39
  # rescue Aws::Connect::Errors::ServiceError
37
- # # rescues all service API errors
40
+ # # rescues all Amazon Connect Service API errors
38
41
  # end
39
42
  #
40
43
  # See {Errors} for more information.
@@ -42,6 +45,6 @@ require_relative 'aws-sdk-connect/customizations'
42
45
  # @service
43
46
  module Aws::Connect
44
47
 
45
- GEM_VERSION = '1.21.0'
48
+ GEM_VERSION = '1.26.1'
46
49
 
47
50
  end
@@ -24,12 +24,25 @@ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
24
24
  require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
25
25
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
26
26
  require 'aws-sdk-core/plugins/transfer_encoding.rb'
27
+ require 'aws-sdk-core/plugins/http_checksum.rb'
27
28
  require 'aws-sdk-core/plugins/signature_v4.rb'
28
29
  require 'aws-sdk-core/plugins/protocols/rest_json.rb'
29
30
 
30
31
  Aws::Plugins::GlobalConfiguration.add_identifier(:connect)
31
32
 
32
33
  module Aws::Connect
34
+ # An API client for Connect. To construct a client, you need to configure a `:region` and `:credentials`.
35
+ #
36
+ # client = Aws::Connect::Client.new(
37
+ # region: region_name,
38
+ # credentials: credentials,
39
+ # # ...
40
+ # )
41
+ #
42
+ # For details on configuring region and credentials see
43
+ # the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
44
+ #
45
+ # See {#initialize} for a full list of supported configuration options.
33
46
  class Client < Seahorse::Client::Base
34
47
 
35
48
  include Aws::ClientStubs
@@ -57,6 +70,7 @@ module Aws::Connect
57
70
  add_plugin(Aws::Plugins::ClientMetricsPlugin)
58
71
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
59
72
  add_plugin(Aws::Plugins::TransferEncoding)
73
+ add_plugin(Aws::Plugins::HttpChecksum)
60
74
  add_plugin(Aws::Plugins::SignatureV4)
61
75
  add_plugin(Aws::Plugins::Protocols::RestJson)
62
76
 
@@ -93,7 +107,7 @@ module Aws::Connect
93
107
  # @option options [required, String] :region
94
108
  # The AWS region to connect to. The configured `:region` is
95
109
  # used to determine the service `:endpoint`. When not passed,
96
- # a default `:region` is search for in the following locations:
110
+ # a default `:region` is searched for in the following locations:
97
111
  #
98
112
  # * `Aws.config[:region]`
99
113
  # * `ENV['AWS_REGION']`
@@ -108,6 +122,12 @@ module Aws::Connect
108
122
  # When set to `true`, a thread polling for endpoints will be running in
109
123
  # the background every 60 secs (default). Defaults to `false`.
110
124
  #
125
+ # @option options [Boolean] :adaptive_retry_wait_to_fill (true)
126
+ # Used only in `adaptive` retry mode. When true, the request will sleep
127
+ # until there is sufficent client side capacity to retry the request.
128
+ # When false, the request will raise a `RetryCapacityNotAvailableError` and will
129
+ # not retry instead of sleeping.
130
+ #
111
131
  # @option options [Boolean] :client_side_monitoring (false)
112
132
  # When `true`, client-side metrics will be collected for all API requests from
113
133
  # this client.
@@ -132,6 +152,10 @@ module Aws::Connect
132
152
  # When `true`, an attempt is made to coerce request parameters into
133
153
  # the required types.
134
154
  #
155
+ # @option options [Boolean] :correct_clock_skew (true)
156
+ # Used only in `standard` and adaptive retry modes. Specifies whether to apply
157
+ # a clock skew correction and retry requests with skewed client clocks.
158
+ #
135
159
  # @option options [Boolean] :disable_host_prefix_injection (false)
136
160
  # Set to true to disable SDK automatically adding host prefix
137
161
  # to default service endpoint when available.
@@ -139,7 +163,7 @@ module Aws::Connect
139
163
  # @option options [String] :endpoint
140
164
  # The client endpoint is normally constructed from the `:region`
141
165
  # option. You should only configure an `:endpoint` when connecting
142
- # to test endpoints. This should be avalid HTTP(S) URI.
166
+ # to test or custom endpoints. This should be a valid HTTP(S) URI.
143
167
  #
144
168
  # @option options [Integer] :endpoint_cache_max_entries (1000)
145
169
  # Used for the maximum size limit of the LRU cache storing endpoints data
@@ -154,7 +178,7 @@ module Aws::Connect
154
178
  # requests fetching endpoints information. Defaults to 60 sec.
155
179
  #
156
180
  # @option options [Boolean] :endpoint_discovery (false)
157
- # When set to `true`, endpoint discovery will be enabled for operations when available. Defaults to `false`.
181
+ # When set to `true`, endpoint discovery will be enabled for operations when available.
158
182
  #
159
183
  # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
160
184
  # The log formatter.
@@ -166,15 +190,29 @@ module Aws::Connect
166
190
  # The Logger instance to send log messages to. If this option
167
191
  # is not set, logging will be disabled.
168
192
  #
193
+ # @option options [Integer] :max_attempts (3)
194
+ # An integer representing the maximum number attempts that will be made for
195
+ # a single request, including the initial attempt. For example,
196
+ # setting this value to 5 will result in a request being retried up to
197
+ # 4 times. Used in `standard` and `adaptive` retry modes.
198
+ #
169
199
  # @option options [String] :profile ("default")
170
200
  # Used when loading credentials from the shared credentials file
171
201
  # at HOME/.aws/credentials. When not specified, 'default' is used.
172
202
  #
203
+ # @option options [Proc] :retry_backoff
204
+ # A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
205
+ # This option is only used in the `legacy` retry mode.
206
+ #
173
207
  # @option options [Float] :retry_base_delay (0.3)
174
- # The base delay in seconds used by the default backoff function.
208
+ # The base delay in seconds used by the default backoff function. This option
209
+ # is only used in the `legacy` retry mode.
175
210
  #
176
211
  # @option options [Symbol] :retry_jitter (:none)
177
- # A delay randomiser function used by the default backoff function. Some predefined functions can be referenced by name - :none, :equal, :full, otherwise a Proc that takes and returns a number.
212
+ # A delay randomiser function used by the default backoff function.
213
+ # Some predefined functions can be referenced by name - :none, :equal, :full,
214
+ # otherwise a Proc that takes and returns a number. This option is only used
215
+ # in the `legacy` retry mode.
178
216
  #
179
217
  # @see https://www.awsarchitectureblog.com/2015/03/backoff.html
180
218
  #
@@ -182,11 +220,30 @@ module Aws::Connect
182
220
  # The maximum number of times to retry failed requests. Only
183
221
  # ~ 500 level server errors and certain ~ 400 level client errors
184
222
  # are retried. Generally, these are throttling errors, data
185
- # checksum errors, networking errors, timeout errors and auth
186
- # errors from expired credentials.
223
+ # checksum errors, networking errors, timeout errors, auth errors,
224
+ # endpoint discovery, and errors from expired credentials.
225
+ # This option is only used in the `legacy` retry mode.
187
226
  #
188
227
  # @option options [Integer] :retry_max_delay (0)
189
- # The maximum number of seconds to delay between retries (0 for no limit) used by the default backoff function.
228
+ # The maximum number of seconds to delay between retries (0 for no limit)
229
+ # used by the default backoff function. This option is only used in the
230
+ # `legacy` retry mode.
231
+ #
232
+ # @option options [String] :retry_mode ("legacy")
233
+ # Specifies which retry algorithm to use. Values are:
234
+ #
235
+ # * `legacy` - The pre-existing retry behavior. This is default value if
236
+ # no retry mode is provided.
237
+ #
238
+ # * `standard` - A standardized set of retry rules across the AWS SDKs.
239
+ # This includes support for retry quotas, which limit the number of
240
+ # unsuccessful retries a client can make.
241
+ #
242
+ # * `adaptive` - An experimental retry mode that includes all the
243
+ # functionality of `standard` mode along with automatic client side
244
+ # throttling. This is a provisional mode that may change behavior
245
+ # in the future.
246
+ #
190
247
  #
191
248
  # @option options [String] :secret_access_key
192
249
  #
@@ -209,16 +266,15 @@ module Aws::Connect
209
266
  # requests through. Formatted like 'http://proxy.com:123'.
210
267
  #
211
268
  # @option options [Float] :http_open_timeout (15) The number of
212
- # seconds to wait when opening a HTTP session before rasing a
269
+ # seconds to wait when opening a HTTP session before raising a
213
270
  # `Timeout::Error`.
214
271
  #
215
272
  # @option options [Integer] :http_read_timeout (60) The default
216
273
  # number of seconds to wait for response data. This value can
217
- # safely be set
218
- # per-request on the session yeidled by {#session_for}.
274
+ # safely be set per-request on the session.
219
275
  #
220
276
  # @option options [Float] :http_idle_timeout (5) The number of
221
- # seconds a connection is allowed to sit idble before it is
277
+ # seconds a connection is allowed to sit idle before it is
222
278
  # considered stale. Stale connections are closed and removed
223
279
  # from the pool before making a request.
224
280
  #
@@ -227,7 +283,7 @@ module Aws::Connect
227
283
  # request body. This option has no effect unless the request has
228
284
  # "Expect" header set to "100-continue". Defaults to `nil` which
229
285
  # disables this behaviour. This value can safely be set per
230
- # request on the session yeidled by {#session_for}.
286
+ # request on the session.
231
287
  #
232
288
  # @option options [Boolean] :http_wire_trace (false) When `true`,
233
289
  # HTTP debug output will be sent to the `:logger`.
@@ -602,6 +658,10 @@ module Aws::Connect
602
658
  #
603
659
  # : Unit: COUNT
604
660
  #
661
+ # AGENTS\_ON\_CONTACT
662
+ #
663
+ # : Unit: COUNT
664
+ #
605
665
  # AGENTS\_ONLINE
606
666
  #
607
667
  # : Unit: COUNT
@@ -622,6 +682,14 @@ module Aws::Connect
622
682
  #
623
683
  # : Unit: SECONDS
624
684
  #
685
+ # SLOTS\_ACTIVE
686
+ #
687
+ # : Unit: COUNT
688
+ #
689
+ # SLOTS\_AVAILABLE
690
+ #
691
+ # : Unit: COUNT
692
+ #
625
693
  # @option params [String] :next_token
626
694
  # The token for the next set of results. Use the value returned in the
627
695
  # previous response in the next request to retrieve the next set of
@@ -640,18 +708,20 @@ module Aws::Connect
640
708
  # * {Types::GetCurrentMetricDataResponse#metric_results #metric_results} => Array&lt;Types::CurrentMetricResult&gt;
641
709
  # * {Types::GetCurrentMetricDataResponse#data_snapshot_time #data_snapshot_time} => Time
642
710
  #
711
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
712
+ #
643
713
  # @example Request syntax with placeholder values
644
714
  #
645
715
  # resp = client.get_current_metric_data({
646
716
  # instance_id: "InstanceId", # required
647
717
  # filters: { # required
648
718
  # queues: ["QueueId"],
649
- # channels: ["VOICE"], # accepts VOICE
719
+ # channels: ["VOICE"], # accepts VOICE, CHAT
650
720
  # },
651
721
  # groupings: ["QUEUE"], # accepts QUEUE, CHANNEL
652
722
  # current_metrics: [ # required
653
723
  # {
654
- # name: "AGENTS_ONLINE", # accepts AGENTS_ONLINE, AGENTS_AVAILABLE, AGENTS_ON_CALL, AGENTS_NON_PRODUCTIVE, AGENTS_AFTER_CONTACT_WORK, AGENTS_ERROR, AGENTS_STAFFED, CONTACTS_IN_QUEUE, OLDEST_CONTACT_AGE, CONTACTS_SCHEDULED
724
+ # name: "AGENTS_ONLINE", # accepts AGENTS_ONLINE, AGENTS_AVAILABLE, AGENTS_ON_CALL, AGENTS_NON_PRODUCTIVE, AGENTS_AFTER_CONTACT_WORK, AGENTS_ERROR, AGENTS_STAFFED, CONTACTS_IN_QUEUE, OLDEST_CONTACT_AGE, CONTACTS_SCHEDULED, AGENTS_ON_CONTACT, SLOTS_ACTIVE, SLOTS_AVAILABLE
655
725
  # unit: "SECONDS", # accepts SECONDS, COUNT, PERCENT
656
726
  # },
657
727
  # ],
@@ -665,9 +735,9 @@ module Aws::Connect
665
735
  # resp.metric_results #=> Array
666
736
  # resp.metric_results[0].dimensions.queue.id #=> String
667
737
  # resp.metric_results[0].dimensions.queue.arn #=> String
668
- # resp.metric_results[0].dimensions.channel #=> String, one of "VOICE"
738
+ # resp.metric_results[0].dimensions.channel #=> String, one of "VOICE", "CHAT"
669
739
  # resp.metric_results[0].collections #=> Array
670
- # resp.metric_results[0].collections[0].metric.name #=> String, one of "AGENTS_ONLINE", "AGENTS_AVAILABLE", "AGENTS_ON_CALL", "AGENTS_NON_PRODUCTIVE", "AGENTS_AFTER_CONTACT_WORK", "AGENTS_ERROR", "AGENTS_STAFFED", "CONTACTS_IN_QUEUE", "OLDEST_CONTACT_AGE", "CONTACTS_SCHEDULED"
740
+ # resp.metric_results[0].collections[0].metric.name #=> String, one of "AGENTS_ONLINE", "AGENTS_AVAILABLE", "AGENTS_ON_CALL", "AGENTS_NON_PRODUCTIVE", "AGENTS_AFTER_CONTACT_WORK", "AGENTS_ERROR", "AGENTS_STAFFED", "CONTACTS_IN_QUEUE", "OLDEST_CONTACT_AGE", "CONTACTS_SCHEDULED", "AGENTS_ON_CONTACT", "SLOTS_ACTIVE", "SLOTS_AVAILABLE"
671
741
  # resp.metric_results[0].collections[0].metric.unit #=> String, one of "SECONDS", "COUNT", "PERCENT"
672
742
  # resp.metric_results[0].collections[0].value #=> Float
673
743
  # resp.data_snapshot_time #=> Time
@@ -932,6 +1002,8 @@ module Aws::Connect
932
1002
  # * {Types::GetMetricDataResponse#next_token #next_token} => String
933
1003
  # * {Types::GetMetricDataResponse#metric_results #metric_results} => Array&lt;Types::HistoricalMetricResult&gt;
934
1004
  #
1005
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1006
+ #
935
1007
  # @example Request syntax with placeholder values
936
1008
  #
937
1009
  # resp = client.get_metric_data({
@@ -940,7 +1012,7 @@ module Aws::Connect
940
1012
  # end_time: Time.now, # required
941
1013
  # filters: { # required
942
1014
  # queues: ["QueueId"],
943
- # channels: ["VOICE"], # accepts VOICE
1015
+ # channels: ["VOICE"], # accepts VOICE, CHAT
944
1016
  # },
945
1017
  # groupings: ["QUEUE"], # accepts QUEUE, CHANNEL
946
1018
  # historical_metrics: [ # required
@@ -964,7 +1036,7 @@ module Aws::Connect
964
1036
  # resp.metric_results #=> Array
965
1037
  # resp.metric_results[0].dimensions.queue.id #=> String
966
1038
  # resp.metric_results[0].dimensions.queue.arn #=> String
967
- # resp.metric_results[0].dimensions.channel #=> String, one of "VOICE"
1039
+ # resp.metric_results[0].dimensions.channel #=> String, one of "VOICE", "CHAT"
968
1040
  # resp.metric_results[0].collections #=> Array
969
1041
  # resp.metric_results[0].collections[0].metric.name #=> String, one of "CONTACTS_QUEUED", "CONTACTS_HANDLED", "CONTACTS_ABANDONED", "CONTACTS_CONSULTED", "CONTACTS_AGENT_HUNG_UP_FIRST", "CONTACTS_HANDLED_INCOMING", "CONTACTS_HANDLED_OUTBOUND", "CONTACTS_HOLD_ABANDONS", "CONTACTS_TRANSFERRED_IN", "CONTACTS_TRANSFERRED_OUT", "CONTACTS_TRANSFERRED_IN_FROM_QUEUE", "CONTACTS_TRANSFERRED_OUT_FROM_QUEUE", "CONTACTS_MISSED", "CALLBACK_CONTACTS_HANDLED", "API_CONTACTS_HANDLED", "OCCUPANCY", "HANDLE_TIME", "AFTER_CONTACT_WORK_TIME", "QUEUED_TIME", "ABANDON_TIME", "QUEUE_ANSWER_TIME", "HOLD_TIME", "INTERACTION_TIME", "INTERACTION_AND_HOLD_TIME", "SERVICE_LEVEL"
970
1042
  # resp.metric_results[0].collections[0].metric.threshold.comparison #=> String, one of "LT"
@@ -1004,6 +1076,8 @@ module Aws::Connect
1004
1076
  # * {Types::ListContactFlowsResponse#contact_flow_summary_list #contact_flow_summary_list} => Array&lt;Types::ContactFlowSummary&gt;
1005
1077
  # * {Types::ListContactFlowsResponse#next_token #next_token} => String
1006
1078
  #
1079
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1080
+ #
1007
1081
  # @example Request syntax with placeholder values
1008
1082
  #
1009
1083
  # resp = client.list_contact_flows({
@@ -1050,6 +1124,8 @@ module Aws::Connect
1050
1124
  # * {Types::ListHoursOfOperationsResponse#hours_of_operation_summary_list #hours_of_operation_summary_list} => Array&lt;Types::HoursOfOperationSummary&gt;
1051
1125
  # * {Types::ListHoursOfOperationsResponse#next_token #next_token} => String
1052
1126
  #
1127
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1128
+ #
1053
1129
  # @example Request syntax with placeholder values
1054
1130
  #
1055
1131
  # resp = client.list_hours_of_operations({
@@ -1100,6 +1176,8 @@ module Aws::Connect
1100
1176
  # * {Types::ListPhoneNumbersResponse#phone_number_summary_list #phone_number_summary_list} => Array&lt;Types::PhoneNumberSummary&gt;
1101
1177
  # * {Types::ListPhoneNumbersResponse#next_token #next_token} => String
1102
1178
  #
1179
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1180
+ #
1103
1181
  # @example Request syntax with placeholder values
1104
1182
  #
1105
1183
  # resp = client.list_phone_numbers({
@@ -1151,6 +1229,8 @@ module Aws::Connect
1151
1229
  # * {Types::ListQueuesResponse#queue_summary_list #queue_summary_list} => Array&lt;Types::QueueSummary&gt;
1152
1230
  # * {Types::ListQueuesResponse#next_token #next_token} => String
1153
1231
  #
1232
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1233
+ #
1154
1234
  # @example Request syntax with placeholder values
1155
1235
  #
1156
1236
  # resp = client.list_queues({
@@ -1197,6 +1277,8 @@ module Aws::Connect
1197
1277
  # * {Types::ListRoutingProfilesResponse#routing_profile_summary_list #routing_profile_summary_list} => Array&lt;Types::RoutingProfileSummary&gt;
1198
1278
  # * {Types::ListRoutingProfilesResponse#next_token #next_token} => String
1199
1279
  #
1280
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1281
+ #
1200
1282
  # @example Request syntax with placeholder values
1201
1283
  #
1202
1284
  # resp = client.list_routing_profiles({
@@ -1241,6 +1323,8 @@ module Aws::Connect
1241
1323
  # * {Types::ListSecurityProfilesResponse#security_profile_summary_list #security_profile_summary_list} => Array&lt;Types::SecurityProfileSummary&gt;
1242
1324
  # * {Types::ListSecurityProfilesResponse#next_token #next_token} => String
1243
1325
  #
1326
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1327
+ #
1244
1328
  # @example Request syntax with placeholder values
1245
1329
  #
1246
1330
  # resp = client.list_security_profiles({
@@ -1314,6 +1398,8 @@ module Aws::Connect
1314
1398
  # * {Types::ListUserHierarchyGroupsResponse#user_hierarchy_group_summary_list #user_hierarchy_group_summary_list} => Array&lt;Types::HierarchyGroupSummary&gt;
1315
1399
  # * {Types::ListUserHierarchyGroupsResponse#next_token #next_token} => String
1316
1400
  #
1401
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1402
+ #
1317
1403
  # @example Request syntax with placeholder values
1318
1404
  #
1319
1405
  # resp = client.list_user_hierarchy_groups({
@@ -1358,6 +1444,8 @@ module Aws::Connect
1358
1444
  # * {Types::ListUsersResponse#user_summary_list #user_summary_list} => Array&lt;Types::UserSummary&gt;
1359
1445
  # * {Types::ListUsersResponse#next_token #next_token} => String
1360
1446
  #
1447
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1448
+ #
1361
1449
  # @example Request syntax with placeholder values
1362
1450
  #
1363
1451
  # resp = client.list_users({
@@ -1383,6 +1471,88 @@ module Aws::Connect
1383
1471
  req.send_request(options)
1384
1472
  end
1385
1473
 
1474
+ # Initiates a contact flow to start a new chat for the customer.
1475
+ # Response of this API provides a token required to obtain credentials
1476
+ # from the [CreateParticipantConnection][1] API in the Amazon Connect
1477
+ # Participant Service.
1478
+ #
1479
+ # When a new chat contact is successfully created, clients need to
1480
+ # subscribe to the participant’s connection for the created chat within
1481
+ # 5 minutes. This is achieved by invoking
1482
+ # [CreateParticipantConnection][1] with WEBSOCKET and
1483
+ # CONNECTION\_CREDENTIALS.
1484
+ #
1485
+ #
1486
+ #
1487
+ # [1]: https://docs.aws.amazon.com/connect-participant/latest/APIReference/API_CreateParticipantConnection.html
1488
+ #
1489
+ # @option params [required, String] :instance_id
1490
+ # The identifier of the Amazon Connect instance.
1491
+ #
1492
+ # @option params [required, String] :contact_flow_id
1493
+ # The identifier of the contact flow for the chat.
1494
+ #
1495
+ # @option params [Hash<String,String>] :attributes
1496
+ # A custom key-value pair using an attribute map. The attributes are
1497
+ # standard Amazon Connect attributes, and can be accessed in contact
1498
+ # flows just like any other contact attributes.
1499
+ #
1500
+ # There can be up to 32,768 UTF-8 bytes across all key-value pairs per
1501
+ # contact. Attribute keys can include only alphanumeric, dash, and
1502
+ # underscore characters.
1503
+ #
1504
+ # @option params [required, Types::ParticipantDetails] :participant_details
1505
+ # Information identifying the participant.
1506
+ #
1507
+ # @option params [Types::ChatMessage] :initial_message
1508
+ # The initial message to be sent to the newly created chat.
1509
+ #
1510
+ # @option params [String] :client_token
1511
+ # A unique, case-sensitive identifier that you provide to ensure the
1512
+ # idempotency of the request.
1513
+ #
1514
+ # **A suitable default value is auto-generated.** You should normally
1515
+ # not need to pass this option.**
1516
+ #
1517
+ # @return [Types::StartChatContactResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1518
+ #
1519
+ # * {Types::StartChatContactResponse#contact_id #contact_id} => String
1520
+ # * {Types::StartChatContactResponse#participant_id #participant_id} => String
1521
+ # * {Types::StartChatContactResponse#participant_token #participant_token} => String
1522
+ #
1523
+ # @example Request syntax with placeholder values
1524
+ #
1525
+ # resp = client.start_chat_contact({
1526
+ # instance_id: "InstanceId", # required
1527
+ # contact_flow_id: "ContactFlowId", # required
1528
+ # attributes: {
1529
+ # "AttributeName" => "AttributeValue",
1530
+ # },
1531
+ # participant_details: { # required
1532
+ # display_name: "DisplayName", # required
1533
+ # },
1534
+ # initial_message: {
1535
+ # content_type: "ChatContentType", # required
1536
+ # content: "ChatContent", # required
1537
+ # },
1538
+ # client_token: "ClientToken",
1539
+ # })
1540
+ #
1541
+ # @example Response structure
1542
+ #
1543
+ # resp.contact_id #=> String
1544
+ # resp.participant_id #=> String
1545
+ # resp.participant_token #=> String
1546
+ #
1547
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/StartChatContact AWS API Documentation
1548
+ #
1549
+ # @overload start_chat_contact(params = {})
1550
+ # @param [Hash] params ({})
1551
+ def start_chat_contact(params = {}, options = {})
1552
+ req = build_request(:start_chat_contact, params)
1553
+ req.send_request(options)
1554
+ end
1555
+
1386
1556
  # Initiates a contact flow to place an outbound call to a customer.
1387
1557
  #
1388
1558
  # There is a 60 second dialing timeout for this operation. If the call
@@ -1772,7 +1942,7 @@ module Aws::Connect
1772
1942
  params: params,
1773
1943
  config: config)
1774
1944
  context[:gem_name] = 'aws-sdk-connect'
1775
- context[:gem_version] = '1.21.0'
1945
+ context[:gem_version] = '1.26.1'
1776
1946
  Seahorse::Client::Request.new(handlers, context)
1777
1947
  end
1778
1948
 
@@ -22,6 +22,9 @@ module Aws::Connect
22
22
  AutoAccept = Shapes::BooleanShape.new(name: 'AutoAccept')
23
23
  Channel = Shapes::StringShape.new(name: 'Channel')
24
24
  Channels = Shapes::ListShape.new(name: 'Channels')
25
+ ChatContent = Shapes::StringShape.new(name: 'ChatContent')
26
+ ChatContentType = Shapes::StringShape.new(name: 'ChatContentType')
27
+ ChatMessage = Shapes::StructureShape.new(name: 'ChatMessage')
25
28
  ClientToken = Shapes::StringShape.new(name: 'ClientToken')
26
29
  Comparison = Shapes::StringShape.new(name: 'Comparison')
27
30
  ContactFlowId = Shapes::StringShape.new(name: 'ContactFlowId')
@@ -52,6 +55,7 @@ module Aws::Connect
52
55
  DestinationNotAllowedException = Shapes::StructureShape.new(name: 'DestinationNotAllowedException')
53
56
  Dimensions = Shapes::StructureShape.new(name: 'Dimensions')
54
57
  DirectoryUserId = Shapes::StringShape.new(name: 'DirectoryUserId')
58
+ DisplayName = Shapes::StringShape.new(name: 'DisplayName')
55
59
  DuplicateResourceException = Shapes::StructureShape.new(name: 'DuplicateResourceException')
56
60
  Email = Shapes::StringShape.new(name: 'Email')
57
61
  Filters = Shapes::StructureShape.new(name: 'Filters')
@@ -114,6 +118,9 @@ module Aws::Connect
114
118
  Message = Shapes::StringShape.new(name: 'Message')
115
119
  NextToken = Shapes::StringShape.new(name: 'NextToken')
116
120
  OutboundContactNotPermittedException = Shapes::StructureShape.new(name: 'OutboundContactNotPermittedException')
121
+ ParticipantDetails = Shapes::StructureShape.new(name: 'ParticipantDetails')
122
+ ParticipantId = Shapes::StringShape.new(name: 'ParticipantId')
123
+ ParticipantToken = Shapes::StringShape.new(name: 'ParticipantToken')
117
124
  Password = Shapes::StringShape.new(name: 'Password')
118
125
  PhoneNumber = Shapes::StringShape.new(name: 'PhoneNumber')
119
126
  PhoneNumberCountryCode = Shapes::StringShape.new(name: 'PhoneNumberCountryCode')
@@ -143,6 +150,8 @@ module Aws::Connect
143
150
  SecurityProfileSummary = Shapes::StructureShape.new(name: 'SecurityProfileSummary')
144
151
  SecurityProfileSummaryList = Shapes::ListShape.new(name: 'SecurityProfileSummaryList')
145
152
  SecurityToken = Shapes::StringShape.new(name: 'SecurityToken')
153
+ StartChatContactRequest = Shapes::StructureShape.new(name: 'StartChatContactRequest')
154
+ StartChatContactResponse = Shapes::StructureShape.new(name: 'StartChatContactResponse')
146
155
  StartOutboundVoiceContactRequest = Shapes::StructureShape.new(name: 'StartOutboundVoiceContactRequest')
147
156
  StartOutboundVoiceContactResponse = Shapes::StructureShape.new(name: 'StartOutboundVoiceContactResponse')
148
157
  Statistic = Shapes::StringShape.new(name: 'Statistic')
@@ -180,6 +189,10 @@ module Aws::Connect
180
189
 
181
190
  Channels.member = Shapes::ShapeRef.new(shape: Channel)
182
191
 
192
+ ChatMessage.add_member(:content_type, Shapes::ShapeRef.new(shape: ChatContentType, required: true, location_name: "ContentType"))
193
+ ChatMessage.add_member(:content, Shapes::ShapeRef.new(shape: ChatContent, required: true, location_name: "Content"))
194
+ ChatMessage.struct_class = Types::ChatMessage
195
+
183
196
  ContactFlowSummary.add_member(:id, Shapes::ShapeRef.new(shape: ContactFlowId, location_name: "Id"))
184
197
  ContactFlowSummary.add_member(:arn, Shapes::ShapeRef.new(shape: ARN, location_name: "Arn"))
185
198
  ContactFlowSummary.add_member(:name, Shapes::ShapeRef.new(shape: ContactFlowName, location_name: "Name"))
@@ -470,6 +483,9 @@ module Aws::Connect
470
483
  OutboundContactNotPermittedException.add_member(:message, Shapes::ShapeRef.new(shape: Message, location_name: "Message"))
471
484
  OutboundContactNotPermittedException.struct_class = Types::OutboundContactNotPermittedException
472
485
 
486
+ ParticipantDetails.add_member(:display_name, Shapes::ShapeRef.new(shape: DisplayName, required: true, location_name: "DisplayName"))
487
+ ParticipantDetails.struct_class = Types::ParticipantDetails
488
+
473
489
  PhoneNumberCountryCodes.member = Shapes::ShapeRef.new(shape: PhoneNumberCountryCode)
474
490
 
475
491
  PhoneNumberSummary.add_member(:id, Shapes::ShapeRef.new(shape: PhoneNumberId, location_name: "Id"))
@@ -518,6 +534,19 @@ module Aws::Connect
518
534
 
519
535
  SecurityProfileSummaryList.member = Shapes::ShapeRef.new(shape: SecurityProfileSummary)
520
536
 
537
+ StartChatContactRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, required: true, location_name: "InstanceId"))
538
+ StartChatContactRequest.add_member(:contact_flow_id, Shapes::ShapeRef.new(shape: ContactFlowId, required: true, location_name: "ContactFlowId"))
539
+ StartChatContactRequest.add_member(:attributes, Shapes::ShapeRef.new(shape: Attributes, location_name: "Attributes"))
540
+ StartChatContactRequest.add_member(:participant_details, Shapes::ShapeRef.new(shape: ParticipantDetails, required: true, location_name: "ParticipantDetails"))
541
+ StartChatContactRequest.add_member(:initial_message, Shapes::ShapeRef.new(shape: ChatMessage, location_name: "InitialMessage"))
542
+ StartChatContactRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
543
+ StartChatContactRequest.struct_class = Types::StartChatContactRequest
544
+
545
+ StartChatContactResponse.add_member(:contact_id, Shapes::ShapeRef.new(shape: ContactId, location_name: "ContactId"))
546
+ StartChatContactResponse.add_member(:participant_id, Shapes::ShapeRef.new(shape: ParticipantId, location_name: "ParticipantId"))
547
+ StartChatContactResponse.add_member(:participant_token, Shapes::ShapeRef.new(shape: ParticipantToken, location_name: "ParticipantToken"))
548
+ StartChatContactResponse.struct_class = Types::StartChatContactResponse
549
+
521
550
  StartOutboundVoiceContactRequest.add_member(:destination_phone_number, Shapes::ShapeRef.new(shape: PhoneNumber, required: true, location_name: "DestinationPhoneNumber"))
522
551
  StartOutboundVoiceContactRequest.add_member(:contact_flow_id, Shapes::ShapeRef.new(shape: ContactFlowId, required: true, location_name: "ContactFlowId"))
523
552
  StartOutboundVoiceContactRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, required: true, location_name: "InstanceId"))
@@ -935,6 +964,19 @@ module Aws::Connect
935
964
  )
936
965
  end)
937
966
 
967
+ api.add_operation(:start_chat_contact, Seahorse::Model::Operation.new.tap do |o|
968
+ o.name = "StartChatContact"
969
+ o.http_method = "PUT"
970
+ o.http_request_uri = "/contact/chat"
971
+ o.input = Shapes::ShapeRef.new(shape: StartChatContactRequest)
972
+ o.output = Shapes::ShapeRef.new(shape: StartChatContactResponse)
973
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
974
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
975
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
976
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
977
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
978
+ end)
979
+
938
980
  api.add_operation(:start_outbound_voice_contact, Seahorse::Model::Operation.new.tap do |o|
939
981
  o.name = "StartOutboundVoiceContact"
940
982
  o.http_method = "PUT"
@@ -6,6 +6,39 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::Connect
9
+
10
+ # When Connect returns an error response, the Ruby SDK constructs and raises an error.
11
+ # These errors all extend Aws::Connect::Errors::ServiceError < {Aws::Errors::ServiceError}
12
+ #
13
+ # You can rescue all Connect errors using ServiceError:
14
+ #
15
+ # begin
16
+ # # do stuff
17
+ # rescue Aws::Connect::Errors::ServiceError
18
+ # # rescues all Connect API errors
19
+ # end
20
+ #
21
+ #
22
+ # ## Request Context
23
+ # ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
24
+ # information about the request that generated the error.
25
+ # See {Seahorse::Client::RequestContext} for more information.
26
+ #
27
+ # ## Error Classes
28
+ # * {ContactNotFoundException}
29
+ # * {DestinationNotAllowedException}
30
+ # * {DuplicateResourceException}
31
+ # * {InternalServiceException}
32
+ # * {InvalidParameterException}
33
+ # * {InvalidRequestException}
34
+ # * {LimitExceededException}
35
+ # * {OutboundContactNotPermittedException}
36
+ # * {ResourceNotFoundException}
37
+ # * {ThrottlingException}
38
+ # * {UserNotFoundException}
39
+ #
40
+ # Additionally, error classes are dynamically generated for service errors based on the error code
41
+ # if they are not defined above.
9
42
  module Errors
10
43
 
11
44
  extend Aws::Errors::DynamicErrors
@@ -23,7 +56,6 @@ module Aws::Connect
23
56
  def message
24
57
  @message || @data[:message]
25
58
  end
26
-
27
59
  end
28
60
 
29
61
  class DestinationNotAllowedException < ServiceError
@@ -39,7 +71,6 @@ module Aws::Connect
39
71
  def message
40
72
  @message || @data[:message]
41
73
  end
42
-
43
74
  end
44
75
 
45
76
  class DuplicateResourceException < ServiceError
@@ -55,7 +86,6 @@ module Aws::Connect
55
86
  def message
56
87
  @message || @data[:message]
57
88
  end
58
-
59
89
  end
60
90
 
61
91
  class InternalServiceException < ServiceError
@@ -71,7 +101,6 @@ module Aws::Connect
71
101
  def message
72
102
  @message || @data[:message]
73
103
  end
74
-
75
104
  end
76
105
 
77
106
  class InvalidParameterException < ServiceError
@@ -87,7 +116,6 @@ module Aws::Connect
87
116
  def message
88
117
  @message || @data[:message]
89
118
  end
90
-
91
119
  end
92
120
 
93
121
  class InvalidRequestException < ServiceError
@@ -103,7 +131,6 @@ module Aws::Connect
103
131
  def message
104
132
  @message || @data[:message]
105
133
  end
106
-
107
134
  end
108
135
 
109
136
  class LimitExceededException < ServiceError
@@ -119,7 +146,6 @@ module Aws::Connect
119
146
  def message
120
147
  @message || @data[:message]
121
148
  end
122
-
123
149
  end
124
150
 
125
151
  class OutboundContactNotPermittedException < ServiceError
@@ -135,7 +161,6 @@ module Aws::Connect
135
161
  def message
136
162
  @message || @data[:message]
137
163
  end
138
-
139
164
  end
140
165
 
141
166
  class ResourceNotFoundException < ServiceError
@@ -151,7 +176,6 @@ module Aws::Connect
151
176
  def message
152
177
  @message || @data[:message]
153
178
  end
154
-
155
179
  end
156
180
 
157
181
  class ThrottlingException < ServiceError
@@ -167,7 +191,6 @@ module Aws::Connect
167
191
  def message
168
192
  @message || @data[:message]
169
193
  end
170
-
171
194
  end
172
195
 
173
196
  class UserNotFoundException < ServiceError
@@ -183,7 +206,6 @@ module Aws::Connect
183
206
  def message
184
207
  @message || @data[:message]
185
208
  end
186
-
187
209
  end
188
210
 
189
211
  end
@@ -6,6 +6,7 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::Connect
9
+
9
10
  class Resource
10
11
 
11
12
  # @param options ({})
@@ -8,6 +8,32 @@
8
8
  module Aws::Connect
9
9
  module Types
10
10
 
11
+ # A chat message.
12
+ #
13
+ # @note When making an API call, you may pass ChatMessage
14
+ # data as a hash:
15
+ #
16
+ # {
17
+ # content_type: "ChatContentType", # required
18
+ # content: "ChatContent", # required
19
+ # }
20
+ #
21
+ # @!attribute [rw] content_type
22
+ # The type of the content. Supported types are text/plain.
23
+ # @return [String]
24
+ #
25
+ # @!attribute [rw] content
26
+ # The content of the chat message.
27
+ # @return [String]
28
+ #
29
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ChatMessage AWS API Documentation
30
+ #
31
+ class ChatMessage < Struct.new(
32
+ :content_type,
33
+ :content)
34
+ include Aws::Structure
35
+ end
36
+
11
37
  # Contains summary information about a contact flow.
12
38
  #
13
39
  # @!attribute [rw] id
@@ -201,7 +227,7 @@ module Aws::Connect
201
227
  # data as a hash:
202
228
  #
203
229
  # {
204
- # name: "AGENTS_ONLINE", # accepts AGENTS_ONLINE, AGENTS_AVAILABLE, AGENTS_ON_CALL, AGENTS_NON_PRODUCTIVE, AGENTS_AFTER_CONTACT_WORK, AGENTS_ERROR, AGENTS_STAFFED, CONTACTS_IN_QUEUE, OLDEST_CONTACT_AGE, CONTACTS_SCHEDULED
230
+ # name: "AGENTS_ONLINE", # accepts AGENTS_ONLINE, AGENTS_AVAILABLE, AGENTS_ON_CALL, AGENTS_NON_PRODUCTIVE, AGENTS_AFTER_CONTACT_WORK, AGENTS_ERROR, AGENTS_STAFFED, CONTACTS_IN_QUEUE, OLDEST_CONTACT_AGE, CONTACTS_SCHEDULED, AGENTS_ON_CONTACT, SLOTS_ACTIVE, SLOTS_AVAILABLE
205
231
  # unit: "SECONDS", # accepts SECONDS, COUNT, PERCENT
206
232
  # }
207
233
  #
@@ -430,7 +456,7 @@ module Aws::Connect
430
456
  #
431
457
  # {
432
458
  # queues: ["QueueId"],
433
- # channels: ["VOICE"], # accepts VOICE
459
+ # channels: ["VOICE"], # accepts VOICE, CHAT
434
460
  # }
435
461
  #
436
462
  # @!attribute [rw] queues
@@ -492,12 +518,12 @@ module Aws::Connect
492
518
  # instance_id: "InstanceId", # required
493
519
  # filters: { # required
494
520
  # queues: ["QueueId"],
495
- # channels: ["VOICE"], # accepts VOICE
521
+ # channels: ["VOICE"], # accepts VOICE, CHAT
496
522
  # },
497
523
  # groupings: ["QUEUE"], # accepts QUEUE, CHANNEL
498
524
  # current_metrics: [ # required
499
525
  # {
500
- # name: "AGENTS_ONLINE", # accepts AGENTS_ONLINE, AGENTS_AVAILABLE, AGENTS_ON_CALL, AGENTS_NON_PRODUCTIVE, AGENTS_AFTER_CONTACT_WORK, AGENTS_ERROR, AGENTS_STAFFED, CONTACTS_IN_QUEUE, OLDEST_CONTACT_AGE, CONTACTS_SCHEDULED
526
+ # name: "AGENTS_ONLINE", # accepts AGENTS_ONLINE, AGENTS_AVAILABLE, AGENTS_ON_CALL, AGENTS_NON_PRODUCTIVE, AGENTS_AFTER_CONTACT_WORK, AGENTS_ERROR, AGENTS_STAFFED, CONTACTS_IN_QUEUE, OLDEST_CONTACT_AGE, CONTACTS_SCHEDULED, AGENTS_ON_CONTACT, SLOTS_ACTIVE, SLOTS_AVAILABLE
501
527
  # unit: "SECONDS", # accepts SECONDS, COUNT, PERCENT
502
528
  # },
503
529
  # ],
@@ -552,6 +578,10 @@ module Aws::Connect
552
578
  #
553
579
  # : Unit: COUNT
554
580
  #
581
+ # AGENTS\_ON\_CONTACT
582
+ #
583
+ # : Unit: COUNT
584
+ #
555
585
  # AGENTS\_ONLINE
556
586
  #
557
587
  # : Unit: COUNT
@@ -571,6 +601,14 @@ module Aws::Connect
571
601
  # OLDEST\_CONTACT\_AGE
572
602
  #
573
603
  # : Unit: SECONDS
604
+ #
605
+ # SLOTS\_ACTIVE
606
+ #
607
+ # : Unit: COUNT
608
+ #
609
+ # SLOTS\_AVAILABLE
610
+ #
611
+ # : Unit: COUNT
574
612
  # @return [Array<Types::CurrentMetric>]
575
613
  #
576
614
  # @!attribute [rw] next_token
@@ -664,7 +702,7 @@ module Aws::Connect
664
702
  # end_time: Time.now, # required
665
703
  # filters: { # required
666
704
  # queues: ["QueueId"],
667
- # channels: ["VOICE"], # accepts VOICE
705
+ # channels: ["VOICE"], # accepts VOICE, CHAT
668
706
  # },
669
707
  # groupings: ["QUEUE"], # accepts QUEUE, CHANNEL
670
708
  # historical_metrics: [ # required
@@ -1689,6 +1727,26 @@ module Aws::Connect
1689
1727
  include Aws::Structure
1690
1728
  end
1691
1729
 
1730
+ # The customer's details.
1731
+ #
1732
+ # @note When making an API call, you may pass ParticipantDetails
1733
+ # data as a hash:
1734
+ #
1735
+ # {
1736
+ # display_name: "DisplayName", # required
1737
+ # }
1738
+ #
1739
+ # @!attribute [rw] display_name
1740
+ # Display name of the participant.
1741
+ # @return [String]
1742
+ #
1743
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ParticipantDetails AWS API Documentation
1744
+ #
1745
+ class ParticipantDetails < Struct.new(
1746
+ :display_name)
1747
+ include Aws::Structure
1748
+ end
1749
+
1692
1750
  # Contains summary information about a phone number for a contact
1693
1751
  # center.
1694
1752
  #
@@ -1829,6 +1887,99 @@ module Aws::Connect
1829
1887
  include Aws::Structure
1830
1888
  end
1831
1889
 
1890
+ # @note When making an API call, you may pass StartChatContactRequest
1891
+ # data as a hash:
1892
+ #
1893
+ # {
1894
+ # instance_id: "InstanceId", # required
1895
+ # contact_flow_id: "ContactFlowId", # required
1896
+ # attributes: {
1897
+ # "AttributeName" => "AttributeValue",
1898
+ # },
1899
+ # participant_details: { # required
1900
+ # display_name: "DisplayName", # required
1901
+ # },
1902
+ # initial_message: {
1903
+ # content_type: "ChatContentType", # required
1904
+ # content: "ChatContent", # required
1905
+ # },
1906
+ # client_token: "ClientToken",
1907
+ # }
1908
+ #
1909
+ # @!attribute [rw] instance_id
1910
+ # The identifier of the Amazon Connect instance.
1911
+ # @return [String]
1912
+ #
1913
+ # @!attribute [rw] contact_flow_id
1914
+ # The identifier of the contact flow for the chat.
1915
+ # @return [String]
1916
+ #
1917
+ # @!attribute [rw] attributes
1918
+ # A custom key-value pair using an attribute map. The attributes are
1919
+ # standard Amazon Connect attributes, and can be accessed in contact
1920
+ # flows just like any other contact attributes.
1921
+ #
1922
+ # There can be up to 32,768 UTF-8 bytes across all key-value pairs per
1923
+ # contact. Attribute keys can include only alphanumeric, dash, and
1924
+ # underscore characters.
1925
+ # @return [Hash<String,String>]
1926
+ #
1927
+ # @!attribute [rw] participant_details
1928
+ # Information identifying the participant.
1929
+ # @return [Types::ParticipantDetails]
1930
+ #
1931
+ # @!attribute [rw] initial_message
1932
+ # The initial message to be sent to the newly created chat.
1933
+ # @return [Types::ChatMessage]
1934
+ #
1935
+ # @!attribute [rw] client_token
1936
+ # A unique, case-sensitive identifier that you provide to ensure the
1937
+ # idempotency of the request.
1938
+ #
1939
+ # **A suitable default value is auto-generated.** You should normally
1940
+ # not need to pass this option.
1941
+ # @return [String]
1942
+ #
1943
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/StartChatContactRequest AWS API Documentation
1944
+ #
1945
+ class StartChatContactRequest < Struct.new(
1946
+ :instance_id,
1947
+ :contact_flow_id,
1948
+ :attributes,
1949
+ :participant_details,
1950
+ :initial_message,
1951
+ :client_token)
1952
+ include Aws::Structure
1953
+ end
1954
+
1955
+ # @!attribute [rw] contact_id
1956
+ # The identifier of this contact within the Amazon Connect instance.
1957
+ # @return [String]
1958
+ #
1959
+ # @!attribute [rw] participant_id
1960
+ # The identifier for a chat participant. The participantId for a chat
1961
+ # participant is the same throughout the chat lifecycle.
1962
+ # @return [String]
1963
+ #
1964
+ # @!attribute [rw] participant_token
1965
+ # The token used by the chat participant to call
1966
+ # [CreateParticipantConnection][1]. The participant token is valid for
1967
+ # the lifetime of a chat participant.
1968
+ #
1969
+ #
1970
+ #
1971
+ # [1]: https://docs.aws.amazon.com/connect-participant/latest/APIReference/API_CreateParticipantConnection.html
1972
+ # @return [String]
1973
+ #
1974
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/StartChatContactResponse AWS API Documentation
1975
+ #
1976
+ class StartChatContactResponse < Struct.new(
1977
+ :contact_id,
1978
+ :participant_id,
1979
+ :participant_token)
1980
+ include Aws::Structure
1981
+ end
1982
+
1832
1983
  # @note When making an API call, you may pass StartOutboundVoiceContactRequest
1833
1984
  # data as a hash:
1834
1985
  #
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.21.0
4
+ version: 1.26.1
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: 2019-11-14 00:00:00.000000000 Z
11
+ date: 2020-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.71.0
22
+ version: 3.99.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.71.0
32
+ version: 3.99.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -81,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
81
81
  version: '0'
82
82
  requirements: []
83
83
  rubyforge_project:
84
- rubygems_version: 2.5.2.3
84
+ rubygems_version: 2.7.6.2
85
85
  signing_key:
86
86
  specification_version: 4
87
87
  summary: AWS SDK for Ruby - Amazon Connect