aws-sdk-connectcases 1.37.0 → 1.38.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -28,6 +28,10 @@ module Aws::ConnectCases
28
28
  AuditEventPerformedBy = Shapes::StructureShape.new(name: 'AuditEventPerformedBy')
29
29
  AuditEventType = Shapes::StringShape.new(name: 'AuditEventType')
30
30
  BasicLayout = Shapes::StructureShape.new(name: 'BasicLayout')
31
+ BatchGetCaseRuleRequest = Shapes::StructureShape.new(name: 'BatchGetCaseRuleRequest')
32
+ BatchGetCaseRuleResponse = Shapes::StructureShape.new(name: 'BatchGetCaseRuleResponse')
33
+ BatchGetCaseRuleResponseCaseRulesList = Shapes::ListShape.new(name: 'BatchGetCaseRuleResponseCaseRulesList')
34
+ BatchGetCaseRuleResponseErrorsList = Shapes::ListShape.new(name: 'BatchGetCaseRuleResponseErrorsList')
31
35
  BatchGetFieldIdentifierList = Shapes::ListShape.new(name: 'BatchGetFieldIdentifierList')
32
36
  BatchGetFieldRequest = Shapes::StructureShape.new(name: 'BatchGetFieldRequest')
33
37
  BatchGetFieldResponse = Shapes::StructureShape.new(name: 'BatchGetFieldResponse')
@@ -38,6 +42,9 @@ module Aws::ConnectCases
38
42
  BatchPutFieldOptionsResponse = Shapes::StructureShape.new(name: 'BatchPutFieldOptionsResponse')
39
43
  BatchPutFieldOptionsResponseErrorsList = Shapes::ListShape.new(name: 'BatchPutFieldOptionsResponseErrorsList')
40
44
  Boolean = Shapes::BooleanShape.new(name: 'Boolean')
45
+ BooleanCondition = Shapes::UnionShape.new(name: 'BooleanCondition')
46
+ BooleanConditionList = Shapes::ListShape.new(name: 'BooleanConditionList')
47
+ BooleanOperands = Shapes::StructureShape.new(name: 'BooleanOperands')
41
48
  CaseArn = Shapes::StringShape.new(name: 'CaseArn')
42
49
  CaseEventIncludedData = Shapes::StructureShape.new(name: 'CaseEventIncludedData')
43
50
  CaseEventIncludedDataFieldsList = Shapes::ListShape.new(name: 'CaseEventIncludedDataFieldsList')
@@ -45,6 +52,15 @@ module Aws::ConnectCases
45
52
  CaseFilterAndAllList = Shapes::ListShape.new(name: 'CaseFilterAndAllList')
46
53
  CaseFilterOrAllList = Shapes::ListShape.new(name: 'CaseFilterOrAllList')
47
54
  CaseId = Shapes::StringShape.new(name: 'CaseId')
55
+ CaseRuleArn = Shapes::StringShape.new(name: 'CaseRuleArn')
56
+ CaseRuleDescription = Shapes::StringShape.new(name: 'CaseRuleDescription')
57
+ CaseRuleDetails = Shapes::UnionShape.new(name: 'CaseRuleDetails')
58
+ CaseRuleError = Shapes::StructureShape.new(name: 'CaseRuleError')
59
+ CaseRuleId = Shapes::StringShape.new(name: 'CaseRuleId')
60
+ CaseRuleIdentifier = Shapes::StructureShape.new(name: 'CaseRuleIdentifier')
61
+ CaseRuleIdentifierList = Shapes::ListShape.new(name: 'CaseRuleIdentifierList')
62
+ CaseRuleName = Shapes::StringShape.new(name: 'CaseRuleName')
63
+ CaseRuleSummary = Shapes::StructureShape.new(name: 'CaseRuleSummary')
48
64
  CaseSummary = Shapes::StructureShape.new(name: 'CaseSummary')
49
65
  Channel = Shapes::StringShape.new(name: 'Channel')
50
66
  CommentBody = Shapes::StringShape.new(name: 'CommentBody')
@@ -62,6 +78,8 @@ module Aws::ConnectCases
62
78
  CreateCaseRequestClientTokenString = Shapes::StringShape.new(name: 'CreateCaseRequestClientTokenString')
63
79
  CreateCaseRequestFieldsList = Shapes::ListShape.new(name: 'CreateCaseRequestFieldsList')
64
80
  CreateCaseResponse = Shapes::StructureShape.new(name: 'CreateCaseResponse')
81
+ CreateCaseRuleRequest = Shapes::StructureShape.new(name: 'CreateCaseRuleRequest')
82
+ CreateCaseRuleResponse = Shapes::StructureShape.new(name: 'CreateCaseRuleResponse')
65
83
  CreateDomainRequest = Shapes::StructureShape.new(name: 'CreateDomainRequest')
66
84
  CreateDomainResponse = Shapes::StructureShape.new(name: 'CreateDomainResponse')
67
85
  CreateFieldRequest = Shapes::StructureShape.new(name: 'CreateFieldRequest')
@@ -73,6 +91,8 @@ module Aws::ConnectCases
73
91
  CreateTemplateRequest = Shapes::StructureShape.new(name: 'CreateTemplateRequest')
74
92
  CreateTemplateResponse = Shapes::StructureShape.new(name: 'CreateTemplateResponse')
