aws-sdk-connectcases 1.44.0 → 1.45.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: c5349ccdbb82298ca55b6026794c655a347f20a179fb16efa0e54b0b4dd99676
4
- data.tar.gz: ab1677baae3327d6397c4fbceaeace60ebaba0a0eef01bf395379eb1f8abb7ba
3
+ metadata.gz: 844f5505fbdaeab8c497ad25093073f328056a47b65b634bf9b3cad4814c7d8c
4
+ data.tar.gz: 863f041f9235c8a6cb445440946ff86bd2f8fa1af445b7aabf739ef727299ca1
5
5
  SHA512:
6
- metadata.gz: f758a1bf35be4813b24065f8ff84e062769f5d7bcbb6e3d0d38b116b3ec4771f7f81831911e656f569d95a488bbd5a14a91f338e9f944812b89e2650cfd1b1ae
7
- data.tar.gz: 9d4e47b44ede3ab8952d45451421a245a93ead40c041378b975e7c496534a7f5f7d15d9e26d54005b52dbb62c90b875e703f58b46f8fc4fbbdf93370e28d67f1
6
+ metadata.gz: 7c105c39d393d565d64aa546ef859bb810e5172819521b45870ccfaf362e6121a856f71c2770cce2eb2972fcfc5b54f302958b65caa9b3d9e4740b7d2f2fc057
7
+ data.tar.gz: b987d876c7e4c0f6a26ca62e4a94996447cb2c31b5ca321308b986d251b2db1a34c5e277e9e891a76fc7fba7d63b7be2305499865be07e93320cf48ed8f5ea0d
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.45.0 (2025-07-02)
5
+ ------------------
6
+
7
+ * Feature - This release adds DeleteCase and DeleteRelatedItem APIs, which enable deleting cases and comments, undoing contact association, and removing service level agreements (SLAs) from cases. Contact center admins can use these APIs to delete cases when requested by customers and correct agent errors.
8
+
4
9
  1.44.0 (2025-06-02)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.44.0
1
+ 1.45.0
@@ -637,19 +637,20 @@ module Aws::ConnectCases
637
637
  req.send_request(options)
638
638
  end
639
639
 
640
- # <note markdown="1"> If you provide a value for `PerformedBy.UserArn` you must also have
640
+ # <note markdown="1"> If you provide a value for `PerformedBy.UserArn`
641
+ # you must also have
641
642
  # [connect:DescribeUser][1] permission on the User ARN resource that you
642
643
  # provide
643
644
  #
644
645
  # </note>
645
646
  #
646
- # Creates a case in the specified Cases domain. Case system and custom
647
+ # Creates a case in the specified Cases domain. Case system and custom
647
648
  # fields are taken as an array id/value pairs with a declared data
648
649
  # types.
649
650
  #
650
- # The following fields are required when creating a case:
651
+ # The following fields are required when creating a case:
651
652
  #
652
- # * `customer_id` - You must provide the full customer profile ARN in
653
+ # * `customer_id` - You must provide the full customer profile ARN in
653
654
  # this format: `arn:aws:profile:your_AWS_Region:your_AWS_account
654
655
  # ID:domains/your_profiles_domain_name/profiles/profile_ID`
655
656
  #
@@ -1175,6 +1176,43 @@ module Aws::ConnectCases
1175
1176
  req.send_request(options)
1176
1177
  end
1177
1178
 
1179
+ # The DeleteCase API permanently deletes a case and all its associated
1180
+ # resources from the cases data store. After a successful deletion, you
1181
+ # cannot:
1182
+ #
1183
+ # * Retrieve related items
1184
+ #
1185
+ # * Access audit history
1186
+ #
1187
+ # * Perform any operations that require the CaseID
1188
+ #
1189
+ # This action is irreversible. Once you delete a case, you cannot
1190
+ # recover its data.
1191
+ #
1192
+ # @option params [required, String] :case_id
1193
+ # A unique identifier of the case.
1194
+ #
1195
+ # @option params [required, String] :domain_id
1196
+ # A unique identifier of the Cases domain.
1197
+ #
1198
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1199
+ #
1200
+ # @example Request syntax with placeholder values
1201
+ #
1202
+ # resp = client.delete_case({
1203
+ # case_id: "CaseId", # required
1204
+ # domain_id: "DomainId", # required
1205
+ # })
1206
+ #
1207
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/DeleteCase AWS API Documentation
1208
+ #
1209
+ # @overload delete_case(params = {})
1210
+ # @param [Hash] params ({})
1211
+ def delete_case(params = {}, options = {})
1212
+ req = build_request(:delete_case, params)
1213
+ req.send_request(options)
1214
+ end
1215
+
1178
1216
  # Deletes a case rule. In the Amazon Connect admin website, case rules
