aws-sdk-connectcases 1.18.0 → 1.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8fddee1708b2446c0b5ad50ca7e93445d1b4ce0c62563429a4cd8455c4496065
4
- data.tar.gz: 1a75a65bea3da29abefa63e8b44fee5973570348c2be713acf3a46b0cef8c83a
3
+ metadata.gz: 30039f3588d7d48a614dfe027e1f90806ccd4b465391d13c2fb59a800debd9f4
4
+ data.tar.gz: cfcbdab4f3991210afc1a102275575fcc14fa5b85fbcef6696885fbc95dc7125
5
5
  SHA512:
6
- metadata.gz: 61d56a08b7c10f08eec1f6b3c8db7fd27d7bbd21df1fe388ec2f118dc63ba953035ebf251c17f369d3bb74f543e70ff2d5b101d5e57f39c97ad91333967a8a81
7
- data.tar.gz: b29c96da83e10fd83b7de47f8e641ec2d485c05e06b7cfcba82f5d16e97d44a05a1a819e20f20c8f2921139faf7c237c314295349e06ab2ce87e9538caee2816
6
+ metadata.gz: d26b794c3612d7545c569b3612116abb414725f8ed45ad845d92d3750477be669fd5eed5d95c39a0c87ea5a6a0ab3eedc2e76cafd7dcfb699ffcaaa0348ebbb1
7
+ data.tar.gz: e40bc98362f9a50827670de572a2616e61986346f2760e1cbfa13f01d4a692941328bc6bd3eaef80540241726a59083e4c3c4bc3ac5de15fef9257dc75ae81fb
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.20.0 (2024-01-26)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.19.0 (2024-01-22)
10
+ ------------------
11
+
12
+ * Feature - This release adds the ability to view audit history on a case and introduces a new parameter, performedBy, for CreateCase and UpdateCase API's.
13
+
4
14
  1.18.0 (2023-12-15)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.18.0
1
+ 1.20.0
@@ -427,7 +427,7 @@ module Aws::ConnectCases
427
427
  # resp.fields[0].namespace #=> String, one of "System", "Custom"
428
428
  # resp.fields[0].tags #=> Hash
429
429
  # resp.fields[0].tags["String"] #=> String
430
- # resp.fields[0].type #=> String, one of "Text", "Number", "Boolean", "DateTime", "SingleSelect", "Url"
430
+ # resp.fields[0].type #=> String, one of "Text", "Number", "Boolean", "DateTime", "SingleSelect", "Url", "User"
431
431
  #
432
432
  # @see http://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/BatchGetField AWS API Documentation
433
433
  #
@@ -484,13 +484,17 @@ module Aws::ConnectCases
484
484
  req.send_request(options)
485
485
  end
486
486
 
487
- # Creates a case in the specified Cases domain. Case system and custom
488
- # fields are taken as an array id/value pairs with a declared data
489
- # types.
487
+ # <note markdown="1"> If you provide a value for `PerformedBy.UserArn` you must also have
488
+ # [connect:DescribeUser][1] permission on the User ARN resource that you
489
+ # provide
490
+ #
491
+ # </note>
492
+ #
493
+ # <p>Creates a case in the specified Cases domain. Case system and custom fields are taken as an array id/value pairs with a declared data types.</p> <p>The following fields are required when creating a case:</p> <ul> <li> <p> <code>customer_id</code> - You must provide the full customer profile ARN in this format: <code>arn:aws:profile:your_AWS_Region:your_AWS_account ID:domains/your_profiles_domain_name/profiles/profile_ID</code> </p> </li> <li> <p> <code>title</code> </p> </li> </ul>
494
+ #
490
495
  #
491
- # The following fields are required when creating a case:
492
496
  #
493
- # <ul> <li> <p> <code>customer_id</code> - You must provide the full customer profile ARN in this format: <code>arn:aws:profile:your_AWS_Region:your_AWS_account ID:domains/your_profiles_domain_name/profiles/profile_ID</code> </p> </li> <li> <p> <code>title</code> </p> </li> </ul>
497
+ # [1]: https://docs.aws.amazon.com/connect/latest/APIReference/API_DescribeUser.html
494
498
  #