75
93
  CreatedTime = Shapes::TimestampShape.new(name: 'CreatedTime', timestampFormat: "iso8601")
94
+ DeleteCaseRuleRequest = Shapes::StructureShape.new(name: 'DeleteCaseRuleRequest')
95
+ DeleteCaseRuleResponse = Shapes::StructureShape.new(name: 'DeleteCaseRuleResponse')
76
96
  DeleteDomainRequest = Shapes::StructureShape.new(name: 'DeleteDomainRequest')
77
97
  DeleteDomainResponse = Shapes::StructureShape.new(name: 'DeleteDomainResponse')
78
98
  DeleteFieldRequest = Shapes::StructureShape.new(name: 'DeleteFieldRequest')
@@ -90,6 +110,7 @@ module Aws::ConnectCases
90
110
  DomainSummaryList = Shapes::ListShape.new(name: 'DomainSummaryList')
91
111
  Double = Shapes::FloatShape.new(name: 'Double')
92
112
  EmptyFieldValue = Shapes::StructureShape.new(name: 'EmptyFieldValue')
113
+ EmptyOperandValue = Shapes::StructureShape.new(name: 'EmptyOperandValue')
93
114
  EventBridgeConfiguration = Shapes::StructureShape.new(name: 'EventBridgeConfiguration')
94
115
  EventIncludedData = Shapes::StructureShape.new(name: 'EventIncludedData')
95
116
  FieldArn = Shapes::StringShape.new(name: 'FieldArn')
@@ -127,6 +148,7 @@ module Aws::ConnectCases
127
148
  GetCaseRequestFieldsList = Shapes::ListShape.new(name: 'GetCaseRequestFieldsList')
128
149
  GetCaseResponse = Shapes::StructureShape.new(name: 'GetCaseResponse')
129
150
  GetCaseResponseFieldsList = Shapes::ListShape.new(name: 'GetCaseResponseFieldsList')
151
+ GetCaseRuleResponse = Shapes::StructureShape.new(name: 'GetCaseRuleResponse')
130
152
  GetDomainRequest = Shapes::StructureShape.new(name: 'GetDomainRequest')
131
153
  GetDomainResponse = Shapes::StructureShape.new(name: 'GetDomainResponse')
132
154
  GetFieldResponse = Shapes::StructureShape.new(name: 'GetFieldResponse')
@@ -146,6 +168,9 @@ module Aws::ConnectCases
146
168
  LayoutSections = Shapes::StructureShape.new(name: 'LayoutSections')
147
169
  LayoutSummary = Shapes::StructureShape.new(name: 'LayoutSummary')
148
170
  LayoutSummaryList = Shapes::ListShape.new(name: 'LayoutSummaryList')
171
+ ListCaseRulesRequest = Shapes::StructureShape.new(name: 'ListCaseRulesRequest')
172
+ ListCaseRulesResponse = Shapes::StructureShape.new(name: 'ListCaseRulesResponse')
173
+ ListCaseRulesResponseCaseRulesList = Shapes::ListShape.new(name: 'ListCaseRulesResponseCaseRulesList')
149
174
  ListCasesForContactRequest = Shapes::StructureShape.new(name: 'ListCasesForContactRequest')
150
175
  ListCasesForContactRequestMaxResultsInteger = Shapes::IntegerShape.new(name: 'ListCasesForContactRequestMaxResultsInteger')
151
176
  ListCasesForContactResponse = Shapes::StructureShape.new(name: 'ListCasesForContactResponse')
@@ -167,6 +192,9 @@ module Aws::ConnectCases
167
192
  ListTemplatesResponseTemplatesList = Shapes::ListShape.new(name: 'ListTemplatesResponseTemplatesList')
168
193
  MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
169
194
  NextToken = Shapes::StringShape.new(name: 'NextToken')
195
+ OperandOne = Shapes::UnionShape.new(name: 'OperandOne')
196
+ OperandTwo = Shapes::UnionShape.new(name: 'OperandTwo')
197
+ OperandTwoStringValueString = Shapes::StringShape.new(name: 'OperandTwoStringValueString')
170
198
  Order = Shapes::StringShape.new(name: 'Order')
171
199
  PutCaseEventConfigurationRequest = Shapes::StructureShape.new(name: 'PutCaseEventConfigurationRequest')
172
200
  PutCaseEventConfigurationResponse = Shapes::StructureShape.new(name: 'PutCaseEventConfigurationResponse')
@@ -177,9 +205,11 @@ module Aws::ConnectCases
177
205
  RelatedItemInputContent = Shapes::UnionShape.new(name: 'RelatedItemInputContent')
178
206
  RelatedItemType = Shapes::StringShape.new(name: 'RelatedItemType')
179
207
  RelatedItemTypeFilter = Shapes::UnionShape.new(name: 'RelatedItemTypeFilter')
208
+ RequiredCaseRule = Shapes::StructureShape.new(name: 'RequiredCaseRule')
180
209
  RequiredField = Shapes::StructureShape.new(name: 'RequiredField')
181
210
  RequiredFieldList = Shapes::ListShape.new(name: 'RequiredFieldList')
182
211
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
212
+ RuleType = Shapes::StringShape.new(name: 'RuleType')
183
213
  SearchCasesRequest = Shapes::StructureShape.new(name: 'SearchCasesRequest')