1179
1217
  # are known as *case field conditions*. For more information about case
1180
1218
  # field conditions, see [Add case field conditions to a case
@@ -1342,6 +1380,45 @@ module Aws::ConnectCases
1342
1380
  req.send_request(options)
1343
1381
  end
1344
1382
 
1383
+ # Deletes the related item resource under a case.
1384
+ #
1385
+ # <note markdown="1"> This API cannot be used on a FILE type related attachment. To delete
1386
+ # this type of file, use the [DeleteAttachedFile][1] API
1387
+ #
1388
+ # </note>
1389
+ #
1390
+ #
1391
+ #
1392
+ # [1]: https://docs.aws.amazon.com/connect/latest/APIReference/API_DeleteAttachedFile.html
1393
+ #
1394
+ # @option params [required, String] :case_id
1395
+ # A unique identifier of the case.
1396
+ #
1397
+ # @option params [required, String] :domain_id
1398
+ # A unique identifier of the Cases domain.
1399
+ #
1400
+ # @option params [required, String] :related_item_id
1401
+ # A unique identifier of a related item.
1402
+ #
1403
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1404
+ #
1405
+ # @example Request syntax with placeholder values
1406
+ #
1407
+ # resp = client.delete_related_item({
1408
+ # case_id: "CaseId", # required
1409
+ # domain_id: "DomainId", # required
1410
+ # related_item_id: "RelatedItemId", # required
1411
+ # })
1412
+ #
1413
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/DeleteRelatedItem AWS API Documentation
1414
+ #
1415
+ # @overload delete_related_item(params = {})
1416
+ # @param [Hash] params ({})
1417
+ def delete_related_item(params = {}, options = {})
1418
+ req = build_request(:delete_related_item, params)
1419
+ req.send_request(options)
1420
+ end
1421
+
1345
1422
  # Deletes a cases template. You can delete up to 100 templates per
1346
1423
  # domain.
1347
1424
  #
@@ -2456,17 +2533,18 @@ module Aws::ConnectCases
2456
2533
  req.send_request(options)
2457
2534
  end
2458
2535
 
2459
- # <note markdown="1"> If you provide a value for `PerformedBy.UserArn` you must also have
2536
+ # <note markdown="1"> If you provide a value for `PerformedBy.UserArn`
2537
+ # you must also have
2460
2538
  # [connect:DescribeUser][1] permission on the User ARN resource that you
2461
2539
  # provide
2462
2540
  #
2463
2541
  # </note>
2464
2542
  #
2465
- # Updates the values of fields on a case. Fields to be updated are
2543
+ # Updates the values of fields on a case. Fields to be updated are
2466
2544
  # received as an array of id/value pairs identical to the `CreateCase`
2467
2545
  # input .
2468
2546
  #
2469
- # If the action is successful, the service sends back an HTTP 200
2547
+ # If the action is successful, the service sends back an HTTP 200
2470
2548
  # response with an empty HTTP body.
2471
2549
  #
2472
2550
  #
@@ -2818,7 +2896,7 @@ module Aws::ConnectCases
2818
2896
  tracer: tracer
2819
2897
  )
2820
2898
  context[:gem_name] = 'aws-sdk-connectcases'
2821
- context[:gem_version] = '1.44.0'
2899
+ context[:gem_version] = '1.45.0'
2822
2900
  Seahorse::Client::Request.new(handlers, context)
2823
2901
  end
2824
2902
 