495
499
  # @option params [String] :client_token
496
500
  # A unique, case-sensitive identifier that you provide to ensure the
@@ -512,6 +516,9 @@ module Aws::ConnectCases
512
516
  # An array of objects with field ID (matching ListFields/DescribeField)
513
517
  # and value union data.
514
518
  #
519
+ # @option params [Types::UserUnion] :performed_by
520
+ # Represents the identity of the person who performed the action.
521
+ #
515
522
  # @option params [required, String] :template_id
516
523
  # A unique identifier of a template.
517
524
  #
@@ -534,9 +541,13 @@ module Aws::ConnectCases
534
541
  # empty_value: {
535
542
  # },
536
543
  # string_value: "FieldValueUnionStringValueString",
544
+ # user_arn_value: "String",
537
545
  # },
538
546
  # },
539
547
  # ],
548
+ # performed_by: {
549
+ # user_arn: "UserArn",
550
+ # },
540
551
  # template_id: "TemplateId", # required
541
552
  # })
542
553
  #
@@ -631,7 +642,7 @@ module Aws::ConnectCases
631
642
  # description: "FieldDescription",
632
643
  # domain_id: "DomainId", # required
633
644
  # name: "FieldName", # required
634
- # type: "Text", # required, accepts Text, Number, Boolean, DateTime, SingleSelect, Url
645
+ # type: "Text", # required, accepts Text, Number, Boolean, DateTime, SingleSelect, Url, User
635
646
  # })
636
647
  #
637
648
  # @example Response structure
@@ -937,6 +948,7 @@ module Aws::ConnectCases
937
948
  # resp.fields[0].value.boolean_value #=> Boolean
938
949
  # resp.fields[0].value.double_value #=> Float
939
950
  # resp.fields[0].value.string_value #=> String
951
+ # resp.fields[0].value.user_arn_value #=> String
940
952
  # resp.next_token #=> String
941
953
  # resp.tags #=> Hash
942
954
  # resp.tags["String"] #=> String
@@ -951,6 +963,70 @@ module Aws::ConnectCases
951
963
  req.send_request(options)
952
964
  end
953
965
 
966
+ # Returns the audit history about a specific case if it exists.
967
+ #
968
+ # @option params [required, String] :case_id
969
+ # A unique identifier of the case.
970
+ #
971
+ # @option params [required, String] :domain_id
972
+ # The unique identifier of the Cases domain.
973
+ #
974
+ # @option params [Integer] :max_results
975
+ # The maximum number of audit events to return. The current maximum
976
+ # supported value is 25. This is also the default when no other value is
977
+ # provided.
978
+ #
979
+ # @option params [String] :next_token
980
+ # The token for the next set of results. Use the value returned in the
981
+ # previous response in the next request to retrieve the next set of
982
+ # results.
983
+ #
984
+ # @return [Types::GetCaseAuditEventsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
985
+ #
986
+ # * {Types::GetCaseAuditEventsResponse#audit_events #audit_events} => Array&lt;Types::AuditEvent&gt;
987
+ # * {Types::GetCaseAuditEventsResponse#next_token #next_token} => String
988
+ #
989
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
990
+ #
991
+ # @example Request syntax with placeholder values
992
+ #
993
+ # resp = client.get_case_audit_events({
994
+ # case_id: "CaseId", # required
995
+ # domain_id: "DomainId", # required
996
+ # max_results: 1,
997
+ # next_token: "NextToken",
998
+ # })
999
+ #
1000
+ # @example Response structure
1001
+ #
1002
+ # resp.audit_events #=> Array
1003
+ # resp.audit_events[0].event_id #=> String
1004
+ # resp.audit_events[0].fields #=> Array
1005
+ # resp.audit_events[0].fields[0].event_field_id #=> String
1006
+ # resp.audit_events[0].fields[0].new_value.boolean_value #=> Boolean
1007
+ # resp.audit_events[0].fields[0].new_value.double_value #=> Float
1008
+ # resp.audit_events[0].fields[0].new_value.string_value #=> String
1009
+ # resp.audit_events[0].fields[0].new_value.user_arn_value #=> String
1010
+ # resp.audit_events[0].fields[0].old_value.boolean_value #=> Boolean
1011
+ # resp.audit_events[0].fields[0].old_value.double_value #=> Float
1012
+ # resp.audit_events[0].fields[0].old_value.string_value #=> String
1013
+ # resp.audit_events[0].fields[0].old_value.user_arn_value #=> String
1014
+ # resp.audit_events[0].performed_by.iam_principal_arn #=> String
1015
+ # resp.audit_events[0].performed_by.user.user_arn #=> String
1016
+ # resp.audit_events[0].performed_time #=> Time
1017
+ # resp.audit_events[0].related_item_type #=> String, one of "Contact", "Comment"
1018
+ # resp.audit_events[0].type #=> String, one of "Case.Created", "Case.Updated", "RelatedItem.Created"
1019
+ # resp.next_token #=> String
1020
+ #
1021
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/GetCaseAuditEvents AWS API Documentation
1022
+ #
1023
+ # @overload get_case_audit_events(params = {})
1024
+ # @param [Hash] params ({})
1025
+ def get_case_audit_events(params = {}, options = {})
1026
+ req = build_request(:get_case_audit_events, params)
1027
+ req.send_request(options)
1028
+ end
1029
+
954
1030
  # Returns the case event publishing configuration.