184
214
  SearchCasesRequestFieldsList = Shapes::ListShape.new(name: 'SearchCasesRequestFieldsList')
185
215
  SearchCasesRequestMaxResultsInteger = Shapes::IntegerShape.new(name: 'SearchCasesRequestMaxResultsInteger')
@@ -205,9 +235,11 @@ module Aws::ConnectCases
205
235
  TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
206
236
  Tags = Shapes::MapShape.new(name: 'Tags')
207
237
  TemplateArn = Shapes::StringShape.new(name: 'TemplateArn')
238
+ TemplateCaseRuleList = Shapes::ListShape.new(name: 'TemplateCaseRuleList')
208
239
  TemplateDescription = Shapes::StringShape.new(name: 'TemplateDescription')
209
240
  TemplateId = Shapes::StringShape.new(name: 'TemplateId')
210
241
  TemplateName = Shapes::StringShape.new(name: 'TemplateName')
242
+ TemplateRule = Shapes::StructureShape.new(name: 'TemplateRule')
211
243
  TemplateStatus = Shapes::StringShape.new(name: 'TemplateStatus')
212
244
  TemplateStatusFilters = Shapes::ListShape.new(name: 'TemplateStatusFilters')
213
245
  TemplateSummary = Shapes::StructureShape.new(name: 'TemplateSummary')
@@ -216,6 +248,8 @@ module Aws::ConnectCases
216
248
  UpdateCaseRequest = Shapes::StructureShape.new(name: 'UpdateCaseRequest')
217
249
  UpdateCaseRequestFieldsList = Shapes::ListShape.new(name: 'UpdateCaseRequestFieldsList')
218
250
  UpdateCaseResponse = Shapes::StructureShape.new(name: 'UpdateCaseResponse')
251
+ UpdateCaseRuleRequest = Shapes::StructureShape.new(name: 'UpdateCaseRuleRequest')
252
+ UpdateCaseRuleResponse = Shapes::StructureShape.new(name: 'UpdateCaseRuleResponse')
219
253
  UpdateFieldRequest = Shapes::StructureShape.new(name: 'UpdateFieldRequest')
220
254
  UpdateFieldResponse = Shapes::StructureShape.new(name: 'UpdateFieldResponse')
221
255
  UpdateLayoutRequest = Shapes::StructureShape.new(name: 'UpdateLayoutRequest')
@@ -268,6 +302,18 @@ module Aws::ConnectCases
268
302
  BasicLayout.add_member(:top_panel, Shapes::ShapeRef.new(shape: LayoutSections, location_name: "topPanel"))
269
303
  BasicLayout.struct_class = Types::BasicLayout
270
304
 
305
+ BatchGetCaseRuleRequest.add_member(:case_rules, Shapes::ShapeRef.new(shape: CaseRuleIdentifierList, required: true, location_name: "caseRules"))
306
+ BatchGetCaseRuleRequest.add_member(:domain_id, Shapes::ShapeRef.new(shape: DomainId, required: true, location: "uri", location_name: "domainId"))
307
+ BatchGetCaseRuleRequest.struct_class = Types::BatchGetCaseRuleRequest
308
+
309
+ BatchGetCaseRuleResponse.add_member(:case_rules, Shapes::ShapeRef.new(shape: BatchGetCaseRuleResponseCaseRulesList, required: true, location_name: "caseRules"))
310
+ BatchGetCaseRuleResponse.add_member(:errors, Shapes::ShapeRef.new(shape: BatchGetCaseRuleResponseErrorsList, required: true, location_name: "errors"))
311
+ BatchGetCaseRuleResponse.struct_class = Types::BatchGetCaseRuleResponse
312
+
313
+ BatchGetCaseRuleResponseCaseRulesList.member = Shapes::ShapeRef.new(shape: GetCaseRuleResponse)
314
+
315
+ BatchGetCaseRuleResponseErrorsList.member = Shapes::ShapeRef.new(shape: CaseRuleError)
316
+
271
317
  BatchGetFieldIdentifierList.member = Shapes::ShapeRef.new(shape: FieldIdentifier)
272
318
 
273
319
  BatchGetFieldRequest.add_member(:domain_id, Shapes::ShapeRef.new(shape: DomainId, required: true, location: "uri", location_name: "domainId"))
@@ -294,6 +340,21 @@ module Aws::ConnectCases
294
340
 
295
341
  BatchPutFieldOptionsResponseErrorsList.member = Shapes::ShapeRef.new(shape: FieldOptionError)
296
342
 
343
+ BooleanCondition.add_member(:equal_to, Shapes::ShapeRef.new(shape: BooleanOperands, location_name: "equalTo"))
344
+ BooleanCondition.add_member(:not_equal_to, Shapes::ShapeRef.new(shape: BooleanOperands, location_name: "notEqualTo"))
345
+ BooleanCondition.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
346
+ BooleanCondition.add_member_subclass(:equal_to, Types::BooleanCondition::EqualTo)
347
+ BooleanCondition.add_member_subclass(:not_equal_to, Types::BooleanCondition::NotEqualTo)
348
+ BooleanCondition.add_member_subclass(:unknown, Types::BooleanCondition::Unknown)
349
+ BooleanCondition.struct_class = Types::BooleanCondition
350
+
351
+ BooleanConditionList.member = Shapes::ShapeRef.new(shape: BooleanCondition)
352
+
353
+ BooleanOperands.add_member(:operand_one, Shapes::ShapeRef.new(shape: OperandOne, required: true, location_name: "operandOne"))
354
+ BooleanOperands.add_member(:operand_two, Shapes::ShapeRef.new(shape: OperandTwo, required: true, location_name: "operandTwo"))
355
+ BooleanOperands.add_member(:result, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "result"))
356
+ BooleanOperands.struct_class = Types::BooleanOperands
357
+
297
358
  CaseEventIncludedData.add_member(:fields, Shapes::ShapeRef.new(shape: CaseEventIncludedDataFieldsList, required: true, location_name: "fields"))