@@ -92,6 +92,8 @@ module Aws::ConnectCases
92
92
  CreateTemplateResponse = Shapes::StructureShape.new(name: 'CreateTemplateResponse')
93
93
  CreatedTime = Shapes::TimestampShape.new(name: 'CreatedTime', timestampFormat: "iso8601")
94
94
  CustomEntity = Shapes::StringShape.new(name: 'CustomEntity')
95
+ DeleteCaseRequest = Shapes::StructureShape.new(name: 'DeleteCaseRequest')
96
+ DeleteCaseResponse = Shapes::StructureShape.new(name: 'DeleteCaseResponse')
95
97
  DeleteCaseRuleRequest = Shapes::StructureShape.new(name: 'DeleteCaseRuleRequest')
96
98
  DeleteCaseRuleResponse = Shapes::StructureShape.new(name: 'DeleteCaseRuleResponse')
97
99
  DeleteDomainRequest = Shapes::StructureShape.new(name: 'DeleteDomainRequest')
@@ -100,6 +102,8 @@ module Aws::ConnectCases
100
102
  DeleteFieldResponse = Shapes::StructureShape.new(name: 'DeleteFieldResponse')
101
103
  DeleteLayoutRequest = Shapes::StructureShape.new(name: 'DeleteLayoutRequest')
102
104
  DeleteLayoutResponse = Shapes::StructureShape.new(name: 'DeleteLayoutResponse')
105
+ DeleteRelatedItemRequest = Shapes::StructureShape.new(name: 'DeleteRelatedItemRequest')
106
+ DeleteRelatedItemResponse = Shapes::StructureShape.new(name: 'DeleteRelatedItemResponse')
103
107
  DeleteTemplateRequest = Shapes::StructureShape.new(name: 'DeleteTemplateRequest')
104
108
  DeleteTemplateResponse = Shapes::StructureShape.new(name: 'DeleteTemplateResponse')
105
109
  Deleted = Shapes::BooleanShape.new(name: 'Deleted')
@@ -513,6 +517,12 @@ module Aws::ConnectCases
513
517
  CreateTemplateResponse.add_member(:template_id, Shapes::ShapeRef.new(shape: TemplateId, required: true, location_name: "templateId"))
514
518
  CreateTemplateResponse.struct_class = Types::CreateTemplateResponse
515
519
 
520
+ DeleteCaseRequest.add_member(:case_id, Shapes::ShapeRef.new(shape: CaseId, required: true, location: "uri", location_name: "caseId"))
521
+ DeleteCaseRequest.add_member(:domain_id, Shapes::ShapeRef.new(shape: DomainId, required: true, location: "uri", location_name: "domainId"))
522
+ DeleteCaseRequest.struct_class = Types::DeleteCaseRequest
523
+
524
+ DeleteCaseResponse.struct_class = Types::DeleteCaseResponse
525
+
516
526
  DeleteCaseRuleRequest.add_member(:case_rule_id, Shapes::ShapeRef.new(shape: CaseRuleId, required: true, location: "uri", location_name: "caseRuleId"))
517
527
  DeleteCaseRuleRequest.add_member(:domain_id, Shapes::ShapeRef.new(shape: DomainId, required: true, location: "uri", location_name: "domainId"))
518
528
  DeleteCaseRuleRequest.struct_class = Types::DeleteCaseRuleRequest
@@ -536,6 +546,13 @@ module Aws::ConnectCases
536
546
 
537
547
  DeleteLayoutResponse.struct_class = Types::DeleteLayoutResponse
538
548
 
549
+ DeleteRelatedItemRequest.add_member(:case_id, Shapes::ShapeRef.new(shape: CaseId, required: true, location: "uri", location_name: "caseId"))
550
+ DeleteRelatedItemRequest.add_member(:domain_id, Shapes::ShapeRef.new(shape: DomainId, required: true, location: "uri", location_name: "domainId"))
551
+ DeleteRelatedItemRequest.add_member(:related_item_id, Shapes::ShapeRef.new(shape: RelatedItemId, required: true, location: "uri", location_name: "relatedItemId"))
552
+ DeleteRelatedItemRequest.struct_class = Types::DeleteRelatedItemRequest
553
+
554
+ DeleteRelatedItemResponse.struct_class = Types::DeleteRelatedItemResponse
555
+
539
556
  DeleteTemplateRequest.add_member(:domain_id, Shapes::ShapeRef.new(shape: DomainId, required: true, location: "uri", location_name: "domainId"))