955
1031
  #
956
1032
  # @option params [required, String] :domain_id
@@ -1295,7 +1371,7 @@ module Aws::ConnectCases
1295
1371
  # resp.fields[0].field_id #=> String
1296
1372
  # resp.fields[0].name #=> String
1297
1373
  # resp.fields[0].namespace #=> String, one of "System", "Custom"
1298
- # resp.fields[0].type #=> String, one of "Text", "Number", "Boolean", "DateTime", "SingleSelect", "Url"
1374
+ # resp.fields[0].type #=> String, one of "Text", "Number", "Boolean", "DateTime", "SingleSelect", "Url", "User"
1299
1375
  # resp.next_token #=> String
1300
1376
  #
1301
1377
  # @see http://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/ListFields AWS API Documentation
@@ -1546,6 +1622,7 @@ module Aws::ConnectCases
1546
1622
  # empty_value: {
1547
1623
  # },
1548
1624
  # string_value: "FieldValueUnionStringValueString",
1625
+ # user_arn_value: "String",
1549
1626
  # },
1550
1627
  # },
1551
1628
  # equal_to: {
@@ -1556,6 +1633,7 @@ module Aws::ConnectCases
1556
1633
  # empty_value: {
1557
1634
  # },
1558
1635
  # string_value: "FieldValueUnionStringValueString",
1636
+ # user_arn_value: "String",
1559
1637
  # },
1560
1638
  # },
1561
1639
  # greater_than: {
@@ -1566,6 +1644,7 @@ module Aws::ConnectCases
1566
1644
  # empty_value: {
1567
1645
  # },
1568
1646
  # string_value: "FieldValueUnionStringValueString",
1647
+ # user_arn_value: "String",
1569
1648
  # },
1570
1649
  # },
1571
1650
  # greater_than_or_equal_to: {
@@ -1576,6 +1655,7 @@ module Aws::ConnectCases
1576
1655
  # empty_value: {
1577
1656
  # },
1578
1657
  # string_value: "FieldValueUnionStringValueString",
1658
+ # user_arn_value: "String",
1579
1659
  # },
1580
1660
  # },
1581
1661
  # less_than: {
@@ -1586,6 +1666,7 @@ module Aws::ConnectCases
1586
1666
  # empty_value: {
1587
1667
  # },
1588
1668
  # string_value: "FieldValueUnionStringValueString",