298
359
  CaseEventIncludedData.struct_class = Types::CaseEventIncludedData
299
360
 
@@ -315,6 +376,29 @@ module Aws::ConnectCases
315
376
 
316
377
  CaseFilterOrAllList.member = Shapes::ShapeRef.new(shape: CaseFilter)
317
378
 
379
+ CaseRuleDetails.add_member(:required, Shapes::ShapeRef.new(shape: RequiredCaseRule, location_name: "required"))
380
+ CaseRuleDetails.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
381
+ CaseRuleDetails.add_member_subclass(:required, Types::CaseRuleDetails::Required)
382
+ CaseRuleDetails.add_member_subclass(:unknown, Types::CaseRuleDetails::Unknown)
383
+ CaseRuleDetails.struct_class = Types::CaseRuleDetails
384
+
385
+ CaseRuleError.add_member(:error_code, Shapes::ShapeRef.new(shape: String, required: true, location_name: "errorCode"))
386
+ CaseRuleError.add_member(:id, Shapes::ShapeRef.new(shape: CaseRuleId, required: true, location_name: "id"))
387
+ CaseRuleError.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
388
+ CaseRuleError.struct_class = Types::CaseRuleError
389
+
390
+ CaseRuleIdentifier.add_member(:id, Shapes::ShapeRef.new(shape: CaseRuleId, required: true, location_name: "id"))
391
+ CaseRuleIdentifier.struct_class = Types::CaseRuleIdentifier
392
+
393
+ CaseRuleIdentifierList.member = Shapes::ShapeRef.new(shape: CaseRuleIdentifier)
394
+
395
+ CaseRuleSummary.add_member(:case_rule_arn, Shapes::ShapeRef.new(shape: CaseRuleArn, required: true, location_name: "caseRuleArn"))
396
+ CaseRuleSummary.add_member(:case_rule_id, Shapes::ShapeRef.new(shape: CaseRuleId, required: true, location_name: "caseRuleId"))
397
+ CaseRuleSummary.add_member(:description, Shapes::ShapeRef.new(shape: CaseRuleDescription, location_name: "description"))
398
+ CaseRuleSummary.add_member(:name, Shapes::ShapeRef.new(shape: CaseRuleName, required: true, location_name: "name"))
399
+ CaseRuleSummary.add_member(:rule_type, Shapes::ShapeRef.new(shape: RuleType, required: true, location_name: "ruleType"))
400
+ CaseRuleSummary.struct_class = Types::CaseRuleSummary
401
+
318
402
  CaseSummary.add_member(:case_id, Shapes::ShapeRef.new(shape: CaseId, required: true, location_name: "caseId"))
319
403
  CaseSummary.add_member(:template_id, Shapes::ShapeRef.new(shape: TemplateId, required: true, location_name: "templateId"))
320
404
  CaseSummary.struct_class = Types::CaseSummary
@@ -355,6 +439,16 @@ module Aws::ConnectCases
355
439
  CreateCaseResponse.add_member(:case_id, Shapes::ShapeRef.new(shape: CaseId, required: true, location_name: "caseId"))
356
440
  CreateCaseResponse.struct_class = Types::CreateCaseResponse
357
441
 
442
+ CreateCaseRuleRequest.add_member(:description, Shapes::ShapeRef.new(shape: CaseRuleDescription, location_name: "description"))
443
+ CreateCaseRuleRequest.add_member(:domain_id, Shapes::ShapeRef.new(shape: DomainId, required: true, location: "uri", location_name: "domainId"))
444
+ CreateCaseRuleRequest.add_member(:name, Shapes::ShapeRef.new(shape: CaseRuleName, required: true, location_name: "name"))
445
+ CreateCaseRuleRequest.add_member(:rule, Shapes::ShapeRef.new(shape: CaseRuleDetails, required: true, location_name: "rule"))
446
+ CreateCaseRuleRequest.struct_class = Types::CreateCaseRuleRequest
447
+
448
+ CreateCaseRuleResponse.add_member(:case_rule_arn, Shapes::ShapeRef.new(shape: CaseRuleArn, required: true, location_name: "caseRuleArn"))
449
+ CreateCaseRuleResponse.add_member(:case_rule_id, Shapes::ShapeRef.new(shape: CaseRuleId, required: true, location_name: "caseRuleId"))
450
+ CreateCaseRuleResponse.struct_class = Types::CreateCaseRuleResponse
451
+
358
452
  CreateDomainRequest.add_member(:name, Shapes::ShapeRef.new(shape: DomainName, required: true, location_name: "name"))
359
453
  CreateDomainRequest.struct_class = Types::CreateDomainRequest
