aws-sdk-connectparticipant 1.24.0 → 1.26.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: 639a38f06bdc854a398cb63354b0f7d83a4ca06839e9507c7f78e5f03e2d8127
4
- data.tar.gz: 0db47b0dc51b0f7d2f391266a074b39b8ce5d575439322fc90d4eea22efdf9e3
3
+ metadata.gz: f2a40c0aa10e7846b68cd59904f57106e77ad2327d37479abd010dcdce6246c3
4
+ data.tar.gz: a727e332c61725d0a1b3e9cb413235d5342666c33c091c0f609f38ba55e5ab8e
5
5
  SHA512:
6
- metadata.gz: 7c4b2cca59650e6ec2678002b1b4140c9dec8e8b914e50c4365ba763dbd560acf79116f7e19588f70c57c458ab904ab33711f8ca652e2ac5a5cf6fd792ff177a
7
- data.tar.gz: 8a742cf7075df15439422fa332d71d982d883aa3ba58e41b1cf170e038a6b6393ac331443a45c6ed8983f1e3f1f7c55067266f05d8a7306090646c82cbf17091
6
+ metadata.gz: e2e0fcb93ec4b2319af65416e93be6ad1d02a009486487ed8d6596b40233abd8acf4081aa77cc63a2b4c55a717fc8d32e58c4e3b4a02a2c4f4321602b79b3e55
7
+ data.tar.gz: ccb33ca6c23917252f13271ffbb3e04a127044d80661ebe5d8708fa96e7ec0baa4f2d68361c90524e374f65448e5a30c1ceee79b50e75e50ad075e4639b47a8b
data/CHANGELOG.md CHANGED
@@ -1,6 +1,18 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.26.0 (2023-01-18)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ * Issue - Replace runtime endpoint resolution approach with generated ruby code.
10
+
11
+ 1.25.0 (2022-12-23)
12
+ ------------------
13
+
14
+ * Feature - Amazon Connect Chat introduces the Message Receipts feature. This feature allows agents and customers to receive message delivered and read receipts after they send a chat message.
15
+
4
16
  1.24.0 (2022-12-21)
5
17
  ------------------
6
18
 
@@ -130,4 +142,4 @@ Unreleased Changes
130
142
  1.0.0 (2019-11-21)
131
143
  ------------------
132
144
 
133
- * Feature - Initial release of `aws-sdk-connectparticipant`.
145
+ * Feature - Initial release of `aws-sdk-connectparticipant`.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.24.0
1
+ 1.26.0
@@ -371,6 +371,11 @@ module Aws::ConnectParticipant
371
371
  # Allows you to confirm that the attachment has been uploaded using the
372
372
  # pre-signed URL provided in StartAttachmentUpload API.
373
373
  #
374
+ # <note markdown="1"> `ConnectionToken` is used for invoking this API instead of
375
+ # `ParticipantToken`.
376
+ #
377
+ # </note>
378
+ #
374
379
  # The Amazon Connect Participant Service APIs do not use [Signature
375
380
  # Version 4 authentication][1].
376
381
  #
@@ -383,11 +388,17 @@ module Aws::ConnectParticipant
383
388
  #
384
389
  # @option params [required, String] :client_token
385
390
  # A unique, case-sensitive identifier that you provide to ensure the
386
- # idempotency of the request.
391
+ # idempotency of the request. If not provided, the Amazon Web Services
392
+ # SDK populates this field. For more information about idempotency, see
393
+ # [Making retries safe with idempotent APIs][1].
387
394
  #
388
395
  # **A suitable default value is auto-generated.** You should normally
389
396
  # not need to pass this option.**
390
397
  #
398
+ #
399
+ #
400
+ # [1]: https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/
401
+ #
391
402
  # @option params [required, String] :connection_token
392
403
  # The authentication token associated with the participant's
393
404
  # connection.
@@ -411,8 +422,12 @@ module Aws::ConnectParticipant
411
422
  req.send_request(options)
412
423
  end
413
424
 
414
- # Creates the participant's connection. Note that ParticipantToken is
415
- # used for invoking this API instead of ConnectionToken.
425
+ # Creates the participant's connection.
426
+ #
427
+ # <note markdown="1"> `ParticipantToken` is used for invoking this API instead of
428
+ # `ConnectionToken`.
429
+ #
430
+ # </note>
416
431
  #
417
432
  # The participant token is valid for the lifetime of the participant –
418
433
  # until they are part of a contact.