1669
+ # user_arn_value: "String",
1589
1670
  # },
1590
1671
  # },
1591
1672
  # less_than_or_equal_to: {
@@ -1596,6 +1677,7 @@ module Aws::ConnectCases
1596
1677
  # empty_value: {
1597
1678
  # },
1598
1679
  # string_value: "FieldValueUnionStringValueString",
1680
+ # user_arn_value: "String",
1599
1681
  # },
1600
1682
  # },
1601
1683
  # },
@@ -1628,6 +1710,7 @@ module Aws::ConnectCases
1628
1710
  # resp.cases[0].fields[0].value.boolean_value #=> Boolean
1629
1711
  # resp.cases[0].fields[0].value.double_value #=> Float
1630
1712
  # resp.cases[0].fields[0].value.string_value #=> String
1713
+ # resp.cases[0].fields[0].value.user_arn_value #=> String
1631
1714
  # resp.cases[0].tags #=> Hash
1632
1715
  # resp.cases[0].tags["String"] #=> String
1633
1716
  # resp.cases[0].template_id #=> String
@@ -1773,12 +1856,17 @@ module Aws::ConnectCases
1773
1856
  req.send_request(options)
1774
1857
  end
1775
1858
 
1776
- # Updates the values of fields on a case. Fields to be updated are
1777
- # received as an array of id/value pairs identical to the `CreateCase`
1778
- # input .
1859
+ # <note markdown="1"> If you provide a value for `PerformedBy.UserArn` you must also have
1860
+ # [connect:DescribeUser][1] permission on the User ARN resource that you
1861
+ # provide
1862
+ #
1863
+ # </note>
1864
+ #
1865
+ # <p>Updates the values of fields on a case. Fields to be updated are received as an array of id/value pairs identical to the <code>CreateCase</code> input .</p> <p>If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.</p>
1866
+ #
1779
1867
  #
1780
- # If the action is successful, the service sends back an HTTP 200
1781
- # response with an empty HTTP body.
1868
+ #
1869
+ # [1]: https://docs.aws.amazon.com/connect/latest/APIReference/API_DescribeUser.html
1782
1870
  #
1783
1871
  # @option params [required, String] :case_id
1784
1872
  # A unique identifier of the case.
@@ -1790,6 +1878,9 @@ module Aws::ConnectCases
1790
1878
  # An array of objects with `fieldId` (matching ListFields/DescribeField)
1791
1879
  # and value union data, structured identical to `CreateCase`.
1792
1880
  #
1881
+ # @option params [Types::UserUnion] :performed_by
1882
+ # Represents the identity of the person who performed the action.
1883
+ #
1793
1884
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1794
1885
  #
1795
1886
  # @example Request syntax with placeholder values
@@ -1806,9 +1897,13 @@ module Aws::ConnectCases
1806
1897
  # empty_value: {
1807
1898
  # },
1808
1899
  # string_value: "FieldValueUnionStringValueString",
1900
+ # user_arn_value: "String",
1809
1901
  # },
1810
1902
  # },
1811
1903
  # ],
1904
+ # performed_by: {
1905
+ # user_arn: "UserArn",
1906
+ # },
1812
1907
  # })
1813
1908
  #
1814
1909
  # @see http://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/UpdateCase AWS API Documentation
@@ -2002,7 +2097,7 @@ module Aws::ConnectCases
2002
2097
  params: params,
2003
2098
  config: config)
2004
2099
  context[:gem_name] = 'aws-sdk-connectcases'
2005
- context[:gem_version] = '1.18.0'
2100
+ context[:gem_version] = '1.20.0'
2006
2101
  Seahorse::Client::Request.new(handlers, context)
2007
2102
  end
2008
2103
 
@@ -16,6 +16,16 @@ module Aws::ConnectCases
16
16
  AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
17
17
  Arn = Shapes::StringShape.new(name: 'Arn')
18
18
  AssociationTime = Shapes::TimestampShape.new(name: 'AssociationTime', timestampFormat: "iso8601")
