Skip to content

Commit c68f70b

Browse files
Introduces CustomEntity as part of the UserUnion data type. This field is used to indicate the entity who is performing the API action.
1 parent fc50cd2 commit c68f70b

File tree

9 files changed

+73
-10
lines changed

9 files changed

+73
-10
lines changed

generator/ServiceModels/connectcases/connectcases-2022-10-03.api.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1407,6 +1407,13 @@
14071407
"type":"timestamp",
14081408
"timestampFormat":"iso8601"
14091409
},
1410+
"CustomEntity":{
1411+
"type":"string",
1412+
"max":500,
1413+
"min":1,
1414+
"pattern":"^[a-zA-Z0-9_\\-\\.@:/ ]*[a-zA-Z0-9_\\-\\.@:/]$",
1415+
"sensitive":true
1416+
},
14101417
"DeleteCaseRuleRequest":{
14111418
"type":"structure",
14121419
"required":[
@@ -2581,7 +2588,7 @@
25812588
"SearchCasesRequestMaxResultsInteger":{
25822589
"type":"integer",
25832590
"box":true,
2584-
"max":25,
2591+
"max":100,
25852592
"min":1
25862593
},
25872594
"SearchCasesRequestSearchTermString":{
@@ -2606,7 +2613,7 @@
26062613
"SearchCasesResponseCasesList":{
26072614
"type":"list",
26082615
"member":{"shape":"SearchCasesResponseItem"},
2609-
"max":25,
2616+
"max":100,
26102617
"min":0
26112618
},
26122619
"SearchCasesResponseItem":{
@@ -3105,6 +3112,7 @@
31053112
"UserUnion":{
31063113
"type":"structure",
31073114
"members":{
3115+
"customEntity":{"shape":"CustomEntity"},
31083116
"userArn":{"shape":"UserArn"}
31093117
},
31103118
"union":true

generator/ServiceModels/connectcases/connectcases-2022-10-03.docs.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,12 @@
530530
"GetTemplateResponse$createdTime": "<p>Timestamp at which the resource was created.</p>"
531531
}
532532
},
533+
"CustomEntity": {
534+
"base": null,
535+
"refs": {
536+
"UserUnion$customEntity": "<p>Any provided entity.</p>"
537+
}
538+
},
533539
"DeleteCaseRuleRequest": {
534540
"base": null,
535541
"refs": {
@@ -1733,7 +1739,7 @@
17331739
}
17341740
},
17351741
"UserUnion": {
1736-
"base": "<p>Represents the identity of the person who performed the action.</p>",
1742+
"base": "<p>Represents the entity that performed the action.</p>",
17371743
"refs": {
17381744
"AuditEventPerformedBy$user": null,
17391745
"CreateCaseRequest$performedBy": null,

generator/ServiceModels/connectcases/connectcases-2022-10-03.normal.json

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1743,6 +1743,13 @@
17431743
"type":"timestamp",
17441744
"timestampFormat":"iso8601"
17451745
},
1746+
"CustomEntity":{
1747+
"type":"string",
1748+
"max":500,
1749+
"min":1,
1750+
"pattern":"^[a-zA-Z0-9_\\-\\.@:/ ]*[a-zA-Z0-9_\\-\\.@:/]$",
1751+
"sensitive":true
1752+
},
17461753
"DeleteCaseRuleRequest":{
17471754
"type":"structure",
17481755
"required":[
@@ -3441,7 +3448,7 @@
34413448
"SearchCasesRequestMaxResultsInteger":{
34423449
"type":"integer",
34433450
"box":true,
3444-
"max":25,
3451+
"max":100,
34453452
"min":1
34463453
},
34473454
"SearchCasesRequestSearchTermString":{
@@ -3472,7 +3479,7 @@
34723479
"SearchCasesResponseCasesList":{
34733480
"type":"list",
34743481
"member":{"shape":"SearchCasesResponseItem"},
3475-
"max":25,
3482+
"max":100,
34763483
"min":0
34773484
},
34783485
"SearchCasesResponseItem":{
@@ -4165,12 +4172,16 @@
41654172
"UserUnion":{
41664173
"type":"structure",
41674174
"members":{
4175+
"customEntity":{
4176+
"shape":"CustomEntity",
4177+
"documentation":"<p>Any provided entity.</p>"
4178+
},
41684179
"userArn":{
41694180
"shape":"UserArn",
41704181
"documentation":"<p>Represents the Amazon Connect ARN of the user.</p>"
41714182
}
41724183
},
4173-
"documentation":"<p>Represents the identity of the person who performed the action.</p>",
4184+
"documentation":"<p>Represents the entity that performed the action.</p>",
41744185
"union":true
41754186
},
41764187
"ValidationException":{

sdk/code-analysis/ServiceAnalysis/ConnectCases/Generated/PropertyValueRules.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@
521521
<property-value-rule>
522522
<property>Amazon.ConnectCases.Model.SearchCasesRequest.MaxResults</property>
523523
<min>1</min>
524-
<max>25</max>
524+
<max>100</max>
525525
</property-value-rule>
526526
<property-value-rule>
527527
<property>Amazon.ConnectCases.Model.SearchCasesRequest.NextToken</property>
@@ -995,6 +995,12 @@
995995
<min>1</min>
996996
<max>500</max>
997997
</property-value-rule>
998+
<property-value-rule>
999+
<property>Amazon.ConnectCases.Model.UserUnion.CustomEntity</property>
1000+
<min>1</min>
1001+
<max>500</max>
1002+
<pattern>^[a-zA-Z0-9_\-\.@:/ ]*[a-zA-Z0-9_\-\.@:/]$</pattern>
1003+
</property-value-rule>
9981004
<property-value-rule>
9991005
<property>Amazon.ConnectCases.Model.UserUnion.UserArn</property>
10001006
<min>1</min>

sdk/src/Services/ConnectCases/Generated/Model/Internal/MarshallTransformations/UserUnionMarshaller.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ public void Marshall(UserUnion requestObject, JsonMarshallerContext context)
4646
{
4747
if(requestObject == null)
4848
return;
49+
if(requestObject.IsSetCustomEntity())
50+
{
51+
context.Writer.WritePropertyName("customEntity");
52+
context.Writer.WriteStringValue(requestObject.CustomEntity);
53+
}
54+
4955
if(requestObject.IsSetUserArn())
5056
{
5157
context.Writer.WritePropertyName("userArn");

sdk/src/Services/ConnectCases/Generated/Model/Internal/MarshallTransformations/UserUnionUnmarshaller.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ public UserUnion Unmarshall(JsonUnmarshallerContext context, ref StreamingUtf8Js
5656
int targetDepth = context.CurrentDepth;
5757
while (context.ReadAtDepth(targetDepth, ref reader))
5858
{
59+
if (context.TestExpression("customEntity", targetDepth))
60+
{
61+
var unmarshaller = StringUnmarshaller.Instance;
62+
unmarshalledObject.CustomEntity = unmarshaller.Unmarshall(context, ref reader);
63+
continue;
64+
}
5965
if (context.TestExpression("userArn", targetDepth))
6066
{
6167
var unmarshaller = StringUnmarshaller.Instance;

sdk/src/Services/ConnectCases/Generated/Model/SearchCasesRequest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ internal bool IsSetFilter()
115115
/// This is also the default value when no other value is provided.
116116
/// </para>
117117
/// </summary>
118-
[AWSProperty(Min=1, Max=25)]
118+
[AWSProperty(Min=1, Max=100)]
119119
public int? MaxResults
120120
{
121121
get { return this._maxResults; }

sdk/src/Services/ConnectCases/Generated/Model/SearchCasesResponse.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public partial class SearchCasesResponse : AmazonWebServiceResponse
4444
/// <c>Fields</c> where each field is a complex union structure.
4545
/// </para>
4646
/// </summary>
47-
[AWSProperty(Required=true, Min=0, Max=25)]
47+
[AWSProperty(Required=true, Min=0, Max=100)]
4848
public List<SearchCasesResponseItem> Cases
4949
{
5050
get { return this._cases; }

sdk/src/Services/ConnectCases/Generated/Model/UserUnion.cs

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,32 @@
3030
namespace Amazon.ConnectCases.Model
3131
{
3232
/// <summary>
33-
/// Represents the identity of the person who performed the action.
33+
/// Represents the entity that performed the action.
3434
/// </summary>
3535
public partial class UserUnion
3636
{
37+
private string _customEntity;
3738
private string _userArn;
3839

40+
/// <summary>
41+
/// Gets and sets the property CustomEntity.
42+
/// <para>
43+
/// Any provided entity.
44+
/// </para>
45+
/// </summary>
46+
[AWSProperty(Sensitive=true, Min=1, Max=500)]
47+
public string CustomEntity
48+
{
49+
get { return this._customEntity; }
50+
set { this._customEntity = value; }
51+
}
52+
53+
// Check to see if CustomEntity property is set
54+
internal bool IsSetCustomEntity()
55+
{
56+
return this._customEntity != null;
57+
}
58+
3959
/// <summary>
4060
/// Gets and sets the property UserArn.
4161
/// <para>

0 commit comments

Comments
 (0)