aws-sdk-connect 1.101.0 → 1.102.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: 1726ff9c191d9464cfe306339becbb2a822ae41de4c758f62d59a5cecb48a742
4
- data.tar.gz: 592a3cdf2839854beb6ddced1fe5e077e0814c30b8e9fbedcd8cd18ea09af4c2
3
+ metadata.gz: 5a29f940033588eb0006159a35001202bd865d1bf957208e53d29139617587d4
4
+ data.tar.gz: 1aa83b64406d74f85717ef13a96e0fbb43e58746b704543f0c16cf28b8954c8e
5
5
  SHA512:
6
- metadata.gz: 6218d62f8d77123a39281b416efd8c17f202941142a56844011df7a65e608fdf88212e7c808426a5c41a949fb76f568a83ddc907594b719b2c3cf52a8a579794
7
- data.tar.gz: 3c67ec51c87b90589f1a71b57522c9b96261d53448cc755d7a8b99bddbe5431ccc185a6056174c70ed858f86257ea4a0f59173d189c8f2de57c8751df3e25cd5
6
+ metadata.gz: 7e58534038b1a451ae6e2294945457144ff5ceb1986e8a7cf5291a7be4be405f319de988826e276638fc4c9238ec5c145b3eab8fa32a43cf7584926e471033b1
7
+ data.tar.gz: a04b0ccb61aa1038cbcacfd32813f3f46a2702996e197b854e08aac844455490def2637a3b8004ee96897cfe191f9ff55e6da3ba1d44d23e7eb25bddcb600b9d
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.102.0 (2023-04-21)
5
+ ------------------
6
+
7
+ * Feature - This release adds a new API CreateParticipant. For Amazon Connect Chat, you can use this new API to customize chat flow experiences.
8
+
4
9
  1.101.0 (2023-04-10)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.101.0
1
+ 1.102.0
@@ -1303,6 +1303,78 @@ module Aws::Connect
1303
1303
  req.send_request(options)
1304
1304
  end
1305
1305
 
1306
+ # Adds a new participant into an on-going chat contact. For more
1307
+ # information, see [Customize chat flow experiences by integrating
1308
+ # custom participants][1].
1309
+ #
1310
+ #
1311
+ #
1312
+ # [1]: https://docs.aws.amazon.com/connect/latest/adminguide/chat-customize-flow.html
1313
+ #
1314
+ # @option params [required, String] :instance_id
1315
+ # The identifier of the Amazon Connect instance. You can [find the
1316
+ # instance ID][1] in the Amazon Resource Name (ARN) of the instance.
1317
+ #
1318
+ #
1319
+ #
1320
+ # [1]: https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html
1321
+ #
1322
+ # @option params [required, String] :contact_id
1323
+ # The identifier of the contact in this instance of Amazon Connect. Only
1324
+ # contacts in the CHAT channel are supported.
1325
+ #
1326
+ # @option params [String] :client_token
1327
+ # A unique, case-sensitive identifier that you provide to ensure the
1328
+ # idempotency of the request. If not provided, the Amazon Web Services
1329
+ # SDK populates this field. For more information about idempotency, see
1330
+ # [Making retries safe with idempotent APIs][1].
1331
+ #
1332
+ # **A suitable default value is auto-generated.** You should normally
1333
+ # not need to pass this option.**
1334
+ #
1335
+ #
1336
+ #
1337
+ # [1]: https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/
1338
+ #
1339
+ # @option params [required, Types::ParticipantDetailsToAdd] :participant_details
1340
+ # Information identifying the participant.
1341
+ #
1342
+ # The only Valid value for `ParticipantRole` is `CUSTOM_BOT`.
1343
+ #
1344
+ # `DisplayName` is **Required**.
1345
+ #
1346
+ # @return [Types::CreateParticipantResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1347
+ #
1348
+ # * {Types::CreateParticipantResponse#participant_credentials #participant_credentials} => Types::ParticipantTokenCredentials
1349
+ # * {Types::CreateParticipantResponse#participant_id #participant_id} => String
1350
+ #
1351
+ # @example Request syntax with placeholder values
1352
+ #
1353
+ # resp = client.create_participant({
1354
+ # instance_id: "InstanceId", # required
1355
+ # contact_id: "ContactId", # required
1356
+ # client_token: "ClientToken",
1357
+ # participant_details: { # required
1358
+ # participant_role: "AGENT", # accepts AGENT, CUSTOMER, SYSTEM, CUSTOM_BOT
1359
+ # display_name: "DisplayName",
1360
+ # },
1361
+ # })
1362
+ #
1363
+ # @example Response structure
1364
+ #
1365
+ # resp.participant_credentials.participant_token #=> String
1366
+ # resp.participant_credentials.expiry #=> String
1367
+ # resp.participant_id #=> String
1368
+ #
1369
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/CreateParticipant AWS API Documentation
1370
+ #
1371
+ # @overload create_participant(params = {})
1372
+ # @param [Hash] params ({})
1373
+ def create_participant(params = {}, options = {})
1374
+ req = build_request(:create_participant, params)
1375
+ req.send_request(options)
1376
+ end
1377
+
1306
1378
  # This API is in preview release for Amazon Connect and is subject to