@@ -453,8 +468,9 @@ module Aws::ConnectParticipant
453
468
  # [3]: https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html#feature-limits
454
469
  # [4]: https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html
455
470
  #
456
- # @option params [required, Array<String>] :type
457
- # Type of connection information required.
471
+ # @option params [Array<String>] :type
472
+ # Type of connection information required. This can be omitted if
473
+ # `ConnectParticipant` is `true`.
458
474
  #
459
475
  # @option params [required, String] :participant_token
460
476
  # This is a header parameter.
@@ -478,7 +494,7 @@ module Aws::ConnectParticipant
478
494
  # @example Request syntax with placeholder values
479
495
  #
480
496
  # resp = client.create_participant_connection({
481
- # type: ["WEBSOCKET"], # required, accepts WEBSOCKET, CONNECTION_CREDENTIALS
497
+ # type: ["WEBSOCKET"], # accepts WEBSOCKET, CONNECTION_CREDENTIALS
482
498
  # participant_token: "ParticipantToken", # required
483
499
  # connect_participant: false,
484
500
  # })
@@ -499,8 +515,12 @@ module Aws::ConnectParticipant
499
515
  req.send_request(options)
500
516
  end
501
517
 
502
- # Disconnects a participant. Note that ConnectionToken is used for
503
- # invoking this API instead of ParticipantToken.
518
+ # Disconnects a participant.
519
+ #
520
+ # <note markdown="1"> `ConnectionToken` is used for invoking this API instead of
521
+ # `ParticipantToken`.
522
+ #
523
+ # </note>
504
524
  #
505
525
  # The Amazon Connect Participant Service APIs do not use [Signature
506
526
  # Version 4 authentication][1].
@@ -511,11 +531,17 @@ module Aws::ConnectParticipant
511
531
  #
512
532
  # @option params [String] :client_token
513
533
  # A unique, case-sensitive identifier that you provide to ensure the
514
- # idempotency of the request.
534
+ # idempotency of the request. If not provided, the Amazon Web Services
535
+ # SDK populates this field. For more information about idempotency, see
536
+ # [Making retries safe with idempotent APIs][1].
515
537
  #
516
538
  # **A suitable default value is auto-generated.** You should normally
517
539
  # not need to pass this option.**
518
540
  #
541
+ #
542
+ #
543
+ # [1]: https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/
544
+ #
519
545
  # @option params [required, String] :connection_token
520
546
  # The authentication token associated with the participant's
521
547
  # connection.
@@ -541,6 +567,11 @@ module Aws::ConnectParticipant
541
567
  # Provides a pre-signed URL for download of a completed attachment. This
542
568
  # is an asynchronous API for use with active contacts.
543
569
  #
570
+ # <note markdown="1"> `ConnectionToken` is used for invoking this API instead of
571
+ # `ParticipantToken`.
572
+ #
573
+ # </note>
574
+ #
544
575
  # The Amazon Connect Participant Service APIs do not use [Signature
545
576
  # Version 4 authentication][1].
546
577
  #
@@ -582,8 +613,12 @@ module Aws::ConnectParticipant
582
613
  end
583
614
 
584
615
  # Retrieves a transcript of the session, including details about any
585
- # attachments. Note that ConnectionToken is used for invoking this API
586
- # instead of ParticipantToken.
616
+ # attachments.
617
+ #
618
+ # <note markdown="1"> `ConnectionToken` is used for invoking this API instead of
619
+ # `ParticipantToken`.
620
+ #
621
+ # </note>
587
622
  #
588
623
  # The Amazon Connect Participant Service APIs do not use [Signature
589
624
  # Version 4 authentication][1].
@@ -650,7 +685,7 @@ module Aws::ConnectParticipant
650
685
  # resp.transcript[0].content #=> String
651
686
  # resp.transcript[0].content_type #=> String
652
687
  # resp.transcript[0].id #=> String
653
- # resp.transcript[0].type #=> String, one of "TYPING", "PARTICIPANT_JOINED", "PARTICIPANT_LEFT", "CHAT_ENDED", "TRANSFER_SUCCEEDED", "TRANSFER_FAILED", "MESSAGE", "EVENT", "ATTACHMENT", "CONNECTION_ACK"
688
+ # resp.transcript[0].type #=> String, one of "TYPING", "PARTICIPANT_JOINED", "PARTICIPANT_LEFT", "CHAT_ENDED", "TRANSFER_SUCCEEDED", "TRANSFER_FAILED", "MESSAGE", "EVENT", "ATTACHMENT", "CONNECTION_ACK", "MESSAGE_DELIVERED", "MESSAGE_READ"
654
689
  # resp.transcript[0].participant_id #=> String