19
+ AuditEvent = Shapes::StructureShape.new(name: 'AuditEvent')
20
+ AuditEventDateTime = Shapes::TimestampShape.new(name: 'AuditEventDateTime', timestampFormat: "iso8601")
21
+ AuditEventField = Shapes::StructureShape.new(name: 'AuditEventField')
22
+ AuditEventFieldId = Shapes::StringShape.new(name: 'AuditEventFieldId')
23
+ AuditEventFieldList = Shapes::ListShape.new(name: 'AuditEventFieldList')
24
+ AuditEventFieldValueUnion = Shapes::UnionShape.new(name: 'AuditEventFieldValueUnion')
25
+ AuditEventFieldValueUnionStringValueString = Shapes::StringShape.new(name: 'AuditEventFieldValueUnionStringValueString')
26
+ AuditEventId = Shapes::StringShape.new(name: 'AuditEventId')
27
+ AuditEventPerformedBy = Shapes::StructureShape.new(name: 'AuditEventPerformedBy')
28
+ AuditEventType = Shapes::StringShape.new(name: 'AuditEventType')
19
29
  BasicLayout = Shapes::StructureShape.new(name: 'BasicLayout')
20
30
  BatchGetFieldIdentifierList = Shapes::ListShape.new(name: 'BatchGetFieldIdentifierList')
21
31
  BatchGetFieldRequest = Shapes::StructureShape.new(name: 'BatchGetFieldRequest')
@@ -96,6 +106,10 @@ module Aws::ConnectCases
96
106
  FieldValue = Shapes::StructureShape.new(name: 'FieldValue')
97
107
  FieldValueUnion = Shapes::UnionShape.new(name: 'FieldValueUnion')
98
108
  FieldValueUnionStringValueString = Shapes::StringShape.new(name: 'FieldValueUnionStringValueString')
109
+ GetCaseAuditEventsRequest = Shapes::StructureShape.new(name: 'GetCaseAuditEventsRequest')
110
+ GetCaseAuditEventsRequestMaxResultsInteger = Shapes::IntegerShape.new(name: 'GetCaseAuditEventsRequestMaxResultsInteger')
111
+ GetCaseAuditEventsResponse = Shapes::StructureShape.new(name: 'GetCaseAuditEventsResponse')
112
+ GetCaseAuditEventsResponseAuditEventsList = Shapes::ListShape.new(name: 'GetCaseAuditEventsResponseAuditEventsList')
99
113
  GetCaseEventConfigurationRequest = Shapes::StructureShape.new(name: 'GetCaseEventConfigurationRequest')
100
114
  GetCaseEventConfigurationResponse = Shapes::StructureShape.new(name: 'GetCaseEventConfigurationResponse')
101
115
  GetCaseRequest = Shapes::StructureShape.new(name: 'GetCaseRequest')
@@ -109,6 +123,7 @@ module Aws::ConnectCases
109
123
  GetLayoutResponse = Shapes::StructureShape.new(name: 'GetLayoutResponse')
110
124
  GetTemplateRequest = Shapes::StructureShape.new(name: 'GetTemplateRequest')
111
125
  GetTemplateResponse = Shapes::StructureShape.new(name: 'GetTemplateResponse')
126
+ IamPrincipalArn = Shapes::StringShape.new(name: 'IamPrincipalArn')
112
127
  Integer = Shapes::IntegerShape.new(name: 'Integer')
113
128
  InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
114
129
  LayoutArn = Shapes::StringShape.new(name: 'LayoutArn')
@@ -204,6 +219,39 @@ module Aws::ConnectCases
204
219
  AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
205
220
  AccessDeniedException.struct_class = Types::AccessDeniedException
206
221
 