360
454
 
@@ -398,6 +492,7 @@ module Aws::ConnectCases
398
492
  CreateTemplateRequest.add_member(:layout_configuration, Shapes::ShapeRef.new(shape: LayoutConfiguration, location_name: "layoutConfiguration"))
399
493
  CreateTemplateRequest.add_member(:name, Shapes::ShapeRef.new(shape: TemplateName, required: true, location_name: "name"))
400
494
  CreateTemplateRequest.add_member(:required_fields, Shapes::ShapeRef.new(shape: RequiredFieldList, location_name: "requiredFields"))
495
+ CreateTemplateRequest.add_member(:rules, Shapes::ShapeRef.new(shape: TemplateCaseRuleList, location_name: "rules"))
401
496
  CreateTemplateRequest.add_member(:status, Shapes::ShapeRef.new(shape: TemplateStatus, location_name: "status"))
402
497
  CreateTemplateRequest.struct_class = Types::CreateTemplateRequest
403
498
 
@@ -405,6 +500,12 @@ module Aws::ConnectCases
405
500
  CreateTemplateResponse.add_member(:template_id, Shapes::ShapeRef.new(shape: TemplateId, required: true, location_name: "templateId"))
406
501
  CreateTemplateResponse.struct_class = Types::CreateTemplateResponse
407
502
 
503
+ DeleteCaseRuleRequest.add_member(:case_rule_id, Shapes::ShapeRef.new(shape: CaseRuleId, required: true, location: "uri", location_name: "caseRuleId"))
504
+ DeleteCaseRuleRequest.add_member(:domain_id, Shapes::ShapeRef.new(shape: DomainId, required: true, location: "uri", location_name: "domainId"))
505
+ DeleteCaseRuleRequest.struct_class = Types::DeleteCaseRuleRequest
506
+
507
+ DeleteCaseRuleResponse.struct_class = Types::DeleteCaseRuleResponse
508
+
408
509
  DeleteDomainRequest.add_member(:domain_id, Shapes::ShapeRef.new(shape: DomainId, required: true, location: "uri", location_name: "domainId"))
409
510
  DeleteDomainRequest.struct_class = Types::DeleteDomainRequest
410
511
 
@@ -437,6 +538,8 @@ module Aws::ConnectCases
437
538
 
438
539
  EmptyFieldValue.struct_class = Types::EmptyFieldValue
439
540
 
541
+ EmptyOperandValue.struct_class = Types::EmptyOperandValue
542
+
440
543
  EventBridgeConfiguration.add_member(:enabled, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "enabled"))
441
544
  EventBridgeConfiguration.add_member(:included_data, Shapes::ShapeRef.new(shape: EventIncludedData, location_name: "includedData"))
442
545
  EventBridgeConfiguration.struct_class = Types::EventBridgeConfiguration
@@ -555,6 +658,17 @@ module Aws::ConnectCases
555
658
 
556
659
  GetCaseResponseFieldsList.member = Shapes::ShapeRef.new(shape: FieldValue)
557
660
 
661
+ GetCaseRuleResponse.add_member(:case_rule_arn, Shapes::ShapeRef.new(shape: CaseRuleArn, required: true, location_name: "caseRuleArn"))
662
+ GetCaseRuleResponse.add_member(:case_rule_id, Shapes::ShapeRef.new(shape: CaseRuleId, required: true, location_name: "caseRuleId"))
663
+ GetCaseRuleResponse.add_member(:created_time, Shapes::ShapeRef.new(shape: CreatedTime, location_name: "createdTime"))
664
+ GetCaseRuleResponse.add_member(:deleted, Shapes::ShapeRef.new(shape: Deleted, location_name: "deleted"))
665
+ GetCaseRuleResponse.add_member(:description, Shapes::ShapeRef.new(shape: CaseRuleDescription, location_name: "description"))
666
+ GetCaseRuleResponse.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: LastModifiedTime, location_name: "lastModifiedTime"))
667
+ GetCaseRuleResponse.add_member(:name, Shapes::ShapeRef.new(shape: CaseRuleName, required: true, location_name: "name"))
668
+ GetCaseRuleResponse.add_member(:rule, Shapes::ShapeRef.new(shape: CaseRuleDetails, required: true, location_name: "rule"))
669
+ GetCaseRuleResponse.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
670
+ GetCaseRuleResponse.struct_class = Types::GetCaseRuleResponse
671
+
558
672
  GetDomainRequest.add_member(:domain_id, Shapes::ShapeRef.new(shape: DomainId, required: true, location: "uri", location_name: "domainId"))
559
673
  GetDomainRequest.struct_class = Types::GetDomainRequest
560
674
 
@@ -603,6 +717,7 @@ module Aws::ConnectCases
603
717
  GetTemplateResponse.add_member(:layout_configuration, Shapes::ShapeRef.new(shape: LayoutConfiguration, location_name: "layoutConfiguration"))
604
718
  GetTemplateResponse.add_member(:name, Shapes::ShapeRef.new(shape: TemplateName, required: true, location_name: "name"))
605
719
  GetTemplateResponse.add_member(:required_fields, Shapes::ShapeRef.new(shape: RequiredFieldList, location_name: "requiredFields"))
