aws-sdk-connectcases 1.54.0 → 1.55.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: 1a15b2e6ce303737510adc57930f6ac38929d128df9e15d3d731f97125e1f740
4
- data.tar.gz: 43312b212c04de36708ec844c922a026de30aa0bb62078adbc3d588759b8cc9d
3
+ metadata.gz: b2173dc325186e2e61056a8e8ecfc24f2d85a416b216f59c2f198a0a50459a4d
4
+ data.tar.gz: ff652a6fcc4ac636733aeef597fbbae6b95cad29e477c00139f7e5764ea0a5f0
5
5
  SHA512:
6
- metadata.gz: 7f805dece4d5d749a8f53e18863a02a40458e56111144683fe8128bd46c84f7678fa62b2127c0b02532f0067acbb3acadf372d213b1b93b9c140b8074d6e62df
7
- data.tar.gz: 1acadaefbc464d5e8b342af787878cdc77c2f375e1772725d7a21a65758b2de183eb15726c4c2b8983250cc95065dbddd496f8ae744d48379fb6adc2952f8fd1
6
+ metadata.gz: 4e529e86ab84fc885135bac5dce6dd7f0bc8661f4dcda00792de497c518302190f273fba356d4b38cc923ccb9085503ce6e5dac41afc8300f5d611d36d0c3947
7
+ data.tar.gz: 4132848e69b63a6c957ee7169f7f20e7ec3cf5e10d2be7407803d2f7ede54d61e514d14458ad7c20568828d5a52077c85ba9661737909559a057d5b10e055c9b
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.55.0 (2025-10-31)
5
+ ------------------
6
+
7
+ * Feature - Added two new case rule types: Parent Child Field Options (restricts child field options based on parent field value) and Hidden (controls child field visibility based on parent field value). Both enable dynamic field behavior within templates.
8
+
4
9
  1.54.0 (2025-10-30)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.54.0
1
+ 1.55.0
@@ -489,12 +489,13 @@ module Aws::ConnectCases
489
489
  # Unique identifier of a Cases domain.
490
490
  #
491
491
  # @option params [required, Array<Types::CaseRuleIdentifier>] :case_rules
492
- # List of case rule identifiers.
492
+ # A list of case rule identifiers.
493
493
  #
494
494
  # @return [Types::BatchGetCaseRuleResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
495
495
  #
496
496
  # * {Types::BatchGetCaseRuleResponse#case_rules #case_rules} => Array&lt;Types::GetCaseRuleResponse&gt;
497
497
  # * {Types::BatchGetCaseRuleResponse#errors #errors} => Array&lt;Types::CaseRuleError&gt;
498
+ # * {Types::BatchGetCaseRuleResponse#unprocessed_case_rules #unprocessed_case_rules} => Array&lt;String&gt;
498
499
  #
499
500
  # @example Request syntax with placeholder values
500
501
  #
@@ -525,6 +526,24 @@ module Aws::ConnectCases
525
526
  # resp.case_rules[0].rule.required.conditions[0].not_equal_to.operand_two.boolean_value #=> Boolean
526
527
  # resp.case_rules[0].rule.required.conditions[0].not_equal_to.operand_two.double_value #=> Float
527
528
  # resp.case_rules[0].rule.required.conditions[0].not_equal_to.result #=> Boolean
529
+ # resp.case_rules[0].rule.field_options.parent_field_id #=> String
530
+ # resp.case_rules[0].rule.field_options.child_field_id #=> String
531
+ # resp.case_rules[0].rule.field_options.parent_child_field_options_mappings #=> Array
532
+ # resp.case_rules[0].rule.field_options.parent_child_field_options_mappings[0].parent_field_option_value #=> String
533
+ # resp.case_rules[0].rule.field_options.parent_child_field_options_mappings[0].child_field_option_values #=> Array
534
+ # resp.case_rules[0].rule.field_options.parent_child_field_options_mappings[0].child_field_option_values[0] #=> String
535
+ # resp.case_rules[0].rule.hidden.default_value #=> Boolean
536
+ # resp.case_rules[0].rule.hidden.conditions #=> Array
537
+ # resp.case_rules[0].rule.hidden.conditions[0].equal_to.operand_one.field_id #=> String
538
+ # resp.case_rules[0].rule.hidden.conditions[0].equal_to.operand_two.string_value #=> String
539
+ # resp.case_rules[0].rule.hidden.conditions[0].equal_to.operand_two.boolean_value #=> Boolean
540
+ # resp.case_rules[0].rule.hidden.conditions[0].equal_to.operand_two.double_value #=> Float
541
+ # resp.case_rules[0].rule.hidden.conditions[0].equal_to.result #=> Boolean
542
+ # resp.case_rules[0].rule.hidden.conditions[0].not_equal_to.operand_one.field_id #=> String
543
+ # resp.case_rules[0].rule.hidden.conditions[0].not_equal_to.operand_two.string_value #=> String
544
+ # resp.case_rules[0].rule.hidden.conditions[0].not_equal_to.operand_two.boolean_value #=> Boolean
545
+ # resp.case_rules[0].rule.hidden.conditions[0].not_equal_to.operand_two.double_value #=> Float
546
+ # resp.case_rules[0].rule.hidden.conditions[0].not_equal_to.result #=> Boolean
528
547
  # resp.case_rules[0].description #=> String