1307
1379
  # change.
1308
1380
  #
@@ -10790,7 +10862,7 @@ module Aws::Connect
10790
10862
  params: params,
10791
10863
  config: config)
10792
10864
  context[:gem_name] = 'aws-sdk-connect'
10793
- context[:gem_version] = '1.101.0'
10865
+ context[:gem_version] = '1.102.0'
10794
10866
  Seahorse::Client::Request.new(handlers, context)
10795
10867
  end
10796
10868
 
@@ -132,6 +132,8 @@ module Aws::Connect
132
132
  CreateInstanceResponse = Shapes::StructureShape.new(name: 'CreateInstanceResponse')
133
133
  CreateIntegrationAssociationRequest = Shapes::StructureShape.new(name: 'CreateIntegrationAssociationRequest')
134
134
  CreateIntegrationAssociationResponse = Shapes::StructureShape.new(name: 'CreateIntegrationAssociationResponse')
135
+ CreateParticipantRequest = Shapes::StructureShape.new(name: 'CreateParticipantRequest')
136
+ CreateParticipantResponse = Shapes::StructureShape.new(name: 'CreateParticipantResponse')
135
137
  CreateQueueRequest = Shapes::StructureShape.new(name: 'CreateQueueRequest')
136
138
  CreateQueueResponse = Shapes::StructureShape.new(name: 'CreateQueueResponse')
137
139
  CreateQuickConnectRequest = Shapes::StructureShape.new(name: 'CreateQuickConnectRequest')
@@ -321,6 +323,7 @@ module Aws::Connect
321
323
  HoursOfOperationSummary = Shapes::StructureShape.new(name: 'HoursOfOperationSummary')
322
324
  HoursOfOperationSummaryList = Shapes::ListShape.new(name: 'HoursOfOperationSummaryList')
323
325
  HoursOfOperationTimeSlice = Shapes::StructureShape.new(name: 'HoursOfOperationTimeSlice')
326
+ ISO8601Datetime = Shapes::StringShape.new(name: 'ISO8601Datetime')
324
327
  IdempotencyException = Shapes::StructureShape.new(name: 'IdempotencyException')
325
328
  InboundCallsEnabled = Shapes::BooleanShape.new(name: 'InboundCallsEnabled')
326
329
  Instance = Shapes::StructureShape.new(name: 'Instance')
@@ -468,7 +471,9 @@ module Aws::Connect
468
471
  OutboundContactNotPermittedException = Shapes::StructureShape.new(name: 'OutboundContactNotPermittedException')
469
472
  PEM = Shapes::StringShape.new(name: 'PEM')
470
473
  ParticipantDetails = Shapes::StructureShape.new(name: 'ParticipantDetails')
474
+ ParticipantDetailsToAdd = Shapes::StructureShape.new(name: 'ParticipantDetailsToAdd')
471
475
  ParticipantId = Shapes::StringShape.new(name: 'ParticipantId')
476
+ ParticipantRole = Shapes::StringShape.new(name: 'ParticipantRole')
472
477
  ParticipantTimerAction = Shapes::StringShape.new(name: 'ParticipantTimerAction')
473
478
  ParticipantTimerConfigList = Shapes::ListShape.new(name: 'ParticipantTimerConfigList')
474
479
  ParticipantTimerConfiguration = Shapes::StructureShape.new(name: 'ParticipantTimerConfiguration')
@@ -476,6 +481,7 @@ module Aws::Connect
476
481
  ParticipantTimerType = Shapes::StringShape.new(name: 'ParticipantTimerType')
477
482
  ParticipantTimerValue = Shapes::UnionShape.new(name: 'ParticipantTimerValue')