720
+ GetTemplateResponse.add_member(:rules, Shapes::ShapeRef.new(shape: TemplateCaseRuleList, location_name: "rules"))
606
721
  GetTemplateResponse.add_member(:status, Shapes::ShapeRef.new(shape: TemplateStatus, required: true, location_name: "status"))
607
722
  GetTemplateResponse.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
608
723
  GetTemplateResponse.add_member(:template_arn, Shapes::ShapeRef.new(shape: TemplateArn, required: true, location_name: "templateArn"))
@@ -632,6 +747,17 @@ module Aws::ConnectCases
632
747
 
633
748
  LayoutSummaryList.member = Shapes::ShapeRef.new(shape: LayoutSummary)
634
749
 
750
+ ListCaseRulesRequest.add_member(:domain_id, Shapes::ShapeRef.new(shape: DomainId, required: true, location: "uri", location_name: "domainId"))
751
+ ListCaseRulesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
752
+ ListCaseRulesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "nextToken"))
753
+ ListCaseRulesRequest.struct_class = Types::ListCaseRulesRequest
754
+
755
+ ListCaseRulesResponse.add_member(:case_rules, Shapes::ShapeRef.new(shape: ListCaseRulesResponseCaseRulesList, required: true, location_name: "caseRules"))
756
+ ListCaseRulesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
757
+ ListCaseRulesResponse.struct_class = Types::ListCaseRulesResponse
758
+
759
+ ListCaseRulesResponseCaseRulesList.member = Shapes::ShapeRef.new(shape: CaseRuleSummary)
760
+
635
761
  ListCasesForContactRequest.add_member(:contact_arn, Shapes::ShapeRef.new(shape: ContactArn, required: true, location_name: "contactArn"))
636
762
  ListCasesForContactRequest.add_member(:domain_id, Shapes::ShapeRef.new(shape: DomainId, required: true, location: "uri", location_name: "domainId"))
637
763
  ListCasesForContactRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListCasesForContactRequestMaxResultsInteger, location_name: "maxResults"))
@@ -701,6 +827,24 @@ module Aws::ConnectCases
701
827
 
702
828
  ListTemplatesResponseTemplatesList.member = Shapes::ShapeRef.new(shape: TemplateSummary)
703
829
 
830
+ OperandOne.add_member(:field_id, Shapes::ShapeRef.new(shape: FieldId, location_name: "fieldId"))
831
+ OperandOne.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
832
+ OperandOne.add_member_subclass(:field_id, Types::OperandOne::FieldId)
833
+ OperandOne.add_member_subclass(:unknown, Types::OperandOne::Unknown)
834
+ OperandOne.struct_class = Types::OperandOne
835
+
836
+ OperandTwo.add_member(:boolean_value, Shapes::ShapeRef.new(shape: Boolean, location_name: "booleanValue"))
837
+ OperandTwo.add_member(:double_value, Shapes::ShapeRef.new(shape: Double, location_name: "doubleValue"))
838
+ OperandTwo.add_member(:empty_value, Shapes::ShapeRef.new(shape: EmptyOperandValue, location_name: "emptyValue"))
839
+ OperandTwo.add_member(:string_value, Shapes::ShapeRef.new(shape: OperandTwoStringValueString, location_name: "stringValue"))
840
+ OperandTwo.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
841
+ OperandTwo.add_member_subclass(:boolean_value, Types::OperandTwo::BooleanValue)
842
+ OperandTwo.add_member_subclass(:double_value, Types::OperandTwo::DoubleValue)
843
+ OperandTwo.add_member_subclass(:empty_value, Types::OperandTwo::EmptyValue)
844
+ OperandTwo.add_member_subclass(:string_value, Types::OperandTwo::StringValue)
845
+ OperandTwo.add_member_subclass(:unknown, Types::OperandTwo::Unknown)
846
+ OperandTwo.struct_class = Types::OperandTwo
847
+
704
848
  PutCaseEventConfigurationRequest.add_member(:domain_id, Shapes::ShapeRef.new(shape: DomainId, required: true, location: "uri", location_name: "domainId"))
705
849
  PutCaseEventConfigurationRequest.add_member(:event_bridge, Shapes::ShapeRef.new(shape: EventBridgeConfiguration, required: true, location_name: "eventBridge"))
706
850
  PutCaseEventConfigurationRequest.struct_class = Types::PutCaseEventConfigurationRequest
@@ -740,6 +884,10 @@ module Aws::ConnectCases
740
884
  RelatedItemTypeFilter.add_member_subclass(:unknown, Types::RelatedItemTypeFilter::Unknown)
741
885
  RelatedItemTypeFilter.struct_class = Types::RelatedItemTypeFilter
742
886
 
887
+ RequiredCaseRule.add_member(:conditions, Shapes::ShapeRef.new(shape: BooleanConditionList, required: true, location_name: "conditions"))
888
+ RequiredCaseRule.add_member(:default_value, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "defaultValue"))
889
+ RequiredCaseRule.struct_class = Types::RequiredCaseRule
890
+
743
891
  RequiredField.add_member(:field_id, Shapes::ShapeRef.new(shape: FieldId, required: true, location_name: "fieldId"))
744
892
  RequiredField.struct_class = Types::RequiredField
745
893
 
@@ -824,6 +972,12 @@ module Aws::ConnectCases
824
972
  Tags.key = Shapes::ShapeRef.new(shape: String)