529
548
  # resp.case_rules[0].deleted #=> Boolean
530
549
  # resp.case_rules[0].created_time #=> Time
@@ -535,6 +554,8 @@ module Aws::ConnectCases
535
554
  # resp.errors[0].id #=> String
536
555
  # resp.errors[0].error_code #=> String
537
556
  # resp.errors[0].message #=> String
557
+ # resp.unprocessed_case_rules #=> Array
558
+ # resp.unprocessed_case_rules[0] #=> String
538
559
  #
539
560
  # @see http://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/BatchGetCaseRule AWS API Documentation
540
561
  #
@@ -803,6 +824,49 @@ module Aws::ConnectCases
803
824
  # },
804
825
  # ],
805
826
  # },
827
+ # field_options: {
828
+ # parent_field_id: "FieldId",
829
+ # child_field_id: "FieldId",
830
+ # parent_child_field_options_mappings: [ # required
831
+ # {
832
+ # parent_field_option_value: "ParentChildFieldOptionValue", # required
833
+ # child_field_option_values: ["ParentChildFieldOptionValue"], # required
834
+ # },
835
+ # ],
836
+ # },
837
+ # hidden: {
838
+ # default_value: false, # required
839
+ # conditions: [ # required
840
+ # {
841
+ # equal_to: {
842
+ # operand_one: { # required
843
+ # field_id: "FieldId",
844
+ # },
845
+ # operand_two: { # required
846
+ # string_value: "OperandTwoStringValueString",
847
+ # boolean_value: false,
848
+ # double_value: 1.0,
849
+ # empty_value: {
850
+ # },
851
+ # },
852
+ # result: false, # required
853
+ # },
854
+ # not_equal_to: {
855
+ # operand_one: { # required
856
+ # field_id: "FieldId",
857
+ # },
858
+ # operand_two: { # required
859
+ # string_value: "OperandTwoStringValueString",
860
+ # boolean_value: false,
861
+ # double_value: 1.0,
862
+ # empty_value: {
863
+ # },
864
+ # },
865
+ # result: false, # required
866
+ # },
867
+ # },
868
+ # ],
869
+ # },
806
870
  # },
807
871
  # })
808
872
  #
@@ -994,23 +1058,54 @@ module Aws::ConnectCases
994
1058
  # Creates a related item (comments, tasks, and contacts) and associates
995
1059
  # it with a case.
996
1060
  #
997
- # <note markdown="1"> * A Related Item is a resource that is associated with a case. It may
1061
+ # There's a quota for the number of fields allowed in a Custom type
1062
+ # related item. See [Amazon Connect Cases quotas][1].
1063
+ #
1064
+ # **Use cases**
1065
+ #
1066
+ # Following are examples of related items that you may want to associate
1067
+ # with a case:
1068
+ #
1069
+ # * Related contacts, such as calls, chats, emails tasks
1070
+ #
1071
+ # * Comments, for agent notes
1072
+ #
1073
+ # * SLAs, to capture target resolution goals
1074
+ #
1075
+ # * Cases, to capture related Amazon Connect Cases
1076
+ #
1077
+ # * Files, such as policy documentation or customer-provided attachments
1078
+ #
1079
+ # * Custom related items, which provide flexibility for you to define
1080
+ # related items that such as bookings, orders, products, notices, and
1081
+ # more
1082
+ #
1083
+ # **Important things to know**
1084
+ #
1085
+ # * If you are associating a contact to a case by passing in `Contact`
1086
+ # for a `type`, you must have [DescribeContact][2] permission on the
1087
+ # ARN of the contact that you provide in `content.contact.contactArn`.
1088
+ #
1089
+ # * A Related Item is a resource that is associated with a case. It may
998
1090
  # or may not have an external identifier linking it to an external
999
1091
  # resource (for example, a `contactArn`). All Related Items have their
1000
1092
  # own internal identifier, the `relatedItemArn`. Examples of related
1001
1093
  # items include `comments` and `contacts`.
1002
1094
  #
1003
1095
  # * If you provide a value for `performedBy.userArn` you must also have
1004
- # [DescribeUser][1] permission on the ARN of the user that you
1096
+ # [DescribeUser][3] permission on the ARN of the user that you
1005
1097
  # provide.
1006
1098
  #
1007
1099
  # * The `type` field is reserved for internal use only.
1008
1100
  #
1009
- # </note>
1101
+ # **Endpoints**: See [Amazon Connect endpoints and quotas][4].
1010
1102
  #
1011
1103
  #
1012
1104
  #
1013
- # [1]: https://docs.aws.amazon.com/connect/latest/APIReference/API_DescribeUser.html
1105
+ # [1]: https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html#cases-quotas
1106
+ # [2]: https://docs.aws.amazon.com/connect/latest/APIReference/API_DescribeContact.html
1107
+ # [3]: https://docs.aws.amazon.com/connect/latest/APIReference/API_DescribeUser.html
1108
+ # [4]: https://docs.aws.amazon.com/general/latest/gr/connect_region.html
1014
1109
  #