540
557
  DeleteTemplateRequest.add_member(:template_id, Shapes::ShapeRef.new(shape: TemplateId, required: true, location: "uri", location_name: "templateId"))
541
558
  DeleteTemplateRequest.struct_class = Types::DeleteTemplateRequest
@@ -1266,6 +1283,19 @@ module Aws::ConnectCases
1266
1283
  o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
1267
1284
  end)
1268
1285
 
1286
+ api.add_operation(:delete_case, Seahorse::Model::Operation.new.tap do |o|
1287
+ o.name = "DeleteCase"
1288
+ o.http_method = "DELETE"
1289
+ o.http_request_uri = "/domains/{domainId}/cases/{caseId}"
1290
+ o.input = Shapes::ShapeRef.new(shape: DeleteCaseRequest)
1291
+ o.output = Shapes::ShapeRef.new(shape: DeleteCaseResponse)
1292
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1293
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1294
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1295
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1296
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1297
+ end)
1298
+
1269
1299
  api.add_operation(:delete_case_rule, Seahorse::Model::Operation.new.tap do |o|
1270
1300
  o.name = "DeleteCaseRule"
1271
1301
  o.http_method = "DELETE"
@@ -1322,6 +1352,19 @@ module Aws::ConnectCases
1322
1352
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1323
1353
  end)
1324
1354
 
1355
+ api.add_operation(:delete_related_item, Seahorse::Model::Operation.new.tap do |o|
1356
+ o.name = "DeleteRelatedItem"
1357
+ o.http_method = "DELETE"
1358
+ o.http_request_uri = "/domains/{domainId}/cases/{caseId}/related-items/{relatedItemId}"
1359
+ o.input = Shapes::ShapeRef.new(shape: DeleteRelatedItemRequest)
1360
+ o.output = Shapes::ShapeRef.new(shape: DeleteRelatedItemResponse)
1361
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1362
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1363
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1364
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1365
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1366
+ end)
1367
+
1325
1368
  api.add_operation(:delete_template, Seahorse::Model::Operation.new.tap do |o|
1326
1369
  o.name = "DeleteTemplate"
1327
1370
  o.http_method = "DELETE"
@@ -975,6 +975,27 @@ module Aws::ConnectCases
975
975
  include Aws::Structure
976
976
  end
977
977
 
978
+ # @!attribute [rw] case_id
979
+ # A unique identifier of the case.
980
+ # @return [String]
981
+ #
982
+ # @!attribute [rw] domain_id
983
+ # A unique identifier of the Cases domain.
984
+ # @return [String]
985
+ #
986
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/DeleteCaseRequest AWS API Documentation
987
+ #
988
+ class DeleteCaseRequest < Struct.new(
989
+ :case_id,
990
+ :domain_id)
991
+ SENSITIVE = []
992
+ include Aws::Structure
993
+ end
994
+
995
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/DeleteCaseResponse AWS API Documentation
996
+ #
997
+ class DeleteCaseResponse < Aws::EmptyStructure; end
998
+
978
999
  # @!attribute [rw] case_rule_id
979
1000
  # Unique identifier of a case rule.
980
1001
  # @return [String]
@@ -1054,6 +1075,32 @@ module Aws::ConnectCases
1054
1075
  #
1055
1076
  class DeleteLayoutResponse < Aws::EmptyStructure; end
1056
1077
 
1078
+ # @!attribute [rw] case_id
1079
+ # A unique identifier of the case.
1080
+ # @return [String]
1081
+ #
1082
+ # @!attribute [rw] domain_id
1083
+ # A unique identifier of the Cases domain.
1084
+ # @return [String]
1085
+ #
1086
+ # @!attribute [rw] related_item_id
1087
+ # A unique identifier of a related item.
1088
+ # @return [String]
1089
+ #
1090
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/DeleteRelatedItemRequest AWS API Documentation
1091
+ #
1092
+ class DeleteRelatedItemRequest < Struct.new(
1093
+ :case_id,
1094
+ :domain_id,
1095
+ :related_item_id)
1096
+ SENSITIVE = []
1097
+ include Aws::Structure
1098
+ end
1099
+
1100
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/DeleteRelatedItemResponse AWS API Documentation
1101
+ #
1102
+ class DeleteRelatedItemResponse < Aws::EmptyStructure; end
1103
+
1057
1104
  # @!attribute [rw] domain_id
1058
1105
  # The unique identifier of the Cases domain.
1059
1106
  # @return [String]
@@ -54,7 +54,7 @@ module Aws::ConnectCases
54
54
  autoload :EndpointProvider, 'aws-sdk-connectcases/endpoint_provider'
55
55
  autoload :Endpoints, 'aws-sdk-connectcases/endpoints'
56
56
 
57
- GEM_VERSION = '1.44.0'
57
+ GEM_VERSION = '1.45.0'
58
58
 
59
59
  end
60
60
 
data/sig/client.rbs CHANGED
@@ -350,6 +350,16 @@ module Aws
350
350
  ) -> _CreateTemplateResponseSuccess
