Skip to content

Commit 6837853

Browse files
ClusterName/ClusterIdentifier, ComputeNodeGroupName/ComputeNodeGroupIdentifier, and QueueName/QueueIdentifier can now have 10 characters, and a minimum of 3 characters. The TagResource API action can now return ServiceQuotaExceededException.
1 parent 55d3991 commit 6837853

File tree

18 files changed

+368
-58
lines changed

18 files changed

+368
-58
lines changed

generator/ServiceModels/pcs/pcs-2023-02-10.api.json

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@
260260
},
261261
"input":{"shape":"TagResourceRequest"},
262262
"errors":[
263+
{"shape":"ServiceQuotaExceededException"},
263264
{"shape":"ResourceNotFoundException"}
264265
],
265266
"idempotent":true
@@ -370,7 +371,7 @@
370371
},
371372
"ClusterIdentifier":{
372373
"type":"string",
373-
"pattern":"(pcs_[a-zA-Z0-9]+|[A-Za-z][A-Za-z0-9-]{1,40})"
374+
"pattern":"(pcs_[a-zA-Z0-9]+|[A-Za-z][A-Za-z0-9-]{3,40})"
374375
},
375376
"ClusterList":{
376377
"type":"list",
@@ -379,8 +380,8 @@
379380
"ClusterName":{
380381
"type":"string",
381382
"max":40,
382-
"min":1,
383-
"pattern":"(?!pcs_)^(?![A-Za-z0-9]{10}$)[A-Za-z][A-Za-z0-9-]+"
383+
"min":3,
384+
"pattern":"(?!pcs_)^[A-Za-z][A-Za-z0-9-]+"
384385
},
385386
"ClusterSlurmConfiguration":{
386387
"type":"structure",
@@ -486,7 +487,7 @@
486487
},
487488
"ComputeNodeGroupIdentifier":{
488489
"type":"string",
489-
"pattern":"(pcs_[a-zA-Z0-9]+|[A-Za-z][A-Za-z0-9-]{1,25})"
490+
"pattern":"(pcs_[a-zA-Z0-9]+|[A-Za-z][A-Za-z0-9-]{3,25})"
490491
},
491492
"ComputeNodeGroupList":{
492493
"type":"list",
@@ -495,8 +496,8 @@
495496
"ComputeNodeGroupName":{
496497
"type":"string",
497498
"max":25,
498-
"min":1,
499-
"pattern":"(?!pcs_)^(?![A-Za-z0-9]{10}$)[A-Za-z][A-Za-z0-9-]+"
499+
"min":3,
500+
"pattern":"(?!pcs_)^[A-Za-z][A-Za-z0-9-]+"
500501
},
501502
"ComputeNodeGroupSlurmConfiguration":{
502503
"type":"structure",
@@ -937,7 +938,7 @@
937938
},
938939
"QueueIdentifier":{
939940
"type":"string",
940-
"pattern":"(pcs_[a-zA-Z0-9]+|[A-Za-z][A-Za-z0-9-]{1,25})"
941+
"pattern":"(pcs_[a-zA-Z0-9]+|[A-Za-z][A-Za-z0-9-]{3,25})"
941942
},
942943
"QueueList":{
943944
"type":"list",
@@ -946,8 +947,8 @@
946947
"QueueName":{
947948
"type":"string",
948949
"max":25,
949-
"min":1,
950-
"pattern":"(?!pcs_)^(?![A-Za-z0-9]{10}$)[A-Za-z][A-Za-z0-9-]+"
950+
"min":3,
951+
"pattern":"(?!pcs_)^[A-Za-z][A-Za-z0-9-]+"
951952
},
952953
"QueueStatus":{
953954
"type":"string",

generator/ServiceModels/pcs/pcs-2023-02-10.normal.json

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@
274274
},
275275
"input":{"shape":"TagResourceRequest"},
276276
"errors":[
277+
{"shape":"ServiceQuotaExceededException"},
277278
{"shape":"ResourceNotFoundException"}
278279
],
279280
"documentation":"<p>Adds or edits tags on an Amazon Web Services PCS resource. Each tag consists of a tag key and a tag value. The tag key and tag value are case-sensitive strings. The tag value can be an empty (null) string. To add a tag, specify a new tag key and a tag value. To edit a tag, specify an existing tag key and a new tag value.</p>",
@@ -420,7 +421,7 @@
420421
},
421422
"ClusterIdentifier":{
422423
"type":"string",
423-
"pattern":"(pcs_[a-zA-Z0-9]+|[A-Za-z][A-Za-z0-9-]{1,40})"
424+
"pattern":"(pcs_[a-zA-Z0-9]+|[A-Za-z][A-Za-z0-9-]{3,40})"
424425
},
425426
"ClusterList":{
426427
"type":"list",
@@ -429,8 +430,8 @@
429430
"ClusterName":{
430431
"type":"string",
431432
"max":40,
432-
"min":1,
433-
"pattern":"(?!pcs_)^(?![A-Za-z0-9]{10}$)[A-Za-z][A-Za-z0-9-]+"
433+
"min":3,
434+
"pattern":"(?!pcs_)^[A-Za-z][A-Za-z0-9-]+"
434435
},
435436
"ClusterSlurmConfiguration":{
436437
"type":"structure",
@@ -616,7 +617,7 @@
616617
},
617618
"ComputeNodeGroupIdentifier":{
618619
"type":"string",
619-
"pattern":"(pcs_[a-zA-Z0-9]+|[A-Za-z][A-Za-z0-9-]{1,25})"
620+
"pattern":"(pcs_[a-zA-Z0-9]+|[A-Za-z][A-Za-z0-9-]{3,25})"
620621
},
621622
"ComputeNodeGroupList":{
622623
"type":"list",
@@ -625,8 +626,8 @@
625626
"ComputeNodeGroupName":{
626627
"type":"string",
627628
"max":25,
628-
"min":1,
629-
"pattern":"(?!pcs_)^(?![A-Za-z0-9]{10}$)[A-Za-z][A-Za-z0-9-]+"
629+
"min":3,
630+
"pattern":"(?!pcs_)^[A-Za-z][A-Za-z0-9-]+"
630631
},
631632
"ComputeNodeGroupSlurmConfiguration":{
632633
"type":"structure",
@@ -1328,7 +1329,7 @@
13281329
},
13291330
"QueueIdentifier":{
13301331
"type":"string",
1331-
"pattern":"(pcs_[a-zA-Z0-9]+|[A-Za-z][A-Za-z0-9-]{1,25})"
1332+
"pattern":"(pcs_[a-zA-Z0-9]+|[A-Za-z][A-Za-z0-9-]{3,25})"
13321333
},
13331334
"QueueList":{
13341335
"type":"list",
@@ -1337,8 +1338,8 @@
13371338
"QueueName":{
13381339
"type":"string",
13391340
"max":25,
1340-
"min":1,
1341-
"pattern":"(?!pcs_)^(?![A-Za-z0-9]{10}$)[A-Za-z][A-Za-z0-9-]+"
1341+
"min":3,
1342+
"pattern":"(?!pcs_)^[A-Za-z][A-Za-z0-9-]+"
13421343
},
13431344
"QueueStatus":{
13441345
"type":"string",
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
{
2+
"version" : 2,
3+
"testCases" : [ {
4+
"id" : "ListClustersSuccess",
5+
"operationName" : "ListClusters",
6+
"input" : { },
7+
"expectation" : {
8+
"success" : { }
9+
},
10+
"config" : {
11+
"region" : "us-west-2",
12+
"useFips" : false,
13+
"useDualstack" : false,
14+
"useAccountIdRouting" : true
15+
}
16+
}, {
17+
"id" : "GetComputeNodeGroup_AccessDeniedException",
18+
"operationName" : "GetComputeNodeGroup",
19+
"input" : {
20+
"clusterIdentifier" : "pcs_donotexist",
21+
"computeNodeGroupIdentifier" : "pcs_donotexist"
22+
},
23+
"expectation" : {
24+
"failure" : {
25+
"errorId" : "AccessDeniedException"
26+
}
27+
},
28+
"config" : {
29+
"region" : "us-west-2",
30+
"useFips" : false,
31+
"useDualstack" : false,
32+
"useAccountIdRouting" : true
33+
}
34+
}, {
35+
"id" : "ListComputeNodeGroups_AccessDeniedException",
36+
"operationName" : "ListComputeNodeGroups",
37+
"input" : {
38+
"clusterIdentifier" : "pcs_donotexist"
39+
},
40+
"expectation" : {
41+
"failure" : {
42+
"errorId" : "AccessDeniedException"
43+
}
44+
},
45+
"config" : {
46+
"region" : "us-west-2",
47+
"useFips" : false,
48+
"useDualstack" : false,
49+
"useAccountIdRouting" : true
50+
}
51+
}, {
52+
"id" : "ListQueueFailure_AccessDeniedException",
53+
"operationName" : "ListQueues",
54+
"input" : {
55+
"clusterIdentifier" : "pcs_donotexist"
56+
},
57+
"expectation" : {
58+
"failure" : {
59+
"errorId" : "AccessDeniedException"
60+
}
61+
},
62+
"config" : {
63+
"region" : "us-west-2",
64+
"useFips" : false,
65+
"useDualstack" : false,
66+
"useAccountIdRouting" : true
67+
}
68+
}, {
69+
"id" : "GetQueueFailure_AccessDeniedException",
70+
"operationName" : "GetQueue",
71+
"input" : {
72+
"clusterIdentifier" : "pcs_donotexist",
73+
"queueIdentifier" : "pcs_donotexist"
74+
},
75+
"expectation" : {
76+
"failure" : {
77+
"errorId" : "AccessDeniedException"
78+
}
79+
},
80+
"config" : {
81+
"region" : "us-west-2",
82+
"useFips" : false,
83+
"useDualstack" : false,
84+
"useAccountIdRouting" : true
85+
}
86+
}, {
87+
"id" : "GetCluster_AccessDeniedException",
88+
"operationName" : "GetCluster",
89+
"input" : {
90+
"clusterIdentifier" : "pcs_donotexist"
91+
},
92+
"expectation" : {
93+
"failure" : {
94+
"errorId" : "AccessDeniedException"
95+
}
96+
},
97+
"config" : {
98+
"region" : "us-west-2",
99+
"useFips" : false,
100+
"useDualstack" : false,
101+
"useAccountIdRouting" : true
102+
}
103+
} ]
104+
}

0 commit comments

Comments
 (0)