222
+ AuditEvent.add_member(:event_id, Shapes::ShapeRef.new(shape: AuditEventId, required: true, location_name: "eventId"))
223
+ AuditEvent.add_member(:fields, Shapes::ShapeRef.new(shape: AuditEventFieldList, required: true, location_name: "fields"))
224
+ AuditEvent.add_member(:performed_by, Shapes::ShapeRef.new(shape: AuditEventPerformedBy, location_name: "performedBy"))
225
+ AuditEvent.add_member(:performed_time, Shapes::ShapeRef.new(shape: AuditEventDateTime, required: true, location_name: "performedTime"))
226
+ AuditEvent.add_member(:related_item_type, Shapes::ShapeRef.new(shape: RelatedItemType, location_name: "relatedItemType"))
227
+ AuditEvent.add_member(:type, Shapes::ShapeRef.new(shape: AuditEventType, required: true, location_name: "type"))
228
+ AuditEvent.struct_class = Types::AuditEvent
229
+
230
+ AuditEventField.add_member(:event_field_id, Shapes::ShapeRef.new(shape: AuditEventFieldId, required: true, location_name: "eventFieldId"))
231
+ AuditEventField.add_member(:new_value, Shapes::ShapeRef.new(shape: AuditEventFieldValueUnion, required: true, location_name: "newValue"))
232
+ AuditEventField.add_member(:old_value, Shapes::ShapeRef.new(shape: AuditEventFieldValueUnion, location_name: "oldValue"))
233
+ AuditEventField.struct_class = Types::AuditEventField
234
+
235
+ AuditEventFieldList.member = Shapes::ShapeRef.new(shape: AuditEventField)
236
+
237
+ AuditEventFieldValueUnion.add_member(:boolean_value, Shapes::ShapeRef.new(shape: Boolean, location_name: "booleanValue"))
238
+ AuditEventFieldValueUnion.add_member(:double_value, Shapes::ShapeRef.new(shape: Double, location_name: "doubleValue"))
239
+ AuditEventFieldValueUnion.add_member(:empty_value, Shapes::ShapeRef.new(shape: EmptyFieldValue, location_name: "emptyValue"))
240
+ AuditEventFieldValueUnion.add_member(:string_value, Shapes::ShapeRef.new(shape: AuditEventFieldValueUnionStringValueString, location_name: "stringValue"))
241
+ AuditEventFieldValueUnion.add_member(:user_arn_value, Shapes::ShapeRef.new(shape: String, location_name: "userArnValue"))
242
+ AuditEventFieldValueUnion.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
243
+ AuditEventFieldValueUnion.add_member_subclass(:boolean_value, Types::AuditEventFieldValueUnion::BooleanValue)
244
+ AuditEventFieldValueUnion.add_member_subclass(:double_value, Types::AuditEventFieldValueUnion::DoubleValue)
245
+ AuditEventFieldValueUnion.add_member_subclass(:empty_value, Types::AuditEventFieldValueUnion::EmptyValue)
246
+ AuditEventFieldValueUnion.add_member_subclass(:string_value, Types::AuditEventFieldValueUnion::StringValue)
247
+ AuditEventFieldValueUnion.add_member_subclass(:user_arn_value, Types::AuditEventFieldValueUnion::UserArnValue)
248
+ AuditEventFieldValueUnion.add_member_subclass(:unknown, Types::AuditEventFieldValueUnion::Unknown)
249
+ AuditEventFieldValueUnion.struct_class = Types::AuditEventFieldValueUnion
250
+
251
+ AuditEventPerformedBy.add_member(:iam_principal_arn, Shapes::ShapeRef.new(shape: IamPrincipalArn, required: true, location_name: "iamPrincipalArn"))
252
+ AuditEventPerformedBy.add_member(:user, Shapes::ShapeRef.new(shape: UserUnion, location_name: "user"))
253
+ AuditEventPerformedBy.struct_class = Types::AuditEventPerformedBy
254
+
207
255
  BasicLayout.add_member(:more_info, Shapes::ShapeRef.new(shape: LayoutSections, location_name: "moreInfo"))
208
256
  BasicLayout.add_member(:top_panel, Shapes::ShapeRef.new(shape: LayoutSections, location_name: "topPanel"))