655
690
  # resp.transcript[0].display_name #=> String
656
691
  # resp.transcript[0].participant_role #=> String, one of "AGENT", "CUSTOMER", "SYSTEM"
@@ -659,6 +694,11 @@ module Aws::ConnectParticipant
659
694
  # resp.transcript[0].attachments[0].attachment_id #=> String
660
695
  # resp.transcript[0].attachments[0].attachment_name #=> String
661
696
  # resp.transcript[0].attachments[0].status #=> String, one of "APPROVED", "REJECTED", "IN_PROGRESS"
697
+ # resp.transcript[0].message_metadata.message_id #=> String
698
+ # resp.transcript[0].message_metadata.receipts #=> Array
699
+ # resp.transcript[0].message_metadata.receipts[0].delivered_timestamp #=> String
700
+ # resp.transcript[0].message_metadata.receipts[0].read_timestamp #=> String
701
+ # resp.transcript[0].message_metadata.receipts[0].recipient_participant_id #=> String
662
702
  # resp.next_token #=> String
663
703
  #
664
704
  # @see http://docs.aws.amazon.com/goto/WebAPI/connectparticipant-2018-09-07/GetTranscript AWS API Documentation
@@ -670,8 +710,12 @@ module Aws::ConnectParticipant
670
710
  req.send_request(options)
671
711
  end
672
712
 
673
- # Sends an event. Note that ConnectionToken is used for invoking this
674
- # API instead of ParticipantToken.
713
+ # Sends an event.
714
+ #
715
+ # <note markdown="1"> `ConnectionToken` is used for invoking this API instead of
716
+ # `ParticipantToken`.
717
+ #
718
+ # </note>
675
719
  #
676
720
  # The Amazon Connect Participant Service APIs do not use [Signature
677
721
  # Version 4 authentication][1].
@@ -687,17 +731,31 @@ module Aws::ConnectParticipant
687
731
  #
688
732
  # * application/vnd.amazonaws.connect.event.connection.acknowledged
689
733
  #
734
+ # * application/vnd.amazonaws.connect.event.message.delivered
735
+ #
736
+ # * application/vnd.amazonaws.connect.event.message.read
737
+ #
690
738
  # @option params [String] :content
691
- # The content of the event to be sent (for example, message text). This
692
- # is not yet supported.
739
+ # The content of the event to be sent (for example, message text). For
740
+ # content related to message receipts, this is supported in the form of
741
+ # a JSON string.
742
+ #
743
+ # Sample Content:
744
+ # "\\\{\\"messageId\\":\\"11111111-aaaa-bbbb-cccc-EXAMPLE01234\\"\\}"
693
745
  #
694
746
  # @option params [String] :client_token
695
747
  # A unique, case-sensitive identifier that you provide to ensure the
696
- # idempotency of the request.
748
+ # idempotency of the request. If not provided, the Amazon Web Services
749
+ # SDK populates this field. For more information about idempotency, see
750
+ # [Making retries safe with idempotent APIs][1].
697
751
  #
698
752
  # **A suitable default value is auto-generated.** You should normally
699
753
  # not need to pass this option.**
700
754
  #
755
+ #
756
+ #
757
+ # [1]: https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/
758
+ #
701
759
  # @option params [required, String] :connection_token
702
760
  # The authentication token associated with the participant's
703
761
  # connection.
@@ -730,8 +788,12 @@ module Aws::ConnectParticipant
730
788
  req.send_request(options)
731
789
  end
732
790
 
733
- # Sends a message. Note that ConnectionToken is used for invoking this
734
- # API instead of ParticipantToken.
791
+ # Sends a message.
792
+ #
793
+ # <note markdown="1"> `ConnectionToken` is used for invoking this API instead of
794
+ # `ParticipantToken`.
795
+ #
796
+ # </note>
735
797
  #
736
798
  # The Amazon Connect Participant Service APIs do not use [Signature
737
799
  # Version 4 authentication][1].
@@ -741,18 +803,31 @@ module Aws::ConnectParticipant
741
803
  # [1]: https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html
742
804
  #
743
805
  # @option params [required, String] :content_type
744
- # The type of the content. Supported types are text/plain.
806
+ # The type of the content. Supported types are `text/plain`,
807
+ # `text/markdown`, and `application/json`.
745
808
  #
746
809
  # @option params [required, String] :content
747
810
  # The content of the message.
748
811
  #
