|
858 | 858 | "com.amazonaws.pcs#ClusterIdentifier": { |
859 | 859 | "type": "string", |
860 | 860 | "traits": { |
861 | | - "smithy.api#pattern": "^(pcs_[a-zA-Z0-9]+|[A-Za-z][A-Za-z0-9-]{1,40})$" |
| 861 | + "smithy.api#pattern": "^(pcs_[a-zA-Z0-9]+|[A-Za-z][A-Za-z0-9-]{3,40})$" |
862 | 862 | } |
863 | 863 | }, |
864 | 864 | "com.amazonaws.pcs#ClusterList": { |
|
871 | 871 | "type": "string", |
872 | 872 | "traits": { |
873 | 873 | "smithy.api#length": { |
874 | | - "min": 1, |
| 874 | + "min": 3, |
875 | 875 | "max": 40 |
876 | 876 | }, |
877 | | - "smithy.api#pattern": "^(?!pcs_)^(?![A-Za-z0-9]{10}$)[A-Za-z][A-Za-z0-9-]+$" |
| 877 | + "smithy.api#pattern": "^(?!pcs_)^[A-Za-z][A-Za-z0-9-]+$" |
878 | 878 | } |
879 | 879 | }, |
880 | 880 | "com.amazonaws.pcs#ClusterResource": { |
|
1211 | 1211 | "com.amazonaws.pcs#ComputeNodeGroupIdentifier": { |
1212 | 1212 | "type": "string", |
1213 | 1213 | "traits": { |
1214 | | - "smithy.api#pattern": "^(pcs_[a-zA-Z0-9]+|[A-Za-z][A-Za-z0-9-]{1,25})$" |
| 1214 | + "smithy.api#pattern": "^(pcs_[a-zA-Z0-9]+|[A-Za-z][A-Za-z0-9-]{3,25})$" |
1215 | 1215 | } |
1216 | 1216 | }, |
1217 | 1217 | "com.amazonaws.pcs#ComputeNodeGroupList": { |
|
1224 | 1224 | "type": "string", |
1225 | 1225 | "traits": { |
1226 | 1226 | "smithy.api#length": { |
1227 | | - "min": 1, |
| 1227 | + "min": 3, |
1228 | 1228 | "max": 25 |
1229 | 1229 | }, |
1230 | | - "smithy.api#pattern": "^(?!pcs_)^(?![A-Za-z0-9]{10}$)[A-Za-z][A-Za-z0-9-]+$" |
| 1230 | + "smithy.api#pattern": "^(?!pcs_)^[A-Za-z][A-Za-z0-9-]+$" |
1231 | 1231 | } |
1232 | 1232 | }, |
1233 | 1233 | "com.amazonaws.pcs#ComputeNodeGroupResource": { |
|
2115 | 2115 | "traits": { |
2116 | 2116 | "smithy.api#documentation": "<p>Returns detailed information about a running cluster in your account. This API action\n provides networking information, endpoint information for communication with the scheduler,\n and provisioning status.</p>", |
2117 | 2117 | "smithy.api#readonly": {}, |
2118 | | - "smithy.api#tags": ["Cluster"] |
| 2118 | + "smithy.api#tags": ["Cluster"], |
| 2119 | + "smithy.test#smokeTests": [ |
| 2120 | + { |
| 2121 | + "id": "GetCluster_AccessDeniedException", |
| 2122 | + "params": { |
| 2123 | + "clusterIdentifier": "pcs_donotexist" |
| 2124 | + }, |
| 2125 | + "expect": { |
| 2126 | + "failure": { |
| 2127 | + "errorId": "com.amazonaws.pcs#AccessDeniedException" |
| 2128 | + } |
| 2129 | + }, |
| 2130 | + "vendorParamsShape": "aws.test#AwsVendorParams", |
| 2131 | + "vendorParams": { |
| 2132 | + "region": "us-west-2" |
| 2133 | + } |
| 2134 | + } |
| 2135 | + ] |
2119 | 2136 | } |
2120 | 2137 | }, |
2121 | 2138 | "com.amazonaws.pcs#GetClusterRequest": { |
|
2178 | 2195 | "traits": { |
2179 | 2196 | "smithy.api#documentation": "<p>Returns detailed information about a compute node group. This API action provides\n networking information, EC2 instance type, compute node group status, and scheduler (such\n as Slurm) configuration.</p>", |
2180 | 2197 | "smithy.api#readonly": {}, |
2181 | | - "smithy.api#tags": ["ComputeNodeGroup"] |
| 2198 | + "smithy.api#tags": ["ComputeNodeGroup"], |
| 2199 | + "smithy.test#smokeTests": [ |
| 2200 | + { |
| 2201 | + "id": "GetComputeNodeGroup_AccessDeniedException", |
| 2202 | + "params": { |
| 2203 | + "clusterIdentifier": "pcs_donotexist", |
| 2204 | + "computeNodeGroupIdentifier": "pcs_donotexist" |
| 2205 | + }, |
| 2206 | + "expect": { |
| 2207 | + "failure": { |
| 2208 | + "errorId": "com.amazonaws.pcs#AccessDeniedException" |
| 2209 | + } |
| 2210 | + }, |
| 2211 | + "vendorParamsShape": "aws.test#AwsVendorParams", |
| 2212 | + "vendorParams": { |
| 2213 | + "region": "us-west-2" |
| 2214 | + } |
| 2215 | + } |
| 2216 | + ] |
2182 | 2217 | } |
2183 | 2218 | }, |
2184 | 2219 | "com.amazonaws.pcs#GetComputeNodeGroupRequest": { |
|
2245 | 2280 | "traits": { |
2246 | 2281 | "smithy.api#documentation": "<p>Returns detailed information about a queue. The information includes the compute node\n groups that the queue uses to schedule jobs.</p>", |
2247 | 2282 | "smithy.api#readonly": {}, |
2248 | | - "smithy.api#tags": ["Queue"] |
| 2283 | + "smithy.api#tags": ["Queue"], |
| 2284 | + "smithy.test#smokeTests": [ |
| 2285 | + { |
| 2286 | + "id": "GetQueueFailure_AccessDeniedException", |
| 2287 | + "params": { |
| 2288 | + "clusterIdentifier": "pcs_donotexist", |
| 2289 | + "queueIdentifier": "pcs_donotexist" |
| 2290 | + }, |
| 2291 | + "expect": { |
| 2292 | + "failure": { |
| 2293 | + "errorId": "com.amazonaws.pcs#AccessDeniedException" |
| 2294 | + } |
| 2295 | + }, |
| 2296 | + "vendorParamsShape": "aws.test#AwsVendorParams", |
| 2297 | + "vendorParams": { |
| 2298 | + "region": "us-west-2" |
| 2299 | + } |
| 2300 | + } |
| 2301 | + ] |
2249 | 2302 | } |
2250 | 2303 | }, |
2251 | 2304 | "com.amazonaws.pcs#GetQueueRequest": { |
|
2361 | 2414 | "items": "clusters" |
2362 | 2415 | }, |
2363 | 2416 | "smithy.api#readonly": {}, |
2364 | | - "smithy.api#tags": ["Cluster"] |
| 2417 | + "smithy.api#tags": ["Cluster"], |
| 2418 | + "smithy.test#smokeTests": [ |
| 2419 | + { |
| 2420 | + "id": "ListClustersSuccess", |
| 2421 | + "params": {}, |
| 2422 | + "expect": { |
| 2423 | + "success": {} |
| 2424 | + }, |
| 2425 | + "vendorParamsShape": "aws.test#AwsVendorParams", |
| 2426 | + "vendorParams": { |
| 2427 | + "region": "us-west-2" |
| 2428 | + } |
| 2429 | + } |
| 2430 | + ] |
2365 | 2431 | } |
2366 | 2432 | }, |
2367 | 2433 | "com.amazonaws.pcs#ListClustersRequest": { |
|
2445 | 2511 | "items": "computeNodeGroups" |
2446 | 2512 | }, |
2447 | 2513 | "smithy.api#readonly": {}, |
2448 | | - "smithy.api#tags": ["ComputeNodeGroup"] |
| 2514 | + "smithy.api#tags": ["ComputeNodeGroup"], |
| 2515 | + "smithy.test#smokeTests": [ |
| 2516 | + { |
| 2517 | + "id": "ListComputeNodeGroups_AccessDeniedException", |
| 2518 | + "params": { |
| 2519 | + "clusterIdentifier": "pcs_donotexist" |
| 2520 | + }, |
| 2521 | + "expect": { |
| 2522 | + "failure": { |
| 2523 | + "errorId": "com.amazonaws.pcs#AccessDeniedException" |
| 2524 | + } |
| 2525 | + }, |
| 2526 | + "vendorParamsShape": "aws.test#AwsVendorParams", |
| 2527 | + "vendorParams": { |
| 2528 | + "region": "us-west-2" |
| 2529 | + } |
| 2530 | + } |
| 2531 | + ] |
2449 | 2532 | } |
2450 | 2533 | }, |
2451 | 2534 | "com.amazonaws.pcs#ListComputeNodeGroupsRequest": { |
|
2534 | 2617 | "items": "queues" |
2535 | 2618 | }, |
2536 | 2619 | "smithy.api#readonly": {}, |
2537 | | - "smithy.api#tags": ["Queue"] |
| 2620 | + "smithy.api#tags": ["Queue"], |
| 2621 | + "smithy.test#smokeTests": [ |
| 2622 | + { |
| 2623 | + "id": "ListQueueFailure_AccessDeniedException", |
| 2624 | + "params": { |
| 2625 | + "clusterIdentifier": "pcs_donotexist" |
| 2626 | + }, |
| 2627 | + "expect": { |
| 2628 | + "failure": { |
| 2629 | + "errorId": "com.amazonaws.pcs#AccessDeniedException" |
| 2630 | + } |
| 2631 | + }, |
| 2632 | + "vendorParamsShape": "aws.test#AwsVendorParams", |
| 2633 | + "vendorParams": { |
| 2634 | + "region": "us-west-2" |
| 2635 | + } |
| 2636 | + } |
| 2637 | + ] |
2538 | 2638 | } |
2539 | 2639 | }, |
2540 | 2640 | "com.amazonaws.pcs#ListQueuesRequest": { |
|
2798 | 2898 | "com.amazonaws.pcs#QueueIdentifier": { |
2799 | 2899 | "type": "string", |
2800 | 2900 | "traits": { |
2801 | | - "smithy.api#pattern": "^(pcs_[a-zA-Z0-9]+|[A-Za-z][A-Za-z0-9-]{1,25})$" |
| 2901 | + "smithy.api#pattern": "^(pcs_[a-zA-Z0-9]+|[A-Za-z][A-Za-z0-9-]{3,25})$" |
2802 | 2902 | } |
2803 | 2903 | }, |
2804 | 2904 | "com.amazonaws.pcs#QueueList": { |
|
2811 | 2911 | "type": "string", |
2812 | 2912 | "traits": { |
2813 | 2913 | "smithy.api#length": { |
2814 | | - "min": 1, |
| 2914 | + "min": 3, |
2815 | 2915 | "max": 25 |
2816 | 2916 | }, |
2817 | | - "smithy.api#pattern": "^(?!pcs_)^(?![A-Za-z0-9]{10}$)[A-Za-z][A-Za-z0-9-]+$" |
| 2917 | + "smithy.api#pattern": "^(?!pcs_)^[A-Za-z][A-Za-z0-9-]+$" |
2818 | 2918 | } |
2819 | 2919 | }, |
2820 | 2920 | "com.amazonaws.pcs#QueueResource": { |
|
3435 | 3535 | "errors": [ |
3436 | 3536 | { |
3437 | 3537 | "target": "com.amazonaws.pcs#ResourceNotFoundException" |
| 3538 | + }, |
| 3539 | + { |
| 3540 | + "target": "com.amazonaws.pcs#ServiceQuotaExceededException" |
3438 | 3541 | } |
3439 | 3542 | ], |
3440 | 3543 | "traits": { |
|
0 commit comments