209
257
  BasicLayout.struct_class = Types::BasicLayout
@@ -285,6 +333,7 @@ module Aws::ConnectCases
285
333
  CreateCaseRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: CreateCaseRequestClientTokenString, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
286
334
  CreateCaseRequest.add_member(:domain_id, Shapes::ShapeRef.new(shape: DomainId, required: true, location: "uri", location_name: "domainId"))
287
335
  CreateCaseRequest.add_member(:fields, Shapes::ShapeRef.new(shape: CreateCaseRequestFieldsList, required: true, location_name: "fields"))
336
+ CreateCaseRequest.add_member(:performed_by, Shapes::ShapeRef.new(shape: UserUnion, location_name: "performedBy"))
288
337
  CreateCaseRequest.add_member(:template_id, Shapes::ShapeRef.new(shape: TemplateId, required: true, location_name: "templateId"))
289
338
  CreateCaseRequest.struct_class = Types::CreateCaseRequest
290
339
 
@@ -426,14 +475,28 @@ module Aws::ConnectCases
426
475
  FieldValueUnion.add_member(:double_value, Shapes::ShapeRef.new(shape: Double, location_name: "doubleValue"))
427
476
  FieldValueUnion.add_member(:empty_value, Shapes::ShapeRef.new(shape: EmptyFieldValue, location_name: "emptyValue"))
428
477
  FieldValueUnion.add_member(:string_value, Shapes::ShapeRef.new(shape: FieldValueUnionStringValueString, location_name: "stringValue"))
478
+ FieldValueUnion.add_member(:user_arn_value, Shapes::ShapeRef.new(shape: String, location_name: "userArnValue"))
429
479
  FieldValueUnion.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
430
480
  FieldValueUnion.add_member_subclass(:boolean_value, Types::FieldValueUnion::BooleanValue)
431
481
  FieldValueUnion.add_member_subclass(:double_value, Types::FieldValueUnion::DoubleValue)
432
482
  FieldValueUnion.add_member_subclass(:empty_value, Types::FieldValueUnion::EmptyValue)
433
483
  FieldValueUnion.add_member_subclass(:string_value, Types::FieldValueUnion::StringValue)
484
+ FieldValueUnion.add_member_subclass(:user_arn_value, Types::FieldValueUnion::UserArnValue)
434
485
  FieldValueUnion.add_member_subclass(:unknown, Types::FieldValueUnion::Unknown)
435
486
  FieldValueUnion.struct_class = Types::FieldValueUnion
436
487
 
488
+ GetCaseAuditEventsRequest.add_member(:case_id, Shapes::ShapeRef.new(shape: CaseId, required: true, location: "uri", location_name: "caseId"))
489
+ GetCaseAuditEventsRequest.add_member(:domain_id, Shapes::ShapeRef.new(shape: DomainId, required: true, location: "uri", location_name: "domainId"))
490
+ GetCaseAuditEventsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: GetCaseAuditEventsRequestMaxResultsInteger, location_name: "maxResults"))
491
+ GetCaseAuditEventsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
492
+ GetCaseAuditEventsRequest.struct_class = Types::GetCaseAuditEventsRequest
493
+
494
+ GetCaseAuditEventsResponse.add_member(:audit_events, Shapes::ShapeRef.new(shape: GetCaseAuditEventsResponseAuditEventsList, required: true, location_name: "auditEvents"))
495
+ GetCaseAuditEventsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
496
+ GetCaseAuditEventsResponse.struct_class = Types::GetCaseAuditEventsResponse
497
+
498
+ GetCaseAuditEventsResponseAuditEventsList.member = Shapes::ShapeRef.new(shape: AuditEvent)
499
+
437
500
  GetCaseEventConfigurationRequest.add_member(:domain_id, Shapes::ShapeRef.new(shape: DomainId, required: true, location: "uri", location_name: "domainId"))
438
501
  GetCaseEventConfigurationRequest.struct_class = Types::GetCaseEventConfigurationRequest