1015
1110
  # @option params [required, String] :domain_id
1016
1111
  # The unique identifier of the Cases domain.
@@ -1182,7 +1277,7 @@ module Aws::ConnectCases
1182
1277
  # rules: [
1183
1278
  # {
1184
1279
  # case_rule_id: "CaseRuleId", # required
1185
- # field_id: "FieldId", # required
1280
+ # field_id: "FieldId",
1186
1281
  # },
1187
1282
  # ],
1188
1283
  # })
@@ -1317,11 +1412,11 @@ module Aws::ConnectCases
1317
1412
  # * Deleted fields are not included in the `ListFields` response.
1318
1413
  #
1319
1414
  # * Calling `CreateCase` with a deleted field throws a
1320
- # `ValidationException` denoting which field IDs in the request have
1321
- # been deleted.
1415
+ # `ValidationException` denoting which field identifiers in the
1416
+ # request have been deleted.
1322
1417
  #
1323
- # * Calling `GetCase` with a deleted field ID returns the deleted
1324
- # field's value if one exists.
1418
+ # * Calling `GetCase` with a deleted field identifier returns the
1419
+ # deleted field's value if one exists.
1325
1420
  #
1326
1421
  # * Calling `UpdateCase` with a deleted field ID throws a
1327
1422
  # `ValidationException` if the case does not already contain a value
@@ -1844,7 +1939,7 @@ module Aws::ConnectCases
1844
1939
  # resp.case_rules[0].case_rule_id #=> String
1845
1940
  # resp.case_rules[0].name #=> String
1846
1941
  # resp.case_rules[0].case_rule_arn #=> String
1847
- # resp.case_rules[0].rule_type #=> String, one of "Required"
1942
+ # resp.case_rules[0].rule_type #=> String, one of "Required", "Hidden", "FieldOptions"
1848
1943
  # resp.case_rules[0].description #=> String
1849
1944
  # resp.next_token #=> String
1850
1945
  #
@@ -2258,8 +2353,8 @@ module Aws::ConnectCases
2258
2353
  #
2259
2354
  # **Important things to know**
2260
2355
  #
2261
- # * This API returns case IDs, not complete case objects. To retrieve
2262
- # full case details, you must make additional calls to the
2356
+ # * This API returns case identifiers, not complete case objects. To
2357
+ # retrieve full case details, you must make additional calls to the
2263
2358
  # [GetCase][2] API for each returned case ID.
2264
2359
  #
2265
2360
  # * This API searches across related items content, not case fields. Use
@@ -3015,6 +3110,49 @@ module Aws::ConnectCases
3015
3110
  # },
3016
3111
  # ],
3017
3112
  # },
3113
+ # field_options: {
3114
+ # parent_field_id: "FieldId",
3115
+ # child_field_id: "FieldId",
3116
+ # parent_child_field_options_mappings: [ # required
3117
+ # {
3118
+ # parent_field_option_value: "ParentChildFieldOptionValue", # required
3119
+ # child_field_option_values: ["ParentChildFieldOptionValue"], # required
3120
+ # },
3121
+ # ],
3122
+ # },
3123
+ # hidden: {
3124
+ # default_value: false, # required
3125
+ # conditions: [ # required
3126
+ # {
3127
+ # equal_to: {
3128
+ # operand_one: { # required
3129
+ # field_id: "FieldId",
3130
+ # },
3131
+ # operand_two: { # required
3132
+ # string_value: "OperandTwoStringValueString",
3133
+ # boolean_value: false,
3134
+ # double_value: 1.0,
3135
+ # empty_value: {
3136
+ # },
3137
+ # },
3138
+ # result: false, # required
3139
+ # },
3140
+ # not_equal_to: {
3141
+ # operand_one: { # required
3142
+ # field_id: "FieldId",
3143
+ # },
3144
+ # operand_two: { # required
3145
+ # string_value: "OperandTwoStringValueString",
3146
+ # boolean_value: false,
3147
+ # double_value: 1.0,
3148
+ # empty_value: {
3149
+ # },
3150
+ # },
3151
+ # result: false, # required
3152
+ # },
3153
+ # },
3154
+ # ],
3155
+ # },
3018
3156
  # },
3019
3157
  # })
3020
3158
  #
@@ -3213,7 +3351,7 @@ module Aws::ConnectCases
3213
3351
  # rules: [
3214
3352
  # {
3215
3353
  # case_rule_id: "CaseRuleId", # required
3216
- # field_id: "FieldId", # required
3354
+ # field_id: "FieldId",
3217
3355
  # },
3218
3356
  # ],
3219
3357
  # })
@@ -3245,7 +3383,7 @@ module Aws::ConnectCases
3245
3383
  tracer: tracer
3246
3384
  )
3247
3385
  context[:gem_name] = 'aws-sdk-connectcases'
3248
- context[:gem_version] = '1.54.0'
3386
+ context[:gem_version] = '1.55.0'
3249
3387
  Seahorse::Client::Request.new(handlers, context)
3250
3388
  end
3251
3389
 
@@ -32,6 +32,7 @@ module Aws::ConnectCases
32
32
  BatchGetCaseRuleResponse = Shapes::StructureShape.new(name: 'BatchGetCaseRuleResponse')
