@@ -47,16 +47,16 @@ class TimestreamWriteClient extends AbstractApi
4747 * }|DescribeEndpointsRequest $input
4848 *
4949 * @throws InternalServerException
50- * @throws ValidationException
5150 * @throws ThrottlingException
51+ * @throws ValidationException
5252 */
5353 public function describeEndpoints ($ input = []): DescribeEndpointsResponse
5454 {
5555 $ input = DescribeEndpointsRequest::create ($ input );
5656 $ response = $ this ->getResponse ($ input ->request (), new RequestContext (['operation ' => 'DescribeEndpoints ' , 'region ' => $ input ->getRegion (), 'exceptionMapping ' => [
5757 'InternalServerException ' => InternalServerException::class,
58- 'ValidationException ' => ValidationException::class,
5958 'ThrottlingException ' => ThrottlingException::class,
59+ 'ValidationException ' => ValidationException::class,
6060 ]]));
6161
6262 return new DescribeEndpointsResponse ($ response );
@@ -110,25 +110,25 @@ public function describeEndpoints($input = []): DescribeEndpointsResponse
110110 * '@region'?: string|null,
111111 * }|WriteRecordsRequest $input
112112 *
113+ * @throws AccessDeniedException
113114 * @throws InternalServerException
115+ * @throws InvalidEndpointException
116+ * @throws RejectedRecordsException
117+ * @throws ResourceNotFoundException
114118 * @throws ThrottlingException
115119 * @throws ValidationException
116- * @throws ResourceNotFoundException
117- * @throws AccessDeniedException
118- * @throws RejectedRecordsException
119- * @throws InvalidEndpointException
120120 */
121121 public function writeRecords ($ input ): WriteRecordsResponse
122122 {
123123 $ input = WriteRecordsRequest::create ($ input );
124124 $ response = $ this ->getResponse ($ input ->request (), new RequestContext (['operation ' => 'WriteRecords ' , 'region ' => $ input ->getRegion (), 'exceptionMapping ' => [
125+ 'AccessDeniedException ' => AccessDeniedException::class,
125126 'InternalServerException ' => InternalServerException::class,
127+ 'InvalidEndpointException ' => InvalidEndpointException::class,
128+ 'RejectedRecordsException ' => RejectedRecordsException::class,
129+ 'ResourceNotFoundException ' => ResourceNotFoundException::class,
126130 'ThrottlingException ' => ThrottlingException::class,
127131 'ValidationException ' => ValidationException::class,
128- 'ResourceNotFoundException ' => ResourceNotFoundException::class,
129- 'AccessDeniedException ' => AccessDeniedException::class,
130- 'RejectedRecordsException ' => RejectedRecordsException::class,
131- 'InvalidEndpointException ' => InvalidEndpointException::class,
132132 ], 'requiresEndpointDiscovery ' => true , 'usesEndpointDiscovery ' => true ]));
133133
134134 return new WriteRecordsResponse ($ response );
0 commit comments