|
68 | 68 | {"shape":"AccessDeniedException"},
|
69 | 69 | {"shape":"ConflictException"}
|
70 | 70 | ],
|
71 |
| - "documentation":"<p>Creates a case in the specified Cases domain. Case system and custom fields are taken as an array id/value pairs with a declared data types.</p> <p>The following fields are required when creating a case:</p> <pre><code> <ul> <li> <p> <code>customer_id</code> - You must provide the full customer profile ARN in this format: <code>arn:aws:profile:your_AWS_Region:your_AWS_account ID:domains/your_profiles_domain_name/profiles/profile_ID</code> </p> </li> <li> <p> <code>title</code> </p> </li> </ul> </code></pre>", |
| 71 | + "documentation":"<note> <p>If you provide a value for <code>PerformedBy.UserArn</code> you must also have <a href=\"https://docs.aws.amazon.com/connect/latest/APIReference/API_DescribeUser.html\">connect:DescribeUser</a> permission on the User ARN resource that you provide</p> </note> <pre><code> <p>Creates a case in the specified Cases domain. Case system and custom fields are taken as an array id/value pairs with a declared data types.</p> <p>The following fields are required when creating a case:</p> <ul> <li> <p> <code>customer_id</code> - You must provide the full customer profile ARN in this format: <code>arn:aws:profile:your_AWS_Region:your_AWS_account ID:domains/your_profiles_domain_name/profiles/profile_ID</code> </p> </li> <li> <p> <code>title</code> </p> </li> </ul> </code></pre>", |
72 | 72 | "idempotent":true
|
73 | 73 | },
|
74 | 74 | "CreateDomain":{
|
|
211 | 211 | ],
|
212 | 212 | "documentation":"<p>Returns information about a specific case if it exists. </p>"
|
213 | 213 | },
|
| 214 | + "GetCaseAuditEvents":{ |
| 215 | + "name":"GetCaseAuditEvents", |
| 216 | + "http":{ |
| 217 | + "method":"POST", |
| 218 | + "requestUri":"/domains/{domainId}/cases/{caseId}/audit-history", |
| 219 | + "responseCode":200 |
| 220 | + }, |
| 221 | + "input":{"shape":"GetCaseAuditEventsRequest"}, |
| 222 | + "output":{"shape":"GetCaseAuditEventsResponse"}, |
| 223 | + "errors":[ |
| 224 | + {"shape":"InternalServerException"}, |
| 225 | + {"shape":"ResourceNotFoundException"}, |
| 226 | + {"shape":"ValidationException"}, |
| 227 | + {"shape":"ThrottlingException"}, |
| 228 | + {"shape":"AccessDeniedException"} |
| 229 | + ], |
| 230 | + "documentation":"<p>Returns the audit history about a specific case if it exists.</p>" |
| 231 | + }, |
214 | 232 | "GetCaseEventConfiguration":{
|
215 | 233 | "name":"GetCaseEventConfiguration",
|
216 | 234 | "http":{
|
|
515 | 533 | {"shape":"ThrottlingException"},
|
516 | 534 | {"shape":"AccessDeniedException"}
|
517 | 535 | ],
|
518 |
| - "documentation":"<p>Updates the values of fields on a case. Fields to be updated are received as an array of id/value pairs identical to the <code>CreateCase</code> input .</p> <p>If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.</p>" |
| 536 | + "documentation":"<note> <p>If you provide a value for <code>PerformedBy.UserArn</code> you must also have <a href=\"https://docs.aws.amazon.com/connect/latest/APIReference/API_DescribeUser.html\">connect:DescribeUser</a> permission on the User ARN resource that you provide</p> </note> <pre><code> <p>Updates the values of fields on a case. Fields to be updated are received as an array of id/value pairs identical to the <code>CreateCase</code> input .</p> <p>If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.</p> </code></pre>" |
519 | 537 | },
|
520 | 538 | "UpdateField":{
|
521 | 539 | "name":"UpdateField",
|
|
602 | 620 | "type":"timestamp",
|
603 | 621 | "timestampFormat":"iso8601"
|
604 | 622 | },
|
| 623 | + "AuditEvent":{ |
| 624 | + "type":"structure", |
| 625 | + "required":[ |
| 626 | + "eventId", |
| 627 | + "fields", |
| 628 | + "performedTime", |
| 629 | + "type" |
| 630 | + ], |
| 631 | + "members":{ |
| 632 | + "eventId":{ |
| 633 | + "shape":"AuditEventId", |
| 634 | + "documentation":"<p>Unique identifier of a case audit history event.</p>" |
| 635 | + }, |
| 636 | + "fields":{ |
| 637 | + "shape":"AuditEventFieldList", |
| 638 | + "documentation":"<p>A list of Case Audit History event fields.</p>" |
| 639 | + }, |
| 640 | + "performedBy":{ |
| 641 | + "shape":"AuditEventPerformedBy", |
| 642 | + "documentation":"<p>Information of the user which performed the audit.</p>" |
| 643 | + }, |
| 644 | + "performedTime":{ |
| 645 | + "shape":"AuditEventDateTime", |
| 646 | + "documentation":"<p>Time at which an Audit History event took place.</p>" |
| 647 | + }, |
| 648 | + "relatedItemType":{ |
| 649 | + "shape":"RelatedItemType", |
| 650 | + "documentation":"<p>The Type of the related item.</p>" |
| 651 | + }, |
| 652 | + "type":{ |
| 653 | + "shape":"AuditEventType", |
| 654 | + "documentation":"<p>The Type of an audit history event.</p>" |
| 655 | + } |
| 656 | + }, |
| 657 | + "documentation":"<p>Represents the content of a particular audit event.</p>" |
| 658 | + }, |
| 659 | + "AuditEventDateTime":{ |
| 660 | + "type":"timestamp", |
| 661 | + "timestampFormat":"iso8601" |
| 662 | + }, |
| 663 | + "AuditEventField":{ |
| 664 | + "type":"structure", |
| 665 | + "required":[ |
| 666 | + "eventFieldId", |
| 667 | + "newValue" |
| 668 | + ], |
| 669 | + "members":{ |
| 670 | + "eventFieldId":{ |
| 671 | + "shape":"AuditEventFieldId", |
| 672 | + "documentation":"<p>Unique identifier of field in an Audit History entry.</p>" |
| 673 | + }, |
| 674 | + "newValue":{ |
| 675 | + "shape":"AuditEventFieldValueUnion", |
| 676 | + "documentation":"<p>Union of potential field value types.</p>" |
| 677 | + }, |
| 678 | + "oldValue":{ |
| 679 | + "shape":"AuditEventFieldValueUnion", |
| 680 | + "documentation":"<p>Union of potential field value types.</p>" |
| 681 | + } |
| 682 | + }, |
| 683 | + "documentation":"<p>Fields for audit event.</p>" |
| 684 | + }, |
| 685 | + "AuditEventFieldId":{ |
| 686 | + "type":"string", |
| 687 | + "max":500, |
| 688 | + "min":1 |
| 689 | + }, |
| 690 | + "AuditEventFieldList":{ |
| 691 | + "type":"list", |
| 692 | + "member":{"shape":"AuditEventField"} |
| 693 | + }, |
| 694 | + "AuditEventFieldValueUnion":{ |
| 695 | + "type":"structure", |
| 696 | + "members":{ |
| 697 | + "booleanValue":{ |
| 698 | + "shape":"Boolean", |
| 699 | + "documentation":"<p>Can be either null, or have a Boolean value type. Only one value can be provided.</p>" |
| 700 | + }, |
| 701 | + "doubleValue":{ |
| 702 | + "shape":"Double", |
| 703 | + "documentation":"<p>Can be either null, or have a Double value type. Only one value can be provided.</p>" |
| 704 | + }, |
| 705 | + "emptyValue":{"shape":"EmptyFieldValue"}, |
| 706 | + "stringValue":{ |
| 707 | + "shape":"AuditEventFieldValueUnionStringValueString", |
| 708 | + "documentation":"<p>Can be either null, or have a String value type. Only one value can be provided.</p>" |
| 709 | + }, |
| 710 | + "userArnValue":{ |
| 711 | + "shape":"String", |
| 712 | + "documentation":"<p>Can be either null, or have a String value type formatted as an ARN. Only one value can be provided.</p>" |
| 713 | + } |
| 714 | + }, |
| 715 | + "documentation":"<p>Object to store union of Field values.</p> <important> <p>This data type is a UNION, so only one of the following members can be specified when used or returned.</p> </important>", |
| 716 | + "union":true |
| 717 | + }, |
| 718 | + "AuditEventFieldValueUnionStringValueString":{ |
| 719 | + "type":"string", |
| 720 | + "max":500, |
| 721 | + "min":0 |
| 722 | + }, |
| 723 | + "AuditEventId":{ |
| 724 | + "type":"string", |
| 725 | + "max":500, |
| 726 | + "min":1 |
| 727 | + }, |
| 728 | + "AuditEventPerformedBy":{ |
| 729 | + "type":"structure", |
| 730 | + "required":["iamPrincipalArn"], |
| 731 | + "members":{ |
| 732 | + "iamPrincipalArn":{ |
| 733 | + "shape":"IamPrincipalArn", |
| 734 | + "documentation":"<p>Unique identifier of an IAM role.</p>" |
| 735 | + }, |
| 736 | + "user":{"shape":"UserUnion"} |
| 737 | + }, |
| 738 | + "documentation":"<p>Information of the user which performed the audit.</p>" |
| 739 | + }, |
| 740 | + "AuditEventType":{ |
| 741 | + "type":"string", |
| 742 | + "enum":[ |
| 743 | + "Case.Created", |
| 744 | + "Case.Updated", |
| 745 | + "RelatedItem.Created" |
| 746 | + ] |
| 747 | + }, |
605 | 748 | "BasicLayout":{
|
606 | 749 | "type":"structure",
|
607 | 750 | "members":{
|
|
935 | 1078 | "shape":"CreateCaseRequestFieldsList",
|
936 | 1079 | "documentation":"<p>An array of objects with field ID (matching ListFields/DescribeField) and value union data.</p>"
|
937 | 1080 | },
|
| 1081 | + "performedBy":{"shape":"UserUnion"}, |
938 | 1082 | "templateId":{
|
939 | 1083 | "shape":"TemplateId",
|
940 | 1084 | "documentation":"<p>A unique identifier of a template.</p>"
|
|
1534 | 1678 | "Boolean",
|
1535 | 1679 | "DateTime",
|
1536 | 1680 | "SingleSelect",
|
1537 |
| - "Url" |
| 1681 | + "Url", |
| 1682 | + "User" |
1538 | 1683 | ]
|
1539 | 1684 | },
|
1540 | 1685 | "FieldValue":{
|
|
1573 | 1718 | "stringValue":{
|
1574 | 1719 | "shape":"FieldValueUnionStringValueString",
|
1575 | 1720 | "documentation":"<p>String value type.</p>"
|
| 1721 | + }, |
| 1722 | + "userArnValue":{ |
| 1723 | + "shape":"String", |
| 1724 | + "documentation":"<p>Represents the user that performed the audit.</p>" |
1576 | 1725 | }
|
1577 | 1726 | },
|
1578 |
| - "documentation":"<p>Object to store union of Field values.</p>", |
| 1727 | + "documentation":"<p>Object to store union of Field values.</p> <note> <p>The <code>Summary</code> system field accepts 1500 characters while all other fields accept 500 characters.</p> </note>", |
1579 | 1728 | "union":true
|
1580 | 1729 | },
|
1581 | 1730 | "FieldValueUnionStringValueString":{
|
1582 | 1731 | "type":"string",
|
1583 | 1732 | "max":1500,
|
1584 | 1733 | "min":0
|
1585 | 1734 | },
|
| 1735 | + "GetCaseAuditEventsRequest":{ |
| 1736 | + "type":"structure", |
| 1737 | + "required":[ |
| 1738 | + "caseId", |
| 1739 | + "domainId" |
| 1740 | + ], |
| 1741 | + "members":{ |
| 1742 | + "caseId":{ |
| 1743 | + "shape":"CaseId", |
| 1744 | + "documentation":"<p>A unique identifier of the case.</p>", |
| 1745 | + "location":"uri", |
| 1746 | + "locationName":"caseId" |
| 1747 | + }, |
| 1748 | + "domainId":{ |
| 1749 | + "shape":"DomainId", |
| 1750 | + "documentation":"<p>The unique identifier of the Cases domain.</p>", |
| 1751 | + "location":"uri", |
| 1752 | + "locationName":"domainId" |
| 1753 | + }, |
| 1754 | + "maxResults":{ |
| 1755 | + "shape":"GetCaseAuditEventsRequestMaxResultsInteger", |
| 1756 | + "documentation":"<p>The maximum number of audit events to return. The current maximum supported value is 25. This is also the default when no other value is provided.</p>" |
| 1757 | + }, |
| 1758 | + "nextToken":{ |
| 1759 | + "shape":"NextToken", |
| 1760 | + "documentation":"<p>The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.</p>" |
| 1761 | + } |
| 1762 | + } |
| 1763 | + }, |
| 1764 | + "GetCaseAuditEventsRequestMaxResultsInteger":{ |
| 1765 | + "type":"integer", |
| 1766 | + "box":true, |
| 1767 | + "max":25, |
| 1768 | + "min":1 |
| 1769 | + }, |
| 1770 | + "GetCaseAuditEventsResponse":{ |
| 1771 | + "type":"structure", |
| 1772 | + "required":["auditEvents"], |
| 1773 | + "members":{ |
| 1774 | + "auditEvents":{ |
| 1775 | + "shape":"GetCaseAuditEventsResponseAuditEventsList", |
| 1776 | + "documentation":"<p>A list of case audits where each represents a particular edit of the case.</p>" |
| 1777 | + }, |
| 1778 | + "nextToken":{ |
| 1779 | + "shape":"NextToken", |
| 1780 | + "documentation":"<p>The token for the next set of results. This is null if there are no more results to return.</p>" |
| 1781 | + } |
| 1782 | + } |
| 1783 | + }, |
| 1784 | + "GetCaseAuditEventsResponseAuditEventsList":{ |
| 1785 | + "type":"list", |
| 1786 | + "member":{"shape":"AuditEvent"}, |
| 1787 | + "max":25, |
| 1788 | + "min":0 |
| 1789 | + }, |
1586 | 1790 | "GetCaseEventConfigurationRequest":{
|
1587 | 1791 | "type":"structure",
|
1588 | 1792 | "required":["domainId"],
|
|
1877 | 2081 | }
|
1878 | 2082 | }
|
1879 | 2083 | },
|
| 2084 | + "IamPrincipalArn":{ |
| 2085 | + "type":"string", |
| 2086 | + "max":500, |
| 2087 | + "min":1 |
| 2088 | + }, |
1880 | 2089 | "Integer":{
|
1881 | 2090 | "type":"integer",
|
1882 | 2091 | "box":true
|
|
2842 | 3051 | "fields":{
|
2843 | 3052 | "shape":"UpdateCaseRequestFieldsList",
|
2844 | 3053 | "documentation":"<p>An array of objects with <code>fieldId</code> (matching ListFields/DescribeField) and value union data, structured identical to <code>CreateCase</code>.</p>"
|
2845 |
| - } |
| 3054 | + }, |
| 3055 | + "performedBy":{"shape":"UserUnion"} |
2846 | 3056 | }
|
2847 | 3057 | },
|
2848 | 3058 | "UpdateCaseRequestFieldsList":{
|
|
0 commit comments