478
483
  ParticipantToken = Shapes::StringShape.new(name: 'ParticipantToken')
484
+ ParticipantTokenCredentials = Shapes::StructureShape.new(name: 'ParticipantTokenCredentials')
479
485
  Password = Shapes::StringShape.new(name: 'Password')
480
486
  Percentage = Shapes::IntegerShape.new(name: 'Percentage')
481
487
  PermissionsList = Shapes::ListShape.new(name: 'PermissionsList')
@@ -1129,6 +1135,16 @@ module Aws::Connect
1129
1135
  CreateIntegrationAssociationResponse.add_member(:integration_association_arn, Shapes::ShapeRef.new(shape: ARN, location_name: "IntegrationAssociationArn"))
1130
1136
  CreateIntegrationAssociationResponse.struct_class = Types::CreateIntegrationAssociationResponse
1131
1137
 
1138
+ CreateParticipantRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, required: true, location_name: "InstanceId"))
1139
+ CreateParticipantRequest.add_member(:contact_id, Shapes::ShapeRef.new(shape: ContactId, required: true, location_name: "ContactId"))
1140
+ CreateParticipantRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
1141
+ CreateParticipantRequest.add_member(:participant_details, Shapes::ShapeRef.new(shape: ParticipantDetailsToAdd, required: true, location_name: "ParticipantDetails"))
1142
+ CreateParticipantRequest.struct_class = Types::CreateParticipantRequest
1143
+
1144
+ CreateParticipantResponse.add_member(:participant_credentials, Shapes::ShapeRef.new(shape: ParticipantTokenCredentials, location_name: "ParticipantCredentials"))
1145
+ CreateParticipantResponse.add_member(:participant_id, Shapes::ShapeRef.new(shape: ParticipantId, location_name: "ParticipantId"))
1146
+ CreateParticipantResponse.struct_class = Types::CreateParticipantResponse
1147
+
1132
1148
  CreateQueueRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, required: true, location: "uri", location_name: "InstanceId"))
1133
1149
  CreateQueueRequest.add_member(:name, Shapes::ShapeRef.new(shape: CommonNameLength127, required: true, location_name: "Name"))
1134
1150
  CreateQueueRequest.add_member(:description, Shapes::ShapeRef.new(shape: QueueDescription, location_name: "Description"))
@@ -2298,6 +2314,10 @@ module Aws::Connect
2298
2314
  ParticipantDetails.add_member(:display_name, Shapes::ShapeRef.new(shape: DisplayName, required: true, location_name: "DisplayName"))
2299
2315
  ParticipantDetails.struct_class = Types::ParticipantDetails
2300
2316
 
2317
+ ParticipantDetailsToAdd.add_member(:participant_role, Shapes::ShapeRef.new(shape: ParticipantRole, location_name: "ParticipantRole"))
2318
+ ParticipantDetailsToAdd.add_member(:display_name, Shapes::ShapeRef.new(shape: DisplayName, location_name: "DisplayName"))
2319
+ ParticipantDetailsToAdd.struct_class = Types::ParticipantDetailsToAdd
2320
+
2301
2321
  ParticipantTimerConfigList.member = Shapes::ShapeRef.new(shape: ParticipantTimerConfiguration)
2302
2322
 
2303
2323
  ParticipantTimerConfiguration.add_member(:participant_role, Shapes::ShapeRef.new(shape: TimerEligibleParticipantRoles, required: true, location_name: "ParticipantRole"))
@@ -2313,6 +2333,10 @@ module Aws::Connect
2313
2333
  ParticipantTimerValue.add_member_subclass(:unknown, Types::ParticipantTimerValue::Unknown)
2314
2334
  ParticipantTimerValue.struct_class = Types::ParticipantTimerValue
2315
2335
 
2336
+ ParticipantTokenCredentials.add_member(:participant_token, Shapes::ShapeRef.new(shape: ParticipantToken, location_name: "ParticipantToken"))
2337
+ ParticipantTokenCredentials.add_member(:expiry, Shapes::ShapeRef.new(shape: ISO8601Datetime, location_name: "Expiry"))
2338
+ ParticipantTokenCredentials.struct_class = Types::ParticipantTokenCredentials
2339
+
2316
2340
  PermissionsList.member = Shapes::ShapeRef.new(shape: SecurityProfilePermission)
2317
2341
 
2318
2342
  PersistentChat.add_member(:rehydration_type, Shapes::ShapeRef.new(shape: RehydrationType, location_name: "RehydrationType"))