439
502
 
@@ -728,6 +791,7 @@ module Aws::ConnectCases
728
791
  UpdateCaseRequest.add_member(:case_id, Shapes::ShapeRef.new(shape: CaseId, required: true, location: "uri", location_name: "caseId"))
729
792
  UpdateCaseRequest.add_member(:domain_id, Shapes::ShapeRef.new(shape: DomainId, required: true, location: "uri", location_name: "domainId"))
730
793
  UpdateCaseRequest.add_member(:fields, Shapes::ShapeRef.new(shape: UpdateCaseRequestFieldsList, required: true, location_name: "fields"))
794
+ UpdateCaseRequest.add_member(:performed_by, Shapes::ShapeRef.new(shape: UserUnion, location_name: "performedBy"))
731
795
  UpdateCaseRequest.struct_class = Types::UpdateCaseRequest
732
796
 
733
797
  UpdateCaseRequestFieldsList.member = Shapes::ShapeRef.new(shape: FieldValue)
@@ -937,6 +1001,25 @@ module Aws::ConnectCases
937
1001
  )
938
1002
  end)
939
1003
 
1004
+ api.add_operation(:get_case_audit_events, Seahorse::Model::Operation.new.tap do |o|
1005
+ o.name = "GetCaseAuditEvents"
1006
+ o.http_method = "POST"
1007
+ o.http_request_uri = "/domains/{domainId}/cases/{caseId}/audit-history"
1008
+ o.input = Shapes::ShapeRef.new(shape: GetCaseAuditEventsRequest)
1009
+ o.output = Shapes::ShapeRef.new(shape: GetCaseAuditEventsResponse)
1010
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1011
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1012
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1013
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1014
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1015
+ o[:pager] = Aws::Pager.new(
1016
+ limit_key: "max_results",
1017
+ tokens: {
1018
+ "next_token" => "next_token"
1019
+ }
1020
+ )
1021
+ end)
1022
+
940
1023
  api.add_operation(:get_case_event_configuration, Seahorse::Model::Operation.new.tap do |o|
941
1024
  o.name = "GetCaseEventConfiguration"
942
1025
  o.http_method = "POST"
@@ -152,6 +152,20 @@ module Aws::ConnectCases
152
152
  end
153
153
  end
154
154
 
155
+ class GetCaseAuditEvents
156
+ def self.build(context)
157
+ unless context.config.regional_endpoint
158
+ endpoint = context.config.endpoint.to_s
159
+ end
160
+ Aws::ConnectCases::EndpointParameters.new(
161
+ region: context.config.region,
162
+ use_dual_stack: context.config.use_dualstack_endpoint,
163
+ use_fips: context.config.use_fips_endpoint,
164
+ endpoint: endpoint,
165
+ )
166
+ end
167
+ end
168
+
155
169
  class GetCaseEventConfiguration
156
170
  def self.build(context)
157
171
  unless context.config.regional_endpoint
@@ -14,6 +14,7 @@ module Aws::ConnectCases
14
14
  option(
15
15
  :endpoint_provider,
16
16
  doc_type: 'Aws::ConnectCases::EndpointProvider',
17
+ rbs_type: 'untyped',
17
18
  docstring: 'The endpoint provider used to resolve endpoints. Any '\
18
19
  'object that responds to `#resolve_endpoint(parameters)` '\
19
20
  'where `parameters` is a Struct similar to '\
@@ -77,6 +78,8 @@ module Aws::ConnectCases
77
78
  Aws::ConnectCases::Endpoints::DeleteDomain.build(context)
78
79
  when :get_case
79
80
  Aws::ConnectCases::Endpoints::GetCase.build(context)
81
+ when :get_case_audit_events
82
+ Aws::ConnectCases::Endpoints::GetCaseAuditEvents.build(context)
80
83
  when :get_case_event_configuration
81
84
  Aws::ConnectCases::Endpoints::GetCaseEventConfiguration.build(context)
82
85
  when :get_domain