825
973
  Tags.value = Shapes::ShapeRef.new(shape: String)
826
974
 
975
+ TemplateCaseRuleList.member = Shapes::ShapeRef.new(shape: TemplateRule)
976
+
977
+ TemplateRule.add_member(:case_rule_id, Shapes::ShapeRef.new(shape: CaseRuleId, required: true, location_name: "caseRuleId"))
978
+ TemplateRule.add_member(:field_id, Shapes::ShapeRef.new(shape: FieldId, required: true, location_name: "fieldId"))
979
+ TemplateRule.struct_class = Types::TemplateRule
980
+
827
981
  TemplateStatusFilters.member = Shapes::ShapeRef.new(shape: TemplateStatus)
828
982
 
829
983
  TemplateSummary.add_member(:name, Shapes::ShapeRef.new(shape: TemplateName, required: true, location_name: "name"))
@@ -849,6 +1003,15 @@ module Aws::ConnectCases
849
1003
 
850
1004
  UpdateCaseResponse.struct_class = Types::UpdateCaseResponse
851
1005
 
1006
+ UpdateCaseRuleRequest.add_member(:case_rule_id, Shapes::ShapeRef.new(shape: CaseRuleId, required: true, location: "uri", location_name: "caseRuleId"))
1007
+ UpdateCaseRuleRequest.add_member(:description, Shapes::ShapeRef.new(shape: CaseRuleDescription, location_name: "description"))
1008
+ UpdateCaseRuleRequest.add_member(:domain_id, Shapes::ShapeRef.new(shape: DomainId, required: true, location: "uri", location_name: "domainId"))
1009
+ UpdateCaseRuleRequest.add_member(:name, Shapes::ShapeRef.new(shape: CaseRuleName, location_name: "name"))
1010
+ UpdateCaseRuleRequest.add_member(:rule, Shapes::ShapeRef.new(shape: CaseRuleDetails, location_name: "rule"))
1011
+ UpdateCaseRuleRequest.struct_class = Types::UpdateCaseRuleRequest
1012
+
1013
+ UpdateCaseRuleResponse.struct_class = Types::UpdateCaseRuleResponse
1014
+
852
1015
  UpdateFieldRequest.add_member(:description, Shapes::ShapeRef.new(shape: FieldDescription, location_name: "description"))
853
1016
  UpdateFieldRequest.add_member(:domain_id, Shapes::ShapeRef.new(shape: DomainId, required: true, location: "uri", location_name: "domainId"))
854
1017
  UpdateFieldRequest.add_member(:field_id, Shapes::ShapeRef.new(shape: FieldId, required: true, location: "uri", location_name: "fieldId"))
@@ -870,6 +1033,7 @@ module Aws::ConnectCases
870
1033
  UpdateTemplateRequest.add_member(:layout_configuration, Shapes::ShapeRef.new(shape: LayoutConfiguration, location_name: "layoutConfiguration"))
871
1034
  UpdateTemplateRequest.add_member(:name, Shapes::ShapeRef.new(shape: TemplateName, location_name: "name"))
872
1035
  UpdateTemplateRequest.add_member(:required_fields, Shapes::ShapeRef.new(shape: RequiredFieldList, location_name: "requiredFields"))
1036
+ UpdateTemplateRequest.add_member(:rules, Shapes::ShapeRef.new(shape: TemplateCaseRuleList, location_name: "rules"))
873
1037
  UpdateTemplateRequest.add_member(:status, Shapes::ShapeRef.new(shape: TemplateStatus, location_name: "status"))
874
1038
  UpdateTemplateRequest.add_member(:template_id, Shapes::ShapeRef.new(shape: TemplateId, required: true, location: "uri", location_name: "templateId"))
875
1039
  UpdateTemplateRequest.struct_class = Types::UpdateTemplateRequest
@@ -906,6 +1070,19 @@ module Aws::ConnectCases
906
1070
  "uid" => "connectcases-2022-10-03",
907
1071
  }
908
1072
 
1073
+ api.add_operation(:batch_get_case_rule, Seahorse::Model::Operation.new.tap do |o|
1074
+ o.name = "BatchGetCaseRule"
1075
+ o.http_method = "POST"
1076
+ o.http_request_uri = "/domains/{domainId}/rules-batch"
1077
+ o.input = Shapes::ShapeRef.new(shape: BatchGetCaseRuleRequest)
1078
+ o.output = Shapes::ShapeRef.new(shape: BatchGetCaseRuleResponse)
1079
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1080
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1081
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1082
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1083
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1084
+ end)
1085
+
909
1086
  api.add_operation(:batch_get_field, Seahorse::Model::Operation.new.tap do |o|
910
1087
  o.name = "BatchGetField"
911
1088
  o.http_method = "POST"
@@ -947,6 +1124,21 @@ module Aws::ConnectCases
947
1124
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
948
1125
  end)
949
1126
 
1127
+ api.add_operation(:create_case_rule, Seahorse::Model::Operation.new.tap do |o|
1128
+ o.name = "CreateCaseRule"
1129
+ o.http_method = "POST"
1130
+ o.http_request_uri = "/domains/{domainId}/case-rules"
1131
+ o.input = Shapes::ShapeRef.new(shape: CreateCaseRuleRequest)
1132
+ o.output = Shapes::ShapeRef.new(shape: CreateCaseRuleResponse)
1133
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1134
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1135
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1136
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1137
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1138
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1139
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
1140
+ end)
1141
+
950
1142
  api.add_operation(:create_domain, Seahorse::Model::Operation.new.tap do |o|
951
1143
  o.name = "CreateDomain"
952
1144
  o.http_method = "POST"
@@ -1020,6 +1212,19 @@ module Aws::ConnectCases
1020
1212
  o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
1021
1213
  end)