33
33
  BatchGetCaseRuleResponseCaseRulesList = Shapes::ListShape.new(name: 'BatchGetCaseRuleResponseCaseRulesList')
34
34
  BatchGetCaseRuleResponseErrorsList = Shapes::ListShape.new(name: 'BatchGetCaseRuleResponseErrorsList')
35
+ BatchGetCaseRuleResponseUnprocessedCaseRulesList = Shapes::ListShape.new(name: 'BatchGetCaseRuleResponseUnprocessedCaseRulesList')
35
36
  BatchGetFieldIdentifierList = Shapes::ListShape.new(name: 'BatchGetFieldIdentifierList')
36
37
  BatchGetFieldRequest = Shapes::StructureShape.new(name: 'BatchGetFieldRequest')
37
38
  BatchGetFieldResponse = Shapes::StructureShape.new(name: 'BatchGetFieldResponse')
@@ -144,6 +145,7 @@ module Aws::ConnectCases
144
145
  FieldOptionError = Shapes::StructureShape.new(name: 'FieldOptionError')
145
146
  FieldOptionName = Shapes::StringShape.new(name: 'FieldOptionName')
146
147
  FieldOptionValue = Shapes::StringShape.new(name: 'FieldOptionValue')
148
+ FieldOptionsCaseRule = Shapes::StructureShape.new(name: 'FieldOptionsCaseRule')
147
149
  FieldOptionsList = Shapes::ListShape.new(name: 'FieldOptionsList')
148
150
  FieldSummary = Shapes::StructureShape.new(name: 'FieldSummary')
149
151
  FieldType = Shapes::StringShape.new(name: 'FieldType')
@@ -172,6 +174,7 @@ module Aws::ConnectCases
172
174
  GetLayoutResponse = Shapes::StructureShape.new(name: 'GetLayoutResponse')
173
175
  GetTemplateRequest = Shapes::StructureShape.new(name: 'GetTemplateRequest')
174
176
  GetTemplateResponse = Shapes::StructureShape.new(name: 'GetTemplateResponse')
177
+ HiddenCaseRule = Shapes::StructureShape.new(name: 'HiddenCaseRule')
175
178
  IamPrincipalArn = Shapes::StringShape.new(name: 'IamPrincipalArn')
176
179
  Integer = Shapes::IntegerShape.new(name: 'Integer')
177
180
  InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
@@ -212,6 +215,10 @@ module Aws::ConnectCases
212
215
  OperandTwo = Shapes::UnionShape.new(name: 'OperandTwo')
213
216
  OperandTwoStringValueString = Shapes::StringShape.new(name: 'OperandTwoStringValueString')
214
217
  Order = Shapes::StringShape.new(name: 'Order')
218
+ ParentChildFieldOptionValue = Shapes::StringShape.new(name: 'ParentChildFieldOptionValue')
219
+ ParentChildFieldOptionsMapping = Shapes::StructureShape.new(name: 'ParentChildFieldOptionsMapping')
220
+ ParentChildFieldOptionsMappingChildFieldOptionValuesList = Shapes::ListShape.new(name: 'ParentChildFieldOptionsMappingChildFieldOptionValuesList')
221
+ ParentChildFieldOptionsMappingList = Shapes::ListShape.new(name: 'ParentChildFieldOptionsMappingList')
215
222
  PutCaseEventConfigurationRequest = Shapes::StructureShape.new(name: 'PutCaseEventConfigurationRequest')
216
223
  PutCaseEventConfigurationResponse = Shapes::StructureShape.new(name: 'PutCaseEventConfigurationResponse')
217
224
  RelatedItemArn = Shapes::StringShape.new(name: 'RelatedItemArn')
@@ -345,12 +352,15 @@ module Aws::ConnectCases
345
352
 
346
353
  BatchGetCaseRuleResponse.add_member(:case_rules, Shapes::ShapeRef.new(shape: BatchGetCaseRuleResponseCaseRulesList, required: true, location_name: "caseRules"))
347
354
  BatchGetCaseRuleResponse.add_member(:errors, Shapes::ShapeRef.new(shape: BatchGetCaseRuleResponseErrorsList, required: true, location_name: "errors"))
355
+ BatchGetCaseRuleResponse.add_member(:unprocessed_case_rules, Shapes::ShapeRef.new(shape: BatchGetCaseRuleResponseUnprocessedCaseRulesList, location_name: "unprocessedCaseRules"))
348
356
  BatchGetCaseRuleResponse.struct_class = Types::BatchGetCaseRuleResponse
349
357
 
350
358
  BatchGetCaseRuleResponseCaseRulesList.member = Shapes::ShapeRef.new(shape: GetCaseRuleResponse)
351
359
 
352
360
  BatchGetCaseRuleResponseErrorsList.member = Shapes::ShapeRef.new(shape: CaseRuleError)
353
361
 
362
+ BatchGetCaseRuleResponseUnprocessedCaseRulesList.member = Shapes::ShapeRef.new(shape: CaseRuleId)
363
+
354
364
  BatchGetFieldIdentifierList.member = Shapes::ShapeRef.new(shape: FieldIdentifier)
355
365
 