351
351
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateTemplateResponseSuccess
352
352
 
353
+ interface _DeleteCaseResponseSuccess
354
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteCaseResponse]
355
+ end
356
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ConnectCases/Client.html#delete_case-instance_method
357
+ def delete_case: (
358
+ case_id: ::String,
359
+ domain_id: ::String
360
+ ) -> _DeleteCaseResponseSuccess
361
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteCaseResponseSuccess
362
+
353
363
  interface _DeleteCaseRuleResponseSuccess
354
364
  include ::Seahorse::Client::_ResponseSuccess[Types::DeleteCaseRuleResponse]
355
365
  end
@@ -389,6 +399,17 @@ module Aws
389
399
  ) -> _DeleteLayoutResponseSuccess
390
400
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteLayoutResponseSuccess
391
401
 
402
+ interface _DeleteRelatedItemResponseSuccess
403
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteRelatedItemResponse]
404
+ end
405
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ConnectCases/Client.html#delete_related_item-instance_method
406
+ def delete_related_item: (
407
+ case_id: ::String,
408
+ domain_id: ::String,
409
+ related_item_id: ::String
410
+ ) -> _DeleteRelatedItemResponseSuccess
411
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteRelatedItemResponseSuccess
412
+
392
413
  interface _DeleteTemplateResponseSuccess
393
414
  include ::Seahorse::Client::_ResponseSuccess[Types::DeleteTemplateResponse]
394
415
  end
data/sig/types.rbs CHANGED
@@ -317,6 +317,15 @@ module Aws::ConnectCases
317
317
  SENSITIVE: []
318
318
  end
319
319
 
320
+ class DeleteCaseRequest
321
+ attr_accessor case_id: ::String
322
+ attr_accessor domain_id: ::String
323
+ SENSITIVE: []
324
+ end
325
+
326
+ class DeleteCaseResponse < Aws::EmptyStructure
327
+ end
328
+
320
329
  class DeleteCaseRuleRequest
321
330
  attr_accessor case_rule_id: ::String
322
331
  attr_accessor domain_id: ::String
@@ -352,6 +361,16 @@ module Aws::ConnectCases
352
361
  class DeleteLayoutResponse < Aws::EmptyStructure
353
362
  end
354
363
 
364
+ class DeleteRelatedItemRequest
365
+ attr_accessor case_id: ::String
366
+ attr_accessor domain_id: ::String
367
+ attr_accessor related_item_id: ::String
368
+ SENSITIVE: []
369
+ end
370
+
371
+ class DeleteRelatedItemResponse < Aws::EmptyStructure
372
+ end
373
+
355
374
  class DeleteTemplateRequest
356
375
  attr_accessor domain_id: ::String
357
376
  attr_accessor template_id: ::String
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-connectcases
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.44.0
4
+ version: 1.45.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services