1022
1214
 
1215
+ api.add_operation(:delete_case_rule, Seahorse::Model::Operation.new.tap do |o|
1216
+ o.name = "DeleteCaseRule"
1217
+ o.http_method = "DELETE"
1218
+ o.http_request_uri = "/domains/{domainId}/case-rules/{caseRuleId}"
1219
+ o.input = Shapes::ShapeRef.new(shape: DeleteCaseRuleRequest)
1220
+ o.output = Shapes::ShapeRef.new(shape: DeleteCaseRuleResponse)
1221
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1222
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1223
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1224
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1225
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1226
+ end)
1227
+
1023
1228
  api.add_operation(:delete_domain, Seahorse::Model::Operation.new.tap do |o|
1024
1229
  o.name = "DeleteDomain"
1025
1230
  o.http_method = "DELETE"
@@ -1166,6 +1371,25 @@ module Aws::ConnectCases
1166
1371
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1167
1372
  end)
1168
1373
 
1374
+ api.add_operation(:list_case_rules, Seahorse::Model::Operation.new.tap do |o|
1375
+ o.name = "ListCaseRules"
1376
+ o.http_method = "POST"
1377
+ o.http_request_uri = "/domains/{domainId}/rules-list/"
1378
+ o.input = Shapes::ShapeRef.new(shape: ListCaseRulesRequest)
1379
+ o.output = Shapes::ShapeRef.new(shape: ListCaseRulesResponse)
1380
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1381
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1382
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1383
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1384
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1385
+ o[:pager] = Aws::Pager.new(
1386
+ limit_key: "max_results",
1387
+ tokens: {
1388
+ "next_token" => "next_token"
1389
+ }
1390
+ )
1391
+ end)
1392
+
1169
1393
  api.add_operation(:list_cases_for_contact, Seahorse::Model::Operation.new.tap do |o|
1170
1394
  o.name = "ListCasesForContact"
1171
1395
  o.http_method = "POST"
@@ -1382,6 +1606,20 @@ module Aws::ConnectCases
1382
1606
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1383
1607
  end)
1384
1608
 
1609
+ api.add_operation(:update_case_rule, Seahorse::Model::Operation.new.tap do |o|
1610
+ o.name = "UpdateCaseRule"
1611
+ o.http_method = "PUT"
1612
+ o.http_request_uri = "/domains/{domainId}/case-rules/{caseRuleId}"
1613
+ o.input = Shapes::ShapeRef.new(shape: UpdateCaseRuleRequest)
1614
+ o.output = Shapes::ShapeRef.new(shape: UpdateCaseRuleResponse)
1615
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1616
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1617
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1618
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1619
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1620
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1621
+ end)
1622
+
1385
1623
  api.add_operation(:update_field, Seahorse::Model::Operation.new.tap do |o|
1386
1624
  o.name = "UpdateField"
1387
1625
  o.http_method = "PUT"
@@ -10,40 +10,36 @@
10
10
  module Aws::ConnectCases
11
11
  class EndpointProvider
12
12
  def resolve_endpoint(parameters)
13
- region = parameters.region
14
- use_dual_stack = parameters.use_dual_stack
15
- use_fips = parameters.use_fips
16
- endpoint = parameters.endpoint
17
- if Aws::Endpoints::Matchers.set?(endpoint)
18
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
13
+ if Aws::Endpoints::Matchers.set?(parameters.endpoint)
14
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
19
15
  raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
20
16
  end
21
- if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
17
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
22
18
  raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
23
19
  end
24
- return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
20
+ return Aws::Endpoints::Endpoint.new(url: parameters.endpoint, headers: {}, properties: {})
25
21
  end
26
- if Aws::Endpoints::Matchers.set?(region)
27
- if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
28
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
22
+ if Aws::Endpoints::Matchers.set?(parameters.region)
23
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region))
24
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
29
25
  if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
30
- return Aws::Endpoints::Endpoint.new(url: "https://cases-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
26
+ return Aws::Endpoints::Endpoint.new(url: "https://cases-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
31
27
  end
32
28
  raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
29
  end
34
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
30
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
35
31
  if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
36
- return Aws::Endpoints::Endpoint.new(url: "https://cases-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
32
+ return Aws::Endpoints::Endpoint.new(url: "https://cases-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
37
33
  end
38
34
  raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
39
35
  end
40
- if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
36
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
41
37
  if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
42
- return Aws::Endpoints::Endpoint.new(url: "https://cases.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
38
+ return Aws::Endpoints::Endpoint.new(url: "https://cases.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
43
39
  end
44
40
  raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
45
41
  end
46
- return Aws::Endpoints::Endpoint.new(url: "https://cases.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
42
+ return Aws::Endpoints::Endpoint.new(url: "https://cases.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
47
43
  end
48
44
  end
49
45
  raise ArgumentError, "Invalid Configuration: Missing Region"