356
366
  BatchGetFieldRequest.add_member(:domain_id, Shapes::ShapeRef.new(shape: DomainId, required: true, location: "uri", location_name: "domainId"))
@@ -414,8 +424,12 @@ module Aws::ConnectCases
414
424
  CaseFilterOrAllList.member = Shapes::ShapeRef.new(shape: CaseFilter)
415
425
 
416
426
  CaseRuleDetails.add_member(:required, Shapes::ShapeRef.new(shape: RequiredCaseRule, location_name: "required"))
427
+ CaseRuleDetails.add_member(:field_options, Shapes::ShapeRef.new(shape: FieldOptionsCaseRule, location_name: "fieldOptions"))
428
+ CaseRuleDetails.add_member(:hidden, Shapes::ShapeRef.new(shape: HiddenCaseRule, location_name: "hidden"))
417
429
  CaseRuleDetails.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
418
430
  CaseRuleDetails.add_member_subclass(:required, Types::CaseRuleDetails::Required)
431
+ CaseRuleDetails.add_member_subclass(:field_options, Types::CaseRuleDetails::FieldOptions)
432
+ CaseRuleDetails.add_member_subclass(:hidden, Types::CaseRuleDetails::Hidden)
419
433
  CaseRuleDetails.add_member_subclass(:unknown, Types::CaseRuleDetails::Unknown)
420
434
  CaseRuleDetails.struct_class = Types::CaseRuleDetails
421
435
 
@@ -677,6 +691,11 @@ module Aws::ConnectCases
677
691
  FieldOptionError.add_member(:value, Shapes::ShapeRef.new(shape: FieldOptionValue, required: true, location_name: "value"))
678
692
  FieldOptionError.struct_class = Types::FieldOptionError
679
693
 
694
+ FieldOptionsCaseRule.add_member(:parent_field_id, Shapes::ShapeRef.new(shape: FieldId, location_name: "parentFieldId"))
695
+ FieldOptionsCaseRule.add_member(:child_field_id, Shapes::ShapeRef.new(shape: FieldId, location_name: "childFieldId"))
696
+ FieldOptionsCaseRule.add_member(:parent_child_field_options_mappings, Shapes::ShapeRef.new(shape: ParentChildFieldOptionsMappingList, required: true, location_name: "parentChildFieldOptionsMappings"))
697
+ FieldOptionsCaseRule.struct_class = Types::FieldOptionsCaseRule
698
+
680
699
  FieldOptionsList.member = Shapes::ShapeRef.new(shape: FieldOption)
681
700
 
682
701
  FieldSummary.add_member(:field_id, Shapes::ShapeRef.new(shape: FieldId, required: true, location_name: "fieldId"))
@@ -812,6 +831,10 @@ module Aws::ConnectCases
812
831
  GetTemplateResponse.add_member(:rules, Shapes::ShapeRef.new(shape: TemplateCaseRuleList, location_name: "rules"))
813
832
  GetTemplateResponse.struct_class = Types::GetTemplateResponse
814
833
 
834
+ HiddenCaseRule.add_member(:default_value, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "defaultValue"))
835
+ HiddenCaseRule.add_member(:conditions, Shapes::ShapeRef.new(shape: BooleanConditionList, required: true, location_name: "conditions"))
836
+ HiddenCaseRule.struct_class = Types::HiddenCaseRule
837
+
815
838
  InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
816
839
  InternalServerException.add_member(:retry_after_seconds, Shapes::ShapeRef.new(shape: Integer, location: "header", location_name: "Retry-After"))
817
840
  InternalServerException.struct_class = Types::InternalServerException
@@ -933,6 +956,14 @@ module Aws::ConnectCases
933
956
  OperandTwo.add_member_subclass(:unknown, Types::OperandTwo::Unknown)
934
957
  OperandTwo.struct_class = Types::OperandTwo
935
958
 
959
+ ParentChildFieldOptionsMapping.add_member(:parent_field_option_value, Shapes::ShapeRef.new(shape: ParentChildFieldOptionValue, required: true, location_name: "parentFieldOptionValue"))
960
+ ParentChildFieldOptionsMapping.add_member(:child_field_option_values, Shapes::ShapeRef.new(shape: ParentChildFieldOptionsMappingChildFieldOptionValuesList, required: true, location_name: "childFieldOptionValues"))
961
+ ParentChildFieldOptionsMapping.struct_class = Types::ParentChildFieldOptionsMapping
962
+
963
+ ParentChildFieldOptionsMappingChildFieldOptionValuesList.member = Shapes::ShapeRef.new(shape: ParentChildFieldOptionValue)
964
+
965
+ ParentChildFieldOptionsMappingList.member = Shapes::ShapeRef.new(shape: ParentChildFieldOptionsMapping)
966
+
936
967
  PutCaseEventConfigurationRequest.add_member(:domain_id, Shapes::ShapeRef.new(shape: DomainId, required: true, location: "uri", location_name: "domainId"))
937
968
  PutCaseEventConfigurationRequest.add_member(:event_bridge, Shapes::ShapeRef.new(shape: EventBridgeConfiguration, required: true, location_name: "eventBridge"))
938
969
  PutCaseEventConfigurationRequest.struct_class = Types::PutCaseEventConfigurationRequest