812
+ # * For `text/plain` and `text/markdown`, the Length Constraints are
813
+ # Minimum of 1, Maximum of 1024.
814
+ #
815
+ # * For `application/json`, the Length Constraints are Minimum of 1,
816
+ # Maximum of 12000.
817
+ #
749
818
  # @option params [String] :client_token
750
819
  # A unique, case-sensitive identifier that you provide to ensure the
751
- # idempotency of the request.
820
+ # idempotency of the request. If not provided, the Amazon Web Services
821
+ # SDK populates this field. For more information about idempotency, see
822
+ # [Making retries safe with idempotent APIs][1].
752
823
  #
753
824
  # **A suitable default value is auto-generated.** You should normally
754
825
  # not need to pass this option.**
755
826
  #
827
+ #
828
+ #
829
+ # [1]: https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/
830
+ #
756
831
  # @option params [required, String] :connection_token
757
832
  # The authentication token associated with the connection.
758
833
  #
@@ -787,6 +862,11 @@ module Aws::ConnectParticipant
787
862
  # Provides a pre-signed Amazon S3 URL in response for uploading the file
788
863
  # directly to S3.
789
864
  #
865
+ # <note markdown="1"> `ConnectionToken` is used for invoking this API instead of
866
+ # `ParticipantToken`.
867
+ #
868
+ # </note>
869
+ #
790
870
  # The Amazon Connect Participant Service APIs do not use [Signature
791
871
  # Version 4 authentication][1].
792
872
  #
@@ -801,7 +881,7 @@ module Aws::ConnectParticipant
801
881
  #
802
882
  #
803
883
  #
804
- # [1]: https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html#feature-limits
884
+ # [1]: https://docs.aws.amazon.com/connect/latest/adminguide/feature-limits.html
805
885
  #
806
886
  # @option params [required, Integer] :attachment_size_in_bytes
807
887
  # The size of the attachment in bytes.
@@ -810,11 +890,18 @@ module Aws::ConnectParticipant
810
890
  # A case-sensitive name of the attachment being uploaded.
811
891
  #
812
892
  # @option params [required, String] :client_token
813
- # A unique case sensitive identifier to support idempotency of request.
893
+ # A unique, case-sensitive identifier that you provide to ensure the
894
+ # idempotency of the request. If not provided, the Amazon Web Services
895
+ # SDK populates this field. For more information about idempotency, see
896
+ # [Making retries safe with idempotent APIs][1].
814
897
  #
815
898
  # **A suitable default value is auto-generated.** You should normally
816
899
  # not need to pass this option.**
817
900
  #
901
+ #
902
+ #
903
+ # [1]: https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/
904
+ #
818
905
  # @option params [required, String] :connection_token
819
906
  # The authentication token associated with the participant's
820
907
  # connection.
@@ -864,7 +951,7 @@ module Aws::ConnectParticipant
864
951
  params: params,
865
952
  config: config)
866
953
  context[:gem_name] = 'aws-sdk-connectparticipant'
867
- context[:gem_version] = '1.24.0'
954
+ context[:gem_version] = '1.26.0'
868
955
  Seahorse::Client::Request.new(handlers, context)
869
956
  end
870
957
 
@@ -50,6 +50,7 @@ module Aws::ConnectParticipant
50
50
  Item = Shapes::StructureShape.new(name: 'Item')
51
51
  MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
52
52
  Message = Shapes::StringShape.new(name: 'Message')
53
+ MessageMetadata = Shapes::StructureShape.new(name: 'MessageMetadata')
53
54
  MostRecent = Shapes::IntegerShape.new(name: 'MostRecent')
54
55
  NextToken = Shapes::StringShape.new(name: 'NextToken')
55
56
  NonEmptyClientToken = Shapes::StringShape.new(name: 'NonEmptyClientToken')
@@ -59,6 +60,8 @@ module Aws::ConnectParticipant
59
60
  PreSignedAttachmentUrl = Shapes::StringShape.new(name: 'PreSignedAttachmentUrl')
60
61
  PreSignedConnectionUrl = Shapes::StringShape.new(name: 'PreSignedConnectionUrl')
61
62
  Reason = Shapes::StringShape.new(name: 'Reason')
63
+ Receipt = Shapes::StructureShape.new(name: 'Receipt')
64
+ Receipts = Shapes::ListShape.new(name: 'Receipts')
62
65
  ScanDirection = Shapes::StringShape.new(name: 'ScanDirection')
63
66
  SendEventRequest = Shapes::StructureShape.new(name: 'SendEventRequest')