@@ -3616,6 +3640,20 @@ module Aws::Connect
3616
3640
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
3617
3641
  end)
3618
3642
 
3643
+ api.add_operation(:create_participant, Seahorse::Model::Operation.new.tap do |o|
3644
+ o.name = "CreateParticipant"
3645
+ o.http_method = "POST"
3646
+ o.http_request_uri = "/contact/create-participant"
3647
+ o.input = Shapes::ShapeRef.new(shape: CreateParticipantRequest)
3648
+ o.output = Shapes::ShapeRef.new(shape: CreateParticipantResponse)
3649
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
3650
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
3651
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
3652
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
3653
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
3654
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
3655
+ end)
3656
+
3619
3657
  api.add_operation(:create_queue, Seahorse::Model::Operation.new.tap do |o|
3620
3658
  o.name = "CreateQueue"
3621
3659
  o.http_method = "PUT"
@@ -249,6 +249,20 @@ module Aws::Connect
249
249
  end
250
250
  end
251
251
 
252
+ class CreateParticipant
253
+ def self.build(context)
254
+ unless context.config.regional_endpoint
255
+ endpoint = context.config.endpoint.to_s
256
+ end
257
+ Aws::Connect::EndpointParameters.new(
258
+ region: context.config.region,
259
+ use_dual_stack: context.config.use_dualstack_endpoint,
260
+ use_fips: context.config.use_fips_endpoint,
261
+ endpoint: endpoint,
262
+ )
263
+ end
264
+ end
265
+
252
266
  class CreateQueue
253
267
  def self.build(context)
254
268
  unless context.config.regional_endpoint
@@ -90,6 +90,8 @@ module Aws::Connect
90
90
  Aws::Connect::Endpoints::CreateInstance.build(context)
91
91
  when :create_integration_association
92
92
  Aws::Connect::Endpoints::CreateIntegrationAssociation.build(context)
93
+ when :create_participant
94
+ Aws::Connect::Endpoints::CreateParticipant.build(context)
93
95
  when :create_queue
94
96
  Aws::Connect::Endpoints::CreateQueue.build(context)
95
97
  when :create_quick_connect
@@ -1570,6 +1570,73 @@ module Aws::Connect
1570
1570
  include Aws::Structure
1571
1571
  end
1572
1572
 
1573
+ # @!attribute [rw] instance_id
1574
+ # The identifier of the Amazon Connect instance. You can [find the
1575
+ # instance ID][1] in the Amazon Resource Name (ARN) of the instance.
1576
+ #
1577
+ #
1578
+ #
1579
+ # [1]: https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html
1580
+ # @return [String]
1581
+ #
1582
+ # @!attribute [rw] contact_id
1583
+ # The identifier of the contact in this instance of Amazon Connect.
1584
+ # Only contacts in the CHAT channel are supported.
1585
+ # @return [String]
1586
+ #
1587
+ # @!attribute [rw] client_token
1588
+ # A unique, case-sensitive identifier that you provide to ensure the
1589
+ # idempotency of the request. If not provided, the Amazon Web Services
1590
+ # SDK populates this field. For more information about idempotency,
1591
+ # see [Making retries safe with idempotent APIs][1].
1592
+ #
1593
+ # **A suitable default value is auto-generated.** You should normally
1594
+ # not need to pass this option.
1595
+ #
1596
+ #
1597
+ #
1598
+ # [1]: https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/
1599
+ # @return [String]
1600
+ #
1601
+ # @!attribute [rw] participant_details
1602
+ # Information identifying the participant.
1603
+ #
1604
+ # The only Valid value for `ParticipantRole` is `CUSTOM_BOT`.
1605
+ #
1606
+ # `DisplayName` is **Required**.
1607
+ # @return [Types::ParticipantDetailsToAdd]
1608
+ #
1609
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/CreateParticipantRequest AWS API Documentation
1610
+ #
1611
+ class CreateParticipantRequest < Struct.new(
1612
+ :instance_id,
1613
+ :contact_id,
1614
+ :client_token,
1615
+ :participant_details)
1616
+ SENSITIVE = []
1617
+ include Aws::Structure
1618
+ end
1619
+
1620
+ # @!attribute [rw] participant_credentials
1621
+ # The token used by the chat participant to call
1622
+ # `CreateParticipantConnection`. The participant token is valid for
1623
+ # the lifetime of a chat participant.
1624
+ # @return [Types::ParticipantTokenCredentials]
1625
+ #
1626
+ # @!attribute [rw] participant_id
1627
+ # The identifier for a chat participant. The participantId for a chat
1628
+ # participant is the same throughout the chat lifecycle.
1629
+ # @return [String]
1630
+ #
1631
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/CreateParticipantResponse AWS API Documentation
1632
+ #
1633
+ class CreateParticipantResponse < Struct.new(
1634
+ :participant_credentials,
1635
+ :participant_id)
1636
+ SENSITIVE = []
1637
+ include Aws::Structure
1638
+ end
1639
+
1573
1640
  # @!attribute [rw] instance_id
1574
1641
  # The identifier of the Amazon Connect instance. You can [find the
1575
1642
  # instance ID][1] in the Amazon Resource Name (ARN) of the instance.
@@ -7787,7 +7854,15 @@ module Aws::Connect
7787
7854
  # @!attribute [rw] metric_filter_key
7788
7855
  # The key to use for filtering data.
7789
7856
  #
7790
- # Valid metric filter keys: `INITIATION_METHOD`, `DISCONNECT_REASON`
7857
+ # Valid metric filter keys: `INITIATION_METHOD`, `DISCONNECT_REASON`.
7858
+ # These are the same values as the `InitiationMethod` and
7859
+ # `DisconnectReason` in the contact record. For more information, see
7860
+ # [ContactTraceRecord][1] in the *Amazon Connect Administrator's
7861
+ # Guide*.
7862
+ #
7863
+ #
7864
+ #
7865
+ # [1]: https://docs.aws.amazon.com/connect/latest/adminguide/ctr-data-model.html#ctr-ContactTraceRecord
7791
7866
  # @return [String]
7792
7867
  #
7793
7868
  # @!attribute [rw] metric_filter_values
@@ -8010,6 +8085,25 @@ module Aws::Connect
8010
8085
  include Aws::Structure
8011
8086
  end
8012
8087
 
8088
+ # The details to add for the participant.
8089
+ #
8090
+ # @!attribute [rw] participant_role
8091
+ # The role of the participant being added.
8092
+ # @return [String]
8093
+ #
8094
+ # @!attribute [rw] display_name
8095
+ # The display name of the participant.
8096
+ # @return [String]
8097
+ #
8098
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ParticipantDetailsToAdd AWS API Documentation
8099
+ #
8100
+ class ParticipantDetailsToAdd < Struct.new(
8101
+ :participant_role,
8102
+ :display_name)
8103
+ SENSITIVE = []
8104
+ include Aws::Structure
8105
+ end
8106
+
8013
8107
  # Configuration information for the timer. After the timer configuration
8014
8108
  # is set, it persists for the duration of the chat. It persists across
8015
8109
  # new contacts in the chain, for example, transfer contacts.
@@ -8085,6 +8179,32 @@ module Aws::Connect
8085
8179
  class Unknown < ParticipantTimerValue; end
8086
8180
  end
8087
8181
 
8182
+ # The credentials used by the participant.
8183
+ #
8184
+ # @!attribute [rw] participant_token
8185
+ # The token used by the chat participant to call
8186
+ # [CreateParticipantConnection][1]. The participant token is valid for
8187
+ # the lifetime of a chat participant.
8188
+ #
8189
+ #
8190
+ #
8191
+ # [1]: https://docs.aws.amazon.com/connect-participant/latest/APIReference/API_CreateParticipantConnection.html
8192
+ # @return [String]
8193
+ #
8194
+ # @!attribute [rw] expiry
8195
+ # The expiration of the token. It's specified in ISO 8601 format:
8196
+ # yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.
8197
+ # @return [String]
8198
+ #
8199
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ParticipantTokenCredentials AWS API Documentation
8200
+ #
8201
+ class ParticipantTokenCredentials < Struct.new(
8202
+ :participant_token,
8203
+ :expiry)
8204
+ SENSITIVE = []
8205
+ include Aws::Structure
8206
+ end
8207
+
8088
8208
  # Enable persistent chats. For more information about enabling
8089
8209
  # persistent chat, and for example use cases and how to configure for
8090
8210
  # them, see [Enable persistent chat][1].
@@ -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.101.0'
55
+ GEM_VERSION = '1.102.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.101.0
4
+ version: 1.102.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-04-10 00:00:00.000000000 Z
11
+ date: 2023-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core