@@ -1142,7 +1173,7 @@ module Aws::ConnectCases
1142
1173
  TemplateCaseRuleList.member = Shapes::ShapeRef.new(shape: TemplateRule)
1143
1174
 
1144
1175
  TemplateRule.add_member(:case_rule_id, Shapes::ShapeRef.new(shape: CaseRuleId, required: true, location_name: "caseRuleId"))
1145
- TemplateRule.add_member(:field_id, Shapes::ShapeRef.new(shape: FieldId, required: true, location_name: "fieldId"))
1176
+ TemplateRule.add_member(:field_id, Shapes::ShapeRef.new(shape: FieldId, location_name: "fieldId"))
1146
1177
  TemplateRule.struct_class = Types::TemplateRule
1147
1178
 
1148
1179
  TemplateStatusFilters.member = Shapes::ShapeRef.new(shape: TemplateStatus)
@@ -1834,6 +1865,7 @@ module Aws::ConnectCases
1834
1865
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1835
1866
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1836
1867
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1868
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
1837
1869
  end)
1838
1870
 
1839
1871
  api.add_operation(:update_field, Seahorse::Model::Operation.new.tap do |o|
@@ -1877,6 +1909,7 @@ module Aws::ConnectCases
1877
1909
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1878
1910
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1879
1911
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1912
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
1880
1913
  end)
1881
1914
  end
1882
1915
 
@@ -183,7 +183,7 @@ module Aws::ConnectCases
183
183
  # @return [String]
184
184
  #
185
185
  # @!attribute [rw] case_rules
186
- # List of case rule identifiers.
186
+ # A list of case rule identifiers.
187
187
  # @return [Array<Types::CaseRuleIdentifier>]
188
188
  #
189
189
  # @see http://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/BatchGetCaseRuleRequest AWS API Documentation
@@ -196,18 +196,23 @@ module Aws::ConnectCases
196
196
  end
197
197
 
198
198
  # @!attribute [rw] case_rules
199
- # List of detailed case rule information.
199
+ # A list of detailed case rule information.
200
200
  # @return [Array<Types::GetCaseRuleResponse>]
201
201
  #
202
202
  # @!attribute [rw] errors
203
- # List of case rule errors.
203
+ # A list of case rule errors.
204
204
  # @return [Array<Types::CaseRuleError>]
205
205
  #
206
+ # @!attribute [rw] unprocessed_case_rules
207
+ # A list of unprocessed case rule identifiers.
208
+ # @return [Array<String>]
209
+ #
206
210
  # @see http://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/BatchGetCaseRuleResponse AWS API Documentation
207
211
  #
208
212
  class BatchGetCaseRuleResponse < Struct.new(
209
213
  :case_rules,
210
- :errors)
214
+ :errors,
215
+ :unprocessed_case_rules)
211
216
  SENSITIVE = []
212
217
  include Aws::Structure
213
218
  end
@@ -417,16 +422,29 @@ module Aws::ConnectCases
417
422
  # Required rule type, used to indicate whether a field is required.
418
423
  # @return [Types::RequiredCaseRule]
419
424
  #
425
+ # @!attribute [rw] field_options
426
+ # Which options are available in a child field based on the selected
427
+ # value in a parent field.
428
+ # @return [Types::FieldOptionsCaseRule]
429
+ #
430
+ # @!attribute [rw] hidden
431
+ # Whether a field is visible, based on values in other fields.
432
+ # @return [Types::HiddenCaseRule]
433
+ #
420
434
  # @see http://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/CaseRuleDetails AWS API Documentation
421
435
  #
422
436
  class CaseRuleDetails < Struct.new(
423
437
  :required,
438
+ :field_options,
439
+ :hidden,
424
440
  :unknown)
425
441
  SENSITIVE = []
426
442
  include Aws::Structure
427
443
  include Aws::Structure::Union
428
444
 
429
445
  class Required < CaseRuleDetails; end
446
+ class FieldOptions < CaseRuleDetails; end
447
+ class Hidden < CaseRuleDetails; end
430
448
  class Unknown < CaseRuleDetails; end
431
449
  end
432
450
 
@@ -1512,6 +1530,32 @@ module Aws::ConnectCases
1512
1530
  include Aws::Structure
1513
1531
  end
1514
1532
 
1533
+ # Rules that control which options are available in a child field based
1534
+ # on the selected value in a parent field.
1535
+ #
1536
+ # @!attribute [rw] parent_field_id
1537
+ # The identifier of the parent field that controls options.
1538
+ # @return [String]
1539
+ #
1540
+ # @!attribute [rw] child_field_id
1541
+ # The identifier of the child field whose options are controlled.
1542
+ # @return [String]
1543
+ #
1544
+ # @!attribute [rw] parent_child_field_options_mappings
1545
+ # A mapping between a parent field option value and child field option
1546
+ # values.
1547
+ # @return [Array<Types::ParentChildFieldOptionsMapping>]
1548
+ #
1549
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/FieldOptionsCaseRule AWS API Documentation
1550
+ #
1551
+ class FieldOptionsCaseRule < Struct.new(
1552
+ :parent_field_id,
1553
+ :child_field_id,
1554
+ :parent_child_field_options_mappings)
1555
+ SENSITIVE = []
1556
+ include Aws::Structure
1557
+ end
1558
+
1515
1559
  # Object for the summarized details of the field.