64
67
  SendEventResponse = Shapes::StructureShape.new(name: 'SendEventResponse')
@@ -108,7 +111,7 @@ module Aws::ConnectParticipant
108
111
 
109
112
  ConnectionTypeList.member = Shapes::ShapeRef.new(shape: ConnectionType)
110
113
 
111
- CreateParticipantConnectionRequest.add_member(:type, Shapes::ShapeRef.new(shape: ConnectionTypeList, required: true, location_name: "Type"))
114
+ CreateParticipantConnectionRequest.add_member(:type, Shapes::ShapeRef.new(shape: ConnectionTypeList, location_name: "Type"))
112
115
  CreateParticipantConnectionRequest.add_member(:participant_token, Shapes::ShapeRef.new(shape: ParticipantToken, required: true, location: "header", location_name: "X-Amz-Bearer"))
113
116
  CreateParticipantConnectionRequest.add_member(:connect_participant, Shapes::ShapeRef.new(shape: Bool, location_name: "ConnectParticipant"))
114
117
  CreateParticipantConnectionRequest.struct_class = Types::CreateParticipantConnectionRequest
@@ -157,8 +160,20 @@ module Aws::ConnectParticipant
157
160
  Item.add_member(:display_name, Shapes::ShapeRef.new(shape: DisplayName, location_name: "DisplayName"))
158
161
  Item.add_member(:participant_role, Shapes::ShapeRef.new(shape: ParticipantRole, location_name: "ParticipantRole"))
159
162
  Item.add_member(:attachments, Shapes::ShapeRef.new(shape: Attachments, location_name: "Attachments"))
163
+ Item.add_member(:message_metadata, Shapes::ShapeRef.new(shape: MessageMetadata, location_name: "MessageMetadata"))
160
164
  Item.struct_class = Types::Item
161
165
 
166
+ MessageMetadata.add_member(:message_id, Shapes::ShapeRef.new(shape: ChatItemId, location_name: "MessageId"))
167
+ MessageMetadata.add_member(:receipts, Shapes::ShapeRef.new(shape: Receipts, location_name: "Receipts"))
168
+ MessageMetadata.struct_class = Types::MessageMetadata
169
+
170
+ Receipt.add_member(:delivered_timestamp, Shapes::ShapeRef.new(shape: Instant, location_name: "DeliveredTimestamp"))
171
+ Receipt.add_member(:read_timestamp, Shapes::ShapeRef.new(shape: Instant, location_name: "ReadTimestamp"))
172
+ Receipt.add_member(:recipient_participant_id, Shapes::ShapeRef.new(shape: ParticipantId, location_name: "RecipientParticipantId"))
173
+ Receipt.struct_class = Types::Receipt
174
+
175
+ Receipts.member = Shapes::ShapeRef.new(shape: Receipt)
176
+
162
177
  SendEventRequest.add_member(:content_type, Shapes::ShapeRef.new(shape: ChatContentType, required: true, location_name: "ContentType"))
163
178
  SendEventRequest.add_member(:content, Shapes::ShapeRef.new(shape: ChatContent, location_name: "Content"))
164
179
  SendEventRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
@@ -9,102 +9,43 @@
9
9
 
10
10
  module Aws::ConnectParticipant
11
11
  class EndpointProvider
