aws-sdk-connectcases 1.64.0 → 1.65.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 +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-connectcases/client.rb +138 -2
- data/lib/aws-sdk-connectcases/client_api.rb +53 -0
- data/lib/aws-sdk-connectcases/types.rb +149 -1
- data/lib/aws-sdk-connectcases.rb +1 -1
- data/sig/client.rbs +44 -0
- data/sig/types.rbs +47 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2646fdb12122baa9094126946f1c1839150652783d9d0c0b3c55b9e050f80a4e
|
|
4
|
+
data.tar.gz: 9a1ae5bb1926d964085b0e740186616071759b727b2fc1ab097c027081c3a290
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b9889d4e4bde470b77261574d264ab10af2523e1f516edd1ee2d39fa2581623d557228342bd114e0ccedb95d2a85a05a17805db24694c18b5bddab8359266d31
|
|
7
|
+
data.tar.gz: 9ee1121cd5a7d3ada6f6339b44e6c4ede3356c7f1ab0ede7806a9bb8756bd461abc5a67b986e2d24fb34d67477a852757e86b1059436e677982adfdc2cc70683
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
1.65.0 (2026-03-23)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - You can now use the UpdateRelatedItem API to update the content of comments and custom related items associated with a case.
|
|
8
|
+
|
|
4
9
|
1.64.0 (2026-03-18)
|
|
5
10
|
------------------
|
|
6
11
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.65.0
|
|
@@ -1730,7 +1730,7 @@ module Aws::ConnectCases
|
|
|
1730
1730
|
# resp.next_token #=> String
|
|
1731
1731
|
# resp.audit_events #=> Array
|
|
1732
1732
|
# resp.audit_events[0].event_id #=> String
|
|
1733
|
-
# resp.audit_events[0].type #=> String, one of "Case.Created", "Case.Updated", "RelatedItem.Created"
|
|
1733
|
+
# resp.audit_events[0].type #=> String, one of "Case.Created", "Case.Updated", "RelatedItem.Created", "RelatedItem.Deleted", "RelatedItem.Updated"
|
|
1734
1734
|
# resp.audit_events[0].related_item_type #=> String, one of "Contact", "Comment", "File", "Sla", "ConnectCase", "Custom"
|
|
1735
1735
|
# resp.audit_events[0].performed_time #=> Time
|
|
1736
1736
|
# resp.audit_events[0].fields #=> Array
|
|
@@ -3378,6 +3378,142 @@ module Aws::ConnectCases
|
|
|
3378
3378
|
req.send_request(options)
|
|
3379
3379
|
end
|
|
3380
3380
|
|
|
3381
|
+
# Updates the content of a related item associated with a case. The
|
|
3382
|
+
# following related item types are supported:
|
|
3383
|
+
#
|
|
3384
|
+
# * **Comment** - Update the text content of an existing comment
|
|
3385
|
+
#
|
|
3386
|
+
# * **Custom** - Update the fields of a custom related item. You can
|
|
3387
|
+
# add, modify, and remove fields from a custom related item. There's
|
|
3388
|
+
# a quota for the number of fields allowed in a Custom type related
|
|
3389
|
+
# item. See [Amazon Connect Cases quotas][1].
|
|
3390
|
+
#
|
|
3391
|
+
# **Important things to know**
|
|
3392
|
+
#
|
|
3393
|
+
# * When updating a Custom related item, all existing and new fields,
|
|
3394
|
+
# and their associated values should be included in the request.
|
|
3395
|
+
# Fields not included as part of this request will be removed.
|
|
3396
|
+
#
|
|
3397
|
+
# * If you provide a value for `performedBy.userArn` you must also have
|
|
3398
|
+
# [DescribeUser][2] permission on the ARN of the user that you
|
|
3399
|
+
# provide.
|
|
3400
|
+
#
|
|
3401
|
+
# * [System case fields][3] cannot be used in a custom related item.
|
|
3402
|
+
#
|
|
3403
|
+
# **Endpoints**: See [Amazon Connect endpoints and quotas][4].
|
|
3404
|
+
#
|
|
3405
|
+
#
|
|
3406
|
+
#
|
|
3407
|
+
# [1]: https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html#cases-quotas
|
|
3408
|
+
# [2]: https://docs.aws.amazon.com/connect/latest/APIReference/API_DescribeUser.html
|
|
3409
|
+
# [3]: https://docs.aws.amazon.com/connect/latest/adminguide/case-fields.html#system-case-fields
|
|
3410
|
+
# [4]: https://docs.aws.amazon.com/general/latest/gr/connect_region.html
|
|
3411
|
+
#
|
|
3412
|
+
# @option params [required, String] :domain_id
|
|
3413
|
+
# The unique identifier of the Cases domain.
|
|
3414
|
+
#
|
|
3415
|
+
# @option params [required, String] :case_id
|
|
3416
|
+
# A unique identifier of the case.
|
|
3417
|
+
#
|
|
3418
|
+
# @option params [required, String] :related_item_id
|
|
3419
|
+
# Unique identifier of a related item.
|
|
3420
|
+
#
|
|
3421
|
+
# @option params [required, Types::RelatedItemUpdateContent] :content
|
|
3422
|
+
# The content of a related item to be updated.
|
|
3423
|
+
#
|
|
3424
|
+
# @option params [Types::UserUnion] :performed_by
|
|
3425
|
+
# Represents the user who performed the update of the related item.
|
|
3426
|
+
#
|
|
3427
|
+
# @return [Types::UpdateRelatedItemResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
3428
|
+
#
|
|
3429
|
+
# * {Types::UpdateRelatedItemResponse#related_item_id #related_item_id} => String
|
|
3430
|
+
# * {Types::UpdateRelatedItemResponse#related_item_arn #related_item_arn} => String
|
|
3431
|
+
# * {Types::UpdateRelatedItemResponse#type #type} => String
|
|
3432
|
+
# * {Types::UpdateRelatedItemResponse#content #content} => Types::RelatedItemContent
|
|
3433
|
+
# * {Types::UpdateRelatedItemResponse#association_time #association_time} => Time
|
|
3434
|
+
# * {Types::UpdateRelatedItemResponse#tags #tags} => Hash<String,String>
|
|
3435
|
+
# * {Types::UpdateRelatedItemResponse#last_updated_user #last_updated_user} => Types::UserUnion
|
|
3436
|
+
# * {Types::UpdateRelatedItemResponse#created_by #created_by} => Types::UserUnion
|
|
3437
|
+
#
|
|
3438
|
+
# @example Request syntax with placeholder values
|
|
3439
|
+
#
|
|
3440
|
+
# resp = client.update_related_item({
|
|
3441
|
+
# domain_id: "DomainId", # required
|
|
3442
|
+
# case_id: "CaseId", # required
|
|
3443
|
+
# related_item_id: "RelatedItemId", # required
|
|
3444
|
+
# content: { # required
|
|
3445
|
+
# comment: {
|
|
3446
|
+
# body: "CommentBody", # required
|
|
3447
|
+
# content_type: "Text/Plain", # required, accepts Text/Plain
|
|
3448
|
+
# },
|
|
3449
|
+
# custom: {
|
|
3450
|
+
# fields: [ # required
|
|
3451
|
+
# {
|
|
3452
|
+
# id: "FieldId", # required
|
|
3453
|
+
# value: { # required
|
|
3454
|
+
# string_value: "FieldValueUnionStringValueString",
|
|
3455
|
+
# double_value: 1.0,
|
|
3456
|
+
# boolean_value: false,
|
|
3457
|
+
# empty_value: {
|
|
3458
|
+
# },
|
|
3459
|
+
# user_arn_value: "String",
|
|
3460
|
+
# },
|
|
3461
|
+
# },
|
|
3462
|
+
# ],
|
|
3463
|
+
# },
|
|
3464
|
+
# },
|
|
3465
|
+
# performed_by: {
|
|
3466
|
+
# user_arn: "UserArn",
|
|
3467
|
+
# custom_entity: "CustomEntity",
|
|
3468
|
+
# },
|
|
3469
|
+
# })
|
|
3470
|
+
#
|
|
3471
|
+
# @example Response structure
|
|
3472
|
+
#
|
|
3473
|
+
# resp.related_item_id #=> String
|
|
3474
|
+
# resp.related_item_arn #=> String
|
|
3475
|
+
# resp.type #=> String, one of "Contact", "Comment", "File", "Sla", "ConnectCase", "Custom"
|
|
3476
|
+
# resp.content.contact.contact_arn #=> String
|
|
3477
|
+
# resp.content.contact.channel #=> String
|
|
3478
|
+
# resp.content.contact.connected_to_system_time #=> Time
|
|
3479
|
+
# resp.content.comment.body #=> String
|
|
3480
|
+
# resp.content.comment.content_type #=> String, one of "Text/Plain"
|
|
3481
|
+
# resp.content.file.file_arn #=> String
|
|
3482
|
+
# resp.content.sla.sla_configuration.name #=> String
|
|
3483
|
+
# resp.content.sla.sla_configuration.type #=> String, one of "CaseField"
|
|
3484
|
+
# resp.content.sla.sla_configuration.status #=> String, one of "Active", "Overdue", "Met", "NotMet"
|
|
3485
|
+
# resp.content.sla.sla_configuration.field_id #=> String
|
|
3486
|
+
# resp.content.sla.sla_configuration.target_field_values #=> Array
|
|
3487
|
+
# resp.content.sla.sla_configuration.target_field_values[0].string_value #=> String
|
|
3488
|
+
# resp.content.sla.sla_configuration.target_field_values[0].double_value #=> Float
|
|
3489
|
+
# resp.content.sla.sla_configuration.target_field_values[0].boolean_value #=> Boolean
|
|
3490
|
+
# resp.content.sla.sla_configuration.target_field_values[0].user_arn_value #=> String
|
|
3491
|
+
# resp.content.sla.sla_configuration.target_time #=> Time
|
|
3492
|
+
# resp.content.sla.sla_configuration.completion_time #=> Time
|
|
3493
|
+
# resp.content.connect_case.case_id #=> String
|
|
3494
|
+
# resp.content.custom.fields #=> Array
|
|
3495
|
+
# resp.content.custom.fields[0].id #=> String
|
|
3496
|
+
# resp.content.custom.fields[0].value.string_value #=> String
|
|
3497
|
+
# resp.content.custom.fields[0].value.double_value #=> Float
|
|
3498
|
+
# resp.content.custom.fields[0].value.boolean_value #=> Boolean
|
|
3499
|
+
# resp.content.custom.fields[0].value.user_arn_value #=> String
|
|
3500
|
+
# resp.association_time #=> Time
|
|
3501
|
+
# resp.tags #=> Hash
|
|
3502
|
+
# resp.tags["String"] #=> String
|
|
3503
|
+
# resp.last_updated_user.user_arn #=> String
|
|
3504
|
+
# resp.last_updated_user.custom_entity #=> String
|
|
3505
|
+
# resp.created_by.user_arn #=> String
|
|
3506
|
+
# resp.created_by.custom_entity #=> String
|
|
3507
|
+
#
|
|
3508
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/UpdateRelatedItem AWS API Documentation
|
|
3509
|
+
#
|
|
3510
|
+
# @overload update_related_item(params = {})
|
|
3511
|
+
# @param [Hash] params ({})
|
|
3512
|
+
def update_related_item(params = {}, options = {})
|
|
3513
|
+
req = build_request(:update_related_item, params)
|
|
3514
|
+
req.send_request(options)
|
|
3515
|
+
end
|
|
3516
|
+
|
|
3381
3517
|
# Updates the attributes of an existing template. The template
|
|
3382
3518
|
# attributes that can be modified include `name`, `description`,
|
|
3383
3519
|
# `layoutConfiguration`, `requiredFields`, and `status`. At least one of
|
|
@@ -3498,7 +3634,7 @@ module Aws::ConnectCases
|
|
|
3498
3634
|
tracer: tracer
|
|
3499
3635
|
)
|
|
3500
3636
|
context[:gem_name] = 'aws-sdk-connectcases'
|
|
3501
|
-
context[:gem_version] = '1.
|
|
3637
|
+
context[:gem_version] = '1.65.0'
|
|
3502
3638
|
Seahorse::Client::Request.new(handlers, context)
|
|
3503
3639
|
end
|
|
3504
3640
|
|
|
@@ -68,6 +68,7 @@ module Aws::ConnectCases
|
|
|
68
68
|
CommentBodyTextType = Shapes::StringShape.new(name: 'CommentBodyTextType')
|
|
69
69
|
CommentContent = Shapes::StructureShape.new(name: 'CommentContent')
|
|
70
70
|
CommentFilter = Shapes::StructureShape.new(name: 'CommentFilter')
|
|
71
|
+
CommentUpdateContent = Shapes::StructureShape.new(name: 'CommentUpdateContent')
|
|
71
72
|
CompoundCondition = Shapes::StructureShape.new(name: 'CompoundCondition')
|
|
72
73
|
ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
|
|
73
74
|
ConnectCaseContent = Shapes::StructureShape.new(name: 'ConnectCaseContent')
|
|
@@ -104,6 +105,8 @@ module Aws::ConnectCases
|
|
|
104
105
|
CustomFilter = Shapes::StructureShape.new(name: 'CustomFilter')
|
|
105
106
|
CustomInputContent = Shapes::StructureShape.new(name: 'CustomInputContent')
|
|
106
107
|
CustomInputContentFieldsList = Shapes::ListShape.new(name: 'CustomInputContentFieldsList')
|
|
108
|
+
CustomUpdateContent = Shapes::StructureShape.new(name: 'CustomUpdateContent')
|
|
109
|
+
CustomUpdateContentFieldsList = Shapes::ListShape.new(name: 'CustomUpdateContentFieldsList')
|
|
107
110
|
DeleteCaseRequest = Shapes::StructureShape.new(name: 'DeleteCaseRequest')
|
|
108
111
|
DeleteCaseResponse = Shapes::StructureShape.new(name: 'DeleteCaseResponse')
|
|
109
112
|
DeleteCaseRuleRequest = Shapes::StructureShape.new(name: 'DeleteCaseRuleRequest')
|
|
@@ -232,6 +235,7 @@ module Aws::ConnectCases
|
|
|
232
235
|
RelatedItemInputContent = Shapes::UnionShape.new(name: 'RelatedItemInputContent')
|
|
233
236
|
RelatedItemType = Shapes::StringShape.new(name: 'RelatedItemType')
|
|
234
237
|
RelatedItemTypeFilter = Shapes::UnionShape.new(name: 'RelatedItemTypeFilter')
|
|
238
|
+
RelatedItemUpdateContent = Shapes::UnionShape.new(name: 'RelatedItemUpdateContent')
|
|
235
239
|
RequiredCaseRule = Shapes::StructureShape.new(name: 'RequiredCaseRule')
|
|
236
240
|
RequiredField = Shapes::StructureShape.new(name: 'RequiredField')
|
|
237
241
|
RequiredFieldList = Shapes::ListShape.new(name: 'RequiredFieldList')
|
|
@@ -312,6 +316,8 @@ module Aws::ConnectCases
|
|
|
312
316
|
UpdateFieldResponse = Shapes::StructureShape.new(name: 'UpdateFieldResponse')
|
|
313
317
|
UpdateLayoutRequest = Shapes::StructureShape.new(name: 'UpdateLayoutRequest')
|
|
314
318
|
UpdateLayoutResponse = Shapes::StructureShape.new(name: 'UpdateLayoutResponse')
|
|
319
|
+
UpdateRelatedItemRequest = Shapes::StructureShape.new(name: 'UpdateRelatedItemRequest')
|
|
320
|
+
UpdateRelatedItemResponse = Shapes::StructureShape.new(name: 'UpdateRelatedItemResponse')
|
|
315
321
|
UpdateTemplateRequest = Shapes::StructureShape.new(name: 'UpdateTemplateRequest')
|
|
316
322
|
UpdateTemplateResponse = Shapes::StructureShape.new(name: 'UpdateTemplateResponse')
|
|
317
323
|
UserArn = Shapes::StringShape.new(name: 'UserArn')
|
|
@@ -480,6 +486,10 @@ module Aws::ConnectCases
|
|
|
480
486
|
|
|
481
487
|
CommentFilter.struct_class = Types::CommentFilter
|
|
482
488
|
|
|
489
|
+
CommentUpdateContent.add_member(:body, Shapes::ShapeRef.new(shape: CommentBody, required: true, location_name: "body"))
|
|
490
|
+
CommentUpdateContent.add_member(:content_type, Shapes::ShapeRef.new(shape: CommentBodyTextType, required: true, location_name: "contentType"))
|
|
491
|
+
CommentUpdateContent.struct_class = Types::CommentUpdateContent
|
|
492
|
+
|
|
483
493
|
CompoundCondition.add_member(:conditions, Shapes::ShapeRef.new(shape: BooleanConditionList, required: true, location_name: "conditions"))
|
|
484
494
|
CompoundCondition.struct_class = Types::CompoundCondition
|
|
485
495
|
|
|
@@ -613,6 +623,11 @@ module Aws::ConnectCases
|
|
|
613
623
|
|
|
614
624
|
CustomInputContentFieldsList.member = Shapes::ShapeRef.new(shape: FieldValue)
|
|
615
625
|
|
|
626
|
+
CustomUpdateContent.add_member(:fields, Shapes::ShapeRef.new(shape: CustomUpdateContentFieldsList, required: true, location_name: "fields"))
|
|
627
|
+
CustomUpdateContent.struct_class = Types::CustomUpdateContent
|
|
628
|
+
|
|
629
|
+
CustomUpdateContentFieldsList.member = Shapes::ShapeRef.new(shape: FieldValue)
|
|
630
|
+
|
|
616
631
|
DeleteCaseRequest.add_member(:domain_id, Shapes::ShapeRef.new(shape: DomainId, required: true, location: "uri", location_name: "domainId"))
|
|
617
632
|
DeleteCaseRequest.add_member(:case_id, Shapes::ShapeRef.new(shape: CaseId, required: true, location: "uri", location_name: "caseId"))
|
|
618
633
|
DeleteCaseRequest.struct_class = Types::DeleteCaseRequest
|
|
@@ -1059,6 +1074,14 @@ module Aws::ConnectCases
|
|
|
1059
1074
|
RelatedItemTypeFilter.add_member_subclass(:unknown, Types::RelatedItemTypeFilter::Unknown)
|
|
1060
1075
|
RelatedItemTypeFilter.struct_class = Types::RelatedItemTypeFilter
|
|
1061
1076
|
|
|
1077
|
+
RelatedItemUpdateContent.add_member(:comment, Shapes::ShapeRef.new(shape: CommentUpdateContent, location_name: "comment"))
|
|
1078
|
+
RelatedItemUpdateContent.add_member(:custom, Shapes::ShapeRef.new(shape: CustomUpdateContent, location_name: "custom"))
|
|
1079
|
+
RelatedItemUpdateContent.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
|
1080
|
+
RelatedItemUpdateContent.add_member_subclass(:comment, Types::RelatedItemUpdateContent::Comment)
|
|
1081
|
+
RelatedItemUpdateContent.add_member_subclass(:custom, Types::RelatedItemUpdateContent::Custom)
|
|
1082
|
+
RelatedItemUpdateContent.add_member_subclass(:unknown, Types::RelatedItemUpdateContent::Unknown)
|
|
1083
|
+
RelatedItemUpdateContent.struct_class = Types::RelatedItemUpdateContent
|
|
1084
|
+
|
|
1062
1085
|
RequiredCaseRule.add_member(:default_value, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "defaultValue"))
|
|
1063
1086
|
RequiredCaseRule.add_member(:conditions, Shapes::ShapeRef.new(shape: BooleanConditionList, required: true, location_name: "conditions"))
|
|
1064
1087
|
RequiredCaseRule.struct_class = Types::RequiredCaseRule
|
|
@@ -1289,6 +1312,23 @@ module Aws::ConnectCases
|
|
|
1289
1312
|
|
|
1290
1313
|
UpdateLayoutResponse.struct_class = Types::UpdateLayoutResponse
|
|
1291
1314
|
|
|
1315
|
+
UpdateRelatedItemRequest.add_member(:domain_id, Shapes::ShapeRef.new(shape: DomainId, required: true, location: "uri", location_name: "domainId"))
|
|
1316
|
+
UpdateRelatedItemRequest.add_member(:case_id, Shapes::ShapeRef.new(shape: CaseId, required: true, location: "uri", location_name: "caseId"))
|
|
1317
|
+
UpdateRelatedItemRequest.add_member(:related_item_id, Shapes::ShapeRef.new(shape: RelatedItemId, required: true, location: "uri", location_name: "relatedItemId"))
|
|
1318
|
+
UpdateRelatedItemRequest.add_member(:content, Shapes::ShapeRef.new(shape: RelatedItemUpdateContent, required: true, location_name: "content"))
|
|
1319
|
+
UpdateRelatedItemRequest.add_member(:performed_by, Shapes::ShapeRef.new(shape: UserUnion, location_name: "performedBy"))
|
|
1320
|
+
UpdateRelatedItemRequest.struct_class = Types::UpdateRelatedItemRequest
|
|
1321
|
+
|
|
1322
|
+
UpdateRelatedItemResponse.add_member(:related_item_id, Shapes::ShapeRef.new(shape: RelatedItemId, required: true, location_name: "relatedItemId"))
|
|
1323
|
+
UpdateRelatedItemResponse.add_member(:related_item_arn, Shapes::ShapeRef.new(shape: RelatedItemArn, required: true, location_name: "relatedItemArn"))
|
|
1324
|
+
UpdateRelatedItemResponse.add_member(:type, Shapes::ShapeRef.new(shape: RelatedItemType, required: true, location_name: "type"))
|
|
1325
|
+
UpdateRelatedItemResponse.add_member(:content, Shapes::ShapeRef.new(shape: RelatedItemContent, required: true, location_name: "content"))
|
|
1326
|
+
UpdateRelatedItemResponse.add_member(:association_time, Shapes::ShapeRef.new(shape: AssociationTime, required: true, location_name: "associationTime"))
|
|
1327
|
+
UpdateRelatedItemResponse.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
|
|
1328
|
+
UpdateRelatedItemResponse.add_member(:last_updated_user, Shapes::ShapeRef.new(shape: UserUnion, location_name: "lastUpdatedUser"))
|
|
1329
|
+
UpdateRelatedItemResponse.add_member(:created_by, Shapes::ShapeRef.new(shape: UserUnion, location_name: "createdBy"))
|
|
1330
|
+
UpdateRelatedItemResponse.struct_class = Types::UpdateRelatedItemResponse
|
|
1331
|
+
|
|
1292
1332
|
UpdateTemplateRequest.add_member(:domain_id, Shapes::ShapeRef.new(shape: DomainId, required: true, location: "uri", location_name: "domainId"))
|
|
1293
1333
|
UpdateTemplateRequest.add_member(:template_id, Shapes::ShapeRef.new(shape: TemplateId, required: true, location: "uri", location_name: "templateId"))
|
|
1294
1334
|
UpdateTemplateRequest.add_member(:name, Shapes::ShapeRef.new(shape: TemplateName, location_name: "name"))
|
|
@@ -1961,6 +2001,19 @@ module Aws::ConnectCases
|
|
|
1961
2001
|
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
|
1962
2002
|
end)
|
|
1963
2003
|
|
|
2004
|
+
api.add_operation(:update_related_item, Seahorse::Model::Operation.new.tap do |o|
|
|
2005
|
+
o.name = "UpdateRelatedItem"
|
|
2006
|
+
o.http_method = "PUT"
|
|
2007
|
+
o.http_request_uri = "/domains/{domainId}/cases/{caseId}/related-items/{relatedItemId}"
|
|
2008
|
+
o.input = Shapes::ShapeRef.new(shape: UpdateRelatedItemRequest)
|
|
2009
|
+
o.output = Shapes::ShapeRef.new(shape: UpdateRelatedItemResponse)
|
|
2010
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
2011
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
|
2012
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
2013
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
2014
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
2015
|
+
end)
|
|
2016
|
+
|
|
1964
2017
|
api.add_operation(:update_template, Seahorse::Model::Operation.new.tap do |o|
|
|
1965
2018
|
o.name = "UpdateTemplate"
|
|
1966
2019
|
o.http_method = "PUT"
|
|
@@ -30,7 +30,11 @@ module Aws::ConnectCases
|
|
|
30
30
|
# @return [String]
|
|
31
31
|
#
|
|
32
32
|
# @!attribute [rw] type
|
|
33
|
-
# The
|
|
33
|
+
# The type of audit history event.
|
|
34
|
+
#
|
|
35
|
+
# Valid Values: `Case.Created` \| `Case.Updated` \|
|
|
36
|
+
# `RelatedItem.Created` \| `RelatedItem.Updated` \|
|
|
37
|
+
# `RelatedItem.Deleted`
|
|
34
38
|
# @return [String]
|
|
35
39
|
#
|
|
36
40
|
# @!attribute [rw] related_item_type
|
|
@@ -600,6 +604,25 @@ module Aws::ConnectCases
|
|
|
600
604
|
#
|
|
601
605
|
class CommentFilter < Aws::EmptyStructure; end
|
|
602
606
|
|
|
607
|
+
# Represents the updated content of a `Comment` related item.
|
|
608
|
+
#
|
|
609
|
+
# @!attribute [rw] body
|
|
610
|
+
# Updated text in the body of a `Comment` on a case.
|
|
611
|
+
# @return [String]
|
|
612
|
+
#
|
|
613
|
+
# @!attribute [rw] content_type
|
|
614
|
+
# Type of the text in the box of a `Comment` on a case.
|
|
615
|
+
# @return [String]
|
|
616
|
+
#
|
|
617
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/CommentUpdateContent AWS API Documentation
|
|
618
|
+
#
|
|
619
|
+
class CommentUpdateContent < Struct.new(
|
|
620
|
+
:body,
|
|
621
|
+
:content_type)
|
|
622
|
+
SENSITIVE = []
|
|
623
|
+
include Aws::Structure
|
|
624
|
+
end
|
|
625
|
+
|
|
603
626
|
# A compound condition that combines multiple boolean conditions using
|
|
604
627
|
# logical operators. In the Amazon Connect admin website, case rules are
|
|
605
628
|
# known as *case field conditions*. For more information about case
|
|
@@ -1177,6 +1200,23 @@ module Aws::ConnectCases
|
|
|
1177
1200
|
include Aws::Structure
|
|
1178
1201
|
end
|
|
1179
1202
|
|
|
1203
|
+
# Represents the updated content of a `Custom` related item.
|
|
1204
|
+
#
|
|
1205
|
+
# @!attribute [rw] fields
|
|
1206
|
+
# List of updated field values for the `Custom` related item. All
|
|
1207
|
+
# existing and new fields, and their associated values should be
|
|
1208
|
+
# included. Fields not included as part of this request will be
|
|
1209
|
+
# removed.
|
|
1210
|
+
# @return [Array<Types::FieldValue>]
|
|
1211
|
+
#
|
|
1212
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/CustomUpdateContent AWS API Documentation
|
|
1213
|
+
#
|
|
1214
|
+
class CustomUpdateContent < Struct.new(
|
|
1215
|
+
:fields)
|
|
1216
|
+
SENSITIVE = []
|
|
1217
|
+
include Aws::Structure
|
|
1218
|
+
end
|
|
1219
|
+
|
|
1180
1220
|
# @!attribute [rw] domain_id
|
|
1181
1221
|
# A unique identifier of the Cases domain.
|
|
1182
1222
|
# @return [String]
|
|
@@ -2995,6 +3035,34 @@ module Aws::ConnectCases
|
|
|
2995
3035
|
class Unknown < RelatedItemTypeFilter; end
|
|
2996
3036
|
end
|
|
2997
3037
|
|
|
3038
|
+
# Represents the content of a related item to be updated. This is a
|
|
3039
|
+
# union type that can contain either comment content or custom content.
|
|
3040
|
+
#
|
|
3041
|
+
# @note RelatedItemUpdateContent is a union - when making an API calls you must set exactly one of the members.
|
|
3042
|
+
#
|
|
3043
|
+
# @!attribute [rw] comment
|
|
3044
|
+
# Represents the updated content of a `Comment` related item.
|
|
3045
|
+
# @return [Types::CommentUpdateContent]
|
|
3046
|
+
#
|
|
3047
|
+
# @!attribute [rw] custom
|
|
3048
|
+
# Represents the updated content of a `Custom` related item.
|
|
3049
|
+
# @return [Types::CustomUpdateContent]
|
|
3050
|
+
#
|
|
3051
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/RelatedItemUpdateContent AWS API Documentation
|
|
3052
|
+
#
|
|
3053
|
+
class RelatedItemUpdateContent < Struct.new(
|
|
3054
|
+
:comment,
|
|
3055
|
+
:custom,
|
|
3056
|
+
:unknown)
|
|
3057
|
+
SENSITIVE = []
|
|
3058
|
+
include Aws::Structure
|
|
3059
|
+
include Aws::Structure::Union
|
|
3060
|
+
|
|
3061
|
+
class Comment < RelatedItemUpdateContent; end
|
|
3062
|
+
class Custom < RelatedItemUpdateContent; end
|
|
3063
|
+
class Unknown < RelatedItemUpdateContent; end
|
|
3064
|
+
end
|
|
3065
|
+
|
|
2998
3066
|
# Required rule type, used to indicate whether a field is required. In
|
|
2999
3067
|
# the Amazon Connect admin website, case rules are known as *case field
|
|
3000
3068
|
# conditions*. For more information about case field conditions, see
|
|
@@ -3905,6 +3973,86 @@ module Aws::ConnectCases
|
|
|
3905
3973
|
#
|
|
3906
3974
|
class UpdateLayoutResponse < Aws::EmptyStructure; end
|
|
3907
3975
|
|
|
3976
|
+
# @!attribute [rw] domain_id
|
|
3977
|
+
# The unique identifier of the Cases domain.
|
|
3978
|
+
# @return [String]
|
|
3979
|
+
#
|
|
3980
|
+
# @!attribute [rw] case_id
|
|
3981
|
+
# A unique identifier of the case.
|
|
3982
|
+
# @return [String]
|
|
3983
|
+
#
|
|
3984
|
+
# @!attribute [rw] related_item_id
|
|
3985
|
+
# Unique identifier of a related item.
|
|
3986
|
+
# @return [String]
|
|
3987
|
+
#
|
|
3988
|
+
# @!attribute [rw] content
|
|
3989
|
+
# The content of a related item to be updated.
|
|
3990
|
+
# @return [Types::RelatedItemUpdateContent]
|
|
3991
|
+
#
|
|
3992
|
+
# @!attribute [rw] performed_by
|
|
3993
|
+
# Represents the user who performed the update of the related item.
|
|
3994
|
+
# @return [Types::UserUnion]
|
|
3995
|
+
#
|
|
3996
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/UpdateRelatedItemRequest AWS API Documentation
|
|
3997
|
+
#
|
|
3998
|
+
class UpdateRelatedItemRequest < Struct.new(
|
|
3999
|
+
:domain_id,
|
|
4000
|
+
:case_id,
|
|
4001
|
+
:related_item_id,
|
|
4002
|
+
:content,
|
|
4003
|
+
:performed_by)
|
|
4004
|
+
SENSITIVE = []
|
|
4005
|
+
include Aws::Structure
|
|
4006
|
+
end
|
|
4007
|
+
|
|
4008
|
+
# @!attribute [rw] related_item_id
|
|
4009
|
+
# The unique identifier of the updated related item.
|
|
4010
|
+
# @return [String]
|
|
4011
|
+
#
|
|
4012
|
+
# @!attribute [rw] related_item_arn
|
|
4013
|
+
# The Amazon Resource Name (ARN) of the updated related item.
|
|
4014
|
+
# @return [String]
|
|
4015
|
+
#
|
|
4016
|
+
# @!attribute [rw] type
|
|
4017
|
+
# Type of the updated related item.
|
|
4018
|
+
# @return [String]
|
|
4019
|
+
#
|
|
4020
|
+
# @!attribute [rw] content
|
|
4021
|
+
# Represents the content of the updated related item.
|
|
4022
|
+
# @return [Types::RelatedItemContent]
|
|
4023
|
+
#
|
|
4024
|
+
# @!attribute [rw] association_time
|
|
4025
|
+
# Time at which the related item was associated with the case.
|
|
4026
|
+
# @return [Time]
|
|
4027
|
+
#
|
|
4028
|
+
# @!attribute [rw] tags
|
|
4029
|
+
# A map of of key-value pairs that represent tags on a resource. Tags
|
|
4030
|
+
# are used to organize, track, or control access for this resource.
|
|
4031
|
+
# @return [Hash<String,String>]
|
|
4032
|
+
#
|
|
4033
|
+
# @!attribute [rw] last_updated_user
|
|
4034
|
+
# Represents the last user that updated the related item.
|
|
4035
|
+
# @return [Types::UserUnion]
|
|
4036
|
+
#
|
|
4037
|
+
# @!attribute [rw] created_by
|
|
4038
|
+
# Represents the creator of the related item.
|
|
4039
|
+
# @return [Types::UserUnion]
|
|
4040
|
+
#
|
|
4041
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/UpdateRelatedItemResponse AWS API Documentation
|
|
4042
|
+
#
|
|
4043
|
+
class UpdateRelatedItemResponse < Struct.new(
|
|
4044
|
+
:related_item_id,
|
|
4045
|
+
:related_item_arn,
|
|
4046
|
+
:type,
|
|
4047
|
+
:content,
|
|
4048
|
+
:association_time,
|
|
4049
|
+
:tags,
|
|
4050
|
+
:last_updated_user,
|
|
4051
|
+
:created_by)
|
|
4052
|
+
SENSITIVE = []
|
|
4053
|
+
include Aws::Structure
|
|
4054
|
+
end
|
|
4055
|
+
|
|
3908
4056
|
# @!attribute [rw] domain_id
|
|
3909
4057
|
# The unique identifier of the Cases domain.
|
|
3910
4058
|
# @return [String]
|
data/lib/aws-sdk-connectcases.rb
CHANGED
data/sig/client.rbs
CHANGED
|
@@ -1278,6 +1278,50 @@ module Aws
|
|
|
1278
1278
|
) -> _UpdateLayoutResponseSuccess
|
|
1279
1279
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateLayoutResponseSuccess
|
|
1280
1280
|
|
|
1281
|
+
interface _UpdateRelatedItemResponseSuccess
|
|
1282
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::UpdateRelatedItemResponse]
|
|
1283
|
+
def related_item_id: () -> ::String
|
|
1284
|
+
def related_item_arn: () -> ::String
|
|
1285
|
+
def type: () -> ("Contact" | "Comment" | "File" | "Sla" | "ConnectCase" | "Custom")
|
|
1286
|
+
def content: () -> Types::RelatedItemContent
|
|
1287
|
+
def association_time: () -> ::Time
|
|
1288
|
+
def tags: () -> ::Hash[::String, ::String]
|
|
1289
|
+
def last_updated_user: () -> Types::UserUnion
|
|
1290
|
+
def created_by: () -> Types::UserUnion
|
|
1291
|
+
end
|
|
1292
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ConnectCases/Client.html#update_related_item-instance_method
|
|
1293
|
+
def update_related_item: (
|
|
1294
|
+
domain_id: ::String,
|
|
1295
|
+
case_id: ::String,
|
|
1296
|
+
related_item_id: ::String,
|
|
1297
|
+
content: {
|
|
1298
|
+
comment: {
|
|
1299
|
+
body: ::String,
|
|
1300
|
+
content_type: ("Text/Plain")
|
|
1301
|
+
}?,
|
|
1302
|
+
custom: {
|
|
1303
|
+
fields: Array[
|
|
1304
|
+
{
|
|
1305
|
+
id: ::String,
|
|
1306
|
+
value: {
|
|
1307
|
+
string_value: ::String?,
|
|
1308
|
+
double_value: ::Float?,
|
|
1309
|
+
boolean_value: bool?,
|
|
1310
|
+
empty_value: {
|
|
1311
|
+
}?,
|
|
1312
|
+
user_arn_value: ::String?
|
|
1313
|
+
}
|
|
1314
|
+
},
|
|
1315
|
+
]
|
|
1316
|
+
}?
|
|
1317
|
+
},
|
|
1318
|
+
?performed_by: {
|
|
1319
|
+
user_arn: ::String?,
|
|
1320
|
+
custom_entity: ::String?
|
|
1321
|
+
}
|
|
1322
|
+
) -> _UpdateRelatedItemResponseSuccess
|
|
1323
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateRelatedItemResponseSuccess
|
|
1324
|
+
|
|
1281
1325
|
interface _UpdateTemplateResponseSuccess
|
|
1282
1326
|
include ::Seahorse::Client::_ResponseSuccess[Types::UpdateTemplateResponse]
|
|
1283
1327
|
end
|
data/sig/types.rbs
CHANGED
|
@@ -15,7 +15,7 @@ module Aws::ConnectCases
|
|
|
15
15
|
|
|
16
16
|
class AuditEvent
|
|
17
17
|
attr_accessor event_id: ::String
|
|
18
|
-
attr_accessor type: ("Case.Created" | "Case.Updated" | "RelatedItem.Created")
|
|
18
|
+
attr_accessor type: ("Case.Created" | "Case.Updated" | "RelatedItem.Created" | "RelatedItem.Deleted" | "RelatedItem.Updated")
|
|
19
19
|
attr_accessor related_item_type: ("Contact" | "Comment" | "File" | "Sla" | "ConnectCase" | "Custom")
|
|
20
20
|
attr_accessor performed_time: ::Time
|
|
21
21
|
attr_accessor fields: ::Array[Types::AuditEventField]
|
|
@@ -210,6 +210,12 @@ module Aws::ConnectCases
|
|
|
210
210
|
class CommentFilter < Aws::EmptyStructure
|
|
211
211
|
end
|
|
212
212
|
|
|
213
|
+
class CommentUpdateContent
|
|
214
|
+
attr_accessor body: ::String
|
|
215
|
+
attr_accessor content_type: ("Text/Plain")
|
|
216
|
+
SENSITIVE: []
|
|
217
|
+
end
|
|
218
|
+
|
|
213
219
|
class CompoundCondition
|
|
214
220
|
attr_accessor conditions: ::Array[Types::BooleanCondition]
|
|
215
221
|
SENSITIVE: []
|
|
@@ -391,6 +397,11 @@ module Aws::ConnectCases
|
|
|
391
397
|
SENSITIVE: []
|
|
392
398
|
end
|
|
393
399
|
|
|
400
|
+
class CustomUpdateContent
|
|
401
|
+
attr_accessor fields: ::Array[Types::FieldValue]
|
|
402
|
+
SENSITIVE: []
|
|
403
|
+
end
|
|
404
|
+
|
|
394
405
|
class DeleteCaseRequest
|
|
395
406
|
attr_accessor domain_id: ::String
|
|
396
407
|
attr_accessor case_id: ::String
|
|
@@ -1006,6 +1017,20 @@ module Aws::ConnectCases
|
|
|
1006
1017
|
end
|
|
1007
1018
|
end
|
|
1008
1019
|
|
|
1020
|
+
class RelatedItemUpdateContent
|
|
1021
|
+
attr_accessor comment: Types::CommentUpdateContent
|
|
1022
|
+
attr_accessor custom: Types::CustomUpdateContent
|
|
1023
|
+
attr_accessor unknown: untyped
|
|
1024
|
+
SENSITIVE: []
|
|
1025
|
+
|
|
1026
|
+
class Comment < RelatedItemUpdateContent
|
|
1027
|
+
end
|
|
1028
|
+
class Custom < RelatedItemUpdateContent
|
|
1029
|
+
end
|
|
1030
|
+
class Unknown < RelatedItemUpdateContent
|
|
1031
|
+
end
|
|
1032
|
+
end
|
|
1033
|
+
|
|
1009
1034
|
class RequiredCaseRule
|
|
1010
1035
|
attr_accessor default_value: bool
|
|
1011
1036
|
attr_accessor conditions: ::Array[Types::BooleanCondition]
|
|
@@ -1277,6 +1302,27 @@ module Aws::ConnectCases
|
|
|
1277
1302
|
class UpdateLayoutResponse < Aws::EmptyStructure
|
|
1278
1303
|
end
|
|
1279
1304
|
|
|
1305
|
+
class UpdateRelatedItemRequest
|
|
1306
|
+
attr_accessor domain_id: ::String
|
|
1307
|
+
attr_accessor case_id: ::String
|
|
1308
|
+
attr_accessor related_item_id: ::String
|
|
1309
|
+
attr_accessor content: Types::RelatedItemUpdateContent
|
|
1310
|
+
attr_accessor performed_by: Types::UserUnion
|
|
1311
|
+
SENSITIVE: []
|
|
1312
|
+
end
|
|
1313
|
+
|
|
1314
|
+
class UpdateRelatedItemResponse
|
|
1315
|
+
attr_accessor related_item_id: ::String
|
|
1316
|
+
attr_accessor related_item_arn: ::String
|
|
1317
|
+
attr_accessor type: ("Contact" | "Comment" | "File" | "Sla" | "ConnectCase" | "Custom")
|
|
1318
|
+
attr_accessor content: Types::RelatedItemContent
|
|
1319
|
+
attr_accessor association_time: ::Time
|
|
1320
|
+
attr_accessor tags: ::Hash[::String, ::String]
|
|
1321
|
+
attr_accessor last_updated_user: Types::UserUnion
|
|
1322
|
+
attr_accessor created_by: Types::UserUnion
|
|
1323
|
+
SENSITIVE: []
|
|
1324
|
+
end
|
|
1325
|
+
|
|
1280
1326
|
class UpdateTemplateRequest
|
|
1281
1327
|
attr_accessor domain_id: ::String
|
|
1282
1328
|
attr_accessor template_id: ::String
|