1516
1560
  #
1517
1561
  # @!attribute [rw] field_id
@@ -2108,6 +2152,26 @@ module Aws::ConnectCases
2108
2152
  include Aws::Structure
2109
2153
  end
2110
2154
 
2155
+ # A rule that controls field visibility based on conditions. Fields can
2156
+ # be shown or hidden dynamically based on values in other fields.
2157
+ #
2158
+ # @!attribute [rw] default_value
2159
+ # Whether the field is hidden when no conditions match.
2160
+ # @return [Boolean]
2161
+ #
2162
+ # @!attribute [rw] conditions
2163
+ # A list of conditions that determine field visibility.
2164
+ # @return [Array<Types::BooleanCondition>]
2165
+ #
2166
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/HiddenCaseRule AWS API Documentation
2167
+ #
2168
+ class HiddenCaseRule < Struct.new(
2169
+ :default_value,
2170
+ :conditions)
2171
+ SENSITIVE = []
2172
+ include Aws::Structure
2173
+ end
2174
+
2111
2175
  # We couldn't process your request because of an issue with the server.
2112
2176
  # Try again later.
2113
2177
  #
@@ -2617,6 +2681,26 @@ module Aws::ConnectCases
2617
2681
  class Unknown < OperandTwo; end
2618
2682
  end
2619
2683
 
2684
+ # A mapping between a parent field option value and child field option
2685
+ # values.
2686
+ #
2687
+ # @!attribute [rw] parent_field_option_value
2688
+ # The value in the parent field.
2689
+ # @return [String]
2690
+ #
2691
+ # @!attribute [rw] child_field_option_values
2692
+ # A list of allowed values in the child field.
2693
+ # @return [Array<String>]
2694
+ #
2695
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/ParentChildFieldOptionsMapping AWS API Documentation
2696
+ #
2697
+ class ParentChildFieldOptionsMapping < Struct.new(
2698
+ :parent_field_option_value,
2699
+ :child_field_option_values)
2700
+ SENSITIVE = []
2701
+ include Aws::Structure
2702
+ end
2703
+
2620
2704
  # @!attribute [rw] domain_id
2621
2705
  # The unique identifier of the Cases domain.
2622
2706
  # @return [String]
@@ -55,7 +55,7 @@ module Aws::ConnectCases
55
55
  autoload :EndpointProvider, 'aws-sdk-connectcases/endpoint_provider'
56
56
  autoload :Endpoints, 'aws-sdk-connectcases/endpoints'
57
57
 
58
- GEM_VERSION = '1.54.0'
58
+ GEM_VERSION = '1.55.0'
59
59
 
60
60
  end
61
61
 
data/sig/client.rbs CHANGED
@@ -82,6 +82,7 @@ module Aws
82
82
  include ::Seahorse::Client::_ResponseSuccess[Types::BatchGetCaseRuleResponse]
83
83
  def case_rules: () -> ::Array[Types::GetCaseRuleResponse]
84
84
  def errors: () -> ::Array[Types::CaseRuleError]
85
+ def unprocessed_case_rules: () -> ::Array[::String]
85
86
  end
86
87
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ConnectCases/Client.html#batch_get_case_rule-instance_method
87
88
  def batch_get_case_rule: (
@@ -201,6 +202,49 @@ module Aws
201
202
  }?
202
203
  },
203
204
  ]
205
+ }?,
206
+ field_options: {
207
+ parent_field_id: ::String?,
208
+ child_field_id: ::String?,
209
+ parent_child_field_options_mappings: Array[
210
+ {
211
+ parent_field_option_value: ::String,
212
+ child_field_option_values: Array[::String]
213
+ },
214
+ ]
215
+ }?,
216
+ hidden: {
217
+ default_value: bool,
218
+ conditions: Array[
219
+ {
220
+ equal_to: {
221
+ operand_one: {
222
+ field_id: ::String?
223
+ },
224
+ operand_two: {
225
+ string_value: ::String?,
226
+ boolean_value: bool?,
227
+ double_value: ::Float?,
228
+ empty_value: {
229
+ }?
230
+ },
231
+ result: bool
232
+ }?,
233
+ not_equal_to: {
234
+ operand_one: {
235
+ field_id: ::String?
236
+ },
237
+ operand_two: {
238
+ string_value: ::String?,
239
+ boolean_value: bool?,
240
+ double_value: ::Float?,
241
+ empty_value: {
242
+ }?
243
+ },
244
+ result: bool
245
+ }?
246
+ },
247
+ ]
204
248
  }?
205
249
  }
206
250
  ) -> _CreateCaseRuleResponseSuccess
@@ -363,7 +407,7 @@ module Aws
363
407
  ?rules: Array[
364
408
  {
365
409
  case_rule_id: ::String,
366
- field_id: ::String
410
+ field_id: ::String?
367
411
  },
368
412
  ]
369
413
  ) -> _CreateTemplateResponseSuccess
@@ -1082,6 +1126,49 @@ module Aws
1082
1126
  }?