12
- def initialize(rule_set = nil)
13
- @@rule_set ||= begin
14
- endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
15
- Aws::Endpoints::RuleSet.new(
16
- version: endpoint_rules['version'],
17
- service_id: endpoint_rules['serviceId'],
18
- parameters: endpoint_rules['parameters'],
19
- rules: endpoint_rules['rules']
20
- )
12
+ def resolve_endpoint(parameters)
13
+ region = parameters.region
14
+ use_dual_stack = parameters.use_dual_stack
15
+ use_fips = parameters.use_fips
16
+ endpoint = parameters.endpoint
17
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
+ if Aws::Endpoints::Matchers.set?(endpoint)
19
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
20
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
21
+ end
22
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
23
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
24
+ end
25
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
26
+ end
27
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
28
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
29
+ return Aws::Endpoints::Endpoint.new(url: "https://participant.connect-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
30
+ end
31
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
32
+ end
33
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
34
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
+ return Aws::Endpoints::Endpoint.new(url: "https://participant.connect-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
36
+ end
37
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
38
+ end
39
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
40
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
41
+ return Aws::Endpoints::Endpoint.new(url: "https://participant.connect.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
42
+ end
43
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
44
+ end
45
+ return Aws::Endpoints::Endpoint.new(url: "https://participant.connect.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
21
46
  end
22
- @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
- end
47
+ raise ArgumentError, 'No endpoint could be resolved'
24
48
 
25
- def resolve_endpoint(parameters)
26
- @provider.resolve_endpoint(parameters)
27
49
  end
28
-
29
- # @api private
30
- RULES = <<-JSON
31
- eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
32
- bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOnRydWUsImRvY3VtZW50
33
- YXRpb24iOiJUaGUgQVdTIHJlZ2lvbiB1c2VkIHRvIGRpc3BhdGNoIHRoZSBy
34
- ZXF1ZXN0LiIsInR5cGUiOiJTdHJpbmcifSwiVXNlRHVhbFN0YWNrIjp7ImJ1
35
- aWx0SW4iOiJBV1M6OlVzZUR1YWxTdGFjayIsInJlcXVpcmVkIjp0cnVlLCJk
36
- ZWZhdWx0IjpmYWxzZSwiZG9jdW1lbnRhdGlvbiI6IldoZW4gdHJ1ZSwgdXNl
37
- IHRoZSBkdWFsLXN0YWNrIGVuZHBvaW50LiBJZiB0aGUgY29uZmlndXJlZCBl
38
- bmRwb2ludCBkb2VzIG5vdCBzdXBwb3J0IGR1YWwtc3RhY2ssIGRpc3BhdGNo
39
- aW5nIHRoZSByZXF1ZXN0IE1BWSByZXR1cm4gYW4gZXJyb3IuIiwidHlwZSI6
40
- IkJvb2xlYW4ifSwiVXNlRklQUyI6eyJidWlsdEluIjoiQVdTOjpVc2VGSVBT
41
- IiwicmVxdWlyZWQiOnRydWUsImRlZmF1bHQiOmZhbHNlLCJkb2N1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
- biI6ImJvb2xlYW5FcXVhbHMiLCJhcmd2IjpbeyJyZWYiOiJVc2VEdWFsU3Rh
93
- Y2sifSx0cnVlXX1dLCJ0eXBlIjoidHJlZSIsInJ1bGVzIjpbeyJjb25kaXRp
94
- b25zIjpbeyJmbiI6ImJvb2xlYW5FcXVhbHMiLCJhcmd2IjpbdHJ1ZSx7ImZu
95
- IjoiZ2V0QXR0ciIsImFyZ3YiOlt7InJlZiI6IlBhcnRpdGlvblJlc3VsdCJ9
96
- LCJzdXBwb3J0c0R1YWxTdGFjayJdfV19XSwidHlwZSI6InRyZWUiLCJydWxl
97
- cyI6W3siY29uZGl0aW9ucyI6W10sImVuZHBvaW50Ijp7InVybCI6Imh0dHBz
98
- Oi8vcGFydGljaXBhbnQuY29ubmVjdC57UmVnaW9ufS57UGFydGl0aW9uUmVz
99
- dWx0I2R1YWxTdGFja0Ruc1N1ZmZpeH0iLCJwcm9wZXJ0aWVzIjp7fSwiaGVh
100
- ZGVycyI6e319LCJ0eXBlIjoiZW5kcG9pbnQifV19LHsiY29uZGl0aW9ucyI6
101
- W10sImVycm9yIjoiRHVhbFN0YWNrIGlzIGVuYWJsZWQgYnV0IHRoaXMgcGFy
102
- dGl0aW9uIGRvZXMgbm90IHN1cHBvcnQgRHVhbFN0YWNrIiwidHlwZSI6ImVy
103
- cm9yIn1dfSx7ImNvbmRpdGlvbnMiOltdLCJlbmRwb2ludCI6eyJ1cmwiOiJo
104
- dHRwczovL3BhcnRpY2lwYW50LmNvbm5lY3Que1JlZ2lvbn0ue1BhcnRpdGlv
105
- blJlc3VsdCNkbnNTdWZmaXh9IiwicHJvcGVydGllcyI6e30sImhlYWRlcnMi
106
- Ont9fSwidHlwZSI6ImVuZHBvaW50In1dfV19
107
-
108
- JSON
109
50
  end
110
51
  end
@@ -33,7 +33,7 @@ module Aws::ConnectParticipant
33
33
  #
34
34
  #
35
35
  #
36
- # [1]: https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html#feature-limits
36
+ # [1]: https://docs.aws.amazon.com/connect/latest/adminguide/feature-limits.html
37
37
  # @return [String]
38
38
  #
39
39
  # @!attribute [rw] attachment_id
@@ -65,10 +65,16 @@ module Aws::ConnectParticipant
65
65
  #
66
66
  # @!attribute [rw] client_token
67
67
  # A unique, case-sensitive identifier that you provide to ensure the
68
- # idempotency of the request.
68
+ # idempotency of the request. If not provided, the Amazon Web Services
69
+ # SDK populates this field. For more information about idempotency,
70
+ # see [Making retries safe with idempotent APIs][1].
69
71
  #
70
72
  # **A suitable default value is auto-generated.** You should normally
71
73
  # not need to pass this option.
74
+ #
75
+ #
76
+ #
77
+ # [1]: https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/
72
78
  # @return [String]
73
79
  #
74
80
  # @!attribute [rw] connection_token
@@ -126,7 +132,8 @@ module Aws::ConnectParticipant
126
132
  end
127
133
 
128
134
  # @!attribute [rw] type
129
- # Type of connection information required.
135
+ # Type of connection information required. This can be omitted if
136
+ # `ConnectParticipant` is `true`.
130
137
  # @return [Array<String>]
131
138
  #
132
139
  # @!attribute [rw] participant_token
@@ -175,10 +182,16 @@ module Aws::ConnectParticipant
175
182
 
176
183
  # @!attribute [rw] client_token
177
184
  # A unique, case-sensitive identifier that you provide to ensure the
178
- # idempotency of the request.
185
+ # idempotency of the request. If not provided, the Amazon Web Services
186
+ # SDK populates this field. For more information about idempotency,
187
+ # see [Making retries safe with idempotent APIs][1].
179
188
  #
180
189
  # **A suitable default value is auto-generated.** You should normally
181
190
  # not need to pass this option.
191
+ #
192
+ #
193
+ #
194
+ # [1]: https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/
182
195
  # @return [String]
183
196
  #
184
197
  # @!attribute [rw] connection_token
@@ -367,6 +380,11 @@ module Aws::ConnectParticipant
367
380
  # Provides information about the attachments.
368
381
  # @return [Array<Types::AttachmentItem>]
369
382
  #
383
+ # @!attribute [rw] message_metadata
384
+ # The metadata related to the message. Currently this supports only
385
+ # information related to message receipts.
386
+ # @return [Types::MessageMetadata]
387
+ #
370
388
  # @see http://docs.aws.amazon.com/goto/WebAPI/connectparticipant-2018-09-07/Item AWS API Documentation
371
389
  #
372
390
  class Item < Struct.new(
@@ -378,7 +396,53 @@ module Aws::ConnectParticipant
378
396
  :participant_id,
379
397
  :display_name,
380
398
  :participant_role,
381
- :attachments)
399
+ :attachments,
400
+ :message_metadata)
401
+ SENSITIVE = []
402
+ include Aws::Structure
403
+ end
404
+
405
+ # Contains metadata related to a message.
406
+ #
407
+ # @!attribute [rw] message_id
408
+ # The identifier of the message that contains the metadata
409
+ # information.
410
+ # @return [String]
411
+ #
412
+ # @!attribute [rw] receipts
413
+ # The list of receipt information for a message for different
414
+ # recipients.
415
+ # @return [Array<Types::Receipt>]
416
+ #
417
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connectparticipant-2018-09-07/MessageMetadata AWS API Documentation
418
+ #
419
+ class MessageMetadata < Struct.new(
420
+ :message_id,
421
+ :receipts)
422
+ SENSITIVE = []
423
+ include Aws::Structure
424
+ end
425
+
426
+ # The receipt for the message delivered to the recipient.
427
+ #
428
+ # @!attribute [rw] delivered_timestamp
429
+ # The time when the message was delivered to the recipient.
430
+ # @return [String]
431
+ #
432
+ # @!attribute [rw] read_timestamp
433
+ # The time when the message was read by the recipient.
434
+ # @return [String]
435
+ #
436
+ # @!attribute [rw] recipient_participant_id
437
+ # The identifier of the recipient of the message.
438
+ # @return [String]
439
+ #
440
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connectparticipant-2018-09-07/Receipt AWS API Documentation
441
+ #
442
+ class Receipt < Struct.new(
443
+ :delivered_timestamp,
444
+ :read_timestamp,
445
+ :recipient_participant_id)
382
446
  SENSITIVE = []
383
447
  include Aws::Structure
384
448
  end
@@ -389,19 +453,33 @@ module Aws::ConnectParticipant
389
453
  # * application/vnd.amazonaws.connect.event.typing
390
454
  #
391
455
  # * application/vnd.amazonaws.connect.event.connection.acknowledged
456
+ #
457
+ # * application/vnd.amazonaws.connect.event.message.delivered
458
+ #
459
+ # * application/vnd.amazonaws.connect.event.message.read
392
460
  # @return [String]
393
461
  #
394
462
  # @!attribute [rw] content
395
- # The content of the event to be sent (for example, message text).
396
- # This is not yet supported.
463
+ # The content of the event to be sent (for example, message text). For
464
+ # content related to message receipts, this is supported in the form
465
+ # of a JSON string.
466
+ #
467
+ # Sample Content:
468
+ # "\\\{\\"messageId\\":\\"11111111-aaaa-bbbb-cccc-EXAMPLE01234\\"\\}"
397
469
  # @return [String]
398
470
  #
399
471
  # @!attribute [rw] client_token
400
472
  # A unique, case-sensitive identifier that you provide to ensure the
401
- # idempotency of the request.
473
+ # idempotency of the request. If not provided, the Amazon Web Services
474
+ # SDK populates this field. For more information about idempotency,
475
+ # see [Making retries safe with idempotent APIs][1].
402
476
  #
403
477
  # **A suitable default value is auto-generated.** You should normally
404
478
  # not need to pass this option.
479
+ #
480
+ #
481
+ #
482
+ # [1]: https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/
405
483
  # @return [String]
406
484
  #
407
485
  # @!attribute [rw] connection_token
@@ -441,19 +519,32 @@ module Aws::ConnectParticipant
441
519
  end
442
520
 
443
521
  # @!attribute [rw] content_type
444
- # The type of the content. Supported types are text/plain.
522
+ # The type of the content. Supported types are `text/plain`,
523
+ # `text/markdown`, and `application/json`.
445
524
  # @return [String]
446
525
  #
447
526
  # @!attribute [rw] content
448
527
  # The content of the message.
528
+ #
529
+ # * For `text/plain` and `text/markdown`, the Length Constraints are
530
+ # Minimum of 1, Maximum of 1024.
531
+ #
532
+ # * For `application/json`, the Length Constraints are Minimum of 1,
533
+ # Maximum of 12000.
449
534
  # @return [String]
450
535
  #
451
536
  # @!attribute [rw] client_token
452
537
  # A unique, case-sensitive identifier that you provide to ensure the
453
- # idempotency of the request.
538
+ # idempotency of the request. If not provided, the Amazon Web Services
539
+ # SDK populates this field. For more information about idempotency,
540
+ # see [Making retries safe with idempotent APIs][1].
454
541
  #
455
542
  # **A suitable default value is auto-generated.** You should normally
456
543
  # not need to pass this option.
544
+ #
545
+ #
546
+ #
547
+ # [1]: https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/
457
548
  # @return [String]
458
549
  #
459
550
  # @!attribute [rw] connection_token
@@ -511,7 +602,7 @@ module Aws::ConnectParticipant
511
602
  #
512
603
  #
513
604
  #
514
- # [1]: https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html#feature-limits
605
+ # [1]: https://docs.aws.amazon.com/connect/latest/adminguide/feature-limits.html
515
606
  # @return [String]
516
607
  #
517
608
  # @!attribute [rw] attachment_size_in_bytes
@@ -523,11 +614,17 @@ module Aws::ConnectParticipant
523
614
  # @return [String]
524
615
  #
525
616
  # @!attribute [rw] client_token
526
- # A unique case sensitive identifier to support idempotency of
527
- # request.
617
+ # A unique, case-sensitive identifier that you provide to ensure the
618
+ # idempotency of the request. If not provided, the Amazon Web Services
619
+ # SDK populates this field. For more information about idempotency,
620
+ # see [Making retries safe with idempotent APIs][1].
528
621
  #
529
622
  # **A suitable default value is auto-generated.** You should normally
530
623
  # not need to pass this option.
624
+ #
625
+ #
626
+ #
627
+ # [1]: https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/
531
628
  # @return [String]
532
629
  #
533
630
  # @!attribute [rw] connection_token
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-connectparticipant/customizations'
52
52
  # @!group service
53
53
  module Aws::ConnectParticipant
54
54
 
55
- GEM_VERSION = '1.24.0'
55
+ GEM_VERSION = '1.26.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-connectparticipant
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.24.0
4
+ version: 1.26.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: 2022-12-21 00:00:00.000000000 Z
11
+ date: 2023-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core