1083
1127
  },
1084
1128
  ]
1129
+ }?,
1130
+ field_options: {
1131
+ parent_field_id: ::String?,
1132
+ child_field_id: ::String?,
1133
+ parent_child_field_options_mappings: Array[
1134
+ {
1135
+ parent_field_option_value: ::String,
1136
+ child_field_option_values: Array[::String]
1137
+ },
1138
+ ]
1139
+ }?,
1140
+ hidden: {
1141
+ default_value: bool,
1142
+ conditions: Array[
1143
+ {
1144
+ equal_to: {
1145
+ operand_one: {
1146
+ field_id: ::String?
1147
+ },
1148
+ operand_two: {
1149
+ string_value: ::String?,
1150
+ boolean_value: bool?,
1151
+ double_value: ::Float?,
1152
+ empty_value: {
1153
+ }?
1154
+ },
1155
+ result: bool
1156
+ }?,
1157
+ not_equal_to: {
1158
+ operand_one: {
1159
+ field_id: ::String?
1160
+ },
1161
+ operand_two: {
1162
+ string_value: ::String?,
1163
+ boolean_value: bool?,
1164
+ double_value: ::Float?,
1165
+ empty_value: {
1166
+ }?
1167
+ },
1168
+ result: bool
1169
+ }?
1170
+ },
1171
+ ]
1085
1172
  }?
1086
1173
  }
1087
1174
  ) -> _UpdateCaseRuleResponseSuccess
@@ -1163,7 +1250,7 @@ module Aws
1163
1250
  ?rules: Array[
1164
1251
  {
1165
1252
  case_rule_id: ::String,
1166
- field_id: ::String
1253
+ field_id: ::String?
1167
1254
  },
1168
1255
  ]
1169
1256
  ) -> _UpdateTemplateResponseSuccess
data/sig/types.rbs CHANGED
@@ -74,6 +74,7 @@ module Aws::ConnectCases
74
74
  class BatchGetCaseRuleResponse
75
75
  attr_accessor case_rules: ::Array[Types::GetCaseRuleResponse]
76
76
  attr_accessor errors: ::Array[Types::CaseRuleError]
77
+ attr_accessor unprocessed_case_rules: ::Array[::String]
77
78
  SENSITIVE: []
78
79
  end
79
80
 
@@ -149,11 +150,17 @@ module Aws::ConnectCases
149
150
 
150
151
  class CaseRuleDetails
151
152
  attr_accessor required: Types::RequiredCaseRule
153
+ attr_accessor field_options: Types::FieldOptionsCaseRule
154
+ attr_accessor hidden: Types::HiddenCaseRule
152
155
  attr_accessor unknown: untyped
153
156
  SENSITIVE: []
154
157
 
155
158
  class Required < CaseRuleDetails
156
159
  end
160
+ class FieldOptions < CaseRuleDetails
161
+ end
162
+ class Hidden < CaseRuleDetails
163
+ end
157
164
  class Unknown < CaseRuleDetails
158
165
  end
159
166
  end
@@ -174,7 +181,7 @@ module Aws::ConnectCases
174
181
  attr_accessor case_rule_id: ::String
175
182
  attr_accessor name: ::String
176
183
  attr_accessor case_rule_arn: ::String
177
- attr_accessor rule_type: ("Required")
184
+ attr_accessor rule_type: ("Required" | "Hidden" | "FieldOptions")
178
185
  attr_accessor description: ::String
179
186
  SENSITIVE: []
180
187
  end
@@ -518,6 +525,13 @@ module Aws::ConnectCases
518
525
  SENSITIVE: []
519
526
  end
520
527
 
528
+ class FieldOptionsCaseRule
529
+ attr_accessor parent_field_id: ::String
530
+ attr_accessor child_field_id: ::String
531
+ attr_accessor parent_child_field_options_mappings: ::Array[Types::ParentChildFieldOptionsMapping]
532
+ SENSITIVE: []
533
+ end
534
+
521
535
  class FieldSummary
522
536
  attr_accessor field_id: ::String
523
537
  attr_accessor field_arn: ::String
@@ -688,6 +702,12 @@ module Aws::ConnectCases
688
702
  SENSITIVE: []
689
703
  end
690
704
 
705
+ class HiddenCaseRule
706
+ attr_accessor default_value: bool
707
+ attr_accessor conditions: ::Array[Types::BooleanCondition]
708
+ SENSITIVE: []
709
+ end
710
+
691
711
  class InternalServerException
692
712
  attr_accessor message: ::String
693
713
  attr_accessor retry_after_seconds: ::Integer
@@ -857,6 +877,12 @@ module Aws::ConnectCases
857
877
  end
858
878
  end
859
879
 
880
+ class ParentChildFieldOptionsMapping
881
+ attr_accessor parent_field_option_value: ::String
882
+ attr_accessor child_field_option_values: ::Array[::String]
883
+ SENSITIVE: []
884
+ end
885
+
860
886
  class PutCaseEventConfigurationRequest
861
887
  attr_accessor domain_id: ::String
862
888
  attr_accessor event_bridge: Types::EventBridgeConfiguration
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.54.0
4
+ version: 1.55.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services